/* ===== VARIABLES ===== */
:root {
  --azul: #1b3a5b;
  --azul-oscuro: #12283f;
  --azul-btn: #2f6fd0;
  --naranja: #f28c1e;
  --naranja-claro: #f6a94a;
  --verde-wa: #3aae3a;
  --texto: #2b2b2b;
  --texto-suave: #5a6b7b;
  --gris-bg: #eef3f8;
  --blanco: #ffffff;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(18, 40, 63, 0.10);

  /* ===== TOKENS UNIFICADOS (reutilizan la identidad actual) ===== */
  --color-primary: var(--azul-oscuro);      /* Azul marino principal */
  --color-accent: var(--naranja);           /* Naranja principal de marca */
  --color-accent-hover: #d9770a;             /* Naranja de marca, estado hover */
  --color-text: var(--texto);               /* Texto principal */
  --color-text-muted: var(--texto-suave);   /* Texto secundario */
  --color-background: var(--blanco);         /* Fondo base */
  --color-surface: #f6f9fc;                  /* Fondo neutro muy claro para secciones */
  --color-border: #e6edf4;                   /* Borde/línea sutil unificado */
  --radius-card: 16px;                       /* Radio de tarjetas */
  --radius-btn: 10px;                        /* Radio de botones */
  --shadow-card: 0 10px 30px rgba(18, 40, 63, 0.08); /* Sombra de tarjetas */
  --shadow-card-hover: 0 16px 40px rgba(18, 40, 63, 0.16); /* Sombra tarjeta hover */
  --section-spacing: 88px;                   /* Espaciado vertical estándar entre secciones */

  /* Jerarquía tipográfica (referencia del brief) */
  --fs-h1: clamp(2rem, 4vw, 3.25rem);        /* H1 hero 32-52px */
  --fs-h2: clamp(1.7rem, 2.6vw, 2.25rem);    /* H2 sección 27-36px */
  --fs-h3: 1.2rem;                           /* H3 tarjetas */
  --fs-body: 1rem;                           /* Cuerpo */
  --fs-small: 0.9rem;                        /* Texto secundario */
  --lh-title: 1.2;
  --lh-body: 1.6;
  --content-max: 1140px;                     /* Ancho máximo común del contenido */
  --ease: 200ms;                             /* Transición base de interacción */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { margin: 0; padding: 0; overflow-x: hidden; }

html { scroll-behavior: smooth; }

/* Compensa la altura del header sticky al saltar a un ancla */
section[id], header[id], #contacto { scroll-margin-top: 112px; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--texto);
  line-height: 1.6;
  background: var(--blanco);
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--azul-btn); color: #fff; box-shadow: 0 6px 16px rgba(47,111,208,.35); }
.btn-primary:hover { background: #2a63bb; }
.btn-hero-cta { background: var(--color-accent); color: #fff; box-shadow: 0 6px 16px rgba(242,140,30,.30); }
.btn-hero-cta:hover { background: var(--color-accent-hover); }
.btn-sm { padding: 10px 22px; font-size: .95rem; }
.btn-whatsapp { background: var(--color-accent); color: #fff; box-shadow: 0 6px 16px rgba(242,140,30,.30); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-whatsapp:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(242,140,30,.40); }
.wa-icon { flex-shrink: 0; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--ease) ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(18, 40, 63, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  max-width: none;
  padding-left: clamp(12px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}
.brand {
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: -.5px;
  display: inline-flex;
  align-items: center;
}
.brand-logo { height: 100px; width: auto; image-rendering: -webkit-optimize-contrast; }
.brand-next { color: var(--naranja); }
.brand-gen { color: var(--azul-btn); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  text-decoration: none;
  color: var(--azul);
  font-weight: 500;
  font-size: 1.2rem;
  padding: 6px 2px;
  transition: color var(--ease) ease;
}
.nav a:hover { color: var(--naranja); }
/* Subrayado discreto para hover y sección activa */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--naranja);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease) ease;
}
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--naranja); }
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 26px; height: 3px; background: var(--azul); border-radius: 3px; transition: background var(--ease) ease; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #eef3f8;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 1;
  opacity: 0.8;
  filter: saturate(0.85) brightness(1.06);
}
.hero-curve {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hero-curve svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 72px 24px 72px clamp(20px, 4vw, 48px);
}
.hero-content { max-width: 400px; }
.hero-content h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: var(--lh-title);
  color: var(--naranja);
  font-weight: 700;
  margin-bottom: 16px;
  white-space: nowrap;
}
.hero-sub {
  color: var(--azul-oscuro);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 28px;
}
.hero-list {
  list-style: none;
  margin-bottom: 30px;
}
.hero-list li {
  color: var(--azul);
  font-size: 1rem;
  padding: 6px 0 6px 32px;
  font-weight: 500;
  position: relative;
}
.hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  background: var(--naranja);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.hero-image {
  position: relative;
  height: 480px;
}
.hero-image img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  /* Onda/curva cóncava en el lado izquierdo, como el diseño original */
  clip-path: ellipse(85% 100% at 78% 50%);
}

/* ===== SOBRE ===== */
.about { padding: 0; background: #fff; overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: none;
  margin: 0;
  padding: 0;
}
.about-text {
  padding: var(--section-spacing) 48px var(--section-spacing) clamp(20px, 4vw, 48px);
  max-width: 640px;
  margin-left: 0;
}
.about-eyebrow.section-title {
  text-align: left;
  margin-bottom: 12px;
}
.about-heading {
  font-size: 1.55rem;
  line-height: var(--lh-title);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 18px;
}
.about-heading span { color: var(--naranja); }
.about-divider {
  display: block;
  width: 90px;
  height: 3px;
  background: var(--naranja);
  border-radius: 2px;
  margin-bottom: 26px;
}
.about-text p { color: var(--color-text-muted); font-size: var(--fs-body); line-height: var(--lh-body); margin-bottom: 16px; }
.check-list { list-style: none; margin-top: 18px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  color: var(--texto-suave);
  font-size: 15px;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--naranja);
  font-weight: 700;
}
/* Checks en círculo naranja */
.check-list--circle li { padding-left: 34px; margin-bottom: 14px; color: var(--azul-oscuro); font-weight: 500; }
.check-list--circle li::before {
  content: "\2713";
  width: 22px;
  height: 22px;
  background: var(--naranja);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  top: 1px;
}
.about-image {
  position: relative;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 40px 40px 0;
}
.about-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  /* Se funde suave hacia el texto (izquierda) */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%);
}

/* ===== SERVICIOS ===== */
.services {
  padding: var(--section-spacing) 0;
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(246, 249, 252, 0.90) 0%, rgba(238, 243, 248, 0.94) 100%),
    url("fondo-hero-izquierda.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-title {
  text-align: center;
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 40px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  min-height: 380px;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(18,40,63,.25); }
.card-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 26px 24px;
  background: linear-gradient(180deg, rgba(11,26,43,0) 0%, rgba(11,26,43,0.30) 48%, rgba(11,26,43,0.88) 100%);
  text-align: left;
}
.card-title {
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.card-text { color: rgba(255,255,255,0.92); font-size: 14px; line-height: 1.55; margin-bottom: 0; }

/* ===== TOGGLE (Ver detalle) ===== */
.toggle-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.toggle-body .check-list { margin: 14px 0 0; }
.toggle-body .check-list li { color: rgba(255,255,255,0.9); font-size: .92rem; margin-bottom: 8px; }
.toggle-body .check-list li::before { color: var(--naranja); }
.toggle-header {
  margin-top: 14px;
  padding-top: 0;
  background: none;
  border: none;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--naranja);
  transition: color .15s ease;
}
.toggle-header:hover { color: var(--naranja-claro); }

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #E9EEF3;
  /* Azul marino sólido con un degradado casi imperceptible */
  background-color: #0E2137;
  background-image: linear-gradient(180deg, #12283f 0%, #0E2137 100%);
}
.footer-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 32px 0 28px;
}
.footer-col { display: flex; flex-direction: column; justify-content: center; }
.footer-brand-col { align-items: flex-start; }
.footer-brand { margin-bottom: 12px; display: inline-flex; }
.footer-logo { width: 210px; height: auto; }
.footer-tagline {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(233, 238, 243, 0.72);
  margin: 4px 0 0;
  max-width: 240px;
}
.footer-contact { align-items: flex-start; }
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E9EEF3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.footer-mail:hover { color: #fff; }
.footer-mail-icon { color: var(--naranja); flex-shrink: 0; }
.footer-location {
  font-size: 13px;
  color: rgba(233, 238, 243, 0.6);
  margin: 8px 0 0;
}
.footer-nav { align-items: flex-start; }
.footer-nav-title {
  color: var(--naranja);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-nav a {
  color: rgba(233, 238, 243, 0.78);
  font-size: 14px;
  text-decoration: none;
  padding: 5px 0;
  transition: color var(--ease) ease;
}
.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--naranja); }
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 0;
}
.footer-copy {
  text-align: center;
  padding: 20px 0 24px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(233, 238, 243, 0.55);
  margin: 0;
}

/* ===== FRANJA DE VALOR (dentro de Proceso) ===== */
.value-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 40px;
}
.value-strip-inner span {
  color: var(--azul-oscuro);
  font-size: 14px;
  font-weight: 600;
}
.value-strip-inner .value-sep {
  color: var(--naranja);
  font-weight: 700;
  font-size: 16px;
}

/* ===== TALENTO ===== */
.talent {
  position: relative;
  overflow: hidden;
  padding: var(--section-spacing) 0 64px;
  background:
    radial-gradient(circle at 15% 25%, rgba(242, 140, 30, 0.14) 0%, rgba(242, 140, 30, 0) 45%),
    radial-gradient(circle at 85% 80%, rgba(242, 140, 30, 0.16) 0%, rgba(242, 140, 30, 0) 45%),
    linear-gradient(180deg, #f4f8fc 0%, #eaf1f8 100%);
  text-align: center;
}
.talent-inner {
  position: relative;
  z-index: 3;
  max-width: 620px;
}
.talent-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 18px;
}
.talent-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto-suave);
  margin-bottom: 30px;
}
.talent-avatar {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 40, 63, 0.14);
  border: 4px solid #fff;
}
.talent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.talent-avatar--1 { width: 96px; height: 96px; top: 20%; left: 18%; }
.talent-avatar--2 { width: 120px; height: 120px; top: 46%; left: 8%; }
.talent-avatar--3 { width: 108px; height: 108px; top: 22%; right: 16%; }
.talent-avatar--4 { width: 88px; height: 88px; top: 55%; right: 9%; }
.talent-dot {
  position: absolute;
  z-index: 2;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--naranja);
}
.talent-dot--a { top: 30%; left: 30%; }
.talent-dot--b { top: 62%; left: 22%; }
.talent-dot--c { top: 28%; right: 30%; }
.talent-dot--d { top: 66%; right: 24%; }

/* ===== PROCESO ===== */
.process {
  padding: var(--section-spacing) 0;
  background: var(--color-surface);
  text-align: center;
}
.process-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 12px;
}
.process-eyebrow {
  font-size: 1.1rem;
  color: var(--naranja);
  font-weight: 700;
  margin-bottom: 16px;
}
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 44px;
}
/* Línea horizontal punteada que conecta los números (desktop) */
.process-grid::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  border-top: 2px dashed rgba(22, 138, 203, 0.18);
  z-index: 0;
}
.process-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-bottom: 4px solid var(--color-accent);
  border-radius: var(--radius-card);
  padding: 34px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}
/* Número en círculo naranja por encima de la tarjeta */
.process-num {
  position: absolute;
  top: -66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 37px; height: 37px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #12466E;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 0 7px rgba(18, 70, 110, 0.12);
}
/* Línea vertical que baja del número a la tarjeta */
.process-connector {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 22px;
  background: rgba(18, 70, 110, 0.45);
  z-index: 2;
}
/* Ícono naranja directamente sobre el fondo blanco de la tarjeta */
.process-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  background: transparent;
  color: var(--naranja);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.process-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.process-card-title {
  color: var(--color-primary);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-title);
  margin-bottom: 12px;
  min-height: 2.4em;
  display: flex;
  align-items: center;
}
.process-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--naranja);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.process-card-text {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 104px; left: 0; right: 0;
    background: #fff;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--sombra);
    border-top: 1px solid var(--color-border);
  }
  .nav.open a { padding: 12px 4px; min-height: 44px; display: flex; align-items: center; }
  .hero { flex-direction: column; min-height: 0; }
  .hero-bg { position: relative; height: 260px; }
  .hero-curve { display: none; }
  .hero-inner { padding: 40px 24px; background: #fff; }
  .hero-content { max-width: 100%; }
  .hero-content h1 { white-space: normal; }
  .about-grid { grid-template-columns: 1fr; }
  .about-text { max-width: 100%; padding: 40px 24px; order: 1; }
  .about-image { order: 2; min-height: 280px; }
  .about-image img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 20%);
  }
  .cards { grid-template-columns: 1fr; gap: 22px; }
  .talent { padding: 56px 0 48px; }
  .talent-avatar, .talent-dot { display: none; }
  .process { padding: 56px 0; }
  .process-title { margin-bottom: 34px; }
  .process-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 24px; }
  .process-grid::before { display: none; }
  .process-connector { display: none; }
  .process-card { text-align: center; align-items: center; }
  .value-strip-inner { flex-direction: column; gap: 8px; }
  .value-strip-inner .value-sep { display: none; }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
    padding: 40px 24px 30px;
  }
  .footer-brand-col { align-items: center; }
  .footer-logo { width: 190px; }
  .footer-tagline { max-width: 100%; margin-top: 6px; }
  .footer-contact { align-items: center; }
  .footer-nav { align-items: center; }
}

@media (min-width: 861px) and (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 64px; }
  .process-grid::before { display: none; }
}

@media (max-width: 480px) {
  .hero-content h1 { white-space: normal; }
}
