
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ============ VARIABLES DE MARCA ============ */
:root{
  --radius:18px;
  --navy:#000000;
  --navy2:#000000;
  --gold:#000000;
  --cream:#FCF8F5;
  --white:#FFFFFF;
  --text:#000000;
  --muted:#6E6E6E;
  --line:#dedbd8;
}

/* ============ RESET BASE ============ */
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Arial,sans-serif;line-height:1.55;background:#FCF8F5;color:#000}
a{text-decoration:none;color:inherit}
.container{width:min(1120px,92%);margin:auto}

/* ============ ENCABEZADO / NAV ============ */
nav{height:76px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10;background:#000!important;border-bottom:1px solid #333!important}
.logo{font-weight:800;letter-spacing:.04em;color:var(--navy);font-size:18px}
.logo span{display:block;font-weight:500;font-size:10px;letter-spacing:.22em;color:var(--gold);margin-top:2px}
.btn{display:inline-block;padding:13px 22px;border-radius:8px;font-weight:700;border:0;cursor:pointer;background:var(--gold)!important;color:#fff!important;border-color:var(--gold)!important}
.btn.dark{background:var(--navy)}

/* ============ HERO ============ */
.hero{padding:105px 0 95px;background:#000;color:#fff}
.hero h1{font-size:clamp(42px,6vw,72px);line-height:1.03;margin:0 0 24px;max-width:800px;letter-spacing:-.04em}
.hero p{font-size:20px;max-width:760px;margin:0 0 34px;color:#fff}
section{padding:82px 0}
.eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);font-weight:800;margin-bottom:12px}
h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;font-size:clamp(34px,4vw,50px);line-height:1.12;margin:0 0 18px;color:var(--navy);letter-spacing:-.025em}
.lead{font-size:18px;color:var(--muted);max-width:780px}

/* ============ CONFIANZA / LOGOS DE CLIENTES (estático) ============ */
.proof{padding:42px 0;border-bottom:1px solid var(--line);text-align:center;background:#FCF8F5}

/* ============ TARJETAS "¿QUÉ NECESITA RESOLVER?" Y PASOS ============ */
.paths{background:#fff}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:38px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:0 8px 30px rgba(16,27,45,.05)}
.card h3{margin:0 0 9px;color:var(--navy);font-size:18px}
.card p{color:var(--muted);min-height:68px}
.card a{font-weight:800;font-size:14px;color:#000;text-decoration:underline;text-underline-offset:3px}

/* ============ SECCIONES DE SERVICIO (Resolver/Prevenir/Defender/Acompañar) ============ */
.service{border-top:1px solid var(--line);background:#FCF8F5}
.service-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start;max-width:900px}
.service:nth-child(even){background:#fff}
.service h2{font-size:clamp(32px,4vw,44px);max-width:850px;color:#000}

/* ============ "POR QUÉ NOSOTROS" + ESTADÍSTICAS + EQUIPO ============ */
.why{background:#000;color:#fff}
.why h2{color:#fff}
.why .lead{color:#fff}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:44px 0 70px}
.stat{border-top:1px solid #516078;padding-top:18px;border-top-color:#555}
.stat strong{display:block;font-size:38px;color:#fff}
.stat span{color:#bfc9d8}
.team-title{font-size:28px;margin-bottom:10px;color:#fff}
.team-intro{max-width:760px;color:#fff}
.team{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:30px}
.person{border-radius:16px;overflow:hidden;background:#fff;color:#000}
.person .photo{display:flex;align-items:center;justify-content:center;color:#8992a1;font-size:13px;height:260px;overflow:hidden;background:#f2efeb}
.person div:last-child{padding:18px}
.person h3{font-size:17px;margin:0 0 7px;color:#000}
.role{font-size:11px;letter-spacing:.08em;color:var(--gold);font-weight:800}
.person p{font-size:13px;color:#6E6E6E}
.team-closing{margin-top:34px;font-size:20px;font-weight:700;color:#fff}

/* ============ ÁREAS DE APOYO ============ */
.situations{background:#FCF8F5}
.situation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:35px}
.situation{border:1px solid var(--line);padding:23px;border-radius:14px}
.situation h3{font-size:15px;color:var(--navy);margin:0 0 8px}
.situation p{font-size:14px;color:var(--muted);margin:0}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:38px}
.step{position:relative;padding:28px;border-left:3px solid var(--gold);background:var(--cream)}
.num{font-size:12px;font-weight:900;letter-spacing:.15em;color:#6E6E6E}

/* ============ PREGUNTAS FRECUENTES ============ */
.faq{position:relative;background:#FCF8F5;border-top:14px solid #000}
.faq:before{content:"";display:block;width:64px;height:4px;margin-bottom:34px;background:#000}
details{border-bottom:1px solid var(--line);padding:21px 22px;background:#fff;border-bottom-color:#dedbd8}
summary{cursor:pointer;font-weight:800;color:#000}
details p{color:var(--muted);margin-bottom:0}

/* ============ LLAMADO A LA ACCIÓN FINAL ============ */
.cta{text-align:center;padding:95px 0;background:#000;color:#fff}
.cta h2{max-width:760px;margin:0 auto 18px;color:#fff!important}
.cta p{max-width:700px;margin:0 auto 30px;font-size:19px;color:#fff}

/* ============ PIE DE PÁGINA ============ */
footer{padding:30px 0;font-size:13px;text-align:center;background:#000!important;color:#fff}


/* ============ PROTECCIÓN INTEGRAL ============ */
.integrated{padding:88px 0;border-top:none;background:#000!important;color:#fff}
.integrated-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:38px}
.integrated-card{border:1px solid var(--line);border-radius:18px;padding:28px;min-height:290px;background:#111;border-color:#555}
.integrated-icon{font-size:27px;margin-bottom:22px;color:#fff}
.integrated-card .role{font-size:10px;letter-spacing:.12em;color:var(--gold);font-weight:800}
.integrated-card h3{font-size:20px;margin:9px 0 12px;color:#fff}
.integrated-card p{font-size:14px;color:#cbd2dc}
.integrated-bottom{margin-top:28px;padding:25px 28px;border-radius:15px;display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;color:#000;border-left:4px solid #000}
.integrated-bottom strong{font-size:18px}

/* ===== PROFESSIONAL SCROLL REVEAL ===== */
.reveal,.service,.stats .stat,.integrated-card,.integrated-visual,.integrated-bottom{
  opacity:1;
  transform:none;
  transition:opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1);
  will-change:opacity,transform;
}
html.reveal-ready .reveal,
html.reveal-ready .service,
html.reveal-ready .stats .stat,
html.reveal-ready .integrated-card,
html.reveal-ready .integrated-visual,
html.reveal-ready .integrated-bottom{
  opacity:0;
  transform:translateY(24px);
}
html.reveal-ready .reveal.is-visible,
html.reveal-ready .service.is-visible,
html.reveal-ready .stats .stat.is-visible,
html.reveal-ready .integrated-card.is-visible,
html.reveal-ready .integrated-visual.is-visible,
html.reveal-ready .integrated-bottom.is-visible{
  opacity:1;
  transform:none;
}
.hero .hero-copy > *{
  opacity:0;
  transform:translateY(18px);
  animation:heroIn .8s cubic-bezier(.22,1,.36,1) forwards;
}
.hero .hero-copy > *:nth-child(1){animation-delay:.08s}
.hero .hero-copy > *:nth-child(2){animation-delay:.16s}
.hero .hero-copy > *:nth-child(3){animation-delay:.24s}
.hero .hero-copy > *:nth-child(4){animation-delay:.32s}
.hero .hero-photo{animation:heroPhotoIn 1.05s cubic-bezier(.22,1,.36,1) both}
@keyframes heroIn{to{opacity:1;transform:none}}
@keyframes heroPhotoIn{from{opacity:0;transform:scale(1.025)}to{opacity:1;transform:scale(1)}}

.hero-photo{display:flex;align-items:center;justify-content:center;min-height:0;aspect-ratio:3 / 2;overflow:hidden;background:#000}
.hero-photo img{object-position:center!important;width:100%;height:100%;object-fit:contain;display:block}
h1,h2,h3{color:#000}
.eyebrow,.role{color:#6E6E6E!important}
.btn:hover{background:#a5844d!important}
.integrated h2{color:#fff}
.integrated .lead{color:#cfd5df}
.integrated-bottom .btn{background:#000!important;color:#fff!important}
nav,.header,.topbar{background:var(--navy)!important}

/* HEADER — corrected contrast */
nav .logo{color:#fff!important;
}
nav .logo span{color:#fff!important;
}
nav .btn{
  background:var(--gold)!important;
  color:#101B2D!important;
}
nav .btn:hover{
  background:#ffffff!important;
  color:#101B2D!important;
}

.hero h1,.cta h2{color:#fff!important}
.hero .eyebrow,.cta .eyebrow{color:var(--gold)!important}
.integrated .eyebrow{color:var(--gold)!important}
.integrated h2,.integrated h3{color:#fff!important}
.integrated .lead,.integrated-card p{color:#fff!important}
.person .photo img{width:100%;height:100%;object-fit:cover;display:block}
.person:nth-child(1) .photo img{object-position:center 25%}
.person:nth-child(2) .photo img{object-position:center 25%}
.person:nth-child(3) .photo img{object-position:center 20%}
.person:nth-child(4) .photo img{object-position:center 25%}
.person:nth-child(5) .photo img{object-position:center 20%}
footer a{color:#fff}
nav .btn,.btn{background:#000!important;color:#fff!important;border:1px solid #000!important}
nav .btn:hover,.btn:hover{background:#fff!important;color:#000!important}
.hero h1,.hero h2,.hero h3{color:#fff!important}
.hero .eyebrow{color:#fff!important}
.hero .btn{background:#fff!important;color:#000!important;border-color:#fff!important}
.card,.situation{background:#FCF8F5;border-color:#dedbd8}
.card h3,.situation h3{color:#000}
.why .eyebrow{color:#fff!important}
.stat strong,.stat span{color:#fff}
.integrated .eyebrow,.integrated .role{color:#fff!important}
.situations .eyebrow{color:#6E6E6E!important}
.situations .btn{background:#000!important;color:#fff!important}
.steps .step{background:#fff;border-left-color:#000}
.cta .btn{background:#fff!important;color:#000!important;border-color:#fff!important}


/* ============ LAYOUT VISUAL DEL HERO Y SERVICIOS (con foto) ============ */
.hero-visual{padding:0;background:#000}
.hero-layout{display:grid;grid-template-columns:.82fr 1.38fr;min-height:auto;align-items:center}
.hero-copy{display:flex;flex-direction:column;justify-content:center;padding:64px 46px 64px 0}
.hero-copy h1{max-width:610px}
.hero-copy p{max-width:620px}
.visual-service-grid{max-width:1120px;gap:54px;grid-template-columns:1fr 1fr;align-items:center}
.visual-service-grid>div:first-child{padding:8px 0}
.service-image{box-shadow:0 12px 34px rgba(0,0,0,.08);height:auto;aspect-ratio:3 / 2;overflow:hidden;border-radius:4px}
.service-image img{width:100%;height:100%;object-fit:cover;display:block}
#prevenir .visual-service-grid,
#acompanar .visual-service-grid{grid-template-columns:1fr 1fr}
#prevenir .service-image,
#acompanar .service-image{order:-1}
.integrated-visual{display:grid;grid-template-columns:.8fr 1.2fr;gap:36px;align-items:center;margin:45px 0 42px}
.integrated-visual>div{padding-right:18px}
.integrated-visual h3{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(30px,3.5vw,44px);line-height:1.08;margin:0 0 14px;color:var(--navy)}
.integrated-visual p{color:var(--muted);font-size:17px}
.integrated-visual img{width:100%;height:310px;border-radius:4px;display:block;object-fit:cover}

.faq-transition{height:9px;background:#000;margin:0}


/* ============ AJUSTES GENERALES DE RESPONSIVE / OVERFLOW ============ */
html, body{max-width:100%;overflow-x:hidden}

/* ---------------- CLIENTES (carrusel de logos) ---------------- */
.clients{ background:var(--cream); padding-bottom:100px; }
.marquee-wrap{ position:relative; }
.marquee{ overflow:hidden; position:relative; margin-top:10px; }
.marquee::before, .marquee::after{
  content:""; position:absolute; top:0; bottom:0; width:80px; z-index:2; pointer-events:none;
}
.marquee::before{ left:0; background:linear-gradient(90deg, var(--cream), transparent); }
.marquee::after{ right:0; background:linear-gradient(270deg, var(--cream), transparent); }

.marquee-track{ display:flex; gap:20px; width:max-content; animation:scrollmarquee 32s linear infinite; }
/* Mientras el JS no tome el control, el CSS sigue moviendo el carrusel solo */
.marquee-track.js-active{ animation:none; }
.marquee:hover .marquee-track:not(.js-active){ animation-play-state:paused; }

@keyframes scrollmarquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

.logo-card{
  background:#fff; border:1px solid var(--line); width:170px; height:96px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; padding:18px;
}
.logo-card img{ max-width:100%; max-height:100%; object-fit:contain;
  opacity:0.65; transition:filter .3s ease, opacity .3s ease; }
.logo-card:hover img{ filter:grayscale(0%); opacity:1; }

/* Flechas de navegación del carrusel */
.carousel-btn{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:42px; height:42px; border-radius:50%;
  border:1px solid #000; background:#fff; color:#000;
  font-size:24px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 15px rgba(16,27,45,.12);
}
.carousel-btn:hover{ background:#000; color:#fff; }
.carousel-btn.prev{ left:12px; }
.carousel-btn.next{ right:12px; }

/* ============ MEDIA QUERIES ============ */
@media (max-width:900px){
 .grid4,.situation-grid{grid-template-columns:repeat(2,1fr)}
 .team{grid-template-columns:repeat(2,1fr)}
 .stats{grid-template-columns:repeat(2,1fr)}.integrated-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:800px){
  .hero-layout{grid-template-columns:1fr;min-height:auto}
  .hero-copy{padding:54px 0 36px}
  .hero-photo{aspect-ratio:3 / 2;min-height:0}
  .visual-service-grid{grid-template-columns:1fr!important;gap:30px}
  .service-image{height:auto;aspect-ratio:3 / 2;order:0!important}
  .integrated-visual{grid-template-columns:1fr;gap:20px}
  .integrated-visual img{height:260px}
  body{overflow-x:hidden}
  .container{width:min(100% - 32px, 1180px)}
  .hero-photo img,
  .service-image img,
  .integrated-visual img,
  .person .photo img{max-width:100%;height:100%}
  .service-image,.integrated-visual{overflow:hidden}
}
@media (max-width:650px){ nav .btn{display:none}
 section{padding:60px 0}
 .grid4,.situation-grid,.steps,.service-grid,.team,.stats{grid-template-columns:1fr}
 .hero{padding:75px 0}
 .hero p{font-size:17px}
 .service-grid{gap:25px}
 .team .person .photo{height:280px}
 .integrated-grid{grid-template-columns:1fr}
 .integrated-bottom{flex-direction:column;align-items:flex-start}
  nav{height:70px}
  nav .logo{font-size:17px}.person .photo{height:300px}
  .carousel-btn{width:34px;height:34px;font-size:19px}
  .carousel-btn.prev{left:6px}
  .carousel-btn.next{right:6px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important}
  .reveal,.service,.stats .stat,.integrated-card,.integrated-visual,.integrated-bottom,
  .hero .hero-copy > *, .hero .hero-photo, .marquee-track{
    opacity:1!important;transform:none!important;animation:none!important;transition:none!important;
  }
}
