/*
 * Sections, in page order. Class names match the prototype 1:1 so a diff
 * against prototype/landing.html stays readable.
 */
/* ============================================================
   HEADER
   ============================================================ */
.site-head{padding-block:22px}
.site-head .wrap{display:flex;align-items:center;gap:20px;justify-content:space-between}
.brand{font-family:var(--f-display);font-size:clamp(19px,2.4vw,23px);font-weight:800;letter-spacing:-.03em;white-space:nowrap}
.head-tag{font-size:15px;font-weight:500;color:var(--ink-mute)}

/* ============================================================
   HERO
   ============================================================ */
.hero{padding-top:clamp(24px,3vw,40px)}
.hero-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(32px,4vw,56px);align-items:center}
.hero-copy{display:flex;flex-direction:column;gap:clamp(22px,3vw,30px);align-items:flex-start}
.hero h1 em{font-style:normal;color:var(--coral)}
.hero-cta{display:flex;flex-wrap:wrap;align-items:center;gap:18px}
.cta-note{font-size:15px;font-weight:600}

/* Hilo de WhatsApp — la ilustración */
.thread{
  background:var(--sand);
  border-radius:36px;
  padding:clamp(20px,3vw,28px);
  display:flex;flex-direction:column;gap:12px;
}
.thread-head{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;padding-bottom:4px}
.thread-head::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--coral);flex:none}
.bub{padding:16px 22px;font-size:clamp(16px,1.9vw,19px);line-height:1.38;font-weight:500}
.bub--in{align-self:flex-start;max-width:86%;background:var(--white);border-radius:var(--r-in)}
.bub--out{align-self:flex-end;max-width:84%;background:var(--navy);color:var(--cream);border-radius:var(--r-out)}
.bub--hot{background:var(--ochre)}
.dots{align-self:flex-start;background:var(--white);border-radius:var(--r-in);padding:20px 22px;display:flex;gap:7px}
.dots i{width:9px;height:9px;border-radius:50%;background:#A99C84;animation:pulse 1.4s infinite ease-in-out}
.dots i:nth-child(2){animation-delay:.2s}
.dots i:nth-child(3){animation-delay:.4s}
@keyframes pulse{0%,60%,100%{opacity:.35}30%{opacity:1}}
.thread-split{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:700;margin-block:10px}
.thread-split::before,.thread-split::after{content:"";flex:1;height:1.5px;background:var(--navy);opacity:.35}
.thread-foot{font-size:12px;color:var(--ink-mute);padding-top:2px}

/* Identidad */
.ident{display:flex;gap:20px;align-items:flex-start;margin-top:clamp(40px,5vw,60px)}
.ident-photo{
  width:92px;height:92px;flex:none;border-radius:50%;
  background:var(--sand);border:2px solid var(--navy);
  display:flex;align-items:center;justify-content:center;
  font-size:11px;text-align:center;line-height:1.3;padding:8px;color:var(--ink-mute);
}
img.ident-photo{padding:0;object-fit:cover}
.ident-photo--initials{font-family:var(--f-display);font-size:30px;font-weight:800;letter-spacing:-.03em;color:var(--navy)}
.ident-name{font-family:var(--f-display);font-size:clamp(20px,2.4vw,24px);font-weight:800;letter-spacing:-.025em}
.ident-role{font-size:15px;font-weight:500;color:var(--ink-mute);margin-top:2px}
.pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.pill{background:var(--sand);border-radius:var(--r-chip);padding:11px 18px;font-size:15px;line-height:1.4}

/* ============================================================
   PROBLEMA (navy)
   ============================================================ */
.problema{background:var(--navy);color:var(--cream)}
.problema-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,5vw,64px);align-items:start}
.problema h2{max-width:14ch}
.problema .kicker{margin-bottom:18px}
.sympt{display:flex;flex-direction:column;gap:14px}
.sympt li{background:var(--cream);color:var(--navy);border-radius:var(--r-in);padding:18px 26px;font-size:clamp(16px,2vw,20px);line-height:1.38;font-weight:500;align-self:flex-start}
.sympt li:nth-child(1){max-width:94%}
.sympt li:nth-child(2){max-width:82%}
.sympt li:nth-child(3){max-width:88%}
.sympt li:nth-child(4){max-width:85%}
.sympt li:nth-child(5){max-width:92%}
.sympt-close{
  align-self:flex-end;max-width:94%;margin-top:22px;
  background:var(--ochre);color:var(--navy);border-radius:var(--r-out);
  padding:26px 32px;font-family:var(--f-display);
  font-size:clamp(21px,2.9vw,30px);line-height:1.18;font-weight:800;letter-spacing:-.025em;
}
.sympt-close em{font-style:normal;color:var(--coral-ink)}
/* La oración que lleva al taller va en su propia línea: el cierre entero ya es 800. */
.sympt-close strong{display:block;margin-top:.5em}

/* ============================================================
   TALLER (sand)
   ============================================================ */
.taller{background:var(--sand)}
.taller .h2-sec{max-width:18ch}
.taller-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:clamp(28px,4vw,40px)}
.taller-item{
  background:var(--white);border-radius:var(--r-card);padding:clamp(24px,2.6vw,32px);
  font-family:var(--f-display);font-size:clamp(18px,2vw,22px);font-weight:700;letter-spacing:-.02em;line-height:1.25;
}
.taller-cta{margin-top:clamp(28px,4vw,40px)}

/* ============================================================
   PROCESO — cascada escalonada
   ============================================================ */
.pasos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:clamp(36px,5vw,56px);align-items:start}
.paso{border-radius:var(--r-card);padding:clamp(26px,2.6vw,32px) clamp(22px,2.4vw,30px) clamp(30px,3vw,36px)}
.paso h3{margin-bottom:12px}
.paso p{font-size:16px;line-height:1.55}
.paso:nth-child(1){background:var(--white)}
.paso:nth-child(2){background:var(--sand);margin-top:44px}
.paso:nth-child(3){background:var(--ochre);margin-top:88px}
.paso:nth-child(4){background:var(--navy);color:var(--cream);margin-top:132px}
.principio{
  margin:clamp(32px,4vw,44px) 0 0 auto;max-width:800px;
  background:var(--navy);color:var(--cream);border-radius:var(--r-out);
  padding:clamp(28px,3.4vw,38px) clamp(30px,3.6vw,44px);
  font-family:var(--f-display);font-size:clamp(20px,2.8vw,32px);
  line-height:1.2;font-weight:700;letter-spacing:-.025em;
}

/* ============================================================
   EVIDENCIA (sand)
   ============================================================ */
.evidencia{background:var(--sand)}
.casos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:clamp(36px,5vw,52px)}
.caso{border-radius:var(--r-card);padding:clamp(28px,3.2vw,42px) clamp(26px,3vw,42px) clamp(26px,3vw,36px);display:flex;flex-direction:column}
.caso--a{background:var(--white)}
.caso--b{background:var(--navy);color:var(--cream);border-radius:32px 32px 10px 32px}
.caso-who{font-size:14px;font-weight:700;line-height:1.4}
.caso-fig{font-family:var(--f-display);font-size:clamp(56px,9vw,124px);line-height:.92;font-weight:800;letter-spacing:-.055em;margin:14px 0 20px}
.caso--a .caso-fig{color:var(--coral)}
.caso--b .caso-fig{color:var(--ochre)}
/*
 * Body copy only. The prototype had a bare `.caso p` here, which at (0,1,1)
 * outranked .caso-who and .caso-fig (both <p>, both 0,1,0) and shrank the
 * 124px figures to 16.5px.
 */
.caso p:not(.caso-who,.caso-fig){font-size:16.5px;line-height:1.55}
.caso-metric{margin-top:auto;padding-top:22px}
.caso-metric span{display:block;padding-top:14px;border-top:1.5px solid currentColor;font-size:14px;font-weight:600}
.disclaimer{margin-top:16px;font-size:14px;color:var(--ink-mute)}
.creds{margin-top:clamp(28px,3.4vw,38px);display:flex;flex-wrap:wrap;gap:10px}
.creds .pill{background:var(--cream);font-size:15.5px}

/* ============================================================
   DIFERENCIADORES
   ============================================================ */
.criterio-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:clamp(36px,5vw,52px)}
.criterio{background:var(--white);border:2px solid var(--navy);border-radius:var(--r-card);padding:clamp(24px,2.6vw,32px)}
.criterio:first-child{grid-column:1 / -1;background:var(--ochre);border-color:var(--ochre)}
.criterio strong{display:block;font-family:var(--f-display);font-size:clamp(18px,2.1vw,23px);font-weight:800;letter-spacing:-.02em;line-height:1.14;margin-bottom:10px}
.criterio span{font-size:16px;line-height:1.55;display:block}

/* ============================================================
   OBJECIONES — preguntas y respuestas como conversación
   ============================================================ */
.faq{background:var(--sand)}
.faq-thread{display:flex;flex-direction:column;gap:10px;margin-top:clamp(36px,5vw,52px)}
.faq-q{
  align-self:flex-end;max-width:min(560px,86%);
  background:var(--ochre);color:var(--navy);border-radius:var(--r-out);
  padding:16px 26px;font-family:var(--f-display);
  font-size:clamp(17px,2vw,21px);font-weight:700;letter-spacing:-.02em;line-height:1.2;
}
.faq-a{
  align-self:flex-start;max-width:min(620px,92%);
  background:var(--white);border-radius:var(--r-in);
  padding:18px 26px;font-size:16.5px;line-height:1.55;
  margin-bottom:18px;
}
.faq-a:last-child{margin-bottom:0}

/* Titular de sección, debajo del kicker. El ancho se ajusta por sección
   para que ninguna línea quede huérfana. */
.h2-sec{margin-top:18px}
.proceso .h2-sec{max-width:18ch}
.proceso .lead,.taller .lead{margin-top:24px}
.evidencia .h2-sec{max-width:17ch}

/* ============================================================
   CTA + FORMULARIO (navy)
   ============================================================ */
.cta{background:var(--navy);color:var(--cream);scroll-margin-top:20px}
.cta-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(36px,5vw,64px);align-items:start}
.cta h2{font-size:clamp(34px,6vw,76px)}
.cta .lead{color:#E8E0CE;margin-top:24px}
.promesa{margin-top:28px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.promesa li{background:var(--navy-2);border-radius:var(--r-in);padding:14px 22px;font-size:16px;line-height:1.45}

/*
 * Form — Formidable's markup, brought onto the prototype.
 *
 * Same approach as appreciation-at-work: Formidable's stylesheet stays
 * enqueued (it hides the honeypot and the screen-reader legend), and its look
 * is changed by re-declaring its own custom properties — .cta-form
 * .with_frm_style is (0,2,0), one class above the plugin's (0,1,0).
 *
 * The second block overrides selectors the properties do not reach: the
 * per-Style CSS hardcodes the submit button at (0,3,1), so those rules are
 * prefixed .cta-form .frm_forms.with_frm_style to land at (0,4,1).
 */
.cta-form .with_frm_style{
  --font:var(--f-body);
  --font-size:14.5px;
  --label-color:var(--navy);
  --weight:700;
  --label-padding:0 0 7px 0;

  --field-font-size:16.5px;
  --field-height:52px;
  --line-height:1.3;
  --field-pad:0 16px;
  --field-margin:18px;
  --text-color:var(--navy);
  --bg-color:var(--white);
  --bg-color-active:var(--white);
  --text-color-disabled:#6E665A;
  --border-color:var(--navy);
  --border-color-active:var(--navy);
  --field-border-width:1.5px;
  --border-radius:16px;
  --box-shadow:none;

  --required-color:var(--coral);
  --border-color-error:var(--coral);
  --error-text:var(--coral-ink);
  --error-font-size:14px;

  --fieldset:0;
  --fieldset-padding:0;
  --fieldset-bg-color:transparent;
}

/* The cream card the prototype draws around the form. */
.cta-form .frm_forms.with_frm_style{
  background:var(--cream);color:var(--navy);
  border-radius:var(--r-card);padding:clamp(24px,3vw,38px);
  margin:0;max-width:none;
}
.cta-form .frm_forms.with_frm_style .frm_fields_container{column-gap:18px;row-gap:0}
.cta-form .frm_forms.with_frm_style .frm_primary_label{font-size:14.5px;font-weight:700;line-height:1.4}
.cta-form .frm_forms.with_frm_style input[type=text],
.cta-form .frm_forms.with_frm_style input[type=email],
.cta-form .frm_forms.with_frm_style input[type=tel],
.cta-form .frm_forms.with_frm_style select{
  width:100%;min-height:52px;font-family:var(--f-body);font-size:16.5px;color:var(--navy);
}
.cta-form .frm_forms.with_frm_style input::placeholder{color:#6E665A}
.cta-form .frm_forms.with_frm_style select{
  appearance:none;padding-right:44px;
  background-image:linear-gradient(45deg,transparent 50%,var(--navy) 50%),linear-gradient(135deg,var(--navy) 50%,transparent 50%);
  background-position:calc(100% - 22px) 55%,calc(100% - 16px) 55%;
  background-size:6px 6px,6px 6px;background-repeat:no-repeat;
}
.cta-form .frm_forms.with_frm_style input:focus,
.cta-form .frm_forms.with_frm_style select:focus{outline:3px solid var(--coral);outline-offset:1px;box-shadow:none}

/* Radios as chips */
.cta-form .frm_forms.with_frm_style .ap-chips .frm_opt_container{display:flex;flex-wrap:wrap;gap:8px}
.cta-form .frm_forms.with_frm_style .ap-chips .frm_radio{margin:0;display:block}
.cta-form .frm_forms.with_frm_style .ap-chips .frm_radio label{
  display:inline-flex;align-items:center;min-height:48px;padding:8px 20px;margin:0;line-height:1.3;
  background:var(--white);border:1.5px solid var(--navy);border-radius:var(--r-chip);
  font-size:15.5px;font-weight:500;color:var(--navy);cursor:pointer;
  transition:background .15s ease,color .15s ease;
}
.cta-form .frm_forms.with_frm_style .ap-chips input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.cta-form .frm_forms.with_frm_style .ap-chips label:has(input:checked){background:var(--navy);color:var(--cream)}
.cta-form .frm_forms.with_frm_style .ap-chips label:has(input:focus-visible){outline:3px solid var(--coral);outline-offset:2px}

/*
 * Formidable's honeypot. Its own stylesheet hides it on the front end, but the
 * block editor canvas and inserter preview do not load that stylesheet, and
 * the field then shows as "If you are human, leave this field blank."
 */
.cta-form .frm_forms [id^="frm_field_"]:has(> .frm_verify){display:none}

.cta-form .frm_forms.with_frm_style .form-foot p{font-size:14px;line-height:1.5;color:var(--ink-mute);margin:0}
/* La salida al diagnóstico, debajo del botón. */
.cta-form .frm_forms.with_frm_style .form-foot--after{margin-top:16px}
.cta-form .frm_forms.with_frm_style .form-foot a{color:var(--navy);font-weight:600;text-underline-offset:3px}

.cta-form .frm_forms.with_frm_style .frm_submit{margin:0}
.cta-form .frm_forms.with_frm_style .frm_submit button{
  width:100%;min-height:56px;margin:0;padding:16px 32px;
  background:var(--coral);color:#fff;border:0;border-radius:var(--r-btn);box-shadow:none;
  font-family:var(--f-display);font-size:clamp(16px,1.9vw,18px);font-weight:700;letter-spacing:-.01em;
  cursor:pointer;transition:background .18s ease,transform .18s ease;
}
.cta-form .frm_forms.with_frm_style .frm_submit button:hover,
.cta-form .frm_forms.with_frm_style .frm_submit button:focus-visible{background:var(--coral-ink);color:#fff;transform:translateY(-2px)}

.cta-form .frm_forms.with_frm_style .frm_error{font-size:14px;font-weight:600;color:var(--coral-ink);margin-top:4px}
.cta-form .frm_forms.with_frm_style .frm_blank_field input,
.cta-form .frm_forms.with_frm_style .frm_blank_field select{border-color:var(--coral)}
.cta-form .frm_forms.with_frm_style .frm_error_style{
  background:var(--ochre);color:var(--navy);border:0;border-radius:var(--r-chip);
  padding:14px 20px;font-size:15px;font-weight:600;margin:0 0 18px;
}

/* After submit Formidable replaces the form with this message. */
.cta-form .frm_forms.with_frm_style .frm_message{
  background:transparent;border:0;padding:0;margin:0;color:var(--navy);
  font-family:var(--f-display);font-size:clamp(20px,2.4vw,26px);font-weight:700;letter-spacing:-.02em;line-height:1.25;
}
.cta-form .frm_forms.with_frm_style .frm_message p{margin:0}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot{background:var(--navy);color:var(--ink-mute-dark);padding-bottom:40px}
.site-foot .wrap{border-top:1px solid var(--navy-line);padding-top:22px;display:flex;flex-wrap:wrap;gap:10px 28px;justify-content:space-between;font-size:14px}

/* ============================================================
   ANIMACIONES DE ENTRADA
   Reglas: solo opacity y transform (las compone la GPU, no
   provocan reflow), nada se desplaza más de 16px, y todo
   depende de la clase .js que agrega el script del <head> —
   si el JS no corre, la página se ve completa igual.
   ============================================================ */
.js .hero-copy > *,
.js .thread > *,
.js .sympt li,
.js .sympt-close,
.js .paso,
.js .caso,
.js .taller-item,
.js .principio,
.js .faq-thread > *{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s cubic-bezier(.22,.68,.28,1),transform .5s cubic-bezier(.22,.68,.28,1);
  transition-delay:var(--d,0ms);
}

/* Las burbujas aterrizan desde su propia cola, como un mensaje que llega */
.js .thread > .bub,
.js .thread > .dots,
.js .sympt li,
.js .sympt-close,
.js .faq-q,
.js .faq-a{
  transform:translateY(12px) scale(.965);
  transition-duration:.42s;
}
.js .bub--in,.js .dots,.js .sympt li,.js .faq-a{transform-origin:0 100%}
.js .bub--out,.js .sympt-close,.js .faq-q{transform-origin:100% 100%}

.js .is-in{opacity:1 !important;transform:none !important}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1040px){
  .hero-grid{grid-template-columns:1fr;gap:36px}
  .problema-grid{grid-template-columns:1fr;gap:28px}
  .cta-grid{grid-template-columns:1fr;gap:36px}
  .pasos{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .paso:nth-child(2){margin-top:0}
  .paso:nth-child(3){margin-top:0}
  .paso:nth-child(4){margin-top:0}
  .principio{margin-inline:0;max-width:none}
  .problema h2{max-width:none}
}
@media (max-width:820px){
  .head-tag{display:none}
  .casos{grid-template-columns:1fr}
  .criterio-list{grid-template-columns:1fr}
  .taller-list{grid-template-columns:1fr}
  .caso--b{border-radius:var(--r-card)}
}
@media (max-width:620px){
  body{font-size:16px}
  .pasos{grid-template-columns:1fr}
  /* frm_half columns stack on phones */
  .cta-form .frm_forms.with_frm_style .frm_half{grid-column:1 / -1}
  .sympt li{max-width:100% !important}
  .sympt-close{max-width:100%}
  .bub--in,.bub--out{max-width:94%}
  .faq-q,.faq-a{max-width:100%}
  .ident{flex-direction:column;gap:16px}
  .btn{width:100%}
  .hero-cta{gap:14px}
  .cta-note{width:100%;text-align:center}
  .site-head .wrap{gap:12px}
  /* El CTA del hero queda visible de inmediato — no hace falta repetirlo arriba */
  .site-head .btn{display:none}
  .site-foot .wrap{flex-direction:column}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important}
  html{scroll-behavior:auto}
  /* Sin movimiento, pero nada puede quedarse invisible */
  .js .hero-copy > *,
  .js .thread > *,
  .js .sympt li,
  .js .sympt-close,
  .js .paso,
  .js .caso,
  .js .taller-item,
  .js .principio,
  .js .faq-thread > *{opacity:1;transform:none}
}
