/* ============================================================
   TuTesisYA — Editorial Warm
   Type: Instrument Serif (display) + Manrope (body)
   Spine: navy #243245 + coral #ee6c4d (brand mandatory)
   Palettes: crema · marfil · noche  (data-palette on <html>)
   ============================================================ */

:root {
  /* brand spine */
  --navy:        #243245;
  --navy-2:      #2f4258;
  --coral:       #ee6c4d;
  --coral-2:     #d75634;
  --whatsapp:    #25D366;

  /* logo css vars consumed by inline SVG (currentColor not used; uses var) */
  --logo-navy:   var(--navy);
  --logo-coral:  var(--coral);

  /* palette: crema (default) */
  --bg:          #faf3e7;
  --bg-soft:     #f3e9d3;
  --bg-card:    #ffffff;
  --bg-dark:     #1a2230;
  --ink:         #1c2330;
  --ink-2:       #4a5468;
  --ink-3:       #74808f;
  --rule:        rgba(36, 50, 69, 0.14);
  --rule-soft:   rgba(36, 50, 69, 0.07);

  /* shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* shadow */
  --sh-1: 0 1px 2px rgba(36, 50, 69, 0.06), 0 4px 14px rgba(36, 50, 69, 0.06);
  --sh-2: 0 6px 18px rgba(36, 50, 69, 0.10), 0 22px 48px rgba(36, 50, 69, 0.10);
  --sh-3: 0 18px 60px rgba(36, 50, 69, 0.18);

  /* type */
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* container */
  --max: 1200px;
  --pad: 28px;
}

/* ============ palette: marfil (clean off-white) ============ */
html[data-palette="marfil"] {
  --bg:        #f3f1ec;
  --bg-soft:   #e9e6df;
  --bg-card:   #ffffff;
  --bg-dark:   #1a2230;
}

/* ============ palette: noche (deep navy) ============ */
html[data-palette="noche"] {
  --bg:        #15202f;
  --bg-soft:   #1c2a3c;
  --bg-card:   #1f2d40;
  --bg-dark:   #0d1623;
  --ink:       #f4ead8;
  --ink-2:     rgba(244, 234, 216, 0.78);
  --ink-3:     rgba(244, 234, 216, 0.5);
  --rule:      rgba(244, 234, 216, 0.16);
  --rule-soft: rgba(244, 234, 216, 0.08);
  --logo-navy: #f4ead8;
}

/* ============ reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-wrap: pretty;
  /* subtle paper grain */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(238, 108, 77, 0.04), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(36, 50, 69, 0.05), transparent 40%);
}
html[data-palette="noche"] body {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(238, 108, 77, 0.10), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(152, 193, 217, 0.06), transparent 45%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }

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

/* ============ TYPE PRIMITIVES ============ */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--coral);
  font-weight: 400;
}
.display--center { text-align: center; }
.display--invert { color: #f4ead8; }
.display--invert em { color: var(--coral); }

.lede {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 56ch;
}
.lede--invert { color: rgba(244,234,216,0.78); }
.lede--center { margin-inline: auto; text-align: center; }
.lede strong { color: var(--ink); font-weight: 700; }
html[data-palette="noche"] .lede strong { color: var(--ink); }

/* editorial margin note — replaces SaaS-style dotted eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}
.eyebrow__dot {
  width: 28px;
  height: 1.5px;
  border-radius: 0;
  background: var(--coral);
  flex-shrink: 0;
}
.eyebrow--center { justify-content: center; display: inline-flex; }
.eyebrow--invert { color: rgba(244,234,216,0.6); }
.eyebrow--invert .eyebrow__dot { background: var(--coral); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--ink);
  color: #f4ead8;
}
html[data-palette="noche"] .btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(36,50,69,.18); }

.btn--wa {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}
.btn--wa:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.38); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule);
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--ink); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav__logo img { height: 38px; width: auto; }
.nav__links {
  display: none;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.nav__links a { transition: color .18s ease; }
.nav__links a:hover { color: var(--ink); }
@media (min-width: 880px) { .nav__links { display: flex; } }

/* ============ HERO ============ */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 0%, color-mix(in oklab, var(--coral) 14%, transparent) 0%, transparent 38%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}

.hero__copy { max-width: 580px; }
.hero__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 18px 0 24px;
  text-wrap: balance;
}
.hero__headline em {
  font-style: italic;
  color: var(--coral);
}
.hero__sub {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 30px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero__microcopy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.hero__microcopy svg { color: var(--coral); }

/* hero copy variants */
[data-copy-show] { display: none; }
html[data-copy="cercano"] [data-copy-show="cercano"],
html[data-copy="directo"] [data-copy-show="directo"],
html[data-copy="aspiracional"] [data-copy-show="aspiracional"] { display: inline; }

/* hero art — thesis cover stack */
.hero__art {
  position: relative;
  min-height: 480px;
  display: none;
}
@media (min-width: 980px) { .hero__art { display: block; } }

.cover {
  position: absolute;
  width: 240px;
  aspect-ratio: 1 / 1.414;
  background: var(--bg-card);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-2);
  border: 1px solid var(--rule);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.cover figcaption {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.cover--tilt-1 { top: 0;    right: 8%;  transform: rotate(4deg);  z-index: 2; }
.cover--tilt-2 { top: 70px;  left: 4%;   transform: rotate(-7deg); z-index: 1; }
.cover--tilt-3 { top: 200px; right: 20%; transform: rotate(2deg);  z-index: 3; }
.hero__art:hover .cover--tilt-1 { transform: rotate(2deg)  translateY(-6px); }
.hero__art:hover .cover--tilt-2 { transform: rotate(-5deg) translateY(-6px); }
.hero__art:hover .cover--tilt-3 { transform: rotate(0deg)  translateY(-6px); }

.cover__stamp {
  position: absolute;
  bottom: 6%;
  right: 0;
  width: 160px;
  background: var(--ink);
  color: #f4ead8;
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--sh-3);
  transform: rotate(-10deg);
  border: 6px double rgba(244,234,216,0.3);
  z-index: 4;
}
.cover__stamp span:first-child {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
}
.cover__stamp strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  margin: 4px 0 2px;
}
.cover__stamp span:last-child {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(244,234,216,0.7);
  max-width: 100px;
}

/* ============ TRUST BAR ============ */
.trust {
  padding: 36px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--bg-soft);
}
html[data-palette="noche"] .trust { background: var(--bg-soft); }
.trust__label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.trust__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust__item img {
  height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.78;
  filter: saturate(0.7);
  mix-blend-mode: multiply;
  transition: opacity .2s ease, filter .2s ease;
}
html[data-palette="noche"] .trust__item img {
  mix-blend-mode: normal;
  filter: brightness(0) invert(1) opacity(0.7);
}
.trust__item:hover img { opacity: 1; filter: saturate(1); }
.trust__sep {
  width: 1px;
  height: 38px;
  background: var(--rule);
}
.trust__item--text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-3);
  line-height: 1.4;
  font-family: var(--serif);
  font-style: italic;
}

/* ============ SECTION HEADS ============ */
.problema, .solucion, .services, .results, .process, .final, .salary-teaser {
  padding: clamp(72px, 10vw, 128px) 0;
}
.problema__head, .results__head, .services__head, .process__head {
  text-align: center;
  margin-bottom: 64px;
}
.problema__head .eyebrow, .services__head .eyebrow, .process__head .eyebrow { margin-bottom: 14px; }
.results__head .eyebrow { margin-bottom: 14px; }
.problema__head .display, .services__head .display, .process__head .display, .results__head .display {
  max-width: 18ch;
  margin: 0 auto;
}
.results__head .lede { margin-top: 18px; }

/* ============ PROBLEMA · PAINS ============ */
.pains {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 760px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pain {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 36px 28px 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pain:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pain__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 18px;
  display: block;
}
.pain h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}
.pain p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
}
.problema__note {
  text-align: center;
  margin-top: 40px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: 17px;
}

/* ============ SOLUCIÓN ============ */
.solucion { background: var(--bg-soft); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.solucion__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 880px) { .solucion__inner { grid-template-columns: 0.85fr 1fr; gap: 80px; } }

.solucion__art {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}
.solucion__paper {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 0.72;
  background: var(--bg-card);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  border: 1px solid var(--rule);
  padding: 38px 32px;
  transform: rotate(-3deg);
  transition: transform .35s ease;
}
.solucion__paper:hover { transform: rotate(-1deg) translateY(-4px); }
.solucion__paper-bar {
  width: 56px;
  height: 6px;
  border-radius: 3px;
  background: var(--coral);
  margin-bottom: 24px;
}
.solucion__paper-line {
  height: 8px;
  border-radius: 4px;
  background: var(--rule);
  margin-bottom: 14px;
}
.solucion__paper-line:nth-child(2) { width: 92%; }
.solucion__paper-line:nth-child(3) { width: 78%; }
.solucion__paper-line--short { width: 56% !important; }
.solucion__seal {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-2);
  transform: rotate(8deg);
  border: 4px solid var(--bg-soft);
}
.solucion__seal img {
  width: 56px;
  height: 56px;
  filter: brightness(0) invert(1);
}

.solucion__copy .display { margin: 14px 0 24px; }
.solucion__copy .lede { margin-bottom: 28px; }
.solucion__copy .lede strong { color: var(--ink); }

/* checklist */
.check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  color: var(--ink);
}
.check li::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--coral);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'><path stroke-linecap='round' stroke-linejoin='round' d='M5 12.5L10 17 19 8'/></svg>");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.check li em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--ink);
}

/* ============ SERVICES ============ */
.services { background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 880px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

.svc {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 36px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.svc--featured {
  background: var(--ink);
  color: #f4ead8;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.svc--featured::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--coral) 60%, transparent), transparent 70%);
  pointer-events: none;
}
.svc--featured > * { position: relative; }
.svc__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--coral);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(238,108,77,0.12);
  width: max-content;
  margin-bottom: 10px;
}
.svc h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: inherit;
}
.svc--featured h3 { color: #f4ead8; }
.svc p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.svc--featured p { color: rgba(244,234,216,0.8); }
.svc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  margin-top: auto;
}
.svc--featured ul { border-top-color: rgba(244,234,216,0.2); }
.svc ul li {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc--featured ul li { color: rgba(244,234,216,0.85); }
.svc ul li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
}
.svc footer {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--coral);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.svc--featured footer {
  border-top-color: rgba(244,234,216,0.15);
}

/* ============ RESULTS ============ */
.results {
  background: var(--bg-dark);
  color: #f4ead8;
  position: relative;
  overflow: hidden;
}
.results::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(238,108,77,0.18), transparent 35%),
    radial-gradient(circle at 90% 100%, rgba(152,193,217,0.10), transparent 40%);
  pointer-events: none;
}
.results .container { position: relative; }

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto 72px;
  padding: 36px 40px;
  background: rgba(244,234,216,0.04);
  border: 1px solid rgba(244,234,216,0.1);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(244,234,216,0.1);
}
.stat:last-child { border-right: none; }
@media (max-width: 719px) { .stat { border-right: none; border-bottom: 1px solid rgba(244,234,216,0.1); padding-bottom: 24px; } .stat:last-child { border-bottom: none; padding-bottom: 0; } }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--coral);
}
.stat__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(244,234,216,0.7);
  margin-top: 14px;
}
.stat__sub {
  display: block;
  font-size: 10.5px;
  color: rgba(244,234,216,0.45);
  letter-spacing: 0.6px;
  margin-top: 4px;
}

.results__sub {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(244,234,216,0.6);
  margin-bottom: 36px;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 880px) { .portfolio { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.thesis { display: flex; flex-direction: column; }
.thesis__cover {
  aspect-ratio: 1 / 1.414;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(244,234,216,0.1);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.thesis:hover .thesis__cover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 20px 56px rgba(0,0,0,0.5);
}
.thesis__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.thesis__meta { padding: 18px 4px 0; }
.thesis__author {
  font-size: 13px;
  font-weight: 700;
  color: #f4ead8;
  margin-bottom: 6px;
}
.thesis__title {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244,234,216,0.55);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.thesis__tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--coral);
}

/* ============ PROCESS ============ */
.process { background: var(--bg); }
.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  counter-reset: step;
}
@media (min-width: 760px) { .process__steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.pstep {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 36px 30px 30px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pstep:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pstep__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--coral);
  display: block;
  margin-bottom: 20px;
}
.pstep h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.pstep p { font-size: 15px; color: var(--ink-2); line-height: 1.7; }

/* ============ FAQ ============ */
.faq { background: var(--bg); }
.faq__head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.faq__head .eyebrow { margin-bottom: 14px; }
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  transition: box-shadow .2s ease;
}
.faq__item[open] { box-shadow: var(--sh-2); }
.faq__item summary {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--coral);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ============ ESCALAFÓN 2026 (teaser card on main page) ============ */
.salary-teaser { background: var(--bg); }
.salary-teaser__card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 36px 40px;
  text-align: center;
}
.salary-teaser__card .eyebrow { justify-content: center; margin-bottom: 14px; }
.salary-teaser__title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 14px;
}
.salary-teaser__title strong { color: var(--coral); font-weight: 600; }
.salary-teaser__sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 24px;
}

@media (max-width: 640px) {
  .salary-teaser__card { padding: 28px 22px; }
}

/* ============ ESCALAFÓN 2026 (standalone article page) ============ */
.container--narrow { max-width: 760px; }

.salary-page { background: var(--bg); padding: 56px 0 88px; }
.salary-page .eyebrow { margin-bottom: 16px; }
.salary-page .display { margin-bottom: 18px; }
.salary-page .lede { margin-bottom: 44px; }

.salary__group { margin-bottom: 32px; }
.salary__group-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--navy);
  margin-bottom: 12px;
}
.salary__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  font-size: 15px;
}
.salary__table th,
.salary__table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
}
.salary__table thead th {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
  background: var(--bg-soft);
}
.salary__table tbody td:not(:first-child) {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
}
.salary__table tbody tr:last-child td { border-bottom: none; }
.salary__table tbody tr:hover { background: var(--rule-soft); }

.salary__cite {
  margin: 36px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.salary__cite a { color: var(--coral); text-decoration: underline; }

.salary__cta {
  margin-top: 44px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  text-align: center;
}
.salary__cta-text {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .salary-page { padding: 40px 0 64px; }
  .salary__table { font-size: 13.5px; }
  .salary__table th, .salary__table td { padding: 10px 12px; }
  .salary__cta-text { font-size: 18px; }
}

/* ============ FINAL CTA ============ */
.final {
  background: var(--bg-dark);
  color: #f4ead8;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 50%, rgba(238,108,77,0.22), transparent 40%);
  pointer-events: none;
}
.final__inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.final__inner .eyebrow { margin-bottom: 18px; }
.final__inner .display { margin-bottom: 22px; }
.final__inner .lede { margin: 0 auto 32px; }
.final__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.final__inner .btn--primary { background: var(--coral); color: #fff; }
.final__inner .btn--primary:hover { background: var(--coral-2); }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-dark);
  color: rgba(244,234,216,0.7);
  padding: 56px 0 0;
  border-top: 1px solid rgba(244,234,216,0.08);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 48px;
}
@media (min-width: 720px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }
.footer__brand img { height: 36px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244,234,216,0.55);
  max-width: 36ch;
}
.footer__brand em { font-family: var(--serif); color: var(--coral); font-style: italic; }
.footer__h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
.footer__info p {
  font-size: 14px;
  margin-bottom: 8px;
}
.footer__info a { transition: color .18s ease; }
.footer__info a:hover { color: #f4ead8; }
.footer__bottom {
  border-top: 1px solid rgba(244,234,216,0.08);
  padding: 20px 0;
  text-align: center;
}
.footer__bottom p {
  font-size: 12px;
  color: rgba(244,234,216,0.35);
}

/* ============ FLOATING WA ============ */
@keyframes waPulse {
  0%   { box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}
.float-wa {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  animation: waPulse 2.4s ease-out 1s infinite;
}
.float-wa svg { width: 26px; height: 26px; }
.float-wa.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============ MODAL · DIAGNÓSTICO ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 26, 38, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .2s ease both;
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  padding: 36px 32px 32px;
  animation: rise .26s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise   { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }

.modal__head { margin-bottom: 26px; }
.modal__head .eyebrow { margin-bottom: 12px; }
.modal__head .display {
  font-size: clamp(1.5rem, 3.4vw, 1.95rem);
  margin-bottom: 10px;
}
.modal__sub { font-size: 14px; color: var(--ink-3); }

.diag { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span,
.field > legend {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--coral) 20%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field--radios { border: none; padding: 0; }
.radios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 480px) { .radios { grid-template-columns: 1fr 1fr; } }

/* hide native radio — entire label is the button */
.radios input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.radios label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 14px;
  min-height: 54px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.3;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.radios label > span { display: inline; }
.radios label:hover { border-color: var(--ink-3); color: var(--ink); }
.radios label:has(input:focus-visible) {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.radios label:has(input:checked) {
  border-color: var(--coral);
  background: color-mix(in oklab, var(--coral) 10%, var(--bg-card));
  color: var(--ink);
  font-weight: 700;
}

.diag__legal {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

/* ============ SR-ONLY ============ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE — TABLET (≤980px) + MOBILE (≤540px) + TINY (≤380px)
   ============================================================ */

/* nav cta — short label below 540px */
.nav__cta-short { display: none; }

/* ---- TABLET ≤ 980px ---- */
@media (max-width: 979px) {
  .hero { padding: clamp(56px, 9vw, 88px) 0 clamp(72px, 10vw, 96px); }
  .hero__copy { max-width: 720px; margin: 0 auto; text-align: left; }

  /* Hero art is hidden — show a horizontal cover band below CTAs instead */
  .hero__inner { gap: 40px; }

  /* Solucion: paper shrinks but stays */
  .solucion__paper { max-width: 320px; }

  /* Section paddings */
  .problema, .solucion, .services, .results, .process, .final {
    padding: clamp(64px, 9vw, 96px) 0;
  }
}

/* ---- MOBILE ≤ 540px ---- */
@media (max-width: 540px) {
  :root { --pad: 20px; }

  /* Nav */
  .nav__inner { height: 60px; }
  .nav__logo img { height: 30px; }
  .nav__cta-full  { display: none; }
  .nav__cta-short { display: inline; }
  .nav__cta { padding: 9px 14px; font-size: 12.5px; }

  /* Hero */
  .hero { padding: 36px 0 56px; }
  .hero::before { display: none; }
  .hero__headline {
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.05;
    margin: 14px 0 18px;
  }
  .hero__sub { font-size: 15.5px; margin-bottom: 24px; line-height: 1.6; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__ctas .btn { width: 100%; padding: 16px 22px; font-size: 15px; }
  .hero__microcopy { font-size: 12.5px; }

  /* Trust bar */
  .trust { padding: 28px 0; }
  .trust__label { font-size: 10.5px; margin-bottom: 18px; letter-spacing: 1.4px; }
  .trust__row { gap: 14px; }
  .trust__item img { height: 38px; max-width: 96px; }
  .trust__sep { height: 26px; }

  /* Display + lede sizes */
  .display { font-size: clamp(1.7rem, 7.5vw, 2.4rem); }
  .lede { font-size: 15px; }

  /* Section paddings */
  .problema, .solucion, .services, .results, .process, .final {
    padding: 56px 0;
  }
  .problema__head, .results__head, .services__head, .process__head {
    margin-bottom: 40px;
  }

  /* Pains */
  .pains { gap: 16px; }
  .pain { padding: 26px 22px 22px; }
  .pain__num { font-size: 32px; margin-bottom: 12px; }
  .pain h3 { font-size: 19px; }
  .pain p { font-size: 14.5px; }
  .problema__note { margin-top: 28px; font-size: 15px; }

  /* Solución */
  .solucion__inner { gap: 40px; }
  .solucion__paper { max-width: 280px; padding: 28px 24px; }
  .solucion__paper-bar { width: 44px; margin-bottom: 18px; }
  .solucion__seal {
    width: 78px; height: 78px;
    bottom: -18px; right: -18px;
    border-width: 3px;
  }
  .solucion__seal img { width: 38px; height: 38px; }
  .check li { font-size: 15px; gap: 12px; }
  .check li::before { width: 22px; height: 22px; background-size: 12px; }

  /* Services */
  .services__grid { gap: 16px; }
  .svc { padding: 28px 22px 22px; gap: 14px; }
  .svc h3 { font-size: 1.7rem; }
  .svc p { font-size: 14.5px; }
  .svc--featured::before { width: 220px; height: 220px; }

  /* Results */
  .stats {
    padding: 28px 22px;
    gap: 28px;
    margin-bottom: 48px;
  }
  .stat { padding: 0; }
  .stat__num { font-size: clamp(2.4rem, 11vw, 3rem); }
  .stat__label { font-size: 10.5px; margin-top: 10px; }
  .stat__sub { font-size: 10px; }
  .results__sub { font-size: 15px; margin-bottom: 28px; }
  .portfolio { gap: 20px; }
  .thesis__title { -webkit-line-clamp: 2; }

  /* Escalafón table */
  .salary__table { font-size: 12.5px; }
  .salary__table th, .salary__table td { padding: 10px 12px; }
  .salary__cite { font-size: 12px; }

  /* Process */
  .process__steps { gap: 16px; }
  .pstep { padding: 28px 22px 22px; }
  .pstep__num { font-size: 36px; margin-bottom: 14px; }
  .pstep h3 { font-size: 19px; }
  .pstep p { font-size: 14.5px; }

  /* Final */
  .final__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .final__ctas .btn { width: 100%; padding: 16px 22px; }

  /* Footer */
  .footer { padding: 44px 0 0; padding-bottom: 70px; }
  .footer__inner { gap: 28px; padding-bottom: 36px; }
  .footer__brand img { height: 30px; }

  /* Floating WA */
  .float-wa {
    width: 52px; height: 52px;
    bottom: 16px; right: 16px;
  }
  .float-wa svg { width: 24px; height: 24px; }

  /* Modal */
  .modal { padding: 12px; align-items: flex-end; }
  .modal__card {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 28px 22px 24px;
    max-height: 94vh;
  }
  .modal__close { top: 10px; right: 10px; width: 34px; height: 34px; }
  .modal__head { margin-bottom: 22px; }
  .modal__head .display { font-size: 1.5rem; }
  .modal__sub { font-size: 13px; }
  .diag { gap: 16px; }
  .field input, .field textarea { padding: 12px 14px; font-size: 14.5px; }
  .radios label { padding: 11px 12px; font-size: 13.5px; }

  /* Eyebrows shrink */
  .eyebrow { font-size: 15px; gap: 12px; }
  .eyebrow__dot { width: 22px; }
}

/* ---- TINY ≤ 380px ---- */
@media (max-width: 380px) {
  :root { --pad: 16px; }
  .nav__inner { height: 56px; gap: 12px; }
  .nav__logo img { height: 28px; }
  .nav__cta { padding: 8px 12px; font-size: 12px; }
  .hero__headline { font-size: clamp(1.85rem, 9vw, 2.2rem); }
  .display { font-size: clamp(1.6rem, 7.5vw, 2.1rem); }
  .modal__card { padding: 24px 18px 20px; }
  .radios { grid-template-columns: 1fr; }
  .pain__num, .pstep__num { font-size: 30px; }
}

/* ---- LARGE PHONE / SMALL TABLET 541-768 ---- */
@media (min-width: 541px) and (max-width: 767px) {
  .pains { grid-template-columns: 1fr 1fr; }
  .pains .pain:nth-child(3) { grid-column: span 2; max-width: 480px; margin: 0 auto; }
}

/* ---- TOUCH HOVER FIXES ---- */
@media (hover: none) {
  .pain:hover, .svc:hover, .pstep:hover, .thesis:hover .thesis__cover,
  .cover:hover, .hero__art:hover .cover--tilt-1,
  .hero__art:hover .cover--tilt-2, .hero__art:hover .cover--tilt-3,
  .solucion__paper:hover {
    transform: none;
    box-shadow: var(--sh-1);
  }
}
