/* =============================================================
   Luis Ángel Anillo · Estadística en Salud
   Archetype 04 — Glassmorphism Modern (paleta clínica/académica)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f8fb;
  --bg-2:      #eef3f9;
  --paper:     #ffffff;
  --ink:       #0f2233;
  --ink-soft:  #3a4f63;
  --ink-mute:  #6b7d8f;
  --accent:    #1f6feb;
  --accent-d:  #1659c4;
  --accent-2:  #0e9aa7;
  --gold:      #b9892f;
  --wa:        #25d366;
  --wa-d:      #1ebe57;

  --glass:     rgba(255, 255, 255, 0.55);
  --glass-2:   rgba(255, 255, 255, 0.35);
  --line:      rgba(15, 34, 51, 0.12);
  --line-2:    rgba(15, 34, 51, 0.07);

  --shadow-sm: 0 2px 10px rgba(15, 34, 51, 0.06);
  --shadow:    0 18px 50px -18px rgba(15, 34, 51, 0.28);
  --shadow-lg: 0 40px 90px -30px rgba(15, 34, 51, 0.40);

  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1200px;
  --gutter:  clamp(1.1rem, 4vw, 2.4rem);
  --radius:  20px;
  --radius-lg: 28px;

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

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p  { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* section heading block */
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.1rem); }
.section-lead { color: var(--ink-soft); margin-top: 1rem; font-size: 1.08rem; }
em { font-style: italic; }
h2 em, h1 em { font-family: var(--serif); color: var(--accent); font-style: italic; font-weight: 500; }

section { position: relative; }

/* =============================================================
   4. Animated mesh background
   ============================================================= */
.bg-mesh {
  position: fixed; inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 40% at 18% 22%, rgba(31,111,235,0.16) 0%, transparent 60%),
    radial-gradient(38% 38% at 82% 28%, rgba(14,154,167,0.14) 0%, transparent 60%),
    radial-gradient(46% 46% at 60% 88%, rgba(31,111,235,0.10) 0%, transparent 60%);
  filter: blur(40px);
  animation: meshDrift 28s ease-in-out infinite;
  pointer-events: none;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) translate3d(0,0,0) rotate(0deg); }
  50%      { transform: scale(1.18) translate3d(2%, -2%, 0) rotate(8deg); }
}

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(31,111,235,.6);
}
.btn-primary:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(31,111,235,.7); }
.btn-ghost {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.btn-wa { background: var(--wa); color: #04331a; box-shadow: 0 12px 28px -10px rgba(37,211,102,.55); }
.btn-wa:hover { background: var(--wa-d); transform: translateY(-2px); }
.ico-wa { flex: none; }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246,248,251,0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  box-shadow: var(--shadow-sm);
  display: block;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }
.brand-text em { font-family: var(--mono); font-style: normal; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }

.nav-links { display: none; gap: .3rem; }
.nav-links a {
  position: relative; padding: .5rem .8rem; border-radius: 8px;
  color: var(--ink-soft); font-size: .94rem; font-weight: 500;
  transition: color .2s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .35rem;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; padding: .6rem 1.1rem; font-size: .9rem; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu panel */
.nav-mobile {
  position: fixed; inset: 72px 0 auto 0; z-index: 99;
  background: rgba(246,248,251,0.96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: grid; gap: .2rem; padding: 1rem var(--gutter) 1.6rem;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-mobile.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile a { padding: .8rem .4rem; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--line-2); }
.nav-mobile .btn { margin-top: .8rem; justify-content: center; }

/* =============================================================
   7. Glass card base
   ============================================================= */
.glass {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
  }
}

/* =============================================================
   8. Hero
   ============================================================= */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 6.2vw, 4rem);
  font-weight: 500;
  letter-spacing: -.025em;
}
.hero-sub { margin-top: 1.4rem; color: var(--ink-soft); font-size: clamp(1.02rem, 2vw, 1.18rem); max-width: 52ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; margin-top: 1.8rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink-soft); }
.hero-badges .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(14,154,167,.16); }
.hero-badges strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.hero-media { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-photo-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.7); }
.hero-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 20%; }
.hero-photo-glow {
  position: absolute; inset: auto -20% -30% -20%; height: 60%;
  background: radial-gradient(60% 80% at 50% 100%, rgba(31,111,235,.5), transparent 70%);
  filter: blur(30px); z-index: -1;
}
.hero-float-card {
  position: absolute; top: 6%; left: 3%;
  display: grid; gap: .15rem; padding: .9rem 1.1rem;
  text-align: left;
}
.hfc-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; }
.hfc-label { font-size: .72rem; color: var(--ink-soft); line-height: 1.25; }
.hero-float-chip {
  position: absolute; bottom: 5%; right: 3%; max-width: 70%;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1rem; font-size: .82rem; font-weight: 500; color: var(--ink);
}
.hero-float-chip svg { color: var(--accent-2); flex: none; }

/* float bob animation */
.hero-float-card, .hero-float-chip { animation: bob 6s ease-in-out infinite; }
.hero-float-chip { animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =============================================================
   9. Stats
   ============================================================= */
.stats { padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3rem); }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bg); padding: clamp(1.3rem, 3vw, 2rem) 1.2rem; text-align: center; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--accent); }
.stat-label { display: block; margin-top: .35rem; font-size: .84rem; color: var(--ink-soft); line-height: 1.35; }
.stat-label em { color: var(--gold); font-style: normal; font-weight: 600; }
.stats-note { font-size: .76rem; color: var(--ink-mute); margin-top: .9rem; text-align: center; }

/* =============================================================
   10. Educación
   ============================================================= */
.edu { padding: clamp(3rem, 7vw, 5rem) 0; }
.edu-inner h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 18ch; }
.edu-cols { display: grid; gap: 1.4rem; margin-top: 1.8rem; }
.edu-cols p { color: var(--ink-soft); font-size: 1.06rem; }
.edu-cols strong { color: var(--ink); }

/* =============================================================
   11. Servicios
   ============================================================= */
.services { padding: clamp(3rem, 7vw, 5rem) 0; }
.cards-grid { display: grid; gap: 1.2rem; }
.card { padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(31,111,235,.14), rgba(14,154,167,.14));
  color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: .6rem; letter-spacing: -.01em; }
.card > p { color: var(--ink-soft); font-size: .98rem; }
.card-list { margin: 1rem 0 1.3rem; display: grid; gap: .5rem; }
.card-list li { position: relative; padding-left: 1.5rem; font-size: .92rem; color: var(--ink-soft); }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 14px; height: 8px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg) translateY(-2px);
}
.card-cta { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .94rem; align-self: flex-start; transition: gap .2s, color .2s; }
.card-cta:hover { color: var(--accent-d); }

/* =============================================================
   12. Para quién
   ============================================================= */
.audience { padding: clamp(3rem, 7vw, 5rem) 0; }
.aud-grid { display: grid; gap: 1rem; }
.aud-card {
  padding: 1.6rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.aud-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(31,111,235,.35); }
.aud-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.aud-card p { color: var(--ink-soft); font-size: .94rem; }
.aud-cta { background: linear-gradient(135deg, var(--ink), #16344b); color: #fff; border-color: transparent; }
.aud-cta h3, .aud-cta p { color: #fff; }
.aud-cta p { color: rgba(255,255,255,.8); }
.aud-cta .card-cta { color: #7db6ff; margin-top: 1rem; display: inline-block; }

/* =============================================================
   13. Sobre mí
   ============================================================= */
.about { padding: clamp(3rem, 7vw, 5rem) 0; }
.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.6); }
.about-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.about-media-tag {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: .5rem .8rem; font-size: .74rem; font-weight: 500; color: var(--ink);
  border-radius: 999px;
}
.about-copy h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin-bottom: 1.1rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.creds { display: grid; gap: .55rem; margin: 1.4rem 0; }
.creds li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); }
.creds li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(31,111,235,.14);
}
.creds strong { color: var(--ink); }
.software { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.4rem; }
.soft-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-right: .3rem; }
.chip {
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(31,111,235,.08); border: 1px solid rgba(31,111,235,.2);
  font-size: .84rem; font-weight: 600; color: var(--accent-d);
}
.academic-profiles { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.chip-link {
  text-decoration: none; transition: background .2s, border-color .2s;
}
.chip-link:hover { background: rgba(31,111,235,.18); border-color: rgba(31,111,235,.5); }

/* =============================================================
   14. Proceso
   ============================================================= */
.process { padding: clamp(3rem, 7vw, 5rem) 0; }
.steps { display: grid; gap: 1rem; counter-reset: step; list-style: none; }
.step {
  position: relative; padding: 1.6rem 1.6rem 1.6rem 1.6rem;
  border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  counter-increment: step;
}
.step::before { content: counter(step) "."; font-family: var(--mono); font-size: .9rem; font-weight: 500; color: var(--accent); display: block; margin-bottom: .6rem; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { color: var(--ink-soft); font-size: .94rem; }

/* =============================================================
   15. Publicaciones
   ============================================================= */
.pubs { padding: clamp(3rem, 7vw, 5rem) 0; }
.pubs-badges { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.pub-badge {
  padding: 1rem 1.4rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .86rem; color: var(--ink-soft); line-height: 1.4;
}
.pub-badge strong { font-family: var(--serif); font-size: 1.2rem; color: var(--gold); }
.pubs-list { display: grid; gap: .2rem; border-top: 1px solid var(--line); }
.pubs-list li {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  padding: 1rem .4rem; border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.pub-tag {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  padding: .2rem .55rem; border-radius: 6px; flex: none;
  background: rgba(185,137,47,.14); color: var(--gold);
}
.pubs-list li em { flex: 1 1 auto; min-width: 200px; color: var(--ink); font-style: italic; }
.pub-journal { font-size: .78rem; color: var(--ink-mute); white-space: nowrap; flex: none; }
.pubs-list a { color: var(--accent); font-weight: 600; font-size: .9rem; white-space: nowrap; }

/* =============================================================
   16. FAQ
   ============================================================= */
.faq { padding: clamp(3rem, 7vw, 5rem) 0; }
.faq-inner { max-width: 820px; }
.faq-list { display: grid; gap: .8rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color .25s var(--ease-out);
}
.faq-item[open] { border-color: rgba(31,111,235,.35); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 1.3rem; font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; font-size: 1.5rem; font-weight: 400; color: var(--accent);
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.25rem; }
.faq-body p { color: var(--ink-soft); }

/* =============================================================
   17. Contacto
   ============================================================= */
.contact { padding: clamp(3rem, 7vw, 5rem) 0; }
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-copy h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin-bottom: 1rem; }
.contact-copy > p { color: var(--ink-soft); }
.contact-direct { display: grid; gap: .9rem; margin-top: 1.8rem; justify-items: start; }
.contact-link { font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.contact-link:hover { color: var(--accent); border-color: var(--accent); }

.contact-form { padding: clamp(1.5rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.7);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,111,235,.14);
}
.contact-form .btn { justify-content: center; margin-top: .3rem; }
.form-status { font-size: .88rem; min-height: 1.2em; }
.form-status.ok { color: var(--wa-d); }
.form-status.err { color: #d23b3b; }

/* =============================================================
   18. Footer
   ============================================================= */
.footer { margin-top: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); background: rgba(255,255,255,0.4); }
.footer-inner { display: grid; gap: 1.6rem; padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong { display: block; font-size: 1rem; }
.footer-brand span { font-size: .84rem; color: var(--ink-mute); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.footer-links a { color: var(--ink-soft); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding-bottom: 2rem; }
.footer-bottom p { font-size: .8rem; color: var(--ink-mute); border-top: 1px solid var(--line-2); padding-top: 1.2rem; }

/* =============================================================
   Consent checkbox (formulario de contacto)
   ============================================================= */
.field-consent { margin-top: .4rem; }
.consent-label { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--ink-soft); cursor: pointer; line-height: 1.5; }
.consent-label input[type="checkbox"] { margin-top: .2rem; flex-shrink: 0; accent-color: var(--accent); width: 1rem; height: 1rem; cursor: pointer; }
.consent-label a { color: var(--accent); text-decoration: underline; }
.consent-label a:hover { opacity: .8; }

/* =============================================================
   19. Floating WhatsApp
   ============================================================= */
.wa-fab {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--wa);
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  transition: transform .3s var(--ease-bounce);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70%,100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }

/* =============================================================
   20. Reveal animation (progressive — visible without JS)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, html:not(.is-ready) .reveal { opacity: 1; transform: none; }

/* =============================================================
   21. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .edu-cols { grid-template-columns: repeat(2, 1fr); gap: 2.4rem; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-copy { max-width: 36rem; }
  .hero-float-card { left: -7%; top: 8%; }
  .hero-float-chip { right: -8%; bottom: 6%; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .aud-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1fr 1.1fr; }
  .about-grid.flip .about-media { order: 2; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1280px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   22. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-mesh { animation: none; }
  .hero-float-card, .hero-float-chip { animation: none; }
  .wa-fab::before { animation: none; }
  .reveal { transition: opacity .3s ease; transform: none; }
}
