/* =========================================================
   toactiva — estilos
   Paleta: turquesa + verde esmeralda
   ========================================================= */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --turquesa: #12a5a8;
  --turquesa-claro: #1fc1bc;
  --turquesa-osc: #0b7d80;
  --esmeralda: #0b9466;
  --esmeralda-osc: #077a55;
  --tinta: #0e3b43;
  --texto: #2b4b52;
  --suave: #effaf8;
  --suave-2: #e2f5f1;
  --sol: #ffc24b;
  --coral: #ff8a73;
  --blanco: #fff;
  --grad: linear-gradient(135deg, var(--turquesa-claro), var(--esmeralda));
  --radio: 20px;
  --sombra: 0 10px 30px -12px rgba(14, 59, 67, .22);
  --ancho: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--tinta); line-height: 1.2; margin: 0 0 .6em; font-weight: 900; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--esmeralda-osc); }
a:hover { color: var(--turquesa-osc); }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--tinta); color: #fff; padding: .6rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow {
  display: inline-block; margin-bottom: .8rem;
  font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--turquesa-osc);
}
.lead { font-size: 1.2rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .5rem 1.1rem; font-size: .95rem; }
.btn-primary { background: var(--esmeralda); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 148, 102, .7); }
.btn-primary:hover { background: var(--esmeralda-osc); color: #fff; }
.btn-ghost { background: #fff; color: var(--tinta); border-color: var(--suave-2); }
.btn-ghost:hover { border-color: var(--turquesa); color: var(--tinta); }
.btn-outline { background: transparent; color: var(--esmeralda-osc); border-color: currentColor; }
.btn-outline:hover { background: var(--esmeralda); border-color: var(--esmeralda); color: #fff; }
.btn-light { background: #fff; color: var(--esmeralda-osc); }
.btn-light:hover { color: var(--tinta); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--suave-2); box-shadow: 0 6px 20px -16px rgba(14, 59, 67, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand img { width: 170px; height: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--tinta); font-weight: 700; text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-color: var(--turquesa); }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 11px; border: 0; border-radius: 12px;
    background: var(--suave); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 3px; border-radius: 3px; background: var(--tinta); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    position: absolute; inset: 100% 0 auto; background: #fff;
    border-bottom: 1px solid var(--suave-2); box-shadow: var(--sombra);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav li a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--suave-2); }
  .nav li .btn { margin-top: 1rem; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #064e55 0%, #0b7d80 45%, #08875c 100%);
  color: #e6fbf6;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(6rem, 10vw, 8.5rem);
}
.hero h1 { color: #fff; }
.hero .lead { color: #d3f3ec; max-width: 36rem; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: deriva 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #1fc1bc; top: -180px; right: -120px; }
.b2 { width: 420px; height: 420px; background: #10b981; bottom: -200px; left: -120px; animation-duration: 22s; animation-direction: alternate-reverse; }
.b3 { width: 260px; height: 260px; background: #ffc24b; top: 30%; left: 45%; opacity: .22; animation-duration: 26s; }
@keyframes deriva {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
  100% { transform: translate(-40px, 70px) scale(.92); }
}
.float { position: absolute; opacity: .9; animation: flota 9s ease-in-out infinite; }
.f1 { width: 22px; height: 22px; border-radius: 6px; background: #ffc24b; top: 16%; left: 6%; animation-delay: -2s; }
.f2 { width: 14px; height: 14px; border-radius: 50%; background: #fff; top: 72%; left: 40%; opacity: .6; animation-delay: -5s; }
.f3 { width: 30px; height: 30px; border-radius: 50%; border: 4px solid #3ee0d2; top: 12%; left: 52%; animation-delay: -1s; }
.f4 { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 24px solid #ff8a73; top: 80%; left: 10%; animation-delay: -7s; }
.f5 { width: 18px; height: 18px; border-radius: 5px; background: #3ee0d2; top: 64%; right: 6%; animation-delay: -3s; }
.f6 { width: 10px; height: 10px; border-radius: 50%; background: #ffc24b; top: 30%; right: 40%; animation-delay: -6s; }
@keyframes flota {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-26px) rotate(160deg); }
}

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: .45rem 1rem; border-radius: 999px;
}
.hero-pill { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); margin-bottom: 1.3rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ffc24b; box-shadow: 0 0 0 0 rgba(255, 194, 75, .7); animation: latido 2s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 10px rgba(255, 194, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 194, 75, 0); } }

.grad-text {
  background: linear-gradient(90deg, #ffe08a, #7ff5e6, #a7f3d0, #ffe08a);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brillo 8s linear infinite;
}
@keyframes brillo { to { background-position: 300% 0; } }

.hero-rotator { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; color: #fff; margin: -.2rem 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; align-items: baseline; }
.rotator { display: inline-grid; height: 1.3em; overflow: hidden; vertical-align: bottom; }
.rot-word {
  grid-area: 1 / 1; color: #ffc24b; white-space: nowrap;
  transform: translateY(110%); opacity: 0;
  animation: rota 10s cubic-bezier(.7, 0, .3, 1) infinite;
}
.rot-word:nth-child(2) { animation-delay: 2.5s; }
.rot-word:nth-child(3) { animation-delay: 5s; }
.rot-word:nth-child(4) { animation-delay: 7.5s; }
@keyframes rota {
  0% { transform: translateY(110%); opacity: 0; }
  4%, 24% { transform: translateY(0); opacity: 1; }
  28%, 100% { transform: translateY(-110%); opacity: 0; }
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; }
.hero-badges li {
  font-size: .9rem; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px; padding: .4rem .9rem; backdrop-filter: blur(6px);
}
.hero-badges li::before { content: "✓"; color: #ffc24b; margin-right: .4rem; font-weight: 900; }

/* Arte del hero: isotipo animado (mariposa que aletea) */
.hero-art { position: relative; transform: translate(var(--px, 0), var(--py, 0)); transition: transform .4s ease-out; }
.hero-svg { width: 100%; max-width: 460px; margin-inline: auto; overflow: visible; position: relative; z-index: 1; }
.tile { transform-origin: 210px 210px; animation: flotar 6s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(2, 40, 38, .45)); }
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.wing-r, .wing-l { transform-box: fill-box; transform-origin: 0% 50%; animation: aletear 1.6s ease-in-out infinite; }
@keyframes aletear { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.55); } }
.twinkle { transform-box: fill-box; transform-origin: center; animation: titilar 3s ease-in-out infinite; }
.t2 { animation-delay: -1s; } .t3 { animation-delay: -2s; }
@keyframes titilar { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.4) rotate(90deg); opacity: .5; } }
.orbit { position: absolute; inset: 50% auto auto 50%; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .25); translate: -50% -50%; animation: girar 30s linear infinite; }
.o1 { width: 112%; aspect-ratio: 1; }
.o2 { width: 82%; aspect-ratio: 1; animation-duration: 20s; animation-direction: reverse; border-style: solid; border-color: rgba(255, 255, 255, .1); }
.orbit span { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #ffc24b; top: -8px; left: calc(50% - 8px); }
.orbit span:nth-child(2) { background: #3ee0d2; top: auto; bottom: -8px; width: 12px; height: 12px; }
.orbit span:nth-child(3) { background: #fff; top: calc(50% - 6px); left: -6px; width: 12px; height: 12px; border-radius: 3px; }
@keyframes girar { to { rotate: 360deg; } }

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 110px); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 240px; margin-inline: auto; }
  .f2, .f4, .f6 { display: none; }
}

/* Cinta animada */
.marquee {
  background: var(--suave); overflow: hidden; padding: .6rem 0 1.2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 1rem; animation: cinta 40s linear infinite; }
.marquee span {
  font-weight: 900; font-size: clamp(1.1rem, 2vw, 1.5rem); white-space: nowrap; color: var(--tinta);
  display: inline-flex; align-items: center; gap: 1rem;
}
.marquee span::after { content: "✦"; color: var(--turquesa); }
.marquee span:nth-child(3n+2)::after { color: var(--sol); }
.marquee span:nth-child(3n)::after { color: var(--esmeralda); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-soft { background: var(--suave); }
.section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }

/* Señales */
.signs {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem;
}
.signs li {
  position: relative; background: #fff; border-radius: 16px; padding: 1.1rem 1.2rem 1.1rem 3.2rem;
  box-shadow: 0 1px 0 var(--suave-2);
}
.signs li::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.3rem; width: 1.2rem; height: 1.2rem;
  border-radius: 50%; background: var(--grad);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--turquesa);
}

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--suave-2); border-radius: var(--radio);
  padding: 1.8rem; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.card p { margin: 0; }
.card-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.card-ico svg { width: 28px; height: 28px; }
.c1 { background: #def6f5; color: var(--turquesa-osc); }
.c2 { background: #dcf3e9; color: var(--esmeralda-osc); }
.c3 { background: #fff2d6; color: #a36a00; }

/* Pasos */
.steps {
  list-style: none; padding: 0; margin: 0; counter-reset: paso;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem;
}
.steps li { background: #fff; border-radius: var(--radio); padding: 1.8rem; position: relative; }
.steps p { margin: 0; }
.step-n {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 1.3rem; margin-bottom: 1rem;
}

/* Cursos */
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.course {
  display: flex; flex-direction: column; align-items: flex-start;
  border-radius: var(--radio); padding: 1.8rem; background: #fff;
  border: 2px dashed #bfe8e1;
}
.course .btn { margin-top: auto; }
.course-for { font-size: .85rem; font-weight: 800; color: var(--turquesa-osc); text-transform: uppercase; letter-spacing: .08em; margin: .9rem 0 .3rem; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  background: #fff2d6; color: #7a5000; padding: .3rem .75rem; border-radius: 999px;
}
.tag-light { background: rgba(255, 255, 255, .18); color: #fff; }

/* Rehabilitación deportiva */
.section-sport { background: linear-gradient(135deg, var(--turquesa-osc), var(--esmeralda-osc)); color: #e8fbf6; }
.section-sport h2 { color: #fff; margin-top: .8rem; }
.sport-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.sport-art svg { max-width: 340px; margin-inline: auto; }
@media (max-width: 820px) {
  .sport-inner { grid-template-columns: 1fr; }
  .sport-art { display: none; }
}
.checks { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .5rem; font-weight: 700; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: .1rem;
  display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: rgba(255, 255, 255, .2); color: #fff; font-size: .8rem; font-weight: 900;
}
.checks-dark li { font-weight: 600; }
.checks-dark li::before { background: var(--suave-2); color: var(--esmeralda-osc); }

/* Sobre mí */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.about-photo > img { border-radius: 28px; box-shadow: var(--sombra); }
.photo-placeholder {
  aspect-ratio: 7 / 8; border-radius: 28px; background: var(--suave);
  border: 2px dashed #bfe8e1; display: grid; place-content: center; justify-items: center; gap: .8rem;
  color: var(--turquesa-osc); font-weight: 800;
}
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}

/* Preguntas frecuentes */
.faq details {
  background: #fff; border-radius: 16px; margin-bottom: .8rem; border: 1px solid var(--suave-2);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem; position: relative;
  font-weight: 800; color: var(--tinta);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--esmeralda); font-weight: 900; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; font-weight: 700; }
.contact-list .ico {
  width: 44px; height: 44px; padding: 10px; border-radius: 14px;
  background: var(--suave); color: var(--esmeralda-osc);
}
.contact-list a { color: var(--tinta); text-decoration: none; }
.contact-list a:hover { color: var(--esmeralda-osc); text-decoration: underline; }
.contact-form {
  background: var(--suave); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.2rem);
  display: grid; gap: .35rem;
}
.contact-form h3 { margin-bottom: .2rem; }
.form-note { font-size: .95rem; margin-bottom: .8rem; }
.contact-form label { font-weight: 700; color: var(--tinta); margin-top: .5rem; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; color: var(--tinta); width: 100%;
  padding: .75rem .9rem; border-radius: 12px; border: 2px solid #cdebe6; background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--turquesa); box-shadow: 0 0 0 4px rgba(18, 165, 168, .18);
}
.contact-form .btn { margin-top: 1rem; }
.form-error { color: #b3261e; font-weight: 700; margin: .4rem 0 0; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Pie de página */
.site-footer { background: var(--tinta); color: #cfe9e6; padding: 3rem 0 6rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: start; }
.footer-inner img { width: 170px; margin-bottom: .8rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 0; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--sol); }
.copy { grid-column: 1 / -1; font-size: .9rem; opacity: .8; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.2rem; margin: 0; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }

/* =========================================================
   Efectos modernos y animaciones
   ========================================================= */

/* Barra de progreso de lectura */
.progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--turquesa-claro), var(--esmeralda), var(--sol)); }

/* Botones extra */
.btn-sun { background: var(--sol); color: var(--tinta); box-shadow: 0 10px 30px -10px rgba(255, 194, 75, .8); }
.btn-sun:hover { background: #ffd06e; color: var(--tinta); box-shadow: 0 16px 34px -10px rgba(255, 194, 75, .9); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); animation: destello 4.5s ease-in-out infinite;
}
@keyframes destello { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Subrayado dibujado en títulos */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .32em; z-index: -1;
  border-radius: 999px; background: linear-gradient(90deg, rgba(31, 193, 188, .45), rgba(255, 194, 75, .6));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.6, 0, .2, 1) .25s;
}
.in-view .mark::after, .no-anim .mark::after { transform: scaleX(1); }

/* Encabezados de sección */
.section-head .eyebrow {
  background: linear-gradient(90deg, #def6f5, #dcf3e9); padding: .4rem 1rem; border-radius: 999px;
}

/* Tarjetas con luz que sigue el mouse y borde degradado */
.card, .course { position: relative; overflow: hidden; isolation: isolate; }
.card::before, .course::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 193, 188, .14), transparent 45%);
}
.card:hover::before, .course:hover::before { opacity: 1; }
.card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-8px); border-color: rgba(31, 193, 188, .55); box-shadow: 0 24px 50px -20px rgba(11, 125, 128, .45); }
.card-ico { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.card:hover .card-ico { transform: rotate(-8deg) scale(1.12); }

/* Señales */
.signs li { transition: transform .3s, box-shadow .3s; }
.signs li:hover { transform: translateX(6px); box-shadow: var(--sombra); }
.signs li::before { animation: latido-tq 2.6s infinite; }
@keyframes latido-tq { 0% { box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--turquesa), 0 0 0 2px rgba(18, 165, 168, .5); } 100% { box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--turquesa), 0 0 0 12px rgba(18, 165, 168, 0); } }

/* Pasos conectados */
.steps { position: relative; }
.steps li { transition: transform .3s, box-shadow .3s; }
.steps li:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.step-n { position: relative; }
.step-n::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px dashed var(--turquesa-claro); animation: girar 12s linear infinite; }
@media (min-width: 1000px) {
  .steps::before {
    content: ""; position: absolute; left: 6%; right: 6%; top: 52px; height: 3px; z-index: 0;
    background: repeating-linear-gradient(90deg, var(--turquesa-claro) 0 10px, transparent 10px 20px);
    background-size: 200% 100%; animation: marcha 3s linear infinite; opacity: .6;
  }
  .steps li { z-index: 1; }
}
@keyframes marcha { to { background-position: -40px 0; } }

/* Cursos con borde degradado giratorio */
.course { border: 0; background: #fff; transition: transform .35s; }
.course > * { position: relative; }
.course::after {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ang, 0deg), var(--turquesa-claro), var(--esmeralda), var(--sol), var(--turquesa-claro));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borde 6s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes borde { to { --ang: 360deg; } }
.course:hover { transform: translateY(-6px) rotate(-.5deg); }
.tag { position: relative; overflow: hidden; }
.tag::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
  animation: barrido 3s ease-in-out infinite;
}
@keyframes barrido { 60%, 100% { transform: translateX(100%); } }

/* Rehabilitación deportiva */
.section-sport { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #064e55, #0b7d80, #077a55, #0b7d80); background-size: 300% 300%; animation: fondo 16s ease infinite; }
@keyframes fondo { 50% { background-position: 100% 50%; } }
.section-sport::before {
  content: ""; position: absolute; inset: -50%; z-index: -1; opacity: .07;
  background: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 28px);
  animation: rayas 20s linear infinite;
}
@keyframes rayas { to { transform: translate(56px, 0); } }
.runner { animation: trote .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes trote { to { transform: translateY(-6px); } }
.speed { animation: velocidad 1s linear infinite; }
.speed:nth-child(2) { animation-delay: -.33s; } .speed:nth-child(3) { animation-delay: -.66s; }
@keyframes velocidad { 0% { transform: translateX(30px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(-40px); opacity: 0; } }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: onda 3s ease-out infinite; }
.pulse-ring.r2 { animation-delay: -1.5s; }
@keyframes onda { 0% { transform: scale(.7); opacity: .25; } 100% { transform: scale(1.15); opacity: 0; } }

/* Foto */
.photo-placeholder { position: relative; }
.photo-placeholder img { animation: flotar-sm 5s ease-in-out infinite; }
@keyframes flotar-sm { 50% { transform: translateY(-10px) rotate(4deg); } }

/* WhatsApp flotante con pulso */
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: onda-wa 2.4s ease-out infinite; }
@keyframes onda-wa { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* Encabezado vidrio */
.site-header { background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(14px); }
.nav a:not(.btn) { position: relative; border-bottom: 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--grad); transform: scaleX(0); transition: transform .25s; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* Animación de aparición (variantes y retardo escalonado) */
.reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal[data-r="left"] { transform: translateX(-50px); }
.reveal[data-r="right"] { transform: translateX(50px); }
.reveal[data-r="zoom"] { transform: scale(.85); }
.reveal.visible { opacity: 1; transform: none; }

/* Movimiento reducido: todo estático y visible */
@media (prefers-reduced-motion: reduce) {
  .rot-word { display: none; }
  .rot-word:first-child { display: inline; transform: none; opacity: 1; }
  .mark::after { transform: scaleX(1); }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track span:nth-child(n+9) { display: none; }
}
