:root {
  --red: #E4002B;
  --red-dark: #B80022;
  --red-soft: #FFF1F3;
  --ink: #1B1D22;
  --muted: #5E6470;
  --line: #E7E8EC;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F9;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(27, 29, 34, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.eyebrow {
  color: var(--red); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .75rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(228, 0, 43, .7); }
.btn--red:hover { background: var(--red-dark); }
.btn--white { background: #fff; color: var(--red); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.topbar.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0,0,0,.25); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 1.8rem; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(228,0,43,.13), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(228,0,43,.07), transparent 60%),
    var(--bg);
}
.hero__bg::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 520px; height: 520px;
  border-radius: 50%; border: 70px solid rgba(228,0,43,.06);
  animation: float 14s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-30px, 30px) scale(1.05); } }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-top: .25rem; }
.hl { color: var(--red); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .18em;
  background: var(--red); opacity: .18; border-radius: 4px;
  transform-origin: left; animation: underline 1s .6s both cubic-bezier(.2,.8,.2,1);
}
@keyframes underline { from { transform: scaleX(0); } }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: center; font-weight: 600; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hero__agent {
  display: flex; align-items: center; gap: .9rem; margin-top: 2rem;
  padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; max-width: 27rem; box-shadow: 0 10px 30px -20px rgba(0,0,0,.3);
}
.hero__agent strong { display: block; }
.hero__agent span { color: var(--muted); font-size: .9rem; }
.hero__wa {
  margin-left: auto; font-weight: 700; font-size: .85rem; text-decoration: none;
  color: #fff; background: #25D366; padding: .5rem .9rem; border-radius: 999px;
}
.avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800;
  display: grid; place-items: center; letter-spacing: .02em;
  object-fit: cover; border: 2px solid var(--red);
}

/* ---------- Formulario ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card { overflow: hidden; }
.form-card__head { background: var(--red); color: #fff; padding: 1.4rem 1.6rem; }
.form-card__head h2 { font-size: 1.45rem; margin: 0 0 .2rem; }
.form-card__head p { margin: 0; opacity: .9; font-size: .95rem; }
.form { padding: 1.4rem 1.6rem 1.6rem; display: grid; gap: .95rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .82rem; font-weight: 700; color: var(--ink); padding: 0; }
.field em { font-weight: 500; color: var(--muted); font-style: normal; }
input, select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: .72rem .85rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg-alt); transition: border-color .2s, background .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(228,0,43,.12);
}
.field.has-error input, .field.has-error select { border-color: var(--red); background: var(--red-soft); }
textarea { resize: vertical; }
.phone { display: flex; align-items: stretch; }
.phone span {
  display: grid; place-items: center; padding: 0 .7rem; font-weight: 700; font-size: .9rem;
  background: var(--line); border-radius: 10px 0 0 10px; color: var(--muted);
}
.phone input { border-radius: 0 10px 10px 0; }
.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.toggle label { cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span {
  display: block; text-align: center; padding: .65rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg-alt); font-weight: 700; transition: all .2s;
}
.toggle input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.toggle input:focus-visible + span { box-shadow: 0 0 0 4px rgba(228,0,43,.2); }
.cargas { padding: .9rem; border-radius: 12px; background: var(--red-soft); animation: drop .35s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--red); flex: none; padding: 0; }
.consent.has-error span { color: var(--red); }
.form__note { margin: 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form__note.ok { color: #13804B; }
.form__note.err { color: var(--red); }
.form__fine { margin: 0; font-size: .75rem; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-done { padding: 2.4rem 1.6rem; text-align: center; }
.form-done .tick {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; background: var(--red);
  display: grid; place-items: center; color: #fff; font-size: 2rem; font-weight: 800;
}

/* ---------- Clínicas (carrusel) ---------- */
.clinics { padding: 2.6rem 0 2.2rem; border-top: 1px solid var(--line); background: #fff; }
.clinics__title {
  text-align: center; margin: 0 0 1.6rem; font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}
.clinics__note { text-align: center; margin: 1.4rem 0 0; font-size: .78rem; color: var(--muted); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; gap: 4.5rem; list-style: none; margin: 0; padding: 0 2.25rem; }
.marquee__list li { flex: none; }
.marquee__list img { height: 52px; width: auto; max-width: 220px; object-fit: contain; transition: transform .3s ease; }
.marquee__list img:hover { transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre mí ---------- */
.about { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-alt); }
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__photo { margin: 0; }
.about__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background: linear-gradient(150deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: var(--shadow);
}
.about__frame::before {
  content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255,255,255,.35); border-radius: 18px; z-index: 1; pointer-events: none;
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; letter-spacing: -.04em; }
.about__photo figcaption { margin-top: .9rem; font-size: .85rem; color: var(--muted); text-align: center; }
.about__copy p { color: var(--muted); font-size: 1.07rem; }
.about__copy .about__quote {
  color: var(--ink); font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.35;
  padding-left: 1rem; border-left: 4px solid var(--red); margin: 0 0 1.2rem;
}
.about__stat { display: inline-flex; align-items: center; gap: .9rem; margin-top: .4rem; }
.about__stat strong { font-size: 3rem; font-weight: 800; color: var(--red); line-height: 1; letter-spacing: -.04em; }
.about__stat span { font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.contact-chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .65rem 1.1rem;
  font-weight: 600; transition: border-color .2s, color .2s;
}
.chip svg { width: 18px; height: 18px; fill: var(--red); }
.chip:hover { border-color: var(--red); color: var(--red); }

/* ---------- Beneficios ---------- */
.perks { padding: clamp(4rem, 8vw, 7rem) 0; }
.perks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.perk {
  padding: 2rem 1.7rem; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.perk:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.perk__ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 1.2rem;
}
.perk h3 { font-size: 1.2rem; }
.perk p { color: var(--muted); margin: 0; }

/* ---------- Pasos ---------- */
.steps { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--ink); color: #fff; }
.steps .eyebrow { color: #FF6B83; }
.steps__list { list-style: none; padding: 0; margin: 2.8rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.steps__list li { position: relative; padding: 1.6rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.steps__list span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); font-weight: 800; margin-bottom: 1rem;
}
.steps__list h3 { font-size: 1.1rem; }
.steps__list p { margin: 0; color: rgba(255,255,255,.7); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(4rem, 8vw, 7rem) 0; }
.faq__wrap { max-width: 780px; }
.faq h2 { margin-bottom: 2rem; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 700; font-size: 1.05rem; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; transition: transform .25s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 1.3rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.cta__in {
  text-align: center; color: #fff; border-radius: 28px; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  background: radial-gradient(80% 120% at 0% 0%, #FF3358 0%, var(--red) 45%, var(--red-dark) 100%);
}
.cta__in p { opacity: .9; margin: 0 0 1.8rem; }
.cta__btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; }
.footer__in { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.footer__logo { height: 30px; width: auto; }
.footer__info { color: var(--muted); font-size: .95rem; }
.footer__info a { color: var(--red); text-decoration: none; font-weight: 600; }
.footer__fine { margin: 0; font-size: .78rem; color: var(--muted); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.4);
  transition: transform .2s;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 340px; margin-inline: auto; }
  .perks__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .form, .form-card__head { padding-inline: 1.15rem; }
  .brand img { height: 30px; }
  .hl { white-space: normal; }
  .marquee__list { gap: 2.8rem; padding: 0 1.4rem; }
  .marquee__list img { height: 40px; max-width: 170px; }
  .hero__wa { display: none; } /* en celular ya está el botón flotante */
}
