:root {
    --primary: #C9A87C;
    --secondary: #FFFFFF;
    --accent: #D4B899;
    --bg: #FAF7F2;
    --text: #3E2723;
    --text-light: #FAF7F2;
    --border: #E8DCC8;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-script: 'Playfair Display', 'Georgia', serif;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(62, 39, 35, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --wa-green: #25D366;
    --wa-dark: #128C7E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-family: var(--font-script);
}

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600;
    transition: var(--transition); cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-primary { background: var(--primary); color: var(--text-light); }
.btn-secondary { background: var(--secondary); color: var(--text); border: 1px solid var(--border); }
.btn-accent { background: var(--accent); color: var(--text); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.full-width { width: 100%; justify-content: center; }

/* ============================================================================
   HEADER CON EFECTO 3D FLIP Y GLASSMORPHISM (ACTUALIZADO)
   ============================================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 124, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.4rem 0; /* 👈 Reduce altura base */
}

.site-header.scrolled {
    background: rgba(250, 247, 242, 0.95);
    padding: 0.25rem 0; /* 👈 Reduce altura al hacer scroll */
    box-shadow: 0 4px 20px rgba(62, 39, 35, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo img {
    width: 140px;
    height: auto;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .logo img {
    width: 90px;
}

/* Navegación Principal - Estilo Cápsula */
.nav-list {
    display: flex;
    gap: 0.4rem; /* Antes 0.75rem - Más junto */
    background: rgba(255, 255, 255, 0.5); /* Un poco más sólido para contraste */
    backdrop-filter: blur(12px);
    padding: 0.35rem; /* Antes 0.5rem - Más delgado */
    border-radius: 50px; /* Más redondeado para estilo moderno */
    border: 1px solid rgba(201, 168, 124, 0.2);
    box-shadow: 0 4px 12px rgba(62, 39, 35, 0.05);
}

.nav-item {
    list-style: none;
    perspective: 600px; /* Para el efecto 3D */
}

/* Links y Efecto 3D */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem; /* Antes 0.65rem 1.25rem - Más pequeños */
    border-radius: 50px; /* Botones redondos */
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem; /* Antes 0.95rem - Texto más pequeño */
    position: relative;
    overflow: visible;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Contenedor Interno que Gira */
.nav-link-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform-style: preserve-3d;
    transform-origin: center bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-item:hover .nav-link-inner {
    transform: rotateX(-15deg) translateY(-2px);
}

/* Efecto Glow (Solo activo) */
.nav-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(
        circle,
        rgba(201, 168, 124, 0.2) 0%,
        rgba(212, 184, 153, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8);
    z-index: -1;
}

.nav-link.active .nav-glow {
    opacity: 1;
    transform: scale(1.3);
}

/* Iconos */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px; /* Antes 20px */
    height: 16px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon i,
.nav-link.active .nav-icon i {
    transform: scale(1.2);
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    z-index: 1001;
}

/* ============================================================================
   HERO
   ============================================================================ */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden; padding-top: 70px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--accent) 100%);
}
.hero-title { font-family: var(--font-script); font-size: 3.5rem; color: var(--primary); margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.5rem; color: var(--accent); font-style: italic; }
.hero-description { max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; text-align: center; }

/* ============================================================================
   PRODUCTS ACCORDION SLIDER
   ============================================================================ */
.products-section { 
    padding: 5rem 0; 
    background: var(--bg); 
    overflow: hidden;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.products-title-block {
    text-align: left;
}

.products-title-block .section-title {
    text-align: left;
    margin-bottom: 0.5rem;
}

.products-title-block .products-subtitle {
    text-align: left;
    margin: 0;
    color: #888;
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.6;
}

.slider-controls {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.slider-btn {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
}

.slider {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.track {
    display: flex;
    gap: 0.8rem;
    height: 480px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Accordion Card */
.project-card {
    position: relative;
    flex: 1; /* Proportional collapsed width */
    min-width: 0; /* Allow shrinking */
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #231510;
    transition: flex 0.65s cubic-bezier(0.2, 1, 0.22, 1), box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(62, 39, 35, 0.08);
    border: 1px solid var(--border);
}

.project-card[active] {
    flex: 12; /* Expanded - takes ~12x the space of a collapsed card */
    cursor: default;
    box-shadow: 0 20px 40px rgba(62, 39, 35, 0.22);
}

/* Background image with overlay */
.project-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.25;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.project-card__bg--placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    background: radial-gradient(circle, var(--accent) 0%, #231510 100%);
}

.project-card[active] .project-card__bg {
    opacity: 0.15;
    transform: scale(1.03);
}

/* Dark gradient overlay */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(35, 21, 16, 0.95) 0%, rgba(35, 21, 16, 0.3) 100%);
    z-index: 2;
}

/* Card Content Area */
.project-card__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    z-index: 3;
    display: flex;
    box-sizing: border-box;
    transition: all 0.5s ease;
}

/* Collapsed Content Style: Center the Title vertically */
.project-card:not([active]) .project-card__content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0.5rem;
}

/* Expanded Content Style: Row layout with thumb and details */
.project-card[active] .project-card__content {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

/* Thumbnail Image on the left (only active) */
.project-card__thumb {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.4s ease;
    flex-shrink: 0;
}

.project-card__thumb--placeholder {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.4s ease;
    flex-shrink: 0;
}

.project-card:not([active]) .project-card__thumb,
.project-card:not([active]) .project-card__thumb--placeholder {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
}

.project-card[active] .project-card__thumb,
.project-card[active] .project-card__thumb--placeholder {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

/* Details Panel */
.project-card__details {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    text-align: left;
}

.project-card:not([active]) .project-card__details {
    height: auto;
    width: 100%;
    align-items: center;
}

/* Category Label */
.project-card__cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.project-card:not([active]) .project-card__cat {
    display: none;
}

/* Title Styling */
.project-card__title {
    font-family: var(--font-script);
    font-weight: 700;
    color: #fff;
    margin: 0;
    transition: all 0.5s ease;
}

.project-card[active] .project-card__title {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

/* Rotated title when collapsed */
.project-card:not([active]) .project-card__title {
    font-size: 1.4rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0.8;
    max-height: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card:not([active]):hover .project-card__title {
    opacity: 1;
    color: var(--primary);
}

/* Hide badges on collapsed cards to prevent overflow rendering issues */
.project-card:not([active]) .product-badge {
    display: none !important;
}

/* Description (only active) */
.project-card__desc {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.6;
    margin: 0 0 0.8rem 0;
    max-width: 500px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card[active] .project-card__desc {
    display: block;
    opacity: 1;
    transition: opacity 0.5s ease 0.3s;
}

/* Price & Stock Row */
.project-card__price-row {
    display: none;
    opacity: 0;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.project-card[active] .project-card__price-row {
    display: flex;
    opacity: 1;
    transition: opacity 0.5s ease 0.3s;
}

.project-card__price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-script);
}

/* Stock status badges */
.product-stock { 
    font-size: 0.7rem; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 0.3rem; 
    padding: 0.25rem 0.6rem; 
    border-radius: 50px; 
}
.product-stock--disponible { background: #d4edda; color: #155724; }
.product-stock--consultar  { background: #fff3cd; color: #856404; }
.product-stock--agotado    { background: #f8d7da; color: #721c24; }

/* Badge Destacado o Sin Stock */
.product-badge {
    position: absolute; 
    top: 1.2rem; 
    right: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; 
    font-size: 0.7rem; 
    font-weight: 700; 
    padding: 0.25rem 0.6rem;
    border-radius: 50px; 
    letter-spacing: 0.5px; 
    text-transform: uppercase;
    z-index: 4;
}

.product-badge--out {
    background: linear-gradient(135deg, #888, #aaa);
}

/* Action button inside card */
.project-card__btn {
    display: none;
    max-width: 250px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card[active] .project-card__btn {
    display: inline-flex;
    opacity: 1;
    transition: opacity 0.5s ease 0.35s;
}

/* WhatsApp button styles inside cards */
.btn-whatsapp {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem;
    width: 100%; 
    padding: 0.7rem 1rem;
    background: var(--wa-green); 
    color: #fff;
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 0.9rem;
    border: none; 
    cursor: pointer; 
    transition: var(--transition);
    text-decoration: none;
}

.btn-whatsapp:hover { 
    background: var(--wa-dark); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(37,211,102,0.35); 
}

.btn-whatsapp--out { 
    background: #555; 
}

.btn-whatsapp--out:hover { 
    background: #333; 
    box-shadow: none; 
}

/* State stock custom styles */
.product-stock-state--agotado .project-card__bg {
    opacity: 0.12 !important;
}
.product-stock-state--agotado .project-card__thumb {
    opacity: 0.45 !important;
}

/* Dots Page Indicator */
.dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(201, 168, 124, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 10px;
}

/* ============================================================================
   RESPONSIVE DESIGN FOR SLIDER
   ============================================================================ */
@media (max-width: 991px) {
    .track {
        height: 400px;
    }
    .project-card__thumb,
    .project-card__thumb--placeholder {
        width: 190px;
        height: 280px;
    }
    .project-card[active] .project-card__title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.8rem;
    }
    
    .products-title-block .products-subtitle {
        font-size: 0.9rem;
    }

    .slider-controls {
        display: flex;
    }

    .slider {
        overflow: hidden;
        padding: 8px 0;
    }

    /* Vertical Accordion for Mobile */
    .track {
        height: 740px; /* Increased height to fit active card content */
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0;
        transition: none;
    }

    .project-card {
        flex: 0.6 !important; /* Smaller flex for collapsed cards */
        height: auto !important;
        cursor: pointer;
        border-radius: 12px;
        min-width: 0 !important;
        transition: flex 0.6s cubic-bezier(0.2, 1, 0.22, 1);
        overflow: hidden !important;
    }
    
    .project-card[active] {
        flex: 9 !important; /* Larger flex for active card */
        box-shadow: 0 10px 30px rgba(62, 39, 35, 0.15);
    }

    /* Collapsed: show title horizontally centered */
    .project-card:not([active]) .project-card__content {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 0.4rem 0.8rem !important;
        gap: 0.5rem !important;
    }

    /* Expanded: column layout */
    .project-card[active] .project-card__content {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 1.2rem !important;
        gap: 0.6rem !important;
        overflow: hidden !important; /* Disable scrollbar entirely */
    }

    .project-card .project-card__bg {
        opacity: 0.25 !important;
    }

    /* Thumbnails: hidden when collapsed */
    .project-card:not([active]) .project-card__thumb,
    .project-card:not([active]) .project-card__thumb--placeholder {
        display: none !important;
    }

    .project-card[active] .project-card__thumb,
    .project-card[active] .project-card__thumb--placeholder {
        display: block !important;
        width: 145px !important; /* Adjusted to prevent button cutoff */
        height: 145px !important; /* Adjusted to prevent button cutoff */
        object-fit: cover !important;
        flex-shrink: 0 !important;
        border-radius: 10px !important;
        opacity: 1 !important;
        transform: none !important;
        align-self: flex-start; /* Left-aligned with text */
    }

    /* Category label */
    .project-card:not([active]) .project-card__cat {
        display: none !important;
    }

    .project-card .project-card__cat {
        font-size: 0.65rem !important;
    }

    /* Details Panel */
    .project-card:not([active]) .project-card__details {
        width: 100% !important;
        align-items: flex-start !important;
        text-align: left !important;
        height: auto !important;
        justify-content: center !important;
    }

    .project-card[active] .project-card__details {
        width: 100% !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    /* Title: always horizontal and visible */
    .project-card .project-card__title {
        font-size: 0.95rem !important;
        writing-mode: horizontal-tb !important;
        transform: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        opacity: 1 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .project-card[active] .project-card__title {
        font-size: 1.4rem !important;
        white-space: normal !important;
        margin-bottom: 0.3rem !important;
    }

    /* Description: only when expanded */
    .project-card:not([active]) .project-card__desc {
        display: none !important;
    }

    .project-card[active] .project-card__desc {
        display: block !important;
        opacity: 1 !important;
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important; /* Reduced margin */
        color: #ddd !important;
        -webkit-line-clamp: 2; /* Limit to 2 lines to save vertical space */
    }

    /* Price row: only when expanded */
    .project-card:not([active]) .project-card__price-row {
        display: none !important;
    }

    .project-card[active] .project-card__price-row {
        display: flex !important;
        opacity: 1 !important;
        margin-bottom: 0.5rem !important; /* Reduced margin */
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .project-card .project-card__price {
        font-size: 1.3rem !important;
    }

    /* WhatsApp button */
    .project-card:not([active]) .project-card__btn {
        display: none !important;
    }

    .project-card[active] .project-card__btn {
        display: inline-flex !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.88rem !important;
        margin-bottom: 0.2rem !important; /* Safety margin */
    }
}


/* ============================================================================
   ABOUT SECTION
   ============================================================================ */
.about-section { padding: 5rem 0; background: var(--secondary); }
.about-header { text-align: center; max-width: 800px; margin: 0 auto 5rem; }
.about-badge { 
    display: inline-block; padding: 0.5rem 1rem; background: var(--accent); color: var(--text); 
    font-size: 0.8rem; font-weight: bold; letter-spacing: 1px; border-radius: 50px; margin-bottom: 1rem; text-transform: uppercase;
}
.about-intro { font-size: 1.15rem; line-height: 1.8; color: var(--text); opacity: 0.9; max-width: 700px; margin: 0 auto; }

.about-story-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 6rem; }
.about-story-row.reverse { direction: rtl; }
.about-story-row.reverse > * { direction: ltr; }

.story-number { font-size: 4rem; font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 1rem; opacity: 0.5; }
.about-content-text h3 { font-family: var(--font-script); font-size: 2rem; color: var(--primary); margin-bottom: 1.5rem; }
.about-content-text p { margin-bottom: 1rem; color: #555; }
.story-highlight {
    background: linear-gradient(135deg, #FAF7F2, #FFF); border-left: 4px solid var(--primary);
    padding: 1.5rem; border-radius: 0 8px 8px 0; font-style: italic; color: var(--text); margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.story-quote { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.media-wrapper { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.media-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.about-legacy-block {
    background: var(--bg); border-radius: 20px; padding: 4rem 2rem; text-align: center; margin: 4rem 0;
    border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.legacy-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.legacy-icon { font-size: 3rem; color: var(--accent); margin-bottom: 1.5rem; opacity: 0.6; }
.legacy-content h3 { font-family: var(--font-script); font-size: 2.2rem; color: var(--primary); margin-bottom: 2rem; }
.legacy-content p { font-size: 1.1rem; margin-bottom: 1.5rem; }

.about-future-row { display: flex; justify-content: center; margin-bottom: 5rem; }
.future-card {
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--text-light);
    padding: 4rem 3rem; border-radius: 20px; text-align: center; max-width: 900px; position: relative;
}
.future-card h3 { color: var(--text-light); font-family: var(--font-script); font-size: 2.2rem; margin-bottom: 1.5rem; }
.future-card p { margin-bottom: 1.5rem; font-size: 1.05rem; opacity: 0.95; }
.divider-icon { opacity: 0.8; margin: 2rem 0; font-size: 2rem; }
.future-vision {
    font-size: 1.2rem; font-weight: 600; font-style: italic;
    background: rgba(255,255,255,0.1); padding: 2rem; border-radius: 12px; margin: 2rem 0;
}
.closing-text { font-weight: bold; margin-top: 2rem; }
.thanks { margin-top: 3rem; font-size: 1.1rem; }
.about-signature { text-align: center; padding-bottom: 2rem; }
.about-signature .tagline { font-size: 1.5rem; color: var(--primary); font-weight: bold; }

/* ============================================================================
   CONTACT SECTION
   ============================================================================ */
.contact-section { padding: 5rem 0 0 0; position: relative; overflow: hidden; background: var(--bg); min-height: 800px; }
.contact-header { text-align: center; margin-bottom: 3rem; position: relative; z-index: 2; }
.contact-subtitle { font-size: 1.1rem; color: var(--text); opacity: 0.85; max-width: 500px; margin: 0 auto; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; position: relative; z-index: 2; margin-bottom: 3rem; }
.contact-info-panel { padding: 1rem 2rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; padding: 1rem; border-radius: 10px; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.6); }
.contact-list li:hover { background: rgba(201, 168, 124, 0.15); transform: translateX(5px); }
.contact-icon { flex-shrink: 0; width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(201, 168, 124, 0.3); color: white; }
.contact-list strong { display: block; color: var(--primary); font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-list a, .contact-list span { color: var(--text); font-size: 1rem; transition: color 0.3s; }
.contact-list a:hover { color: var(--primary); }

.social-links { display: flex; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.social-links a { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 12px rgba(201, 168, 124, 0.3); }
.social-links a:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(201, 168, 124, 0.4); }

.contact-form-panel { background: var(--secondary); padding: 2.5rem; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(62, 39, 35, 0.12); border: 1px solid var(--border); position: relative; z-index: 2; }
.contact-form-panel h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 1.5rem; font-family: var(--font-script); display: flex; align-items: center; gap: 0.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.6rem; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.form-group input, .form-group textarea { width: 100%; padding: 0.9rem 1rem; border: 2px solid var(--border); border-radius: 10px; font-family: inherit; background: var(--bg); font-size: 1rem; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(201, 168, 124, 0.15); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* Sprinkles Background — cubre toda la sección #contact */
.sprinkles-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none; /* Nunca intercepta clics ni cambia el cursor */
    overflow: hidden;
    opacity: 0.55; /* Más visible pero sin distraer el formulario */
}
.sprinkles-bg canvas {
    display: block;
    pointer-events: none; /* Crítico: el cursor nunca cambia sobre el canvas */
    cursor: inherit;
}

.maps-container { position: relative; z-index: 2; margin: 0; border-radius: 0; overflow: hidden; box-shadow: 0 -4px 30px rgba(0,0,0,0.1); }
.maps-container iframe { display: block; filter: saturate(0.85) contrast(1.05); }

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer { background: var(--text); color: var(--text-light); padding: 3rem 0 1.5rem; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; font-size: 0.8rem; opacity: 0.8; text-align: center; }
.footer-bottom a { color: var(--accent); font-weight: 600; }
.footer-bottom a:hover { color: white; }

/* ============================================================================
   UTILITIES
   ============================================================================ */
/* WhatsApp Flotante */
.whatsapp-float-wrap {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem;
}
.whatsapp-float {
    background: var(--wa-green); color: white; width: 62px; height: 62px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: 0.3s;
    text-decoration: none; position: relative;
}
.whatsapp-float:hover { transform: scale(1.1); background: var(--wa-dark); }
.whatsapp-ping {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(37,211,102,0.4);
    animation: wa-ping 2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes wa-ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }
.whatsapp-tooltip {
    background: var(--text); color: white; padding: 0.4rem 0.9rem;
    border-radius: 50px; font-size: 0.82rem; font-weight: 600;
    white-space: nowrap; pointer-events: none;
    opacity: 0; transform: translateX(10px); transition: 0.3s;
}
.whatsapp-float-wrap:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
.floating-element { will-change: transform; }
.floating-img, .media-wrapper { animation: float 4s ease-in-out infinite; will-change: transform; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.floating-element:nth-child(odd) .floating-img, .floating-element:nth-child(odd) .media-wrapper { animation-delay: 0s; }
.floating-element:nth-child(even) .floating-img, .floating-element:nth-child(even) .media-wrapper { animation-delay: 2s; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 968px) {
    .contact-grid, .about-story-row, .about-story-row.reverse { grid-template-columns: 1fr; gap: 2rem; }
    .about-story-row.reverse { direction: ltr; }
    .future-card { padding: 2.5rem 1.5rem; }
    .about-legacy-block { padding: 3rem 1.5rem; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    /* Menú Lateral en Móvil */
    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(250, 247, 242, 0.98);
        backdrop-filter: blur(12px);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(62, 39, 35, 0.15);
        z-index: 999;
    }
    
    .primary-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
    }
    
    .site-header.scrolled .nav-list {
        transform: scale(0.9);
    }

    /* Ajustes generales móvil */
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 1.8rem; }
    .contact-section { padding: 3rem 0 0 0; }
    .contact-list li { padding: 0.75rem; }
    .contact-form-panel { padding: 1.5rem 1rem; }
    .sprinkles-bg { opacity: 0.15; }
    .carousel-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .floating-element, .floating-img, .media-wrapper { animation: none !important; transform: none !important; }
    
    /* Header reduced motion */
    .nav-link, .nav-glow, .nav-icon, .site-header, .header-inner, .logo img {
        transition: none !important;
        transform: none !important;
    }
    .nav-item:hover .nav-link-inner { transform: none; }
}