/* =========================================================
   Ajustes por sección de la landing (títulos, pasos, arcos,
   perfiles, preguntas frecuentes, hero). Se carga después de
   styles.css y map.css.
   ========================================================= */
.hero__title { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.05; }
.h2 { font-size: clamp(1.45rem, 2.8vw, 2.35rem); }
.h2--xl { font-size: clamp(1.7rem, 3.8vw, 3.1rem); }
/* Por qué Conf.ia: arcos */
.sky6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.3vw, 18px); align-items: end; }
.s6 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: clamp(44px, 4.6vw, 64px) clamp(12px, 1.2vw, 18px) 1.5rem; border-radius: 999px 999px 0 0; color: var(--ink); }
.s6__n { font: 400 .8rem/1 var(--f-display); opacity: .65; }
.s6__t { font: 400 clamp(.95rem, 1.2vw, 1.12rem)/1.22 var(--f-display); text-wrap: balance; }
.s6__p { font-size: .86rem; line-height: 1.45; color: rgba(11, 10, 14, .78); }
.s6--1 { min-height: 360px; background: var(--peri); }
.s6--2 { min-height: 420px; background: var(--gold); }
.s6--3 { min-height: 480px; background: var(--pink); }
.s6--4 { min-height: 480px; background: var(--cream); }
.s6--5 { min-height: 420px; background: var(--grad); }
.s6--6 { min-height: 360px; background: var(--peri); }
.js-reveal .sky6 .reveal:nth-child(2) { transition-delay: .08s; }
.js-reveal .sky6 .reveal:nth-child(3) { transition-delay: .16s; }
.js-reveal .sky6 .reveal:nth-child(4) { transition-delay: .24s; }
.js-reveal .sky6 .reveal:nth-child(5) { transition-delay: .32s; }
.js-reveal .sky6 .reveal:nth-child(6) { transition-delay: .4s; }
@media (max-width: 1099px) {
  .sky6 { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .s6 { min-height: 340px !important; }
}
@media (max-width: 640px) {
  .sky6 { grid-template-columns: 1fr; gap: 12px; }
  .s6 { min-height: 0 !important; align-items: flex-start; text-align: left; padding: 1.5rem 1.6rem; border-radius: 24px; }
}
/* Cómo funciona: 5 pasos en una fila */
.step--cream { --c: var(--cream); --tint: var(--gold); }
@media (min-width: 721px) {
  .steps--5 { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
  .steps--5 .step:nth-child(2) { margin-top: 0; }
  .steps--5 .step__n { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
  .steps--5 .step__k { margin: .7rem 0 .55rem; font-size: .72rem; }
  .steps--5 .step__t { font-size: clamp(.98rem, 1.15vw, 1.08rem); }
  .steps--5 .step__body p:last-child { font-size: .9rem; line-height: 1.5; }
  .steps--5 .step__body { padding-top: 1.1rem; }
}
@media (min-width: 1100px) {
  .steps--5 { grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.4vw, 22px); }
  .steps--5 .step:nth-child(even) { margin-top: clamp(0px, 3vw, 44px); }
}
/* Hero: cortes de línea fijos en desktop */
@media (min-width: 1100px) {
  .hero__copy { max-width: 900px; }
  .hero__title { font-size: clamp(3.4rem, 4.6vw, 4.4rem); }
  .hero__title .hl { display: block; white-space: nowrap; }
  .hero__text { max-width: 56ch; }
}
/* Hero con título largo (página principal) */
.hero--long .hero__title { font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.08; max-width: 20ch; }
.hero--long .hero__ctas { margin-top: 2.5rem; }
/* Mapa: sin logo en el centro (solo v2) */
.mdm__center[data-mode="idle"] img { display: none; }
/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--line-dark); }
.faq__item { border-bottom: 1px solid var(--line-dark); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font: 400 clamp(1rem, 1.4vw, 1.2rem)/1.3 var(--f-display); transition: color .2s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold); }
.faq__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-dark); transition: transform .3s var(--ease), background .3s, border-color .3s; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq__item[open] .faq__icon { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p { padding: 0 3.5rem 1.5rem 0; color: rgba(250, 249, 247, .75); max-width: 60ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__head { position: static; } .faq__item p { padding-right: 0; } }
/* Para quién: perfiles */
.roles { margin-top: 2.25rem; display: grid; }
.role { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line-light); }
.role:last-child { border-bottom: 1px solid var(--line-light); }
.role__n { min-width: 2.2rem; font: 400 1.15rem/1.25 var(--f-display); color: var(--ink); }
.role--pink { --c: var(--pink); } .role--gold { --c: var(--gold); } .role--peri { --c: var(--peri); }
.role__t { font: 400 1.15rem/1.25 var(--f-display); margin-bottom: .45rem; }
.role p { color: var(--ink-soft); max-width: 52ch; }
/* Todo conectado sobre fondo oscuro */
@media (max-width: 560px) { .role { gap: 1rem; } }

/* eyebrows sin guion */
.page-v2 .eyebrow::before { display: none; }
/* ---------- Degradados del hero (página principal) ----------
   Se elige con una clase en <body>: hero-g1, hero-g2…          */

/* Versión 1: lineal, rosa arriba-derecha, lavanda al centro, dorado abajo-izquierda */
.hero-g1 .hero__media > img { filter: saturate(1.25); }
.hero-g1 .hero__tint {
  background:
    linear-gradient(90deg, rgba(11, 10, 14, .5) 0%, rgba(11, 10, 14, .12) 62%, rgba(11, 10, 14, 0) 100%),
    linear-gradient(200deg, rgba(236, 103, 136, .92) 0%, rgba(140, 153, 230, .52) 55%, rgba(243, 191, 101, .82) 100%);
}

/* Versión 2: tres degradados radiales visibles, sin cubrir toda la foto */
.hero-g2 .hero__media > img { filter: saturate(1.1); }
.hero-g2 .hero__tint {
  background:
    radial-gradient(ellipse 38% 48% at 14% 10%, rgba(243, 191, 101, .62) 0%, rgba(243, 191, 101, .3) 40%, rgba(243, 191, 101, 0) 100%),
    radial-gradient(ellipse 42% 62% at 84% 50%, rgba(236, 103, 136, .78) 0%, rgba(236, 103, 136, .45) 40%, rgba(236, 103, 136, 0) 100%),
    radial-gradient(ellipse 46% 54% at 20% 98%, rgba(140, 153, 230, .9) 0%, rgba(140, 153, 230, .45) 42%, rgba(140, 153, 230, 0) 100%),
    radial-gradient(ellipse 54% 48% at 28% 66%, rgba(11, 10, 14, .62) 0%, rgba(11, 10, 14, .38) 45%, rgba(11, 10, 14, 0) 100%),
    linear-gradient(180deg, rgba(11, 10, 14, .62) 0%, rgba(11, 10, 14, .3) 11%, rgba(11, 10, 14, 0) 22%);
}
.hero-g2 .hero__copy { text-shadow: 0 2px 28px rgba(11, 10, 14, .35); }

/* más peso en el menú y en el botón "Cómo funciona" */
.page-v2 .nav__links li a { font-weight: 600; }
@media (min-width: 861px) {
  .page-v2 .nav__links li a { font-size: 1.05rem; white-space: nowrap; }
  .page-v2 .nav__cta { white-space: nowrap; }
}
@media (min-width: 861px) and (max-width: 1099px) {
  .page-v2 .nav__bar { gap: 1.25rem; }
  .page-v2 .nav__logo img { width: 104px; }
  .page-v2 .nav__links { gap: 1.25rem; }
  .page-v2 .nav__links ul { gap: 1rem; }
  .page-v2 .nav__links li a { font-size: .9rem; }
  .page-v2 .nav__cta { padding: .55rem 1rem; font-size: .88rem; }
}
.page-v2 .hero__ctas .btn--ghost { font-weight: 700; }
.page-v2 .hero .eyebrow { font-size: .95rem; }

/* fotos de los pasos con degradado radial del color de su número (04 en amarillo), cubriendo toda la foto */
.page-v2 .step { --rc: var(--c); }
.page-v2 .step--cream { --rc: var(--gold); }
.page-v2 .step__media.tint::after {
  background: radial-gradient(circle at 25% 88%,
    color-mix(in srgb, var(--rc) 52%, transparent) 0%,
    color-mix(in srgb, var(--rc) 30%, transparent) 50%,
    color-mix(in srgb, var(--rc) 15%, transparent) 100%);
  mix-blend-mode: normal;
}
.page-v2 .step--gold .step__media.tint::after,
.page-v2 .step--cream .step__media.tint::after {
  background: radial-gradient(circle at 25% 88%,
    color-mix(in srgb, var(--gold) 62%, transparent) 0%,
    color-mix(in srgb, var(--gold) 38%, transparent) 50%,
    color-mix(in srgb, var(--gold) 20%, transparent) 100%);
}

/* =========================================================
   ¿Por qué Conf.ia? — dos estados de arcos con transición por scroll
   (lógica en js/why.js)
   Sin JS o con movimiento reducido: los dos estados se muestran uno debajo del otro.
   ========================================================= */
.why { position: relative; background: var(--ink); color: var(--cream); }
.why__inner {
  display: grid; grid-template-columns: 100%;
  grid-template-areas: "eb" "ha" "aa" "hb" "ab";
  padding-top: var(--section-y); padding-bottom: var(--section-y);
}
.why__eb { grid-area: eb; margin-bottom: 1.4rem; font-size: .95rem; }
.why__h {
  margin: 0; max-width: 21ch;
  font: 400 clamp(1.45rem, min(2.6vw, 4.8svh), 2.5rem)/1.12 var(--f-display); letter-spacing: -.02em;
}
.why__h--a { grid-area: ha; }
.why__h--b { grid-area: hb; margin-top: clamp(3rem, 8vw, 6rem); }
.why__arcs--a { grid-area: aa; }
.why__arcs--b { grid-area: ab; }

/* Arcos */
.why__arcs {
  list-style: none; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: end;
  padding-left: 10%; margin-top: 2.5rem;
}
.why__arc {
  border-radius: 999px 999px 0 0; color: var(--ink); text-align: center;
  padding: clamp(2.6rem, 6vw, 5.4rem) clamp(1.4rem, 3.4vw, 3.6rem) 2.5rem;
  min-height: calc(320px + (1 - var(--r)) * 140px);
}
.why__arc--peri { background: var(--peri); }
.why__arc--pink { background: var(--pink); }
.why__arc--gold { background: var(--gold); }
.why__n, .why__t { display: block; font: 400 clamp(.95rem, min(1.55vw, 2.8svh), 1.45rem)/1.15 var(--f-display); letter-spacing: -.01em; margin: 0; }
.why__t { text-wrap: balance; }
.why__p { margin: 1.1em auto 0; max-width: 24ch; font-size: clamp(.86rem, min(1.12vw, 2.1svh), 1.1rem); line-height: 1.38; text-wrap: pretty; }

/* ---- Modo animado: escena fija mientras avanza el scroll ---- */
.why--anim { height: 260svh; }
.why--anim .why__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.why--anim .why__inner {
  position: relative; height: 100%;
  grid-template-areas: "eb" "h"; grid-template-rows: auto auto; align-content: start;
  padding-top: clamp(84px, 12svh, 132px); padding-bottom: 0;
}
.why--anim .why__h { grid-area: h; margin-top: 0; will-change: transform, opacity; }
.why--anim .why__h--b { opacity: 0; }
.why--anim .why__arcs {
  --spread: clamp(64px, 17svh, 190px);
  position: absolute; inset: 0; margin: 0;
  padding-left: calc(var(--gutter) * .8 + 10%); padding-right: var(--gutter);
  align-items: start; pointer-events: none;
}
.why--anim .why__arc {
  min-height: 0; height: 100svh;
  margin-top: calc(var(--hh, 40svh) + 18px + var(--r) * var(--spread));
  will-change: transform; pointer-events: auto;
}
.why--anim .why__arcs--b .why__arc { transform: translateY(105%); }

@media (max-width: 1099px) {
  .why__arcs { padding-left: 0; }
  .why--anim .why__arcs { padding-left: var(--gutter); }
  .why__h { max-width: 24ch; }
}

/* Mobile: los arcos se apilan como escalones de ancho completo */
@media (max-width: 760px) {
  .why__h { font-size: clamp(1.2rem, 5.6vw, 1.55rem); }
  .why__arcs { grid-template-columns: 1fr; gap: 12px; padding-left: 0; }
  .why__arc { min-height: 0; border-radius: 50% 50% 0 0 / 72px 72px 0 0; padding: 2.1rem 1.4rem 1.6rem; border-radius: 50% 50% 24px 24px / 72px 72px 24px 24px; }
  .why__n, .why__t { font-size: 1.08rem; }
  .why__p { font-size: .9rem; max-width: 34ch; margin-top: .55em; }

  .why--anim { height: 240svh; }
  .why--anim .why__inner { padding-top: 92px; }
  .why--anim .why__arcs { display: block; padding: 0; }
  .why--anim .why__arc {
    --step: calc((100svh - var(--hh, 40svh) - 14px) / 3.05);
    position: absolute; left: var(--gutter); right: var(--gutter);
    top: calc(var(--hh, 40svh) + 14px + var(--i) * var(--step));
    margin: 0; height: 100svh; border-radius: 50% 50% 0 0 / 72px 72px 0 0;
    padding-top: 1.7rem;
  }
}

/* foto del cierre con radiales de color (cálidos) y el centro ligeramente oscurecido */
.page-v2 .cta__media img { filter: saturate(1.05) sepia(.18); }
.page-v2 .cta__tint {
  background:
    radial-gradient(ellipse 50% 42% at 50% 52%, rgba(11, 10, 14, .42) 0%, rgba(11, 10, 14, .24) 50%, rgba(11, 10, 14, 0) 100%),
    radial-gradient(ellipse 48% 62% at 10% 12%, rgba(243, 191, 101, .9) 0%, rgba(243, 191, 101, .5) 42%, rgba(243, 191, 101, 0) 100%),
    radial-gradient(ellipse 50% 70% at 92% 46%, rgba(236, 103, 136, .9) 0%, rgba(236, 103, 136, .55) 42%, rgba(236, 103, 136, 0) 100%),
    radial-gradient(ellipse 40% 48% at 18% 100%, rgba(140, 153, 230, .7) 0%, rgba(140, 153, 230, .3) 42%, rgba(140, 153, 230, 0) 100%),
    linear-gradient(200deg, rgba(236, 103, 136, .3), rgba(243, 191, 101, .3));
}
.page-v2 .cta__inner { text-shadow: 0 2px 28px rgba(11, 10, 14, .3); }

/* puntos de "¿Qué es Conf.ia?" más grandes */
.page-v2 #que-es .ticks { gap: 1.2rem; margin-top: 2.25rem; max-width: 60ch; }
.page-v2 #que-es .ticks li { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.5; }
.page-v2 #que-es .ticks li::before { top: .62em; }

/* eyebrows de sección al mismo tamaño que el de "¿Por qué Conf.ia?" */
.page-v2 #que-es .eyebrow,
.page-v2 #como-funciona .eyebrow,
.page-v2 #areas .eyebrow,
.page-v2 #para-quien .eyebrow { font-size: .95rem; }
