/* --- VARIABLES & RESET --- */
:root {
    /* Paleta de Colores Exacta */
    --color-sunlight: #F2D497;      /* Amarillo */
    --color-canyon: #DD9773;        /* Naranja */
    --color-pink-nectar: #D3A5B8;   /* Rosa */
    --color-soybean: #CCC39E;       /* Beige */
    --color-sage: #97956A;          /* Verde Oliva */
    
    /* Colores Funcionales */
    --color-bg-main: #FDFCF8;       /* Fondo crema claro */
    --color-text-main: #5C5A4A;     /* Texto principal */
    --color-text-light: #8A887D;    /* Texto secundario */
    --color-white: #FFFFFF;
    
    /* Tipografía */
    --font-heading: 'League Spartan', sans-serif;
    --font-body: 'Jost', sans-serif;
    --font-hand: 'Caveat', cursive;
    
    /* Otros */
    --shadow-soft: 0 10px 30px rgba(151, 149, 106, 0.1);
    --shadow-hover: 0 15px 40px rgba(221, 151, 115, 0.2);
    --radius-card: 25px;
    --radius-btn: 50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    /* Quitamos el color de fondo directo aquí para que se maneje en el wrapper animado, 
       o lo dejamos como fallback */
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
h1 { font-size: 3.5rem; line-height: 1; color: var(--color-canyon); }
h2 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--color-sage); }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
button { font-family: var(--font-heading); border: none; outline: none; cursor: pointer; font-weight: 600; }
img { max-width: 100%; height: auto; }

/* --- UTILIDADES --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 90px 0; }
/* Usamos rgba para que se vea sutilmente el fondo animado detrás */
.bg-soybean-light { background-color: rgba(204, 195, 158, 0.15); backdrop-filter: blur(5px); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.mb-5 { margin-bottom: 3rem; }

.subtitle {
    display: block; text-transform: uppercase; letter-spacing: 2px;
    font-weight: 600; font-size: 0.9rem; color: var(--color-sage); margin-bottom: 1rem;
}
.tag-line { color: var(--color-canyon); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1.5px; display: block; margin-bottom: 0.5rem; }

/* --- HEADER --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    /* Un poco más transparente para integrar el fondo */
    background: rgba(253, 252, 248, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(151, 149, 106, 0.1);
    padding: 0.8rem 0; transition: all 0.3s;
}

.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 45px; width: auto; transition: 0.3s; }
.logo:hover .logo-img { transform: rotate(-3deg); }

.desktop-nav a {
    margin: 0 15px; font-weight: 500; font-size: 0.95rem; color: var(--color-sage); position: relative;
}
.desktop-nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--color-canyon); transition: 0.3s;
}
.desktop-nav a:hover { color: var(--color-canyon); }
.desktop-nav a:hover::after { width: 100%; }

.cart-trigger { cursor: pointer; color: var(--color-sage); transition: 0.3s; }
.cart-trigger:hover { color: var(--color-canyon); transform: scale(1.1); }
.cart-icon-wrapper { position: relative; padding: 5px; }
.badge {
    position: absolute; top: 0; right: 0;
    background: var(--color-canyon); color: white;
    font-size: 0.7rem; font-family: var(--font-body); font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh; display: flex; align-items: center; position: relative;
    padding-top: 80px; 
    /* Quitamos overflow hidden para que se vea el fondo global, 
       o lo mantenemos si queremos cortar contenido, pero el fondo va por fuera */
    /* overflow: hidden; -> Mejor quitarlo si no rompe nada, para fluidez */
}

/* NOTA: Se eliminó .hero-bg-deco para evitar el clipping */

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-text p { font-size: 1.2rem; color: var(--color-text-light); margin-bottom: 2rem; max-width: 480px; }

.btn-primary {
    padding: 12px 35px; background: var(--color-canyon); color: var(--color-white);
    font-size: 0.9rem; border-radius: var(--radius-btn); letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 5px 15px rgba(221, 151, 115, 0.3);
}
.btn-primary:hover {
    background: #d6855e; transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(221, 151, 115, 0.4);
}

/* --- LOGO INTERACTIVO --- */
.logo-container {
    display: flex; flex-direction: column; align-items: center; 
    margin-top: -10px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#num-logo-svg {
    width: 100%; max-width: 400px; height: auto; transition: transform 0.2s;
}
#num-logo-svg text {
    pointer-events: none; user-select: none; -webkit-user-select: none;
}
#num-logo-svg:hover { transform: scale(1.02); }

.hero-logo-interactive {
    cursor: pointer; user-select: none;
    -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none;
}
.hero-logo-interactive:hover #num-logo-svg { transform: scale(1.02); }

/* --- HISTORIA --- */
.image-frame-u {
    position: relative; border-radius: 200px 200px 20px 20px;
    overflow: hidden; box-shadow: var(--shadow-soft);
    border-bottom: 8px solid var(--color-soybean);
    background: white; /* Asegurar fondo blanco detrás de la imagen */
}
.rounded-img { width: 100%; height: auto; display: block; transition: transform 0.8s; }
.image-frame-u:hover .rounded-img { transform: scale(1.05); }

.tag.tag-chips {
    background: #8B5A2B; /* Un color marrón chocolate */
    color: var(--color-white);
}

/* --- MENÚ --- */
.section-header p {
    margin-top: 0; 
}
.section-header h2 {
    margin-bottom: 0px; /* Bajalo de 1rem a 0.2rem o 5px */
}
.filters { display: flex; justify-content: center; gap: 10px; margin-top: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 25px; border: 2px solid var(--color-soybean); background: transparent;
    border-radius: var(--radius-btn); color: var(--color-sage); font-family: var(--font-body); font-weight: 500;
    transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--color-sage); color: white; border-color: var(--color-sage);
    box-shadow: 0 5px 15px rgba(151, 149, 106, 0.2);
}

/* --- BLOQUE DE INFORMACIÓN DINÁMICA (Puntos 1, 2 y 3) --- */
.menu-notice {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 20px;
    background: rgba(253, 252, 248, 0.8); /* Fondo crema suave */
    border: 1px solid var(--color-soybean);
    border-radius: 15px;
    display: none; /* Se activa con JS */
    animation: fadeInDown 0.5s ease-out;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.notice-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notice-icon { font-size: 1.4rem; }

.notice-text h4 {
    font-size: 0.85rem;
    color: var(--color-sage);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.notice-text p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--color-text-light);
    margin: 0;
}

/* --- SELLOS DE ALÉRGENOS --- */
.card-allergens {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

/* --- SELLOS DE ALÉRGENOS CON TOOLTIP --- */
.allergen-stamp {
    position: relative; /* Necesario para posicionar el tooltip */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f4f4f2;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: default; /* Cambiamos el 'help' por el puntero normal */
}

/* El cartelito (Tooltip) */
.allergen-stamp::after {
    content: attr(data-title); /* Toma el texto de este atributo */
    position: absolute;
    bottom: 130%; /* Lo ubica arriba del sello */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-text-main);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Flechita del cartelito */
.allergen-stamp::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-text-main);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

/* Mostrar al pasar el mouse */
.allergen-stamp:hover {
    background: var(--color-sunlight);
    transform: scale(1.1);
    /* ELEVACIÓN: Asegura que el tooltip flote sobre cualquier otra card */
    z-index: 100; 
}
/* Ajuste preventivo para la info de la card */
.card-info {
    position: relative;
    z-index: 1; /* Mantiene la info en un nivel base */
}

.allergen-stamp:hover::after,
.allergen-stamp:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .notice-grid { grid-template-columns: 1fr; gap: 15px; }
}

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-card);
    /* CAMBIO CLAVE: Cambiamos hidden por visible */
    overflow: visible; 
    
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    padding: 15px;
    position: relative; /* Asegura el contexto de apilamiento */
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.card-img-wrapper { position: relative; height: 240px; overflow: hidden; border-radius: 15px; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; z-index: 1;}

.product-card:hover img { transform: scale(1.05); }

.card-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    /* CAMBIO CLAVE: Z-index alto para que no desaparezcan con el zoom */
    z-index: 10; 
    pointer-events: auto; /* Permite que el hover del tag funcione */
}
.tag {
    font-size: 0.7rem; padding: 4px 10px; border-radius: 15px; font-weight: 600;
    font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); color: white;
}
/* --- TAG VEGANO REFACTORIZADO --- */
.tag.vegano {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start; /* Alineado a la izquierda */
    width: auto;
    max-width: 32px; /* Ancho inicial (solo el icono) */
    height: 24px;
    padding: 0 8px;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
    cursor: default;
    background-color: #E9EDD9;
    color: #6B6945;
    border-radius: 12px;
}

/* Al pasar el mouse, permitimos que crezca hasta mostrar todo */
.tag.vegano:hover {
    max-width: 110px; /* Espacio suficiente para "🌿 Vegano" */
    background-color: #DEE5C5; /* Un toque más oscuro al activar */
}

/* El texto aparece de forma natural al expandirse el contenedor */
.tag.vegano::after {
    content: 'Vegano';
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    letter-spacing: 0.5px;
    /* Eliminamos opacity para evitar el parpadeo blanco */
}

.tag.vegano:hover::after {
    opacity: 1;
}

/* Ajuste preventivo para que la imagen no moleste */

.tag.sintacc { background: var(--color-soybean); color: var(--color-text-main); }
.tag.clásico, .tag.bestseller { background: var(--color-sunlight); color: var(--color-text-main); }
.tag.regalo, .tag.especiada { background: var(--color-pink-nectar); }

.card-info { padding: 15px 5px 5px; flex-grow: 1; display: flex; flex-direction: column; }
.card-info h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--color-text-main); }
.card-desc { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 15px; flex-grow: 1; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.add-btn {
    padding: 8px 15px; border-radius: 20px; background: transparent; border: 1px solid var(--color-soybean);
    color: var(--color-sage); display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; font-size: 0.9rem; font-family: var(--font-heading);
}
.add-btn:hover { background: var(--color-sage); color: white; border-color: var(--color-sage); }

/* --- INFO & FOOTER --- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.info-card {
    text-align: center; padding: 30px; background: var(--color-white);
    border-radius: var(--radius-card); box-shadow: var(--shadow-soft);
    border-bottom: 4px solid var(--color-soybean); transition: 0.3s;
}
.info-card:hover { transform: translateY(-5px); }
.info-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.info-card h3 { margin-bottom: 10px; color: var(--color-sage); font-size: 1.3rem; }

footer { background: var(--color-sage); color: rgba(255,255,255,0.8); padding: 60px 0 20px; font-family: var(--font-body); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--color-white); margin-bottom: 15px; font-size: 1.1rem; }
.footer-col p { margin-bottom: 8px; font-size: 0.95rem; }
.footer-col a { display: block; margin-bottom: 10px; color: rgba(255,255,255,0.8); font-weight: 500; }
.footer-col a:hover { color: var(--color-sunlight); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.85rem; }

/* --- CARRITO --- */
.cart-overlay {
    position: fixed; top: 0; right: 0; width: 100%; height: 100%;
    background: rgba(92, 90, 74, 0.3);
    z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s;
    backdrop-filter: blur(3px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-panel {
    position: absolute; right: -400px; top: 0; width: 400px; max-width: 85%; height: 100%;
    background: var(--color-white); padding: 30px; display: flex; flex-direction: column;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}
.cart-overlay.open .cart-panel { right: 0; }

.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.cart-header h3 { color: var(--color-canyon); font-size: 1.5rem; }
.close-btn { font-size: 1.5rem; color: var(--color-text-light); background: none; padding: 5px; transition: 0.3s; }
.close-btn:hover { color: var(--color-canyon); transform: rotate(90deg); }

.cart-items { flex-grow: 1; overflow-y: auto; padding-right: 5px; }
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background-color: var(--color-soybean); border-radius: 10px; }

.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.03);
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.cart-item-info strong { display: block; font-family: var(--font-heading); color: var(--color-text-main); }
.cart-item-price { font-size: 0.9rem; color: var(--color-sage); font-weight: 600; }
.remove-item { color: var(--color-pink-nectar); cursor: pointer; font-size: 1.1rem; padding: 5px; transition: 0.3s; opacity: 0.6; }
.remove-item:hover { opacity: 1; transform: scale(1.1); }

.total-row { display: flex; justify-content: space-between; font-size: 1.2rem; font-family: var(--font-heading); margin-bottom: 20px; color: var(--color-text-main); }
.total-row span:last-child { color: var(--color-canyon); font-weight: 700; }
.btn-whatsapp {
    width: 100%; background: #25D366; color: white; padding: 15px; border-radius: var(--radius-btn);
    font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}
.btn-whatsapp:hover { background: #1ebd56; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }

/* --- TOAST --- */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--color-text-main); color: white; padding: 12px 25px; border-radius: 30px;
    z-index: 3000; transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); opacity: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); font-weight: 500; font-size: 0.9rem;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.reveal { 
    opacity: 0; 
    /* Usamos translate3d(0, 30px, 0) en lugar de translateY para activar GPU */
    transform: translate3d(0, 30px, 0); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.active { 
    opacity: 1; 
    transform: translate3d(0, 0, 0); 
}

/* MEDIA QUERIES */
@media (max-width: 968px) {
    .hero-grid, .grid-2 { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero { padding-top: 100px; min-height: auto; padding-bottom: 60px; }
    .hero-text p { margin: 0 auto 2rem; }
    .hero-logo-interactive { order: -1; margin-bottom: 20px; }
    .desktop-nav { display: none; }
    .image-frame-u { max-width: 400px; margin: 0 auto; }
}

/* --- NUEVO: FONDO ANIMADO "AROMA VISUAL" (Fluid Gradient Mesh) --- */
.warm-background {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    overflow: hidden;
    z-index: -2; /* Detrás de todo */
    background-color: var(--color-bg-main); /* El fondo crema base */
}

.blob {
    position: absolute;
    border-radius: 50%;
    /* Reducimos el blur por defecto para que sea más liviano */
    filter: blur(50px); 
    opacity: 0.5;
    /* ESTO ES CLAVE: will-change avisa al navegador que esto se va a mover */
    will-change: transform;
    /* Usamos translate3d para forzar aceleración de hardware */
    animation: floatBlobs 25s infinite alternate ease-in-out;
}

/* Blob 1: Sunlight (La calidez) */
.blob-1 {
    top: -10%; left: -10%;
    width: 60vw; height: 60vw;
    background: var(--color-sunlight);
    animation-duration: 30s;
}

/* Blob 2: Pink Nectar (La dulzura) */
.blob-2 {
    bottom: -15%; right: -15%;
    width: 50vw; height: 50vw;
    background: var(--color-pink-nectar);
    animation-duration: 35s;
    animation-delay: -5s;
}

/* Blob 3: Sage (Lo natural) - Más sutil */
.blob-3 {
    top: 30%; left: 40%;
    width: 45vw; height: 45vw;
    background: rgba(151, 149, 106, 0.3);
    animation-duration: 28s;
    animation-delay: -12s;
}

@keyframes floatBlobs {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@media (max-width: 768px) {
    .blob { 
        filter: blur(30px); /* Menos blur = Más FPS */
        opacity: 0.3; 
    }
    /* Desactivamos el efecto de vidrio esmerilado en el header mobile para que el scroll vuele */
    header {
        backdrop-filter: none;
        background: rgba(253, 252, 248, 0.98); /* Casi sólido */
    }
}

/* --- ESTILOS MOBILE AGREGADOS --- */

/* 1. Botón Hamburguesa */
.mobile-menu-btn {
    display: none; /* Oculto en desktop */
    background: none;
    color: var(--color-sage);
    padding: 5px;
}

/* 2. Menú Overlay Mobile */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-bg-main);
    z-index: 2500; /* Encima del carrito si fuera necesario */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu-overlay.open {
    opacity: 1; visibility: visible;
}
.mobile-close {
    position: absolute; top: 20px; right: 20px;
    font-size: 2rem;
}
.mobile-nav-links {
    display: flex; flex-direction: column; gap: 30px; text-align: center;
}
.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2rem; color: var(--color-text-main);
    font-weight: 700;
}
.mobile-nav-links a:hover {
    color: var(--color-canyon); letter-spacing: 2px;
}
.mobile-menu-deco {
    margin-top: 50px; opacity: 0.6;
}

/* 3. Media Queries corregidas */
@media (max-width: 968px) {
    /* Header y Navegación */
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    
    /* Hero */
    .hero { padding-top: 120px; text-align: center; min-height: auto; }
    h1 { font-size: 2.5rem; } /* Reducción drástica del título */
    .hero-text p { font-size: 1rem; padding: 0 10px; }
    
    /* Logo Interactivo */
    #num-logo-svg { max-width: 280px; margin-top: 30px; }

    /* Secciones Generales */
    .section-padding { padding: 50px 0; } /* Menos aire entre secciones */
    h2 { font-size: 1.8rem; }
    
    /* Grillas */
    .grid-2, .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .filters { gap: 5px; }
    .filter-btn { padding: 6px 15px; font-size: 0.85rem; }
    
    /* Historia */
    .image-frame-u { 
        max-width: 320px; margin: 0 auto; 
        border-radius: 150px 150px 15px 15px; /* Ajuste proporcional */
    }
    
    /* Carrito en Mobile */
    .cart-panel { width: 100%; max-width: 100%; } /* Full width para mejor UX */
    
    /* Footer */
    .footer-content { text-align: center; gap: 30px; }
}

/* Ajuste para pantallas muy pequeñas (iPhone SE, etc) */
@media (max-width: 380px) {
    h1 { font-size: 2rem; }
    .products-grid { grid-template-columns: 1fr; } /* Una sola columna de productos */
}

/* --- ESTILOS MODAL DE OPCIONES --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(92, 90, 74, 0.4); backdrop-filter: blur(5px);
    z-index: 2100; opacity: 0; visibility: hidden;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-panel {
    background: var(--color-bg-main); width: 90%; max-width: 400px;
    border-radius: var(--radius-card); padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 2px solid var(--color-soybean);
}

.modal-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.modal-header h3 { font-size: 1.4rem; color: var(--color-canyon); margin: 0; }

.instruction-text { margin-bottom: 15px; color: var(--color-text-light); font-weight: 500; }

.options-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; }

/* Estilo Radio Button Personalizado */
.option-card {
    position: relative; display: flex; align-items: center;
    padding: 12px 15px; border-radius: 15px;
    background: white; border: 1px solid var(--color-soybean);
    cursor: pointer; transition: 0.2s;
}
.option-card:hover { border-color: var(--color-sage); background: #fcfcf9; }

/* Ocultar el input nativo pero mantener funcionalidad */
.option-card input { position: absolute; opacity: 0; }

/* Cuando está seleccionado (el input checked afecta al label padre .option-card) */
.option-card:has(input:checked) {
    border-color: var(--color-canyon);
    background: rgba(221, 151, 115, 0.1); /* canyon muy suave */
}
.option-card:has(input:checked) .option-name {
    color: var(--color-canyon); font-weight: 700;
}

.option-content { display: flex; justify-content: space-between; width: 100%; font-family: var(--font-body); }
.option-name { color: var(--color-text-main); }
.option-price { font-weight: 600; color: var(--color-sage); }

.full-width { width: 100%; padding: 15px; font-size: 1rem; }

.modal-section-title {
    font-size: 1rem;
    color: var(--color-sage);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- BOTÓN INSTAGRAM (VERSIÓN DEFINITIVA) --- */
.btn-instagram {
    /* FORZAR ALINEACIÓN HORIZONTAL */
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important; /* Clave: Se adapta al contenido */
    max-width: 100%;
    
    /* Espaciado */
    gap: 12px;
    padding: 10px 25px;
    margin-top: 10px;
    
    /* Estilo Visual */
    background: linear-gradient(135deg, var(--color-canyon), var(--color-pink-nectar));
    border-radius: 50px;
    text-decoration: none !important;
    
    /* Sombras y color */
    color: white !important;
    box-shadow: 0 4px 15px rgba(221, 151, 115, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* FORZAR AL TEXTO A COMPORTARSE */
.btn-instagram span {
    display: inline-block !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1 !important;
    white-space: nowrap !important; /* Prohibido bajar de línea */
}

/* FORZAR AL ÍCONO */
.btn-instagram svg {
    display: block !important;
    width: 22px;
    height: 22px;
    flex-shrink: 0 !important; /* Prohibido achicarse */
    transition: transform 0.3s ease;
}

/* Efectos Hover */
.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 151, 115, 0.6);
}

.btn-instagram:hover svg {
    transform: rotate(15deg) scale(1.1);
}

/* --- EFECTO GRANULADO OPTIMIZADO --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Usamos una imagen de ruido base64 pequeña y la repetimos. Cero cálculo para la CPU. */
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAABMTExERERmZmYzMzMyMjJwk2xJAAAACHRSTlMAMwAqzMz//wDVuvsKAAAAUElEQVQ4y2NgwA+mkQKA2QwMjCA2E0QGTJ2BgQnKZ4DScA4jcGYQaoAJM7I4TGBhYJQApYF62BmwA0YJ0Ah0KZgyzADLAjYx0AAzAA0wR1YDADCDAgxMXB4IAAAAAElFTkSuQmCC");
    background-repeat: repeat;
    background-size: 100px 100px; /* Tamaño pequeño repetido */
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04; /* Un poco más suave */
    mix-blend-mode: overlay;
}