/* ==========================================================
   Clínica Concordia — "Hacienda serena"
   ========================================================== */

:root {
  --navy: #0D224C;
  --navy-2: #16306A;
  --blue: #3468D6;
  --blue-hover: #2855B8;
  --blue-soft: #E8F0FB;
  --sky: #C9DBF6;
  --cream: #F7F3EC;
  --cream-2: #EFE8DC;
  --terra: #B8613F;
  --terra-soft: #F4E3DA;
  --sage: #4F6B4A;
  --ink: #2B3346;
  --muted: #5E6678;
  --line: #E3E7EF;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-dark: #128C4B;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 34, 76, .06), 0 12px 32px -12px rgba(13, 34, 76, .18);
  --shadow-lg: 0 30px 60px -24px rgba(13, 34, 76, .35);
  --wrap: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
em { font-style: italic; color: var(--blue); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(52, 104, 214, .7); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--whatsapp { background: #fff; color: var(--wa-dark); border-color: #CDEBD9; }
.btn--whatsapp .ico { color: var(--wa); width: 1.3em; height: 1.3em; }
.btn--whatsapp:hover { border-color: var(--wa); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--cream); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy); display: grid; place-items: center; transition: .2s;
}
.round-btn:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy); color: #C9D3E6; font-size: .84rem; }
.topbar__in { display: flex; align-items: center; gap: 28px; min-height: 40px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__social { margin-left: auto; gap: 14px !important; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(13, 34, 76, .4); }
.header__in { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand img { width: 118px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--terra); transition: right .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { right: 0; }
.nav__cta-mobile { display: none !important; }
.header__phone { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.2; }
.header__phone small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
.header__phone-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); place-items: center; }
.burger .ico { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, var(--blue-soft), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
}
.hero::before {
  content: ""; position: absolute; left: -120px; bottom: -140px; width: 520px; height: 360px;
  background: url("../img/loto.png") no-repeat center / contain; opacity: .045; pointer-events: none;
}
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.6rem); line-height: 1.04; margin-bottom: 22px; }
.hero h1 em { display: block; }
.hero__lead { font-size: 1.14rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .9rem; font-weight: 500; color: var(--navy); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .ico { color: var(--terra); }

.hero__media { position: relative; }
.hero__img { margin: 0; border-radius: 28px 28px 28px 120px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px; font-size: .86rem; color: var(--muted); line-height: 1.4;
}
.float-card strong { display: block; color: var(--navy); font-size: 1rem; }
.float-card--rating { top: 28px; left: -36px; }
.float-card--care { right: -20px; bottom: 36px; display: flex; gap: 14px; align-items: center; }
.float-card__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--terra-soft); color: var(--terra); }
.stars { display: flex; gap: 2px; color: #F4B400; margin-bottom: 4px; }
.stars svg { width: 16px; height: 16px; }

/* ---------- Sellos ---------- */
.seals { background: #fff; padding: 34px 0; border-bottom: 1px solid var(--line); }
.seals__label { text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.seals__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; align-items: center; }
.seals__list img { width: 100%; max-width: 170px; margin-inline: auto; filter: grayscale(1); opacity: .75; transition: .3s; mix-blend-mode: multiply; }
.seals__list img:hover { filter: none; opacity: 1; }

/* ---------- Cifras ---------- */
.stats { background: var(--navy); color: #fff; padding: 44px 0; position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 6px 16px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .14); }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1.1; color: #fff; }
.stat strong small { font-size: .6em; color: #F4B400; margin-left: 4px; }
.stat > span { color: #B9C5DD; font-size: .95rem; }

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head > p:last-child { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; text-align: left; }
.section-head--split .eyebrow { justify-content: flex-start; }
.section-head--split > p { max-width: 420px; margin: 0 !important; }
.section-head--light h2 { color: #fff; }
.section-head--light > p:last-child { color: #B9C5DD; }

/* ---------- Por qué ---------- */
.why__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.why__media { position: relative; padding: 0 12% 18% 0; }
.why__img-a { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.why__img-b { position: absolute; right: 0; bottom: 0; width: 52%; border-radius: var(--radius); border: 8px solid #fff; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.why__copy h2 { margin-bottom: 20px; }
.why__copy > p:not(.eyebrow) { color: var(--muted); }
.pillars { margin-top: 32px; display: grid; gap: 22px; }
.pillars li { display: flex; gap: 18px; align-items: flex-start; }
.pillars__ico { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.pillars__ico .ico { width: 24px; height: 24px; }
.pillars h3 { margin-bottom: 4px; }
.pillars p { color: var(--muted); font-size: .97rem; }

/* ---------- Padecimientos ---------- */
.conditions { background: var(--blue-soft); position: relative; }
.cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cond {
  background: #fff; border-radius: var(--radius); padding: 26px 26px 24px; border: 1px solid transparent;
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 4px; align-items: start;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cond:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky); }
.cond__ico { grid-row: span 2; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--terra); }
.cond__ico .ico { width: 23px; height: 23px; }
.cond h3 { font-size: 1.08rem; align-self: end; }
.cond p { color: var(--muted); font-size: .93rem; line-height: 1.5; }

/* ---------- Modelo ---------- */
.model { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.model::after {
  content: ""; position: absolute; right: -160px; top: -120px; width: 560px; height: 560px;
  background: url("../img/loto.png") no-repeat center / contain; opacity: .05; filter: invert(1) brightness(2);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; position: relative; z-index: 1; }
.step { padding: 32px 30px 34px; border-top: 1px solid rgba(255, 255, 255, .16); position: relative; }
.step:nth-child(-n+3) { border-top-color: rgba(255, 255, 255, .3); }
.step::before { content: ""; position: absolute; top: -5px; left: 30px; width: 9px; height: 9px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 5px rgba(184, 97, 63, .25); }
.step__n { font-family: var(--serif); font-size: 2.6rem; color: #8FB0EE; line-height: 1; display: block; margin-bottom: 14px; }
.step h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: #B9C5DD; font-size: .96rem; }

/* ---------- Terapias (pestañas) ---------- */
.tabs__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tabs__list button {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; transition: .2s;
}
.tabs__list button:hover { border-color: var(--navy); }
.tabs__list button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs__panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; animation: fade .4s ease; }
.tabs__panel[hidden] { display: none; }
.tabs__panel img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.tabs__panel h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: 20px; }
.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--terra-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8613F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 12px;
}
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Instalaciones ---------- */
.facilities { background: var(--cream); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; grid-auto-flow: dense; }
.g { position: relative; border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2); }
.g--wide { grid-column: span 2; }
.g--tall { grid-row: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g:hover img { transform: scale(1.05); }
.g span {
  position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); color: var(--navy);
  font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}

/* ---------- Intervención en crisis ---------- */
.crisis { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-2); color: #fff; min-height: 520px; }
.crisis__media img { width: 100%; height: 100%; object-fit: cover; }
.crisis__copy { padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px); align-self: center; max-width: 640px; }
.crisis__copy .eyebrow { color: #F0B79E; }
.crisis__copy h2 { color: #fff; margin-bottom: 20px; }
.crisis__copy p { color: #CBD5E8; }
.crisis__copy strong { color: #fff; }
.crisis__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Testimonios ---------- */
.g-rating { display: flex; align-items: center; gap: 14px; }
.g-rating > strong { font-family: var(--serif); font-weight: 400; font-size: 3.2rem; color: var(--navy); line-height: 1; }
.g-rating span { font-size: .88rem; color: var(--muted); }
.t-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none;
}
.t-track::-webkit-scrollbar { display: none; }
.t-card {
  margin: 0; scroll-snap-align: start; background: var(--cream); border-radius: var(--radius); padding: 32px 30px 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative;
}
.t-card::before { content: "“"; position: absolute; top: 4px; right: 22px; font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--terra); opacity: .25; }
.t-card blockquote { margin: 0; font-size: 1.04rem; color: var(--ink); }
.t-card figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); line-height: 1.25; flex-wrap: wrap; }
.t-card figcaption small { display: block; width: 100%; font-weight: 500; color: var(--muted); font-size: .8rem; margin-left: 56px; margin-top: -10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .82rem; letter-spacing: .04em; }
.t-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq { background: var(--blue-soft); }
.faq__in { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__intro h2 { margin-bottom: 16px; }
.faq__intro p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }
.faq__list { display: grid; gap: 12px; }
details { background: #fff; border-radius: var(--radius-sm); padding: 0 24px; transition: box-shadow .2s; }
details[open] { box-shadow: var(--shadow); }
summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; color: var(--navy); cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary .ico { transition: transform .25s; color: var(--terra); width: 22px; height: 22px; }
details[open] summary .ico { transform: rotate(180deg); }
details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { padding-bottom: 0; }
.contact__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
.contact__info h2 { margin-bottom: 16px; }
.contact__info > p:not(.eyebrow) { color: var(--muted); }
.contact__list { margin-top: 34px; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact__list a { font-weight: 600; color: var(--navy); text-decoration: none; font-size: 1.08rem; }
.contact__list a:hover { color: var(--blue); }
.contact__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.contact__ico--wa { background: #E3F7EA; color: var(--wa-dark); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; position: relative; }
.form h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.form .opt { font-weight: 400; color: var(--muted); }
.form input:not([type=checkbox]), .form select, .form textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); width: 100%;
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #FBFCFE; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(52, 104, 214, .14); background: #fff; }
.form .is-invalid { border-color: #C2413B !important; }
.form__check { display: flex !important; align-items: center; gap: 10px !important; font-weight: 500 !important; color: var(--muted) !important; }
.form__check input { width: 18px; height: 18px; accent-color: var(--blue); }
.form__note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .82rem; color: var(--muted); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.35); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #B9C5DD; padding-top: 72px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer__brand img { width: 140px; margin-bottom: 18px; }
.footer__brand p { max-width: 340px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; transition: .2s; }
.footer__social a:hover { background: #fff; color: var(--navy); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ico { margin-top: 4px; color: #F0B79E; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; font-size: .85rem; }

/* ---------- Flotantes (inferior izquierda) ---------- */
.wa-float, .tel-float {
  position: fixed; left: 24px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  color: #fff; display: grid; place-items: center; transition: transform .2s;
}
.wa-float { bottom: 24px; background: var(--wa); box-shadow: 0 14px 30px -10px rgba(18, 140, 75, .7); }
.tel-float { bottom: 96px; background: var(--blue); box-shadow: 0 14px 30px -10px rgba(52, 104, 214, .7); display: none; }
.wa-float:hover, .tel-float:hover { transform: scale(1.06); }
.wa-float .ico { width: 30px; height: 30px; }
.tel-float .ico { width: 26px; height: 26px; }
.is-mobile .tel-float { display: grid; }

/* ---------- Rastreo GTM ----------
   Los hijos no reciben el clic: el objetivo del evento siempre es el <a> con la clase. */
.gtm-whatsapp *, .gtm-llamada * { pointer-events: none; }

/* ---------- Llamadas solo en móvil ---------- */
.no-tel .gtm-llamada { pointer-events: none; cursor: default; }
.no-tel .gtm-llamada.btn { box-shadow: none; }

/* ---------- Visor ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 18, 40, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(1100px, 88vw); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-weight: 500; }
.lightbox .round-btn { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.lightbox .round-btn:hover { background: #fff; color: var(--navy); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; }
.lightbox__next { right: 20px; top: 50%; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .header__phone small { display: none; }
  .nav { gap: 20px; }
  .float-card--rating { left: -12px; }
  .float-card--care { right: -8px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .topbar span:nth-child(2) { display: none; }
  .header__phone { display: none; }
  .burger { display: grid; }
  .brand img { width: 96px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 12px 16px 24px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(13, 34, 76, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; margin: 0;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta-mobile { display: inline-flex !important; margin-top: 18px; }

  .hero__in, .why__in, .tabs__panel, .faq__in, .contact__in { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__img { aspect-ratio: 4/3.3; border-radius: 24px 24px 24px 80px; }
  .why__media { max-width: 600px; }
  .cond-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(-n+3) { border-top-color: rgba(255, 255, 255, .16); }
  .step:nth-child(-n+2) { border-top-color: rgba(255, 255, 255, .3); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .crisis { grid-template-columns: 1fr; }
  .crisis__media { aspect-ratio: 16/9; }
  .t-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .faq__intro { position: static; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__in { gap: 14px; font-size: .78rem; }
  .topbar__in > a { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .hero { padding-top: 32px; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { font-size: .84rem; }
  .float-card { padding: 12px 14px; font-size: .78rem; }
  .float-card--rating { top: 14px; left: 10px; }
  .float-card--care { right: 10px; bottom: -22px; }
  .float-card__ico { width: 36px; height: 36px; }
  .seals__list { grid-template-columns: repeat(3, 1fr); gap: 16px 20px; }
  .why__media { padding: 0 8% 22% 0; }
  .cond-grid { grid-template-columns: 1fr; }
  .cond { padding: 20px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 26px 8px 26px 34px; border-top: 0 !important; border-left: 1px solid rgba(255, 255, 255, .22); }
  .step::before { top: 34px; left: -5px; }
  .tabs__list { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .tabs__list button { flex: none; padding: 10px 16px; }
  .gallery { grid-auto-rows: 150px; gap: 10px; }
  .g span { font-size: .72rem; padding: 4px 10px; left: 8px; bottom: 8px; }
  .t-track { grid-auto-columns: 86%; gap: 14px; }
  .t-card { padding: 26px 22px 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }
  .map iframe { height: 300px; }
  .wa-float, .tel-float { left: 16px; width: 56px; height: 56px; }
  .wa-float { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .tel-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* Ajustes */
.form label > span:first-child { display: block; }
.g img[src*="tenis"] { object-position: 50% 92%; }
.g img[src*="alberca-camastros"] { object-position: 50% 70%; }

/* ==========================================================
   Subpáginas
   ========================================================== */
.btn--ghost { color: var(--navy); border-color: var(--line); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); }

/* ---------- Gracias ---------- */
.thanks {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(800px 420px at 50% 0%, var(--blue-soft), transparent 70%), linear-gradient(180deg, #fff, var(--cream));
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 110px);
}
.thanks::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 400px; transform: translate(-50%, -50%);
  background: url("../img/loto.png") no-repeat center / contain; opacity: .04; pointer-events: none;
}
.thanks__in { position: relative; max-width: 760px; }
.thanks__check {
  width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center;
  background: #E3F7EA; color: var(--wa-dark); box-shadow: 0 0 0 10px rgba(37, 211, 102, .1);
  animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.thanks__check .ico { width: 40px; height: 40px; stroke-width: 2.4; }
.thanks .eyebrow { justify-content: center; }
.thanks h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); margin-bottom: 18px; }
.thanks__lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin-inline: auto; }
.thanks__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 34px 0 30px; }
.thanks__trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; font-weight: 500; color: var(--navy); }
.thanks__trust li { display: inline-flex; align-items: center; gap: 8px; }
.thanks__trust .ico { color: var(--terra); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.next-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s;
}
.next-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.next-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.next-card > div { padding: 22px 24px 24px; display: grid; gap: 6px; }
.next-card p { color: var(--muted); font-size: .95rem; }
.next-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; color: var(--blue); font-size: .95rem; }

/* ---------- Encabezado de página ---------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(48px, 6vw, 80px) 0; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: 50%; width: 420px; height: 300px; transform: translateY(-50%);
  background: url("../img/loto.png") no-repeat center / contain; opacity: .06; filter: invert(1) brightness(2);
}
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem); margin: 14px 0 12px; }
.page-hero p { color: #B9C5DD; max-width: 40em; font-size: 1.08rem; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #B9C5DD; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs .ico { transform: rotate(-90deg); width: 14px; height: 14px; }

/* ---------- Aviso legal ---------- */
.legal__in { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: .92rem; }
.legal__toc-title { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-bottom: 12px; }
.legal__toc ol { display: grid; gap: 2px; counter-reset: t; border-left: 1.5px solid var(--line); }
.legal__toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1.5px; border-left: 1.5px solid transparent; color: var(--muted); text-decoration: none; }
.legal__toc a:hover { color: var(--navy); border-left-color: var(--navy); }
.legal__body { max-width: 760px; }
.legal__body > p, .legal__body li { color: var(--ink); }
.legal__body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: 48px 0 14px; padding-top: 8px; }
.legal__body h3 { margin: 24px 0 10px; }
.legal__body p + p { margin-top: 12px; }
.legal__body ul, .legal__body ol { margin: 12px 0; padding-left: 4px; display: grid; gap: 10px; }
.legal__body ul li { position: relative; padding-left: 22px; }
.legal__body ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }
.legal__body ol { list-style: decimal; padding-left: 24px; }
.legal__body ol li::marker { color: var(--terra); font-weight: 700; }
.legal__updated { display: inline-block; font-size: .85rem; color: var(--muted) !important; background: var(--cream); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.pendiente { background: #FFF1B8; color: #7A5600; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal__contact { margin-top: 56px; padding: 32px; border-radius: var(--radius); background: var(--blue-soft); display: grid; gap: 8px; justify-items: start; }
.legal__contact p { color: var(--muted); margin-bottom: 10px; }

@media (max-width: 960px) {
  .next-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .legal__in { grid-template-columns: 1fr; }
  .legal__toc { position: static; background: var(--cream); border-radius: var(--radius-sm); padding: 20px 22px; }
  .legal__toc ol { grid-template-columns: 1fr 1fr; border: 0; }
  .legal__toc a { padding-left: 0; border: 0; }
}
@media (max-width: 640px) {
  .thanks__actions .btn { width: 100%; }
  .legal__toc ol { grid-template-columns: 1fr; }
  .legal__contact { padding: 24px; }
}

/* ---------- Verificación anti-spam (captcha matemático) ---------- */
.form .form__captcha {
  grid-template-columns: 1fr 96px; align-items: center; gap: 14px;
  background: var(--cream); border-radius: 12px; padding: 12px 12px 12px 16px;
}
.form__captcha > span { font-weight: 500; color: var(--ink); }
.form__captcha > span .ico { color: var(--terra); vertical-align: -3px; margin-right: 8px; }
.form__captcha strong { color: var(--navy); font-weight: 700; white-space: nowrap; }
.form .form__captcha input { text-align: center; font-weight: 700; font-size: 1.05rem; background: #fff; padding: 10px; }
.form__error {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: #FCEBEA; color: #8E2B25; font-size: .92rem; font-weight: 500; line-height: 1.45;
}
.form__error .ico { flex: none; margin-top: 2px; }
