/* =============================================================
   Dani Comunicador — styles.css
   Paleta de marca: crema #f2ede8 · negro #1a1a1a · naranja #f26a21
   Tipografía: Barlow Condensed (titulares) + Manrope (texto)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:       #f2ede8;   /* crema de marca */
  --bg-2:     #ebe4dd;
  --paper:    #faf7f4;
  --ink:      #1a1a1a;
  --ink-2:    #4d4c4b;   /* texto secundario */
  --mute:     #7a7672;
  --accent:   #f26a21;   /* naranja de marca */
  --accent-2: #d9551a;
  --peach:    #f8b98f;
  --line:     rgba(26,26,26,.12);
  --line-2:   rgba(26,26,26,.22);

  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --sans:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1280px;
  --nav-h: 68px;
  --radius: 22px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  text-wrap: balance; line-height: .92; letter-spacing: -0.005em;
}
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
ul, ol { padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.kicker {
  font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .7em;
}
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--accent); border-radius: 2px; }

/* =============================================================
   4. Typography
   ============================================================= */
.display-1 { font-size: clamp(3.4rem, 10vw, 8.5rem); }
.display-2 { font-size: clamp(3rem, 7.5vw, 6.2rem); }
.lead { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.35; font-weight: 600; color: var(--ink); }
.lead em { font-style: normal; color: var(--accent); }

.ulink {
  position: relative; display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.ulink:hover { background-size: 100% 2px; color: var(--accent); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.55em; border-radius: 999px;
  font-weight: 700; font-size: .95rem; line-height: 1; letter-spacing: .01em;
  transition: transform .45s var(--ease-out), background .3s, color .3s, border-color .3s, box-shadow .45s var(--ease-out);
  white-space: nowrap;
}
.btn-sm { padding: .72em 1.15em; font-size: .86rem; }
.btn-lg { padding: 1.12em 1.95em; font-size: 1.02rem; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(242,106,33,.75); background: var(--accent-2); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* Photos */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .photo:hover img { transform: scale(1.04); } }
.photo-wide { aspect-ratio: 16 / 9; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.photo-wide img { object-position: 30% 35%; }
.photo-portrait { aspect-ratio: 4 / 5; max-width: 420px; }
.photo-portrait img { object-position: 42% 30%; }
.mosaic { display: grid; grid-template-columns: 1.7fr 1fr; gap: .9rem; align-self: start; }
.mosaic-main { aspect-ratio: 4 / 5; }
.mosaic-main img { object-position: 62% 40%; }
.mosaic-side { aspect-ratio: 9 / 16; align-self: end; }
.mosaic-side img { object-position: 50% 55%; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter);
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(242,237,232,.94); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(242,237,232,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav-logo { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.nav-logo em { font-style: normal; color: var(--accent); }
.nav-links { display: none; gap: 2rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.nav-links a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .45s var(--ease-out), color .3s; padding-bottom: 3px;
}
.nav-links a:hover { color: var(--ink); background-size: 100% 2px; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { position: relative; padding-block: clamp(5rem, 12vw, 9.5rem); }
.section-head { margin-bottom: clamp(3rem, 7vw, 5.5rem); display: grid; gap: 1.1rem; }

/* ---- Glow (signature: mouse-reactive warm light) ---- */
.glow { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.glow-blob {
  position: absolute; left: 50%; top: 50%;
  width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
}
.glow-a { background: radial-gradient(circle, rgba(242,106,33,.42) 0%, transparent 62%); --tx: 22vw; --ty: -6vh; }
.glow-b { background: radial-gradient(circle, rgba(248,185,143,.65) 0%, transparent 62%); width: 46vmax; height: 46vmax; margin: -23vmax 0 0 -23vmax; --tx: -10vw; --ty: 22vh; }
.glow-c { background: radial-gradient(circle, rgba(255,255,255,.9) 0%, transparent 60%); width: 50vmax; height: 50vmax; margin: -25vmax 0 0 -25vmax; --tx: -26vw; --ty: -18vh; }
.grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: stretch;
  padding-top: calc(var(--nav-h) + 1.5rem);
  padding-bottom: 3rem;
  isolation: isolate;
  overflow: clip;
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: grid;
  grid-template-areas: "title" "photo" "foot";
  gap: 1.5rem;
  align-content: center;
}
.hero-title {
  grid-area: title;
  font-size: min(calc((100vw - 2 * var(--gutter)) / 5.15), 9rem);
  line-height: .86;
  letter-spacing: -0.01em;
  position: relative; z-index: 3;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero-title .line-in { display: inline-block; }
.hero-title em { color: var(--accent); }
.hero-photo {
  grid-area: photo;
  position: relative;
  width: 100%; max-width: 440px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 14px 14px 0 var(--accent);
}
.hero-photo img { height: 110% !important;
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%;
}
.hero-photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 6rem; color: rgba(26,26,26,.2);
}
.hero-photo.is-missing img { display: none; }
.hero-foot { grid-area: foot; display: grid; gap: 1.6rem; }
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 34ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 1.4rem; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 20px; display: none;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: var(--accent); animation: cue 2.2s var(--ease-soft) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---- Services ---- */
.service { padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1.5px solid var(--ink); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service-head { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.4rem; align-items: baseline; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.service-num { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.service-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); max-width: 18ch; }

/* Pillars — hover invert rows */
.pillars { border-top: 1.5px solid var(--ink); }
.pillar {
  position: relative;
  display: grid; gap: .9rem;
  padding: clamp(1.6rem, 3vw, 2.5rem) clamp(.4rem, 1.5vw, 1.2rem);
  border-bottom: 1.5px solid var(--ink);
  isolation: isolate;
}
.pillar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .6s var(--ease-out);
}
.pillar-top { display: grid; gap: .8rem; }
.pillar-name {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3rem, 11vw, 7.4rem); line-height: .88; letter-spacing: -0.01em;
  transition: transform .6s var(--ease-out), color .45s;
}
.pillar-lede { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.4; font-weight: 700; color: var(--ink); max-width: 36ch; transition: color .45s; }
.pillar-body { display: grid; gap: .8rem; color: var(--ink-2); max-width: 60ch; transition: color .45s; }
.pillar-note { font-size: .94rem; color: var(--ink-2); padding-left: 1rem; border-left: 3px solid var(--accent); transition: color .45s; }
@media (hover: hover) {
  .pillar:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
  .pillar:hover .pillar-name { color: var(--accent); transform: translateX(.8rem); }
  .pillar:hover .pillar-lede { color: var(--bg); }
  .pillar:hover .pillar-body, .pillar:hover .pillar-note { color: #c9c2bb; }
}
.service-cta { margin-top: clamp(2rem, 4vw, 3rem); }

/* Split services */
.service-split { display: grid; gap: 2.2rem; }
.service-split .service-head { margin-bottom: 0; }
.service-body { display: grid; gap: 1.1rem; color: var(--ink-2); max-width: 62ch; align-content: start; }
.formats { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.formats li {
  padding: .45em 1.05em; border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.formats li:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps { display: grid; border-top: 1.5px solid var(--ink); align-self: start; }
.steps li {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1;
}
.steps li span { font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--accent); min-width: 2.2em; text-transform: none; }

/* Hitos — banner en movimiento */
.hitos {
  display: flex; align-items: stretch;
  background: var(--ink); color: var(--bg);
  border-radius: 14px; overflow: hidden;
}
.hitos-viewport {
  flex: 1; min-width: 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.hitos-track { display: flex; width: max-content; animation: hitos 38s linear infinite; }
.hitos:hover .hitos-track { animation-play-state: paused; }
.hitos-list { display: flex; flex: none; }
.hitos-list li {
  display: flex; align-items: center; white-space: nowrap;
  padding: 1.15rem 0;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem); letter-spacing: .02em; line-height: 1;
}
.hitos-list li::after { content: "✦"; color: var(--accent); margin: 0 1.6rem; font-size: .8em; }
@keyframes hitos { to { transform: translateX(-50%); } }

/* Big WhatsApp CTA */
.wa-big {
  margin-top: clamp(3rem, 7vw, 6rem);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.4rem; align-items: start;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border-radius: 28px;
  background: var(--ink); color: var(--bg);
  transition: transform .6s var(--ease-out);
}
.wa-big::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(560px circle at var(--px, 85%) var(--py, 50%), rgba(242,106,33,.45), transparent 60%);
  opacity: .8; transition: opacity .4s;
}
.wa-big:hover { transform: translateY(-3px); }
.wa-big:hover::before { opacity: 1; }
.wa-big-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #06230f;
}
.wa-big-text {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.6vw, 3.8rem); line-height: .96; text-wrap: balance;
}
.wa-big-text em { font-style: normal; color: var(--accent); }
.wa-big-arrow {
  grid-column: 2; justify-self: start; font-size: 1.8rem; color: var(--accent);
  transition: transform .5s var(--ease-out);
}
.wa-big:hover .wa-big-arrow { transform: translate(6px, -6px); }

/* ---- Stats ---- */
.stats { background: var(--accent); color: #fff; }
.stats-row { display: grid; grid-template-columns: 1fr; }
.stat { display: grid; gap: .3rem; padding: 2.2rem 0; border-bottom: 1.5px solid rgba(255,255,255,.35); }
.stat:last-child { border-bottom: 0; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(4.5rem, 10vw, 8rem); line-height: .85; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { color: #fff; font-weight: 600; font-size: .98rem; max-width: 28ch; }

/* ---- About ---- */
.about-grid { display: grid; gap: 3rem; }
.about-side { display: grid; gap: 1.4rem; align-content: start; }
.social { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.about-text { display: grid; gap: 1.3rem; color: var(--ink-2); font-size: 1.05rem; max-width: 62ch; align-content: start; }
.manifesto {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: .98; color: var(--ink); margin-bottom: .6rem; text-wrap: balance;
}
.manifesto em { font-style: normal; color: var(--accent); }
.links-list { display: grid; margin-top: 1rem; border-top: 1.5px solid var(--ink); }
.links-list li { display: grid; gap: .5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-2); }
.links-list .ulink { color: var(--ink); font-weight: 700; justify-self: start; }

/* ---- Request form ---- */
.request { background: var(--bg-2); }
.request-grid { display: grid; gap: 3rem; }
.request-head { display: grid; gap: 1.2rem; align-content: start; }
.request-head p:last-child { color: var(--ink-2); max-width: 40ch; }
/* Palabra que rota: charla → taller → conferencia */
.word-rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.word-rotator span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(125%);
  transition: transform .55s var(--ease-out), opacity .4s;
}
.word-rotator span.is-on { opacity: 1; transform: none; }
.word-rotator span.is-out { opacity: 0; transform: translateY(-125%); }
.form {
  display: grid; gap: 1.6rem;
  padding: clamp(1.4rem, 4vw, 2.8rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 30px 80px -50px rgba(26,26,26,.35);
}
.field { display: grid; gap: .6rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 700; color: var(--ink); padding: 0; }
.field legend { margin-bottom: .6rem; }
.opt { color: var(--mute); font-weight: 500; }
.field-row { display: grid; gap: 1.6rem; }
.field-hint { font-size: .85rem; color: var(--mute); margin-top: -1rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form textarea {
  width: 100%;
  padding: .95rem 1.05rem;
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input::placeholder, .form textarea::placeholder { color: #a9a39d; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242,106,33,.16); }
.form .is-invalid { border-color: #d93a2b !important; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .62em 1.15em; border-radius: 999px; font-size: .92rem; font-weight: 600;
  border: 1.5px solid var(--line-2); color: var(--ink-2); background: #fff;
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.fieldset-invalid .chip span { border-color: rgba(217,58,43,.6); }
.other-input { margin-top: .6rem; display: none; }
.other-input.is-on, .no-js .other-input { display: block; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.consent .ulink { color: var(--ink); font-weight: 700; background-size: 100% 1px; }
.consent.is-invalid span { color: #d93a2b; }
.form-legal { font-size: .8rem; color: var(--mute); line-height: 1.55; }
.form-foot { display: grid; gap: 1rem; justify-items: start; }
.form-status { font-size: .95rem; min-height: 1.4em; color: var(--ink-2); font-weight: 600; }
.form-status.is-ok { color: #1d8a4e; }
.form-status.is-err { color: #c2321f; }
.form-status a { color: var(--accent-2); text-decoration: underline; }
.form.is-sending [data-submit] { opacity: .6; pointer-events: none; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { display: grid; gap: 1rem; padding: 1rem 0; }
.form-done h3 { font-size: clamp(2.6rem, 5vw, 3.8rem); }
.form-done p { color: var(--ink-2); }
.check-svg { width: 64px; height: 64px; }
.check-svg circle { stroke: var(--accent); stroke-width: 3; fill: none; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .9s var(--ease-out) forwards; }
.check-svg path { stroke: var(--ink); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---- Health / Vital Media ---- */
.health {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(6rem, 14vw, 11rem);
  background: var(--ink); color: var(--bg);
  text-align: center;
}
.health .glow-a { background: radial-gradient(circle, rgba(242,106,33,.5) 0%, transparent 62%); }
.health .glow-c { background: radial-gradient(circle, rgba(242,106,33,.22) 0%, transparent 60%); }
.health-inner { position: relative; z-index: 2; display: grid; gap: 1.5rem; justify-items: center; }
.health .kicker { color: #c9c2bb; }
.health .display-1 { max-width: 12ch; }
.health-sub { color: #d6cfc8; font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 46ch; }
.health-link {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(2rem, 4.6vw, 3.4rem); color: var(--bg); line-height: 1;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 3px; background-position: 0 100%; background-repeat: no-repeat;
  transition: color .3s, background-size .5s var(--ease-out);
  padding-bottom: .12em;
}
.health-link:hover { color: var(--accent); background-size: 100% 6px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding-block: 2.6rem; }
.footer-inner { display: grid; gap: 1.2rem; }
.footer-brand { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.footer-brand em { font-style: normal; color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.footer-copy { font-size: .82rem; color: var(--mute); }

/* ---- Floating WhatsApp ---- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #06230f;
  box-shadow: 0 12px 30px -10px rgba(20,120,60,.6);
  transition: transform .45s var(--ease-out), opacity .4s;
}
.wa-float:hover { transform: scale(1.08); }
.js .wa-float { opacity: 0; transform: translateY(20px); pointer-events: none; }
.js .wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Legal + thanks pages ---- */
.legal { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 6rem; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(3rem, 7vw, 5rem); margin: 1rem 0 1.5rem; }
.legal h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 2.6rem 0 .8rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: .9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .4rem; margin-top: .6rem; }
.legal a { color: var(--accent-2); text-decoration: underline; }
.legal .meta { color: var(--mute); font-size: .9rem; }
.thanks { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; isolation: isolate; overflow: clip; }
.thanks .wrap { position: relative; z-index: 2; display: grid; gap: 1.4rem; justify-items: center; }
.thanks p { color: var(--ink-2); max-width: 44ch; }

/* =============================================================
   7. Effects — reveals (only when JS is running)
   ============================================================= */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
/* Defensive: split-text elements must never stay invisible */
.reveal[data-split], [data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .hero-photo { max-width: 400px; }
}
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 0; border-right: 1.5px solid rgba(255,255,255,.35); padding: 3rem 2rem 3rem 0; }
  .stat + .stat { padding-left: 2rem; }
  .stat:last-child { border-right: 0; }
  .pillar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1.2rem 3rem; }
  .pillar-top { display: contents; }
  .pillar-name { grid-column: 1; grid-row: 1 / span 2; font-size: clamp(2.6rem, 6vw, 6rem); }
  .pillar-lede { grid-column: 2; }
  .pillar-body { grid-column: 2; }
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer-links { justify-content: center; }
}
@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    grid-template-areas:
      "title photo"
      "foot  photo";
    align-content: center;
    column-gap: 3rem; row-gap: 2rem;
  }
  .hero-title { font-size: min(calc((min(100vw, var(--maxw)) - 2 * var(--gutter) - 3rem) * .65 / 5.15), 11rem); }
  .hero-photo { justify-self: end; align-self: center; }
  .scroll-cue { display: block; }
  .service-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4rem; }
  .service-split .service-head,
  .service-split .hitos { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; }
  .request-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 5rem; }
  .request-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  /* "CONFERENCIA" (~4.9em) must fit the narrow column */
  .request-head .display-2 { font-size: min(6.2rem, calc((min(100vw, var(--maxw)) - 2 * var(--gutter) - 5rem) * .375 / 5)); }
  .wa-big { grid-template-columns: auto 1fr auto; align-items: center; }
  .wa-big-arrow { grid-column: 3; justify-self: end; font-size: 2.4rem; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  .word-rotator span { transition: opacity .3s; transform: none; }
  .hitos { flex-direction: column; }
  .hitos-viewport { mask-image: none; -webkit-mask-image: none; }
  .hitos-track { animation: none; width: auto; }
  .hitos-list { flex-direction: column; padding: .4rem 1.1rem; }
  .hitos-list[aria-hidden] { display: none; }
  .hitos-list li { white-space: normal; padding: .6rem 0; line-height: 1.15; }
  .hitos-list li::after { content: none; }
}
