/*
Theme Name: Sarah Theme (GSAP)
Description: Tema editorial completo y responsive.
Version: 8.0
*/
:root {
    --navy: #022b46; --blue-1: #064c7a; --blue-2: #0a6ba8;
    --gold: #debe7c; --cream: #f5ebd6; --grey: #dee4e8; --white: #ffffff; --text: #4a5568;
    --line-color: rgba(2, 43, 70, 0.15);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background: var(--white); color: var(--navy); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 800; text-transform: uppercase; }
p { line-height: 1.6; margin-bottom: 24px; color: var(--text); font-size: 1.1rem; }
a { text-decoration: none; color: inherit; }

/* Layout */
.smg-section { padding: 100px 0; width: 100%; position: relative; }
.smg-container { max-width: 1400px; padding: 0 24px; margin: 0 auto; width: 100%; }
.smg-section--dark { background: var(--navy); color: var(--cream); }
.smg-section--dark p { color: rgba(245,235,214,0.8); }
.smg-section--dark h1, .smg-section--dark h2 { color: var(--cream); }
.smg-section--cream { background: var(--cream); }
.smg-section--grey { background: var(--grey); }
.smg-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--gold); margin-bottom: 16px; display: block; }
.smg-heading-1 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.1; margin-bottom: 24px; }
.smg-heading-2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.1; margin-bottom: 32px; }
.smg-heading-3 { font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.2; margin-bottom: 16px; }

/* Botones */
.smg-btn-primary, .smg-btn-secondary { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; padding: 16px 32px; display: inline-flex; transition: all 0.3s ease; cursor: pointer; border: none; }
.smg-btn-primary { background: var(--gold); color: var(--navy); }
.smg-btn-primary:hover { transform: translateY(-2px); background: var(--cream); }
.smg-btn-secondary { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.smg-section--dark .smg-btn-secondary { border-color: var(--cream); color: var(--cream); }
.smg-btn-secondary:hover { background: var(--navy); color: var(--cream); }
.smg-section--dark .smg-btn-secondary:hover { background: var(--cream); color: var(--navy); }

/* =========================================
   HEADER
   ========================================= */
.site-header { position: fixed; top: 0; width: 100%; z-index: 9999; transition: background 0.3s ease; background: transparent; }
.site-header.scrolled { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.1); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px 40px; }
.header-left, .header-right { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--cream); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.header-right { justify-content: flex-end; }
.header-center .logo img { max-height: 35px; }
.square-dot { width: 8px; height: 8px; background: var(--gold); display: inline-block; }

/* Full Screen Menus */
.side-menu { position: fixed; top: 0; height: 100vh; width: 100%; max-width: 500px; z-index: 10000; padding: 120px 60px 60px; transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1); overflow-y: auto; }
.menu-left { left: 0; background: var(--navy); transform: translateX(-100%); }
.menu-right { right: 0; background: var(--cream); transform: translateX(100%); }
.side-menu.active { transform: translateX(0); }
.menu-close { position: absolute; top: 40px; right: 40px; font-size: 2rem; cursor: pointer; font-family: 'Montserrat'; }
.menu-left .menu-close { color: var(--cream); }
.menu-right .menu-close { color: var(--navy); }
.side-menu h2 { font-size: 2.5rem; margin-bottom: 40px; }
.menu-left h2 { color: var(--cream); }
.menu-right h2 { color: var(--navy); }
.side-menu ul { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.side-menu a { font-family: 'Montserrat'; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; transition: color 0.3s; }
.menu-left a { color: var(--cream); } .menu-left a:hover { color: var(--gold); }
.menu-right a { color: var(--navy); } .menu-right a:hover { color: #b5944f; }

/* =========================================
   HERO (Ajustado)
   ========================================= */
.hero-video-wrapper { position: relative; height: 100svh; display: flex; align-items: flex-end; padding-bottom: 80px; overflow: hidden; }
.hero-video-wrapper video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,43,70,0.95) 0%, rgba(2,43,70,0.3) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: end; }
.hero-title { font-size: clamp(2rem, 4.5vw, 4.5rem); line-height: 1; color: var(--cream); text-align: center; }
.hero-text { font-size: 1rem; color: rgba(245,235,214,0.9); max-width: 320px; } /* Más ancho para que no se apriete */

/* =========================================
   ECOSISTEMA
   ========================================= */
.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.eco-card { padding: 60px 48px; border-radius: 16px; background: var(--white); border: 1px solid var(--line-color); transition: all 0.4s ease; }
.eco-card:hover { background: var(--navy); color: var(--cream); transform: translateY(-5px); }
.eco-card:hover p { color: rgba(255,255,255,0.8); }

/* =========================================
   LOTTIE HANDSHAKE
   ========================================= */
.handshake-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
#lottie-handshake { width: 100%; max-width: 400px; margin: 0 auto; }

/* =========================================
   STACK SERVICIOS (Colores Alternos e Iconos)
   ========================================= */
.stack-container { position: relative; }
.stack-item { position: sticky; top: 120px; padding: 60px; border-radius: 16px; margin-bottom: 32px; box-shadow: 0 -10px 30px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; color: var(--white); }
.stack-item:nth-child(3n+1) { background: var(--navy); }
.stack-item:nth-child(3n+2) { background: var(--blue-1); }
.stack-item:nth-child(3n+3) { background: var(--blue-2); }
.stack-item h3 { font-size: 2rem; margin: 0; color: var(--cream); }
.stack-item p { margin: 0; max-width: 400px; color: rgba(255,255,255,0.8); }
.stack-icon { width: 60px; height: 60px; flex-shrink: 0; margin-right: 40px; fill: var(--gold); }

/* =========================================
   TESTIMONIOS (Cards en Grid)
   ========================================= */
.testimonios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonio-card { background: var(--white); padding: 40px; border-radius: 16px; border: 1px solid var(--line-color); position: relative; }
.testimonio-card::before { content: '“'; font-family: 'Montserrat'; font-size: 6rem; color: var(--gold); opacity: 0.2; position: absolute; top: 10px; left: 20px; line-height: 1; }
.testimonio-card p { position: relative; z-index: 1; font-style: italic; font-size: 1.1rem; color: var(--navy); }

/* =========================================
   BENTO GRID
   ========================================= */
.bento-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.bento-left { background: var(--white); border: 1px solid var(--line-color); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.bento-left img { width: 100%; height: 400px; object-fit: cover; }
.bento-right { display: flex; flex-direction: column; gap: 32px; }
.bento-small { background: var(--white); border: 1px solid var(--line-color); border-radius: 16px; padding: 32px; flex: 1; }
.bento-content { padding: 32px; }

/* =========================================
   FAQ
   ========================================= */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line-color); }
.faq-question { padding: 24px 0; font-size: 1.2rem; font-family: 'Montserrat'; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; text-transform: uppercase; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding-bottom: 24px; margin: 0; }

/* =========================================
   PRE-FOOTER & FOOTER
   ========================================= */
.pre-footer { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 100px 0; background-size: cover; background-position: center; }
.pre-footer::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(2,43,70,0.9) 0%, rgba(2,43,70,0.3) 100%); }
.pre-footer-content { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; justify-content: space-between; flex-grow: 1; }
.pre-footer h2 { font-size: clamp(2rem, 4vw, 3.5rem); color: var(--white); max-width: 600px; margin-bottom: 60px; }
.pre-footer-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 800px; margin-left: auto; } /* Cajas a la derecha */
.pre-footer-card { background: var(--white); padding: 48px; border-radius: 16px; transition: all 0.3s ease; }
.pre-footer-card:hover { transform: translateY(-5px); }
.pre-footer-card h3 { font-size: 1.5rem; margin-bottom: 16px; }

.site-footer { background: var(--navy); color: var(--cream); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-grid h4 { color: var(--gold); margin-bottom: 24px; font-size: 0.85rem; text-transform: uppercase; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { opacity: 0.7; transition: opacity 0.3s; }
.footer-grid a:hover { opacity: 1; color: var(--gold); }
.giant-logo { font-size: clamp(3rem, 10vw, 12rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.8; color: var(--cream); opacity: 0.05; text-align: center; }

/* =========================================
   NOSOTROS (Equipo B&N y Modal)
   ========================================= */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-member { cursor: pointer; text-align: center; }
.team-member img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(100%); transition: filter 0.4s ease; border-radius: 8px; margin-bottom: 16px; }
.team-member:hover img { filter: grayscale(0%); }
.team-member h3 { font-size: 1.2rem; margin-bottom: 8px; }
.team-member button { font-size: 0.8rem; padding: 8px 16px; background: transparent; border: 1px solid var(--navy); border-radius: 99px; cursor: pointer; }
.team-member:hover button { background: var(--navy); color: var(--white); }

.smg-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 100000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s; }
.smg-modal.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--white); width: 90%; max-width: 800px; max-height: 80vh; overflow-y: auto; padding: 60px; position: relative; border-radius: 16px; }
.modal-close { position: absolute; top: 24px; right: 24px; font-size: 2rem; cursor: pointer; }

/* =========================================
   RESPONSIVE (Tablet y Mobile)
   ========================================= */
@media (max-width: 1024px) {
    .bento-grid, .handshake-section, .eco-grid, .faq-grid, .pre-footer-cards { grid-template-columns: 1fr; }
    .bento-right { flex-direction: row; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .hero-text { margin: 0 auto; text-align: center; }
    .pre-footer-cards { margin-left: 0; margin-top: 40px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .header-inner { padding: 15px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .bento-right { flex-direction: column; }
    .stack-item { flex-direction: column; text-align: center; gap: 24px; }
    .stack-icon { margin-right: 0; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .testimonios-grid { grid-template-columns: 1fr; }
    .pre-footer-card { padding: 32px; }
}

/* =========================================
   MARQUEE DE TESTIMONIOS (Restaurado y Lento)
   ========================================= */
.marquee-wrapper { overflow: hidden; white-space: nowrap; padding: 40px 0; background: var(--cream); }
.marquee-content {
    display: inline-block;
    animation: marquee 60s linear infinite; /* 60s = velocidad mucho más lenta */
}
.marquee-content:hover {
    animation-play-state: paused; /* Pausa al pasar el ratón */
}
.marquee-item {
    display: inline-block;
    font-size: 1.8rem;
    font-family: 'Montserrat';
    font-weight: 700;
    margin-right: 64px;
    color: var(--navy);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   HOVER EN MENÚS LATERALES (Desktop)
   ========================================= */
/* Cuando el ratón está sobre el disparador o sobre el menú, se muestra */
.header-left:hover ~ .side-menu,
.header-right:hover ~ .side-menu,
.side-menu:hover {
    transform: translateX(0) !important;
}

/* Retraso para que no se cierre de golpe */
.side-menu {
    transition: transform 0.4s cubic-bezier(0.85, 0, 0.15, 1) 0.15s; /* Retraso de 0.15s al cerrar */
}
.side-menu.active, 
.header-left:hover ~ .side-menu,
.header-right:hover ~ .side-menu,
.side-menu:hover {
    transition-delay: 0s; /* Sin retraso al abrir */
}

/* =========================================
   MARQUEE CON TARJETAS (Testimonios)
   ========================================= */
.marquee-wrapper { overflow: hidden; white-space: nowrap; padding: 40px 0; background: var(--cream); }
.marquee-content { display: inline-block; animation: marquee 60s linear infinite; }
.marquee-content:hover { animation-play-state: paused; }
.marquee-item-card {
    display: inline-flex; flex-direction: column; width: 350px; white-space: normal;
    background: var(--white); padding: 32px; border-radius: 16px; margin-right: 24px;
    vertical-align: top; border: 1px solid var(--line-color); text-align: left;
}
.marquee-item-card p { font-style: italic; font-size: 1.1rem; color: var(--navy); margin-bottom: 16px; flex-grow: 1; }
.marquee-item-card h4 { font-family: 'Montserrat'; font-weight: 700; font-size: 0.9rem; color: var(--gold); text-transform: uppercase; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   CASOS DE ÉXITO (Bento Grid)
   ========================================= */
.casos-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.caso-grande { background: var(--navy); color: var(--cream); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.caso-grande img { width: 100%; height: 400px; object-fit: cover; }
.caso-grande .caso-content { padding: 40px; }
.caso-grande h3 { font-size: 2rem; color: var(--cream); margin-bottom: 16px; }
.caso-grande p { color: rgba(255,255,255,0.7); }
.caso-pequenos { display: flex; flex-direction: column; gap: 32px; }
.caso-pequeno { background: var(--white); border: 1px solid var(--line-color); border-radius: 16px; padding: 32px; flex: 1; }
.caso-pequeno h3 { font-size: 1.5rem; margin-bottom: 12px; }
.caso-pequeno p { font-size: 0.9rem; opacity: 0.8; }

/* =========================================
   ICONOS DE SERVICIOS (FontAwesome)
   ========================================= */
.stack-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-right: 24px;
    width: 50px;
    text-align: center;
}

/* =========================================
   ICONOS DE SERVICIOS (FontAwesome)
   ========================================= */
.stack-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-right: 24px;
    width: 50px;
    text-align: center;
}

/* =========================================
   ICONOS DE SERVICIOS (FontAwesome)
   ========================================= */
.stack-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-right: 24px;
    width: 50px;
    text-align: center;
}

/* =========================================
   CARRITO EN EL HEADER (WooCommerce)
   ========================================= */
.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    color: var(--cream);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: 24px;
    transition: color 0.3s;
}
.cart-link:hover { color: var(--gold); }
.cart-count {
    background: var(--gold);
    color: var(--navy);
    font-size: 0.65rem;
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -15px;
}
