/* ==========================================================================
   COMPONENTES COMPARTIDOS: SUTILEHOME
   ========================================================================== */

/* --- 1. HEADER & MENÚ DE NAVEGACIÓN --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: background-color var(--transition-smooth), border-bottom var(--transition-smooth), transform var(--transition-smooth);
}

header.is-sticky {
    background-color: rgba(247, 244, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: 70px;
}

header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    z-index: 102;
}

.nav-links {
    display: none;
    list-style: none;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
    position: relative;
    padding: 0.5rem 0;
}

/* Efecto hover underline fino de Shopify */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 102;
}

.header-icon {
    color: var(--color-text-dark);
    padding: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.header-icon:hover {
    background-color: rgba(18, 18, 18, 0.05);
}

.cart-icon-wrapper {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%);
    transition: transform var(--transition-fast);
}

.cart-count.bounce {
    animation: bounce 0.4s ease;
}

@keyframes bounce {
    0%, 100% { transform: translate(25%, -25%) scale(1); }
    50% { transform: translate(25%, -25%) scale(1.3); }
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: block;
    z-index: 102;
}

@media (min-width: 768px) {
    .mobile-nav-toggle {
        display: none;
    }
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 1.5px;
    background-color: var(--color-text-dark);
    margin: 4px 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Estado activo del hamburguesa */
.mobile-nav-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}
.mobile-nav-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile Nav Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-cream);
    z-index: 101;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-height) + 2rem) var(--spacing-md) var(--spacing-md);
    transform: translateY(-100%);
    transition: transform var(--transition-smooth);
}

.mobile-menu.is-open {
    transform: translateY(0);
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: auto;
}

.mobile-menu-links a {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 500;
}


/* --- 2. BOTONES PREMIUM --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: color var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    border: 1px solid var(--color-text-dark);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-dark);
    border: 1px solid var(--color-text-dark);
}

.btn-secondary:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
}

.btn-text {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 4px;
    border-bottom: 1.5px solid var(--color-text-dark);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.btn-text:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-text svg {
    transition: transform var(--transition-fast);
}

.btn-text:hover svg {
    transform: translateX(4px);
}


/* --- 3. ANTES Y DESPUÉS SLIDER INTERACTIVO --- */
.before-after-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    user-select: none;
    border-radius: 0;
    box-shadow: var(--shadow-medium);
}

@media (min-width: 768px) {
    .before-after-container {
        aspect-ratio: 16/12;
    }
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-before {
    z-index: 1;
}

.ba-after {
    z-index: 2;
    width: 50%; /* Inicialmente al 50% */
    overflow: hidden;
}

/* La imagen de después debe tener el ancho completo de la caja padre para no distorsionarse */
.ba-after img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
}

.ba-label {
    position: absolute;
    top: 1rem;
    background-color: rgba(18, 18, 18, 0.7);
    color: var(--color-bg-white);
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    pointer-events: none;
}

.ba-before .ba-label {
    left: 1rem;
}

.ba-after .ba-label {
    right: 1rem;
}

/* Barra y botón deslizador */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--color-bg-white);
    z-index: 4;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background-color: var(--color-bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.ba-handle:hover .ba-handle-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--color-bg-cream);
}

.ba-handle-button svg {
    width: 18px;
    height: 18px;
    fill: var(--color-text-dark);
}


/* --- 4. ACORDEÓN HORIZONTAL DE CATEGORÍAS --- */
.accordion-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 1rem;
}

@media (min-width: 768px) {
    .accordion-container {
        flex-direction: row;
        height: 520px;
        gap: 0.75rem;
    }
}

.accordion-panel {
    position: relative;
    flex: 1;
    height: 320px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-fast);
}

@media (min-width: 768px) {
    .accordion-panel {
        height: 100%;
    }
}

/* Imagen de Fondo */
.panel-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform var(--transition-slow);
}

/* Sombreado Degradado */
.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,18,18,0.1) 40%, rgba(18,18,18,0.7) 100%);
    z-index: 2;
    transition: opacity var(--transition-smooth);
}

/* Título que siempre se ve */
.panel-closed-title {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 3;
    color: var(--color-bg-white);
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Contenido Detallado */
.panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    z-index: 4;
    color: var(--color-bg-white);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
}

.panel-title {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.1;
    color: var(--color-bg-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.panel-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 420px;
    margin: 0;
    line-height: 1.6;
}

/* Comportamiento Hover / Active */
@media (min-width: 768px) {
    .accordion-panel:hover {
        flex: 2.8;
        border-color: var(--color-text-dark);
    }

    .accordion-panel:hover .panel-image-bg {
        transform: scale(1.03);
    }

    .accordion-panel:hover .panel-overlay {
        background: linear-gradient(to bottom, rgba(18,18,18,0.2) 30%, rgba(18,18,18,0.85) 100%);
    }

    .accordion-panel:hover .panel-closed-title {
        opacity: 0;
        transform: translateY(-10px);
    }

    .accordion-panel:hover .panel-content {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.15s;
    }
}

/* Para pantallas móviles */
@media (max-width: 767px) {
    .accordion-panel {
        height: 250px;
        flex: none;
    }
    
    .panel-closed-title {
        display: none;
    }
    
    .panel-content {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        padding: 1.5rem;
        gap: 0.5rem;
    }

    .panel-title {
        font-size: 1.4rem;
    }

    .panel-desc {
        font-size: 0.8rem;
        line-height: 1.4;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}



/* --- 5. TARJETAS DE PRODUCTO (PACKS) --- */
.product-card {
    background-color: var(--color-bg-card);
    position: relative;
    border: 1px solid transparent;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-soft);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f1ede8;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow), opacity var(--transition-smooth);
}

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

/* Segunda imagen para efecto hover */
.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

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

.product-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    letter-spacing: 0.5px;
    z-index: 10;
}

.product-card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-card-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.product-card-btn {
    margin-top: auto;
    width: 100%;
    padding: 0.7rem;
    font-size: 0.75rem;
}


/* --- 6. CARRITO DRAWER (LATERAL) --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(3px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 460px;
    height: 100%;
    background-color: var(--color-bg-cream);
    z-index: 201;
    transform: translateX(100%);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth);
}

.cart-overlay.is-active .cart-drawer {
    transform: translateX(0);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.3rem;
    font-weight: 500;
}

.cart-close-btn {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.cart-close-btn:hover {
    transform: rotate(90deg);
}

/* Contenido del Carrito */
.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-empty-message {
    text-align: center;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.cart-empty-message svg {
    color: var(--color-accent);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Artículo individual del Carrito */
.cart-item {
    display: flex;
    gap: 1rem;
    background-color: var(--color-bg-white);
    padding: 1rem;
    border: 1px solid var(--color-border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background-color: #f1ede8;
}

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

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.cart-item-variant {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

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

/* Selector de cantidad */
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-cream);
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background-color var(--transition-fast);
}

.qty-btn:hover {
    background-color: var(--color-border);
}

.qty-input {
    width: 32px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    background: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-remove {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.cart-item-remove:hover {
    color: #b00020;
}

/* Pie de Carrito con Total y Checkout */
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-white);
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cart-summary-line.total {
    font-size: 1.15rem;
    font-weight: 600;
    border-top: 1px solid var(--color-border);
    padding-top: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.cart-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.cart-checkout-btn {
    width: 100%;
    padding: 1rem;
}


/* --- 7. FOOTER DE LA TIENDA --- */
footer {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

.footer-col h3 {
    color: var(--color-bg-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--color-accent-light);
    line-height: 1.6;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-bg-white) !important;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-accent-light);
}

.footer-links a:hover {
    color: var(--color-bg-white);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
    border-bottom: 1px solid var(--color-accent);
}

.newsletter-input {
    background: none;
    border: none;
    padding: 0.6rem 0;
    color: var(--color-bg-white);
    font-size: 0.85rem;
    width: 100%;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(217, 210, 201, 0.5);
}

.newsletter-btn {
    color: var(--color-bg-white);
    padding: 0 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(217, 210, 201, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.75rem;
    color: rgba(217, 210, 201, 0.4);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-legal-links {
    display: flex;
    gap: var(--spacing-sm);
}

/* ==========================================================================
   8. HERO INMERSIVO 100VH Y TARJETA DE CONVERSIÓN
   ========================================================================== */
.hero-immersive {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../images/sutile_hero.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 20, 22, 0.55);
    z-index: 1;
}

.hero-immersive-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-immersive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-immersive-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.hero-immersive-content {
    color: var(--color-bg-white);
    max-width: 620px;
}

.hero-immersive-tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-immersive-title {
    color: var(--color-bg-white);
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.hero-immersive-desc {
    font-size: 1.05rem;
    color: rgba(247, 244, 240, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Tarjeta de Conversión (Glassmorphism) */
.hero-conversion-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    max-width: 440px;
    margin: 0 auto;
    color: var(--color-text-dark);
}

@media (min-width: 992px) {
    .hero-conversion-card {
        margin-left: auto;
        margin-right: 0;
    }
}

.hero-conversion-card h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-conversion-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.5;
}

/* Indicador de Scroll */
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-bg-white);
    z-index: 2;
    animation: bounceDown 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.scroll-down-indicator:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-bg-white);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* Header transparente en homepage */
header.header-homepage:not(.is-sticky) {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

header.header-homepage:not(.is-sticky) .logo {
    color: var(--color-bg-white);
}

header.header-homepage:not(.is-sticky) .nav-links a {
    color: var(--color-bg-white);
}

header.header-homepage:not(.is-sticky) .nav-links a::after {
    background-color: var(--color-bg-white);
}

header.header-homepage:not(.is-sticky) .header-icon {
    color: var(--color-bg-white);
}

header.header-homepage:not(.is-sticky) .hamburger-line {
    background-color: var(--color-bg-white);
}

/* ==========================================================================
   WIDGETS INTERACTIVOS DE CONVERSIÓN: SELECTOR DE ESTILO (MOODBOARD)
   ========================================================================== */

/* --- Contenedor Principal del Selector de Estilo --- */
.style-selector-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .style-selector-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* --- Menú de Estilos (Izquierda) --- */
.style-menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.style-option-btn {
    width: 100%;
    text-align: left;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 2rem;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.style-option-btn:hover,
.style-option-btn.is-active {
    border-color: var(--color-text-dark);
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}

.style-option-btn.is-active {
    background-color: var(--color-bg-cream);
}

.style-option-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.style-option-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* Paleta de colores */
.style-palette {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.palette-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- El Moodboard Dinámico (Derecha) --- */
.moodboard-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--color-bg-cream);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.moodboard-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.moodboard-group.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Fotos solapadas en el collage */
.moodboard-photo {
    position: absolute;
    background-color: var(--color-bg-white);
    padding: 0.5rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--color-border);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.moodboard-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Foto principal (Fondo / Centro) */
.photo-main {
    top: 10%;
    left: 10%;
    width: 65%;
    height: 65%;
    z-index: 1;
    transform: rotate(-2deg);
}

/* Foto auxiliar 1 (Abajo derecha) */
.photo-sub1 {
    bottom: 8%;
    right: 8%;
    width: 42%;
    height: 42%;
    z-index: 3;
    transform: rotate(3deg);
}

/* Foto auxiliar 2 (Arriba derecha / Detalle textura) */
.photo-sub2 {
    top: 8%;
    right: 12%;
    width: 28%;
    height: 35%;
    z-index: 2;
    transform: rotate(-5deg);
}

/* Efectos al activarse el estilo */
.moodboard-group.is-active .photo-main {
    transform: rotate(-1deg) scale(1.02);
}

.moodboard-group.is-active .photo-sub1 {
    transform: rotate(1deg) translate(-5px, -5px) scale(1.02);
}

.moodboard-group.is-active .photo-sub2 {
    transform: rotate(-3deg) translate(5px, 5px) scale(1.02);
}

/* Muestra flotante de tela/paleta física */
.moodboard-color-card {
    position: absolute;
    bottom: 12%;
    left: 8%;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 1rem;
    z-index: 4;
    box-shadow: var(--shadow-medium);
    transform: rotate(-4deg);
    transition: transform 0.6s ease;
}

.moodboard-group.is-active .moodboard-color-card {
    transform: rotate(-2deg) scale(1.05);
}

.color-bar-strip {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.color-bar-dot {
    height: 8px;
    width: 25px;
    border-radius: 4px;
}


