@font-face {
    font-family: 'Good Times';
    src: url('../font/Good Times Rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --fondo-cabecera: #2a2a2a;
    --fondo-contenedor: #5e5e5e;
    --fondo-menu: #2a2a2a;
    --color-texto: #ffffff;
    --color-precio: #ffc107;
    --color-tarjeta: #000;
    --color-texto-tarjeta: #fff;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

.cabecera {
    width: 100%;
    height: 80px;
    background-color: var(--fondo-cabecera);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.cabecera-contenido {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo h1 {
    color: var(--color-texto);
    font-family: 'Good Times', Arial, sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.boton-menu {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 0;
    z-index: 1001;
    position: absolute;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.barra {
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -12px;
}

.barra1 {
    margin-top: -9px;
}

.barra2 {
    margin-top: -1.5px;
}

.barra3 {
    margin-top: 6px;
}

.boton-menu.activo .barra1 {
    transform: rotate(45deg);
    margin-top: -1.5px;
}

.boton-menu.activo .barra2 {
    opacity: 0;
}

.boton-menu.activo .barra3 {
    transform: rotate(-45deg);
    margin-top: -1.5px;
}

.menu-desplegable {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 80px);
    background: linear-gradient(135deg, var(--fondo-menu) 0%, #1a1a1a 100%);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.menu-desplegable.activo {
    right: 0;
}

.lista-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.lista-menu-separador {
    border: none;
    margin: 0;
    padding: 0;
}

.lista-menu li {
    padding: 0;
    border: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lista-menu a {
    color: var(--color-texto);
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 25px 30px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid transparent;
}

.lista-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-precio);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.lista-menu a:hover {
    color: var(--color-precio);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-5px);
}

.lista-menu a:hover::before {
    transform: scaleY(1);
}

.contenedor {
    width: 100%;
    height: 100vh;
    background-color: var(--fondo-contenedor);
    margin-top: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contenedor-interno {
    width: 100%;
    max-width: 1200px;
}

.contenedor-categoria {
    margin-bottom: 25px;
    width: 100%;
}

.contenedor-categoria h2 {
    color: var(--color-texto);
    font-family: 'Good Times', Arial, sans-serif;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 30px;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-left: 6px solid var(--color-precio);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.contenedor-categoria h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, transparent 100%);
    transition: width 0.4s ease;
    z-index: 0;
}

.contenedor-categoria h2:hover::before {
    width: 100%;
}

.contenedor-categoria h2:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    border-left-width: 8px;
    transform: translateX(3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.contenedor-categoria h2:active {
    transform: translateX(1px);
}

.texto-categoria {
    flex: 1;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.icono-acordeon {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
    z-index: 1;
    color: var(--color-precio);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.icono-categoria {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.texto-categoria {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contenedor-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 20vw, 180px), 1fr));
    gap: clamp(15px, 2vw, 20px);
    padding: clamp(20px, 3vw, 25px) 0;
    margin-bottom: 15px;
    justify-items: center;
    width: 100%;
}

.acordeon-productos {
    width: 100%;
}

.tarjeta-producto {
    background-color: var(--color-tarjeta);
    border-radius: clamp(12px, 1.5vw, 16px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 5 / 6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tarjeta-producto:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.producto-imagen {
    width: 100%;
    height: 60%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    flex-shrink: 0;
    position: relative;
}

.producto-imagen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tarjeta-producto:hover .producto-imagen img {
    transform: scale(1.05);
}

.producto-info {
    display: flex;
    flex-direction: column;
    padding: clamp(4px, 0.8vw, 8px) clamp(6px, 1vw, 10px);
    gap: clamp(4px, 0.6vw, 6px);
    flex-grow: 1;
    min-height: 0;
    justify-content: space-between;
}

.producto-titulo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 0;
    min-height: clamp(10px, 1.5vw, 16px);
    max-height: clamp(22px, 3vw, 34px);
}

.producto-titulo p {
    color: var(--color-texto-tarjeta);
    font-size: clamp(9px, 1.2vw, 14px);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    letter-spacing: clamp(0.3px, 0.04vw, 0.4px);
    display: -webkit-box;

    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.producto-precio {
    color: var(--color-precio);
    font-size: clamp(12px, 1.4vw, 18px);
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;
    align-self: flex-end;
    margin-top: auto;
    padding: clamp(2px, 0.3vw, 4px) 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: clamp(0.5px, 0.06vw, 0.8px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.activo {
    display: flex;
}

.modal-contenido {
    background: linear-gradient(135deg, var(--color-tarjeta) 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 40px 35px;
    max-width: 90%;
    width: 450px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 28px;
    color: var(--color-texto-tarjeta);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cerrar-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    color: var(--color-texto-tarjeta);
}

.modal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-contenido h3 {
    color: var(--color-texto-tarjeta);
    font-size: 28px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-contacto,
.info-ubicacion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    user-select: none;
}

.info-item-link {
    text-decoration: none;
    cursor: pointer;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.info-icono {
    font-size: 28px;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.telefono-icono {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5A9C 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.telefono-icono i {
    font-size: 24px;
}

.whatsapp-icono {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-icono i {
    font-size: 28px;
}

.info-item-link:hover .telefono-icono {
    background: linear-gradient(135deg, #5BA3F5 0%, #3B6DB3 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

.info-item-link:hover .whatsapp-icono {
    background: linear-gradient(135deg, #2EE875 0%, #1AA063 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.info-item-link:hover {
    border-color: rgba(255, 193, 7, 0.3);
}

.info-texto {
    flex: 1;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px 0;
    user-select: none;
}

.info-valor {
    color: var(--color-texto-tarjeta);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    user-select: none;
}

.info-contacto a,
.info-ubicacion a {
    color: var(--color-precio);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    user-select: none;
}

.info-contacto a:hover,
.info-ubicacion a:hover {
    color: #ffd54f;
    text-decoration: none;
}

.boton-maps {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fondo-contenedor) 0%, #4a4a4a 100%);
    color: var(--color-texto);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.boton-maps:hover {
    background: linear-gradient(135deg, #6e6e6e 0%, var(--fondo-contenedor) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

@media (min-width: 769px) {
    .contenedor-categoria h2 {
        font-size: clamp(28px, 3vw, 32px);
        letter-spacing: 3px;
        padding: 24px 35px;
    }
    
    .icono-acordeon {
        font-size: clamp(24px, 2.5vw, 28px);
    }

    .contenedor-productos {
        grid-template-columns: repeat(auto-fill, minmax(clamp(160px, 18vw, 180px), 1fr));
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .logo h1 {
        font-size: 24px;
    }

    .contenedor-productos {
        gap: 15px;
    }

    .tarjeta-producto {
        width: 140px;
        height: 168px;
    }

    .producto-imagen {
        height: 100px;
    }

    .producto-info {
        padding: 6px 8px;
        gap: 5px;
    }

    .producto-titulo {
        min-height: 13px;
        max-height: 27px;
        align-items: center;
    }

    .producto-titulo p {
        font-size: 11px;
        line-height: 1.2;
        letter-spacing: 0.35px;
    }

    .producto-precio {
        font-size: 15px;
        letter-spacing: 0.6px;
    }

    .menu-desplegable {
        width: 100%;
        max-width: 100%;
    }

    .lista-menu a {
        font-size: 22px;
        padding: 30px 25px;
        letter-spacing: 2.5px;
    }

    .modal-contenido {
        width: 90%;
        padding: 20px;
    }

    .contenedor-categoria h2 {
        font-size: 22px;
        letter-spacing: 1.5px;
        padding: 18px 25px;
        gap: 15px;
    }
    
    .icono-acordeon {
        font-size: 22px;
    }

    .icono-categoria {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .tarjeta-producto {
        width: 150px;
        height: 180px;
        border-radius: 14px;
    }

    .producto-imagen {
        height: 120px;
    }

    .producto-info {
        padding: 6px 8px;
        gap: 5px;
    }

    .producto-titulo {
        min-height: 13px;
        max-height: 27px;
        align-items: center;
    }

    .producto-titulo p {
        font-size: 11px;
        line-height: 1.2;
        letter-spacing: 0.35px;
    }

    .producto-precio {
        font-size: 14px;
        letter-spacing: 0.6px;
    }

    .contenedor-categoria h2 {
        font-size: 22px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .menu-desplegable {
        width: 100%;
        max-width: 100%;
    }

    .lista-menu a {
        font-size: 20px;
        padding: 28px 20px;
        letter-spacing: 2px;
    }

    .modal-contenido {
        width: 90%;
        padding: 20px;
    }

    .contenedor-categoria h2 {
        font-size: 18px;
        letter-spacing: 1px;
        padding: 16px 20px;
        gap: 12px;
    }
    
    .icono-acordeon {
        font-size: 20px;
    }

    .icono-categoria {
        font-size: 20px;
        width: 35px;
        height: 35px;
    }
}
