/* Variables de Color y Tipografía */
:root {
    --bg-light: #FDFBF8;
    /* Crema muy sutil, casi blanco cálido */
    --bg-glass-beige: rgba(253, 251, 248, 0.9);
    /* Transparencia de --bg-light */
    --color-rose: #C79E9D;
    /* Rosa viejo ligeramente más suave y cálido */
    --color-rose-light: #F5EFEF;
    /* Rosa claro para fondos, más integrado */
    --color-bronze: #A0784F;
    /* Bronce más profundo y rico */
    --text-dark: #2C2825;
    /* Casi negro, más definido */
    --text-hero-light-beige: #F8F5F0;
    /* Muy claro, casi blanco, para el texto del hero */
    --text-muted: #8A817C;

    --error-message-color: #D64545;
    /* Rojo para mensajes de error */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Jost', sans-serif;

    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    /* Añadir un line-height base para mejor legibilidad */
    font-weight: 300;
    /* Letra ligera por defecto */
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.5px;
    /* Efecto Metalizado Rosa Viejo (para títulos generales) */
    background: linear-gradient(to right,
            var(--color-rose) 0%,
            #E0CFCF 25%,
            /* Highlight: Más beige-rosado, menos blanco */
            var(--color-rose) 50%,
            #9A7A79 75%,
            /* Shadow: Más profundo, menos rojizo */
            var(--color-rose) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineMetallic 8s linear infinite;
}

/* Animaciones Avanzadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes shineMetallic {
    to {
        background-position: 200% center;
    }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- HEADER Y NAVEGACIÓN --- */
header {
    background-color: var(--bg-glass-beige);
    /* Mantener el beige transparente */
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(158, 116, 84, 0.15);
    /* Borde bronce muy fino */
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Mantener centrado */
    padding: 15px 20px;
}

@media (max-width: 480px) {
    .header-container {
        padding: 15px 10px;
    }
}

.logo-container img {
    height: 90px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.logo-container img:hover {
    transform: scale(1.02);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: center;
    /* Mantener centrado */
    margin-top: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    font-size: 14px;
    /* Mantener font-size */
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    nav ul {
        gap: 15px;
    }
}

nav ul li {
    /* Contenedor del enlace */
    cursor: pointer;
    position: relative;
}

nav ul li a {
    /* El enlace en sí */
    color: var(--text-dark);
    /* Color de texto por defecto */
    text-decoration: none;
    /* Eliminar el subrayado */
    transition: color 0.3s ease;
    /* Transición suave para el color */
}

nav ul li:hover {
    color: var(--color-bronze);
    /* Mantener color bronce en hover */
}

nav ul li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 50%;
    background-color: var(--color-rose);
    transition: var(--transition-smooth);
}

nav ul li:hover a {
    color: var(--color-rose);
}

nav ul li:hover::after {
    width: 100%;
    left: 0;
}

/* Estilo para la pestaña de navegación activa */
nav ul li.nav-item-active a {
    background: linear-gradient(to right,
            var(--color-rose) 0%,
            #E0CFCF 25%,
            var(--color-rose) 50%,
            #9A7A79 75%,
            var(--color-rose) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineMetallic 8s linear infinite;
    font-weight: 400;
}

nav ul li.nav-item-active::after {
    width: 100%;
    left: 0;
    background-color: var(--color-rose);
}

/* Selector de Idioma Minimalista */
.language-selector {
    display: flex;
    /* Mantener display */
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.lang-btn.active {
    color: var(--color-bronze);
    border-bottom: 1px solid var(--color-bronze);
    /* Mantener color bronce */
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
    padding: 0px 10px 50px 10px;
    background: linear-gradient(135deg, var(--color-rose-light) 0%, var(--bg-light) 100%);
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mantener height */
    overflow: hidden;
    z-index: 1;
    /* Asegura que el video esté detrás del contenido */
}

.hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    /* Mantener position */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Asegura que el video cubra todo el contenedor */
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mantener height */
    background-color: rgba(0, 0, 0, 0.3);
    /* Capa semitransparente para mejorar la legibilidad del texto */
    z-index: 2;
    /* Entre el video y el contenido */
}

.hero::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(158, 116, 84, 0.2);
    /* Mantener borde */
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    padding: 0 30px; /* Aumentado margen lateral */
    z-index: 3;
    /* Asegura que el contenido esté encima del overlay */
}

.hero-eyebrow {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-hero-light-beige);
    /* Beige clarito */
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 300;
    /* Efecto Metalizado Beige Clarito para el h1 del Hero */
    background: linear-gradient(to right,
            #F0EAD6 0%,
            /* Beige claro */
            #FCFBF9 25%,
            /* Very light beige for highlight */
            #F0EAD6 50%,
            #D4C8A8 75%,
            /* Slightly darker beige for shadow */
            #F0EAD6 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineMetallic 8s linear infinite;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-hero-light-beige);
    /* Beige clarito */
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-rose);
    /* Texto rosa por defecto */
    border: 1px solid var(--color-rose);
    /* Borde rosa por defecto */
    padding: 15px 40px;
    font-size: 13px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: linear-gradient(to right, var(--color-rose) 0%, #E0CFCF 25%, var(--color-rose) 50%, #9A7A79 75%, var(--color-rose) 100%);
    background-size: 200% auto;
    animation: shineMetallic 8s linear infinite;
    color: var(--bg-light);
    /* Texto claro al pasar el ratón */
    border-color: transparent;
}

/* --- Override exclusivo para el botón sobre el video oscuro (Hero) --- */
.hero .btn-outline {
    color: var(--text-hero-light-beige);
    border-color: var(--text-hero-light-beige);
    background: transparent;
}

.hero .btn-outline:hover {
    background: linear-gradient(to right, var(--color-rose) 0%, #E0CFCF 25%, var(--color-rose) 50%, #9A7A79 75%, var(--color-rose) 100%);
    background-size: 200% auto;
    animation: shineMetallic 8s linear infinite;
    color: var(--bg-light);
    border-color: transparent;
}

/* --- SECCIÓN NOSOTROS --- */
.about {
    padding: 100px 40px; /* Aumentado margen lateral de 20px a 40px */
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.5rem);
    font-weight: 300;
}

.decorative-line {
    width: 40px;
    height: 1px;
    background-color: var(--color-rose);
    margin: 15px auto 15px;
}

/* --- GRID DE PRODUCTOS CHOICE --- */
.choice-products {
    padding: 40px 40px 100px; /* Aumentado margen lateral de 20px a 40px */
}

.choice-products h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw + 0.5rem, 2.5rem);
    font-weight: 300;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 15px 15px;
    justify-content: center;
}

/* --- TARJETA DE PRODUCTO MINIMALISTA Y PREMIUM --- */
.product-card {
    background: transparent;
    border: none;
    padding: 0;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
    opacity: 0;
    /* Animación de entrada */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Imagen perfectamente cuadrada para estética moderna */
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(158, 116, 84, 0.08);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.04);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253, 251, 248, 0.85);
    /* Fondo suave con glassmorphism */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-ask {
    background: linear-gradient(to right, var(--color-rose) 0%, #E0CFCF 25%, var(--color-rose) 50%, #9A7A79 75%, var(--color-rose) 100%);
    background-size: 200% auto;
    animation: shineMetallic 8s linear infinite;
    color: var(--bg-light);
    border: none;
    padding: 10px 20px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 10px;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.btn-ask:hover {
    filter: brightness(1.05);
}

.btn-buy {
    background: transparent;
    color: var(--color-rose);
    border: 1px solid var(--color-rose);
    padding: 10px 20px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-buy:hover {
    background: linear-gradient(to right, var(--color-rose) 0%, #E0CFCF 25%, var(--color-rose) 50%, #9A7A79 75%, var(--color-rose) 100%);
    background-size: 200% auto;
    animation: shineMetallic 8s linear infinite;
    color: var(--bg-light);
    border-color: transparent;
}

.product-info {
    text-align: left;
    /* Alineado a la izquierda para look editorial premium */
    padding: 12px 2px 5px;
}

.product-category {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.product-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 5px;
    color: var(--text-dark);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-bronze);
}

/* --- COOKIE BANNER (EU COMPLIANCE) --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    /* Posicionar en la parte inferior, con un margen */
    left: 50%;
    /* Centrar horizontalmente */
    transform: translate(-50%, 100%);
    /* Inicia fuera de la pantalla por abajo (100% de su propia altura), centrado horizontalmente */
    opacity: 0;
    /* Inicia invisible */
    pointer-events: none;
    /* No interactuable cuando está oculto */
    max-width: 450px;
    /* Un poco más ancho para mejor presentación */
    background: var(--bg-glass-beige);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(158, 116, 84, 0.2);
    padding: 25px;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    transform: translate(-50%, 0);
    /* Centrado horizontalmente, en la posición bottom: 30px */
    opacity: 1;
    /* Totalmente visible */
    pointer-events: all;
    /* Interactuable cuando está visible */
}

/* --- CART DRAWER --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 40, 37, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-glass-beige);
    z-index: 10001;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(158, 116, 84, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
    background: none;
    -webkit-background-clip: unset;
    color: var(--text-dark);
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.3s;
}

.close-cart:hover {
    color: var(--color-rose);
}

.cart-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-empty-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
}

.cart-item {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid rgba(158, 116, 84, 0.1);
    padding-bottom: 15px;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(158, 116, 84, 0.1);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-weight: 500;
}

.cart-item-price {
    color: var(--color-rose);
    font-weight: 500;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(158, 116, 84, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
}

.cart-qty-ctrl button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 14px;
    padding: 0 5px;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.cart-item-remove:hover {
    color: var(--color-rose);
    border-bottom-color: var(--color-rose);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(158, 116, 84, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(to right, var(--color-rose) 0%, #E0CFCF 25%, var(--color-rose) 50%, #9A7A79 75%, var(--color-rose) 100%);
    background-size: 200% auto;
    animation: shineMetallic 8s linear infinite;
    color: var(--bg-light);
    padding: 15px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: 0.3s;
}

.btn-checkout:hover {
    filter: brightness(1.1);
}

.cookie-text {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 400;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie {
    flex: 1;
    padding: 10px;
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-rose);
}

.btn-cookie-accept {
    background: linear-gradient(to right, var(--color-rose) 0%, #E0CFCF 25%, var(--color-rose) 50%, #9A7A79 75%, var(--color-rose) 100%);
    background-size: 200% auto;
    animation: shineMetallic 8s linear infinite;
    color: var(--bg-light);
    /* Texto claro para contraste */
    border-color: transparent;
}

.btn-cookie-reject {
    background-color: transparent;
    color: var(--color-rose);
}

.btn-cookie-reject:hover {
    background: rgba(199, 158, 157, 0.1);
}

.cookie-settings {
    display: block;
    margin-top: 15px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-align: center;
    cursor: pointer;
}

.shop-header {
    position: relative;
    text-align: center;
    padding: 15px 20px 0px;
}

.shop-header-title-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.shop-header h1 {
    font-size: clamp(2.2rem, 4vw + 1rem, 3rem);
    font-weight: 300;
    margin: 0;
}

.btn-back-shop {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-rose);
    padding: 0;
    cursor: pointer;
    display: none;
    /* Se maneja por JS */
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.btn-back-shop svg {
    height: clamp(2.2rem, 4vw + 1rem, 3rem);
    /* Mismo alto dinámico que el título */
    width: auto;
    stroke-width: 1.2;
    /* Estilo ultra fino y premium */
    display: block;
}

.btn-back-shop:hover {
    opacity: 0.7;
}

.shop-content {
    padding: 0 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto 13px auto;
}

.btn-category {
    background: transparent;
    border: 1px solid var(--color-rose);
    color: var(--color-rose);
    padding: 8px 15px;
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-category:hover,
.btn-category.active {
    background: linear-gradient(to right, var(--color-rose) 0%, #E0CFCF 25%, var(--color-rose) 50%, #9A7A79 75%, var(--color-rose) 100%);
    background-size: 200% auto;
    animation: shineMetallic 8s linear infinite;
    color: var(--bg-light);
    border-color: transparent;
}

/* Ajustes responsivos para filtros en móvil */
@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(1.8rem, 4vw + 0.8rem, 2.5rem) !important;
    }
    .shop-header h1, .legal-page-container h1, .contact-hero h1 {
        font-size: clamp(1.6rem, 3vw + 0.8rem, 2.2rem) !important;
    }
    nav ul {
        gap: 12px;
        font-size: 11px; /* Un chin más pequeño */
    }
    .shop-header {
        padding: 10px 15px;
        min-height: 60px;
    }

    .btn-back-shop {
        left: 0;
    }

    .btn-back-shop svg {
        height: 2.2rem;
        /* Alto exacto del título en móvil */
    }

    .btn-category {
        padding: 6px 12px;
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}

#shop-product-grid {
    padding: 0 20px 100px;
}

.product-grid.fading-out .product-card {
    animation: fadeOut 0.4s ease-out forwards;
}

/* --- MODAL PREGUNTAR --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 40, 37, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-glass-beige);
    padding: 40px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    border: 1px solid rgba(158, 116, 84, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-rose) transparent;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--color-rose);
    border-radius: 3px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--color-rose);
}

.modal-content h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.modal-content h4 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw + 0.5rem, 1.8rem);
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 400;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid rgba(158, 116, 84, 0.3);
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-bottom-color: var(--color-bronze);
}

.modal-form .btn-outline {
    margin-top: 10px;
    width: 100%;
}

/* --- LEGAL PAGE --- */
.legal-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

.legal-page-container h1 {
    text-align: center;
    font-size: clamp(2.2rem, 4vw + 1rem, 3rem);
    margin-bottom: 40px;
}

.legal-last-updated {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -30px;
    margin-bottom: 40px;
}

.legal-disclaimer {
    background-color: var(--color-rose-light);
    border-left: 3px solid var(--color-rose);
    padding: 20px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

.legal-section {
    margin-bottom: 50px;
}

.legal-section h2 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(158, 116, 84, 0.2);
}

.legal-section h3 {
    font-size: clamp(1.2rem, 2vw + 0.5rem, 1.4rem);
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
    /* Usamos color sólido para subtítulos */
    background: none;
    /* Quitamos efecto metálico para legibilidad */
    -webkit-background-clip: unset;
    background-clip: unset;
}

.legal-section p {
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.8;
}

.legal-section p strong {
    font-weight: 500;
    color: var(--text-dark);
}

/* --- FOOTER --- */
footer {
    background-color: var(--color-rose-light);
    padding: 60px 20px 0;
    text-align: left;
    border-top: 1px solid rgba(158, 116, 84, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.2rem);
    color: var(--color-bronze);
    margin-bottom: 20px;
    font-weight: 500;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw + 0.5rem, 1.8rem);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 20px;

    /* Efecto Metalizado Rosa Viejo para el nombre de la marca en el footer */
    background: linear-gradient(to right,
            var(--color-rose) 0%,
            #F0D8D8 25%,
            var(--color-rose) 50%,
            #7A5B5B 75%,
            var(--color-rose) 100%);
    animation: shineMetallic 8s linear infinite;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--color-bronze);
}

.footer-bottom {
    border-top: 1px solid rgba(158, 116, 84, 0.1);
    padding: 20px 0;
    text-align: center;
}

/* Selector de Idioma en el Footer */
footer .language-selector {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    /* Espacio entre el selector y la firma */
    justify-content: center;
    /* Centrar en el footer */
}

footer .lang-btn {
    background: transparent;
    border: none;
    padding: 2px 6px;
    cursor: pointer;
    /* Mantener cursor */
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

footer .lang-btn.active {
    color: var(--color-bronze);
    border-bottom: 1px solid var(--color-bronze);
}

footer .footer-signature {
    font-family: 'Jersey 10', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: rgb(182 166 156 / 65%);
}

/* --- MEDIA QUERIES (DESKTOP) --- */
@media (min-width: 768px) {
    .header-container {
        padding: 20px 40px;
    }

    .nav-actions {
        width: auto;
        margin-top: 25px;
        justify-content: center;
        gap: 40px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        padding: 0 30px 60px;
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
        /* Desktop: dos columnas */
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 60px;
    }

    footer .language-selector {
        margin-bottom: 0;
        /* Eliminar margen inferior en desktop si se desea */
        justify-content: flex-end;
        /* Alinear a la derecha en desktop */
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* --- CONTACT PAGE --- */
.contact-hero {
    text-align: center;
    padding: 15px 20px 0px;
}

.contact-hero h1 {
    font-size: clamp(2.2rem, 4vw + 1rem, 3rem);
    font-weight: 300;
    margin-bottom: 10px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: una columna */
    gap: 60px;
    padding: 0 20px 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-section,
.creator-section,
.social-section {
    background: var(--bg-glass-beige);
    border: 1px solid rgba(158, 116, 84, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    padding: 40px;
    text-align: center;
}

.contact-form-section h2,
.creator-section h2,
.social-section h2 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    font-weight: 300;
    margin-bottom: 30px;
}

.general-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.general-contact-form input,
.general-contact-form textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid rgba(158, 116, 84, 0.3);
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s;
}

@media (max-width: 768px) {
    .general-contact-form input,
    .general-contact-form textarea {
        font-size: 16px;
    }
}

.general-contact-form input:focus,
.general-contact-form textarea:focus {
    border-bottom-color: var(--color-bronze);
}

.general-contact-form .btn-outline {
    margin-top: 10px;
    width: 100%;
}

.creator-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--color-rose);
}

.social-icon img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.social-links a.social-icon {
    text-decoration: none;
    /* Elimina el subrayado */
    color: var(--text-muted);
    /* Color gris del footer */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a.social-icon:hover span {
    /* Efecto Metalizado Rosa Viejo */
    background: linear-gradient(to right, var(--color-rose) 0%, #E0CFCF 25%, var(--color-rose) 50%, #9A7A79 75%, var(--color-rose) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineMetallic 8s linear infinite;
}

.social-icon img {
    width: 35px;
    height: 35px;
    opacity: 0.6;
    /* Hace que el icono negro original se vea de un gris elegante */
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.social-links a.social-icon:hover img {
    transform: scale(1.1);
    opacity: 1;
    /* Filtro CSS para convertir el negro puro en Rosa Viejo (#C79E9D) */
    filter: invert(71%) sepia(15%) saturate(836%) hue-rotate(314deg) brightness(89%) contrast(90%);
}

/* Estilos para el Reel de Instagram */
.instagram-reel-container {
    position: relative;
    width: 100%;
    /* El padding-bottom crea un "aspect ratio box" para videos verticales (9:16) */
    /* (altura / anchura) * 100 = (16 / 9) * 100 = 177.77% */
    padding-bottom: 177.77%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--bg-light);
    /* Fondo para cuando el iframe carga */
    border: 1px solid rgba(158, 116, 84, 0.1);
    /* Borde sutil */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.instagram-reel-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- CATEGORY CARD SYSTEM --- */
.category-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    aspect-ratio: 4 / 5;
    width: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-card-img {
    transform: scale(1.06);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
}

.category-card-title {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    color: #FFFFFF !important;
    animation: none !important;
}

.category-card-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ajustes responsivos para tarjetas de categorías en móviles */
@media (max-width: 768px) {
    .category-card-overlay {
        padding: 12px;
    }

    .category-card-title {
        font-size: 1.05rem !important;
        margin-bottom: 3px;
    }

    .category-card-subtitle {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px;
    }
}

/* Bottom Navigation Bar for Mobile Clients */
.client-bottom-nav {
    display: none; /* Oculto en desktop */
}

@media (max-width: 768px) {
    /* Ocultar navegación en el header del cliente */
    header .nav-actions {
        display: none !important;
    }
    
    /* Reducir tamaño del logo en móviles manteniendo centrado */
    .logo-container img {
        height: 85px !important;
    }
    
    /* Mostrar bottom nav */
    .client-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: var(--bg-glass-beige);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(158, 116, 84, 0.15);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 9px;
        font-family: var(--font-body);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        gap: 4px;
        flex: 1;
        height: 100%;
        transition: var(--transition-smooth);
        position: relative;
    }
    
    .bottom-nav-item svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }
    
    .bottom-nav-item.nav-item-active {
        color: var(--color-rose);
        font-weight: 500;
    }
    
    .bottom-nav-item.nav-item-active svg {
        fill: var(--color-rose);
    }

    /* Cart Badge adjustment on bottom nav */
    .bottom-nav-item .cart-badge-bottom {
        position: absolute;
        top: 8px;
        right: calc(50% - 18px);
        background: var(--color-rose);
        color: var(--bg-light);
        font-size: 9px;
        font-weight: bold;
        border-radius: 50%;
        width: 15px;
        height: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    /* Añadir espacio al body para que el bottom nav no tape el contenido */
    body {
        padding-bottom: 60px !important;
    }
}