/* =========================================================
   VARIABLES Y RESET PREMIUM
   ========================================================= */
    :root {
        --color-principal: #ED2024; /* Rojo Juan Ceviche Exacto */
        --color-secundario: #000000; /* Negro Juan Ceviche */
        --color-fondo: #f4f4f4;
        --color-surface: #ffffff;
        --color-dorado: #FFD400; /* Amarillo/Oro Juan Ceviche */
        
        --color-texto: #111111;
        --color-texto-claro: #444444;
        --color-blanco: #ffffff;
        
        --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.08);
        --sombra-fuerte: 0 15px 35px rgba(237, 32, 36, 0.2);
        --sombra-flotante: 0 10px 30px rgba(0, 0, 0, 0.3);
        
        --radio-borde: 8px; /* Estilo más angular como el triángulo del logo */
        --radio-pequeno: 4px;
        --radio-pildora: 100px;
        
        --fuente-principal: 'Montserrat', sans-serif;
        --fuente-titulos: 'Permanent Marker', cursive; /* Para ese toque "Juan" del logo */
        --animacion-suave: all 0.25s ease-out;
    }

    /* ... skipping standard reset ... */

    .ambient-background::before {
        background: rgba(227, 30, 36, 0.1); /* Brillo rojo sutil */
        top: -10vh;
        left: -10vw;
    }
    
    .ambient-background::after {
        background: rgba(252, 203, 0, 0.05); /* Brillo amarillo sutil */
        bottom: -10vh;
        right: -10vw;
        animation-delay: -12s;
    }

    /* =========================================================
       HERO HEADER (Cabecera dinámica y profunda)
       ========================================================= */
    .header-hero {
        position: relative;
        padding: 5rem 1rem 7rem 1rem;
        text-align: center;
        color: white;
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), 
                    url('../img/Fondo.png');
        background-size: cover;
        background-position: center;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        margin-bottom: -40px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        border-bottom: 3px solid var(--color-principal);
    }
   
   .header-hero::after {
       content: '';
       position: absolute;
       bottom: 0; left: 0; width: 100%; height: 100%;
       background: linear-gradient(to bottom, transparent, var(--color-fondo));
        height: 40px;
       pointer-events: none;
   }
   
   @keyframes roteLuz {
       0% { transform: rotate(0deg); }
       100% { transform: rotate(360deg); }
   }
   
   .header-hero h1 {
        font-family: var(--fuente-titulos);
        font-style: italic;
       position: relative;
       font-size: 3.2rem;
       font-weight: 700;
       margin-bottom: 0.5rem;
       letter-spacing: -0.5px;
       text-shadow: 0 4px 10px rgba(0,0,0,0.3);
   }

   .logo-hero {
       position: relative;
       width: 140px;
       height: 140px;
       object-fit: cover;
       border-radius: 50%;
       margin: 0 auto 0.5rem auto;
       border: 2px solid var(--color-dorado);
       box-shadow: 0 8px 30px rgba(0,0,0,0.4);
       display: block;
   }
   
   .header-hero p {
       position: relative;
       font-size: 1.1rem;
       font-weight: 300;
       color: rgba(255, 255, 255, 0.8);
   }
   
   /* =========================================================
      NAVEGACIÓN STICKY (Glassmorphism Pill)
      ========================================================= */
   .nav-categorias {
       position: sticky;
       top: 20px; /* Flotante desde arriba */
       z-index: 100;
       display: flex;
       overflow-x: auto;
       gap: 0.8rem;
       padding: 0.5rem;
       margin: 0 1.5rem 2.5rem 1.5rem;
       background: rgba(255, 255, 255, 0.75);
       backdrop-filter: blur(12px);
       -webkit-backdrop-filter: blur(12px);
       border: 1px solid rgba(255,255,255,0.5);
       border-radius: var(--radio-pildora);
       box-shadow: 0 8px 32px rgba(0,0,0,0.06);
       scrollbar-width: none;
       scroll-behavior: smooth;
   }
   
   .nav-categorias::-webkit-scrollbar {
       display: none;
   }
   
   .btn-categoria {
        padding: 0.8rem 1.2rem;
        border: none;
        background: transparent;
        border-bottom: 2px solid transparent;
        color: var(--color-texto-claro);
        font-weight: 500;
        font-size: 1.05rem;
        cursor: pointer;
        border-radius: 0;
        transition: var(--animacion-suave);
        white-space: nowrap;
    }
   
   .btn-categoria:hover {
       color: var(--color-texto);
   }
   
   .btn-categoria.activa {
       background: var(--color-secundario);
       color: var(--color-blanco);
       box-shadow: 0 4px 15px rgba(0,0,0,0.1);
   }
   
   /* =========================================================
      CATÁLOGO DE PRODUCTOS (Grilla de lujo)
      ========================================================= */
   .contenedor-menu {
       max-width: 1000px; 
       margin: 0 auto;
       padding: 0 1.5rem;
   }
   
   .seccion-categoria {
       margin-bottom: 4rem;
       animation: fadeIn 0.6s ease-out;
   }
   
   @keyframes fadeIn {
       from { opacity: 0; transform: translateY(20px); }
       to { opacity: 1; transform: translateY(0); }
   }
   
   .titulo-categoria {
       font-size: 1.8rem;
       font-weight: 800;
       margin-bottom: 1.5rem;
       color: var(--color-texto);
       display: flex;
       align-items: center;
       gap: 0.5rem;
   }
   
   .grilla-productos {
       display: grid;
       grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles */
       gap: 1rem;
   }
   
   @media (min-width: 650px) {
       .grilla-productos { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
   }
   @media (min-width: 950px) {
       .grilla-productos { grid-template-columns: repeat(4, 1fr); }
   }
   
   /* Tarjetas */
   .card-producto {
       background-color: var(--color-surface);
       border-radius: var(--radio-borde);
       overflow: hidden;
       box-shadow: var(--sombra-suave);
       transition: var(--animacion-suave);
       display: flex;
       flex-direction: column;
       position: relative;
       border: 1px solid rgba(0,0,0,0.02);
       cursor: pointer; /* Indicar que toda la tarjeta se puede tocar */
   }
   
   .card-producto:hover {
       transform: translateY(-5px); /* Menos movimiento en 2 columnas */
       box-shadow: var(--sombra-fuerte);
   }
   
   .card-img-wrapper {
       position: relative;
       width: 100%;
       height: 140px; /* =========================================================
   EFECTOS SUBMARINOS PREMIUM (INSPIRACIÓN MARINA)
   ========================================================= */
#efecto-caustics {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 80%);
    opacity: 0.5;
    animation: causticsMove 15s infinite alternate ease-in-out;
}

@keyframes causticsMove {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.5) translate(20px, -20px) rotate(5deg); opacity: 0.6; }
    100% { transform: scale(1.2) translate(-20px, 20px) rotate(-5deg); opacity: 0.3; }
}

#contenedor-burbujas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.burbuja {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(2px);
    animation: subirBurbuja linear infinite;
}

@keyframes subirBurbuja {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-110vh) translateX(50px) scale(1.2);
        opacity: 0;
    }
}

/* Base de layout y variables */
       overflow: hidden;
   }
   
   @media (min-width: 650px) {
       .card-img-wrapper { height: 200px; }
   }
   
   .badge-descuento {
       position: absolute;
       top: 12px;
       right: 12px;
       background: var(--color-principal);
       color: white;
       padding: 0.4rem 0.8rem;
       border-radius: var(--radio-pequeno);
       font-weight: 800;
       font-size: 0.85rem;
       z-index: 5;
       box-shadow: 0 4px 10px rgba(193, 18, 31, 0.4);
       animation: pulseDescuento 2s infinite;
   }

   @keyframes pulseDescuento {
       0% { transform: scale(1); }
       50% { transform: scale(1.05); }
       100% { transform: scale(1); }
   }
   
   .imagen-producto {
       width: 100%;
       height: 100%;
       object-fit: cover;
       transition: transform 0.6s ease;
   }
   
   .card-producto:hover .imagen-producto {
       transform: scale(1.05);
   }
   
   /* Etiqueta de precio superpuesta a la foto */
   .precio-tag {
       position: absolute;
       bottom: 8px;
       left: 8px;
       background: rgba(255,255,255,0.9);
       backdrop-filter: blur(8px);
       color: var(--color-secundario);
       padding: 0.3rem 0.6rem;
       border-radius: var(--radio-pequeno);
       font-weight: 800;
       font-size: 0.95rem;
       box-shadow: 0 4px 10px rgba(0,0,0,0.1);
       display: flex;
       flex-direction: column;
       line-height: 1;
   }

   .precio-old {
       font-size: 0.75rem;
       text-decoration: line-through;
       opacity: 0.5;
       margin-bottom: 2px;
       font-weight: 500;
   }
   
   @media (min-width: 650px) {
       .precio-tag { font-size: 1.1rem; bottom: 12px; left: 12px; padding: 0.4rem 0.8rem; }
   }
   
   .info-producto {
       padding: 1rem;
       display: flex;
       flex-direction: column;
       flex-grow: 1;
       background: var(--color-surface);
   }
   
   .nombre-producto {
       font-size: 1.05rem;
       font-weight: 700;
       margin-bottom: 0.4rem;
       color: var(--color-texto);
       line-height: 1.2;
   }
   
   @media (min-width: 650px) {
       .nombre-producto { font-size: 1.25rem; }
   }
   
   .descripcion-producto {
       font-size: 0.85rem;
       color: var(--color-texto-claro);
       margin-bottom: 1rem;
       line-height: 1.4;
       flex-grow: 1;
       /* Truncar a 2 líneas en móviles para no deformar tan feo las 2 columnas */
       display: -webkit-box;
       -webkit-line-clamp: 2;
       -webkit-box-orient: vertical;
       overflow: hidden;
   }
   
   @media (min-width: 650px) {
       .descripcion-producto { font-size: 0.95rem; -webkit-line-clamp: 3; }
   }
   
   .btn-agregar {
       background-color: var(--color-fondo);
       color: var(--color-principal);
       border: 2px solid transparent;
       padding: 0.6rem;
       border-radius: var(--radio-pequeno);
       font-weight: 700;
       font-size: 0.9rem;
       cursor: pointer;
       transition: var(--animacion-suave);
       display: flex;
       align-items: center;
       justify-content: center;
       gap: 0.4rem;
       width: 100%;
       position: relative;
       z-index: 2; /* Para que al tocar el botón no active la carta entera sin querer si no lo manejamos bien */
   }
   
   @media (min-width: 650px) {
       .btn-agregar { padding: 0.8rem 1.2rem; font-size: 1rem; gap: 0.5rem; }
   }
   
   .btn-agregar:hover {
       background-color: var(--color-principal);
       color: var(--color-blanco);
       box-shadow: 0 6px 15px rgba(193, 18, 31, 0.3); /* Toma el color rojo o principal y brilla */
   }
   
   .btn-agregar:active {
       transform: scale(0.96);
   }
   
   /* =========================================================
      CARRITO FLOTANTE (PÍLDORA MÁGICA 💊)
      ========================================================= */
   .boton-flotante-carrito {
       position: fixed;
       bottom: 30px;
       left: 50%;
       transform: translateX(-50%);
       width: calc(100% - 3rem);
       max-width: 420px;
       background: var(--color-secundario);
       /* Gradiente ligero para premium feel */
       background-image: linear-gradient(90deg, var(--color-secundario) 0%, rgba(0,0,0,0.85) 100%);
       color: var(--color-blanco);
       border-radius: var(--radio-pildora);
       padding: 0.8rem 1rem 0.8rem 2rem;
       display: flex;
       justify-content: space-between;
       align-items: center;
       box-shadow: 0 15px 35px rgba(0,0,0,0.25);
       cursor: pointer;
       z-index: 900;
       transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
       border: 1px solid rgba(255,255,255,0.1);
   }
   
   .boton-flotante-carrito:active {
       transform: translateX(-50%) scale(0.98);
   }
   
   .boton-flotante-carrito.oculto {
       transform: translate(-50%, 150px) scale(0.8);
   }
   
   .texto-carrito-flu flotante-carrito span.txt {
       font-size: 1.1rem;
       font-weight: 600;
   }
   
   .resumen-flotante {
       display: flex;
       align-items: center;
       gap: 1rem;
   }
   
   .carrito-precio-total {
       font-weight: 800;
       font-size: 1.2rem;
   }
   
   .carrito-cantidad {
       background-color: var(--color-principal);
       color: var(--color-blanco);
       min-width: 38px;
       height: 38px;
       border-radius: 50%;
       display: flex;
       justify-content: center;
       align-items: center;
       font-size: 1.1rem;
       font-weight: 800;
       box-shadow: 0 4px 10px rgba(0,0,0,0.2);
   }
   
   /* =========================================================
      MODAL DEL CARRITO (Deslizamiento y Blur)
      ========================================================= */
   .overlay-carrito {
       position: fixed;
       top: 0;
       left: 0;
       width: 100vw;
       height: 100vh;
       background: rgba(15, 23, 42, 0.4);
       z-index: 999;
       opacity: 0;
       visibility: hidden;
       transition: all 0.4s ease;
       backdrop-filter: blur(8px);
       -webkit-backdrop-filter: blur(8px);
   }
   
   .overlay-carrito.activo {
       opacity: 1;
       visibility: visible;
   }
   
   .panel-carrito {
       position: fixed;
       top: 0;
       right: -100%;
       width: 100%;
       max-width: 420px;
       height: 100vh;
       background: var(--color-surface);
       z-index: 1000;
       transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
       display: flex;
       flex-direction: column;
       box-shadow: -10px 0 40px rgba(0,0,0,0.15);
       border-top-left-radius: 24px;
       border-bottom-left-radius: 24px;
   }
   
   @media (max-width: 480px) {
       .panel-carrito {
           border-radius: 0; /* En móviles pequeños ocupa todo */
       }
   }
   
   .panel-carrito.activo {
       right: 0;
   }
   
   .carrito-header {
       padding: 2rem 1.5rem 1.5rem;
       border-bottom: 1px solid rgba(0,0,0,0.05);
       display: flex;
       justify-content: space-between;
       align-items: center;
   }
   
   .carrito-header h2 {
       font-size: 1.6rem;
       font-weight: 800;
       color: var(--color-texto);
   }
   
   .btn-cerrar-carrito {
       background: var(--color-fondo);
       border: none;
       width: 40px;
       height: 40px;
       border-radius: 50%;
       font-size: 1.2rem;
       color: var(--color-texto);
       cursor: pointer;
       display: flex;
       justify-content: center;
       align-items: center;
       transition: var(--animacion-suave);
   }
   
   .btn-cerrar-carrito:hover {
       background: #e2e8f0;
       transform: rotate(90deg);
   }
   
   .carrito-body {
       flex-grow: 1;
       overflow-y: auto;
       padding: 1.5rem;
   }
   
   .carrito-vacio {
       text-align: center;
       color: var(--color-texto-claro);
       margin-top: 4rem;
       font-size: 1.2rem;
       font-weight: 500;
   }
   
   .carrito-vacio-icono {
       font-size: 4rem;
       opacity: 0.3;
       margin-bottom: 1rem;
   }
   
   .item-carrito {
       display: flex;
       gap: 1rem;
       justify-content: space-between;
       align-items: center;
       padding: 1rem 0.8rem;
       margin-bottom: 1rem;
       background: var(--color-fondo);
       border-radius: var(--radio-pequeno);
       border: 1px solid transparent;
   }
   
   .item-carrito:hover {
       border-color: rgba(0,0,0,0.05);
       background: #fff;
       box-shadow: var(--sombra-suave);
   }
   
   .item-img-cart {
       width: 55px;
       height: 55px;
       border-radius: 12px;
       object-fit: cover;
       flex-shrink: 0;
       box-shadow: 0 4px 8px rgba(0,0,0,0.08);
   }
   
   .item-info-cart {
       flex-grow: 1;
       display: flex;
       flex-direction: column;
       justify-content: center;
   }
   
   .item-nombre-cart {
       font-weight: 700;
       font-size: 0.95rem;
       color: var(--color-texto);
       line-height: 1.1;
       margin-bottom: 0.3rem;
       display: -webkit-box;
       -webkit-line-clamp: 2;
       -webkit-box-orient: vertical;
       overflow: hidden;
   }
   
   .item-precio-cart {
       color: var(--color-texto);
       font-weight: 700;
       font-size: 1rem;
   }
   
   .control-cantidad {
       display: flex;
       align-items: center;
       gap: 0.8rem;
       background: var(--color-surface);
       border-radius: var(--radio-pildora);
       padding: 0.4rem;
       box-shadow: 0 2px 8px rgba(0,0,0,0.05);
       border: 1px solid rgba(0,0,0,0.03);
   }
   
   .btn-cant {
       background: transparent;
       border: none;
       font-size: 1.5rem;
       font-weight: 500;
       color: var(--color-texto);
       cursor: pointer;
       width: 28px;
       height: 28px;
       border-radius: 50%;
       display: flex;
       justify-content: center;
       align-items: center;
       transition: var(--animacion-suave);
   }
   .btn-cant:hover {
       background: var(--color-fondo);
   }
   
   .control-cantidad span {
       font-weight: 700;
       font-size: 1.1rem;
       min-width: 15px;
       text-align: center;
   }

   /* Sugerencias Carrito */
   .sugerencias-carrito {
       padding: 0 1.5rem 1rem 1.5rem;
   }
   .sugerencia-titulo {
       font-size: 0.9rem;
       font-weight: 700;
       color: var(--color-texto-claro);
       margin-bottom: 0.8rem;
   }
   .sugerencia-item {
       display: flex;
       align-items: center;
       gap: 1rem;
       background: var(--color-surface);
       border: 1px dashed rgba(0,0,0,0.15);
       padding: 0.8rem;
       border-radius: var(--radio-pequeno);
       margin-bottom: 0.5rem;
       transition: var(--animacion-suave);
   }
   .sugerencia-item:hover {
       border-style: solid;
       border-color: var(--color-principal);
       box-shadow: 0 4px 10px rgba(0,0,0,0.05);
   }
   .sugerencia-img {
       width: 40px;
       height: 40px;
       border-radius: 8px;
       object-fit: cover;
   }
   .sugerencia-info {
       flex-grow: 1;
   }
   .sugerencia-nombre {
       font-size: 0.85rem;
       font-weight: 700;
       color: var(--color-texto);
       margin-bottom: 0.1rem;
   }
   .sugerencia-precio {
       font-size: 0.85rem;
       font-weight: 600;
       color: var(--color-secundario);
   }
   .btn-sugerencia-add {
       background: var(--color-fondo);
       color: var(--color-principal);
       border: none;
       width: 32px;
       height: 32px;
       border-radius: 50%;
       font-weight: 700;
       cursor: pointer;
       display: flex;
       justify-content: center;
       align-items: center;
       transition: var(--animacion-suave);
       font-size: 1.2rem;
   }
   .btn-sugerencia-add:hover {
       background: var(--color-principal);
       color: white;
   }
   
   .carrito-footer {
       padding: 1.5rem;
       background: var(--color-surface);
       border-top: 1px solid rgba(0,0,0,0.05);
       box-shadow: 0 -10px 20px rgba(0,0,0,0.02);
   }
   
   .carrito-resumen {
       display: flex;
       justify-content: space-between;
       font-size: 1.3rem;
       font-weight: 800;
       margin-bottom: 1.5rem;
       color: var(--color-texto);
   }
   
   .input-nota {
       width: 100%;
       padding: 1rem;
       border: 1px solid #e2e8f0;
       border-radius: var(--radio-pequeno);
       margin-bottom: 1.5rem;
       font-family: inherit;
       font-size: 0.95rem;
       resize: none;
       background: var(--color-fondo);
       transition: border-color 0.3s;
   }
   .input-nota:focus {
       outline: none;
       border-color: var(--color-principal);
       background: #fff;
   }
   
   .btn-whatsapp {
       width: 100%;
       background-color: #25D366; 
       color: white;
       border: none;
       padding: 1.2rem;
       border-radius: var(--radio-pildora);
       font-size: 1.15rem;
       font-weight: 700;
       cursor: pointer;
       display: flex;
       justify-content: center;
       align-items: center;
       gap: 0.8rem;
       box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
       transition: var(--animacion-suave);
   }
   
   .btn-whatsapp:hover {
       transform: translateY(-2px);
       box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
   }
   
   .btn-whatsapp:active {
       transform: scale(0.98);
   }
   
   /* =========================================================
      MODAL DETALLE PRODUCTO
      ========================================================= */
   .overlay-modal-producto.activo .modal-producto { transform: translateY(0) scale(1); }
   
   .modal-producto-img-container { 
       position: relative; width: 100%; height: 260px; flex-shrink: 0;
   }
   .modal-producto-img { 
       width: 100%; height: 100%; object-fit: cover; 
   }

   .modal-badge-descuento {
       position: absolute;
       top: 20px;
       left: 20px;
       background: #fbbf24;
       color: #000;
       padding: 0.5rem 1rem;
       border-radius: var(--radio-pildora);
       font-weight: 900;
       font-size: 0.75rem;
       letter-spacing: 1px;
       box-shadow: 0 4px 12px rgba(0,0,0,0.2);
   }
   
   .btn-cerrar-modal-producto {
       position: absolute; top: 15px; right: 15px;
       background: rgba(0,0,0,0.4); color: white; border: none;
       width: 36px; height: 36px; border-radius: 50%;
       font-size: 1.2rem; cursor: pointer; display: flex; 
       justify-content: center; align-items: center;
       backdrop-filter: blur(4px); transition: background 0.2s;
       z-index: 10;
   }
   .btn-cerrar-modal-producto:hover { background: rgba(0,0,0,0.7); }
   
   .modal-producto-body { 
       padding: 1.5rem; overflow-y: auto; 
   }
   .modal-producto-titulo { 
       font-size: 1.6rem; font-weight: 800; margin-bottom: 0.8rem; color: var(--color-texto); line-height: 1.1; 
   }
   .modal-producto-desc { 
       color: var(--color-texto-claro); line-height: 1.5; margin-bottom: 1.5rem; font-size: 1rem; 
   }
    /* =========================================================
       MODAL DETALLE PRODUCTO (CENTRADOS)
       ========================================================= */
    .overlay-modal-producto {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px);
        z-index: 2000; opacity: 0; visibility: hidden;
        display: flex; justify-content: center; align-items: center;
        transition: all 0.3s ease;
    }
    .overlay-modal-producto.activo { opacity: 1; visibility: visible; }
    
    .modal-producto {
        background: var(--color-surface); width: 92%; max-width: 450px;
        border-radius: 20px; overflow: hidden; position: relative;
        transform: translateY(20px); transition: transform 0.3s ease;
        display: flex; flex-direction: column; max-height: 85vh;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
    .overlay-modal-producto.activo .modal-producto { transform: translateY(0); }

    .btn-cerrar-modal-producto {
        position: absolute; top: 15px; right: 15px; z-index: 10;
        background: rgba(0,0,0,0.5); color: white; border: none;
        width: 35px; height: 35px; border-radius: 50%; cursor: pointer;
    }

    .modal-producto-img-container { width: 100%; height: 200px; position: relative; }
    .modal-producto-img { width: 100%; height: 100%; object-fit: cover; }

    .modal-producto-body { padding: 1.5rem; overflow-y: auto; }
    .modal-producto-titulo { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
    .modal-producto-desc { color: var(--color-texto-claro); font-size: 0.95rem; margin-bottom: 1.5rem; }

    .modal-producto-footer { 
        padding: 1.2rem 1.5rem; border-top: 1px solid rgba(0,0,0,0.05); 
        background: var(--color-fondo); display: flex; gap: 1rem; 
        align-items: center; justify-content: space-between;
    }

   .modal-precio-old {
       font-size: 0.9rem;
       text-decoration: line-through;
       opacity: 0.4;
       font-weight: 600;
       margin-bottom: -4px;
   }

   .modal-precio { 
       font-size: 1.5rem; font-weight: 800; color: var(--color-secundario); 
   }
   .btn-agregar-modal { 
       background: var(--color-principal); color: white; border: none; 
       padding: 1rem 1.5rem; border-radius: var(--radio-pildora); 
       font-weight: 700; font-size: 1.05rem; cursor: pointer; flex-grow: 1; 
       text-align: center; box-shadow: 0 4px 15px rgba(193, 18, 31, 0.3); transition: transform 0.2s;
   }
   .btn-agregar-modal:active { transform: scale(0.96); }

   /* =========================================================
      FOOTER PREMIUM
      ========================================================= */
   .footer-premium {
       background-color: var(--color-secundario);
       color: white;
       padding: 4rem 2rem 10rem 2rem;
       text-align: center;
       margin-top: 4rem;
       position: relative;
       overflow: hidden;
       border-top: 4px solid var(--color-principal);
   }

   .footer-content {
       max-width: 600px;
       margin: 0 auto;
       position: relative;
       z-index: 1;
   }

   .footer-logo-img {
       width: 80px;
       height: 80px;
       border-radius: 50%;
       object-fit: cover;
       border: 2px solid white;
       margin-bottom: 1.5rem;
       box-shadow: 0 5px 15px rgba(0,0,0,0.3);
   }

   .footer-slogan {
       font-size: 1.1rem;
       font-style: italic;
       opacity: 0.8;
       margin-bottom: 2.5rem;
       letter-spacing: 0.5px;
   }

   .footer-tech {
       background: rgba(255, 255, 255, 0.05);
       padding: 1.5rem;
       border-radius: 20px;
       backdrop-filter: blur(5px);
       margin-bottom: 2.5rem;
       border: 1px solid rgba(255, 255, 255, 0.1);
   }

   .footer-tech p {
       font-size: 0.85rem;
       text-transform: uppercase;
       letter-spacing: 2px;
       opacity: 0.6;
       margin-bottom: 0.5rem;
   }

   .autor-nombre {
       display: block;
       font-size: 1.15rem;
       font-weight: 500;
       color: rgba(255, 255, 255, 0.9);
       margin-bottom: 0.2rem;
   }

   .autor-cargo {
       display: block;
       font-size: 0.85rem;
       color: rgba(255, 255, 255, 0.5);
       font-weight: 400;
   }

   .footer-copyright {
       font-size: 0.8rem;
       opacity: 0.4;
       margin-top: 2rem;
   }

   /* Decoración de fondo del footer */
   .footer-premium::before {
       content: '';
       position: absolute;
       top: -50%;
       left: -10%;
       width: 120%;
       height: 200%;
       background: radial-gradient(circle, rgba(193, 18, 31, 0.1) 0%, transparent 70%);
       z-index: 0;
   }

   /* =========================================================
      MODIFICADORES DE PRODUCTO (CHECKBOXES)
      ========================================================= */
   .modal-mods-container {
       margin-bottom: 1.5rem;
   }

   .mod-checkbox-label {
       display: flex;
       align-items: center;
       gap: 0.8rem;
       padding: 0.8rem;
       border: 1px solid rgba(0,0,0,0.08);
       border-radius: var(--radio-pequeno);
       margin-bottom: 0.5rem;
       cursor: pointer;
       transition: var(--animacion-suave);
       background: var(--color-surface);
   }

   .mod-checkbox-label:hover {
       background: var(--color-fondo);
   }

   .mod-checkbox {
       display: none;
   }

   .mod-check-cuadro {
       width: 22px;
       height: 22px;
       border: 2px solid var(--color-secundario);
       border-radius: 6px;
       display: flex;
       justify-content: center;
       align-items: center;
       transition: var(--animacion-suave);
   }

   .mod-checkbox:checked + .mod-check-cuadro {
       background: var(--color-principal);
       border-color: var(--color-principal);
   }

   .mod-checkbox:checked + .mod-check-cuadro::after {
       content: '✓';
       color: white;
       font-size: 14px;
       font-weight: 800;
   }

    .mod-check-cuadro.radio {
        border-radius: 50%;
    }
 
    .mod-radio:checked + .mod-check-cuadro.radio {
        background: var(--color-principal);
        border-color: var(--color-principal);
    }
 
    .mod-radio:checked + .mod-check-cuadro.radio::after {
        content: '';
        width: 10px;
        height: 10px;
        background: white;
        border-radius: 50%;
    }

   .mod-nombre {
       flex-grow: 1;
       font-size: 0.95rem;
       font-weight: 500;
       color: var(--color-texto);
   }

   .mod-precio {
       font-size: 0.9rem;
       font-weight: 700;
       color: var(--color-principal);
   }

   /* =========================================================
      ANIMACIÓN VUELO AL CARRITO
      ========================================================= */
   .img-vuelo-animacion {
       position: fixed;
       z-index: 9999;
       border-radius: 50%;
       object-fit: cover;
       pointer-events: none;
       box-shadow: 0 10px 30px rgba(0,0,0,0.4);
       transition: transform 0.6s cubic-bezier(0.25, 1.25, 0.4, 1), opacity 0.6s ease;
   }

    .modal-nota-container {
        margin-top: 1.2rem;
        padding-top: 1rem;
        border-top: 1px dashed rgba(0,0,0,0.1);
    }

    @media (min-width: 1024px) {
        .grilla-productos {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
        }

        .card-producto {
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
        }

        .card-producto:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0,0,0,0.12);
        }

        .card-producto:hover .imagen-producto {
            transform: scale(1.1);
        }
        
        .imagen-producto {
            transition: transform 0.6s ease;
        }
        
        .header-hero {
            padding: 8rem 2rem 10rem 2rem;
        }
        
        .header-hero h1 {
            font-size: 5rem;
        }
        
        .nav-categorias {
            max-width: 900px;
            margin: 0 auto 3rem auto;
            justify-content: center;
        }
        
        .seccion-categoria {
            max-width: 1200px;
            margin: 0 auto 4rem auto;
            padding: 0 2rem;
        }

        .modal-producto {
            max-width: 850px;
            width: 90%;
            height: 600px;
            display: flex;
            flex-direction: row;
            align-items: stretch;
            border-radius: 24px;
            overflow: hidden;
        }
        
        .modal-producto-img-container {
            width: 50%;
            height: 100%;
        }
        
        .modal-producto-img {
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
        
        .modal-producto-body {
            width: 50%;
            overflow-y: auto;
            padding: 3rem;
            padding-bottom: 8rem; /* Espacio para el footer absoluto */
        }
        
        .modal-producto-footer {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50%;
            background: white;
            border-top: 1px solid #eee;
            padding: 2rem 3rem;
        }

        .btn-cerrar-modal-producto {
            top: 20px;
            right: 20px;
            background: white;
            color: black;
            z-index: 1000;
        }

        /* --- MEJORA DE PROMOCIONES EN PC --- */
        .promociones-wrapper {
            justify-content: center;
            gap: 2.5rem;
            padding: 2rem;
            max-width: 1200px;
            margin: 0 auto;
            top: -50px; /* Más elevación sobre el hero */
        }

        .promo-card {
            flex: 0 0 450px;
            height: 250px;
            border-radius: 20px;
            transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
            cursor: pointer;
        }

        .promo-card:hover {
            transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
            box-shadow: 0 30px 60px rgba(0,0,0,0.4);
            border-color: var(--color-principal);
        }

        .promo-content h4 {
            font-size: 2.2rem;
            margin-bottom: 0.8rem;
        }

        .promo-content p {
            font-size: 1.1rem;
            max-width: 90%;
        }
    }
        padding-top: 1rem;
        border-top: 1px dashed rgba(0,0,0,0.1);
    }
 
    .modal-nota-label {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--color-texto);
        margin-bottom: 0.4rem;
        display: block;
        text-align: center;
    }
 
    .modal-nota-input {
        width: 95%;
        margin: 0 auto;
        display: block;
        padding: 0.6rem 0.8rem;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 10px;
        font-family: inherit;
        font-size: 0.85rem;
        resize: none;
        background: #fdfdfd;
        color: var(--color-texto);
        transition: var(--animacion-suave);
    }
 
    .modal-nota-input:focus {
        outline: none;
        border-color: var(--color-principal);
        background: white;
        box-shadow: 0 0 0 4px rgba(237, 32, 36, 0.05);
    }

   /* =========================================================
       BANNERS PROMOCIONALES
       ========================================================= */
    .promociones-wrapper {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 0.5rem 1.5rem 1.5rem 1.5rem;
        position: relative;
        top: -15px; /* Superpone sutilmente sobre el hero-header */
        z-index: 10;
        scrollbar-width: none; /* Firefox */
    }
    .promociones-wrapper::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .promo-card {
        flex: 0 0 300px; /* Ancho fijo para deslizar horizontalmente */
        height: 140px;
        border-radius: var(--radio-borde);
        padding: 1.5rem;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Sombra elegante */
        border: 1px solid rgba(212, 175, 55, 0.3); /* Borde dorado translúcido */
        position: relative;
        overflow: hidden;
    }

    /* Overlay equilibrado (50% visibilidad de imagen) */
    .promo-card::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .promo-content {
        position: relative;
        z-index: 2;
    }

    .promo-content h4 {
        font-family: var(--fuente-titulos);
        font-size: 1.35rem;
        font-weight: 700;
        font-style: italic;
        margin-bottom: 0.4rem;
        color: var(--color-dorado);
        letter-spacing: 0.5px;
    }

    .promo-content p {
        font-family: 'Montserrat', var(--fuente-principal);
        font-size: 0.85rem;
        font-weight: 400;
        opacity: 1;
        line-height: 1.35;
        color: #f8f8f8;
    }
@keyframes causticsMove { 0% { transform: scale(1) translate(0, 0) rotate(0deg); opacity: 0.3; } 50% { transform: scale(1.5) translate(20px, -20px) rotate(5deg); opacity: 0.6; } 100% { transform: scale(1.2) translate(-20px, 20px) rotate(-5deg); opacity: 0.3; } } @keyframes subirBurbuja { 0% { transform: translateY(0) translateX(0) scale(0.5); opacity: 0; } 10% { opacity: 0.5; } 90% { opacity: 0.5; } 100% { transform: translateY(-110vh) translateX(50px) scale(1.2); opacity: 0; } } #efecto-caustics { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    pointer-events: none; 
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15) 0%, transparent 80%); 
    opacity: 0.9; 
    animation: causticsMove 15s infinite alternate ease-in-out; 
} #contenedor-burbujas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; overflow: hidden; } .burbuja { 
    position: absolute; 
    bottom: -50px; 
    background: rgba(255, 255, 255, 0.6); 
    border: 1.5px solid rgba(0, 119, 182, 0.6); 
    border-radius: 50%; 
    backdrop-filter: blur(1px); 
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.4), inset 0 0 5px rgba(202, 240, 248, 0.8);
    animation: subirBurbuja linear infinite; 
}
