/* Clínica R&O — Rehabilitación Oral y Ortodoncia */
:root {
  --teal: #009688;
  --teal-600: #00796f;
  --teal-900: #094742;
  --teal-950: #062f2c;
  --mint: #e6f4f1;
  --mint-2: #f3faf8;
  --sand: #f6f1ea;
  --ink: #10201e;
  --muted: #5a6b68;
  --line: #dfe9e6;
  --white: #ffffff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(9, 71, 66, .06), 0 12px 32px -12px rgba(9, 71, 66, .18);
  --shadow-lg: 0 2px 4px rgba(9, 71, 66, .05), 0 30px 60px -24px rgba(9, 71, 66, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--mint { background: var(--mint-2); }
.section--dark { background: var(--teal-950); color: #e7f3f1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: #7fd6cb; }

.h2 { font-size: clamp(30px, 4.2vw, 48px); }
.h2 em { color: var(--teal); }
.section--dark .h2 em { color: #7fd6cb; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: #a9c9c4; }
.head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { text-align: center; justify-items: center; }
.head--center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  --bg: var(--teal); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 600 15.5px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 150, 136, .6); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--dark { --bg: var(--teal-900); }
.btn--light { --bg: #fff; --fg: var(--teal-900); }
.btn--ghost { --bg: transparent; --fg: var(--teal-900); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn--sm { padding: 10px 18px; font-size: 14.5px; }
.btn--block { width: 100%; }

/* Topbar */
.topbar { background: var(--teal-950); color: #b9d6d1; font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: background .2s; }
.social a:hover { background: rgba(255,255,255,.1); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(9,71,66,.4); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 48px; width: auto; border-radius: 10px; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-size: 16px; letter-spacing: -.01em; }
.brand__text small { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: #2c3e3b; transition: background .2s, color .2s; }
.nav > a:hover { background: var(--mint); color: var(--teal-900); }
.nav > a[aria-current="page"] { color: var(--teal-900); background: var(--mint); font-weight: 600; }

/* Agenda dropdown */
.book { position: relative; }
.book__menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 340px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease;
}
.book.is-open .book__menu { opacity: 1; visibility: visible; transform: none; }
.book__menu p { font-size: 12.5px; color: var(--muted); padding: 8px 12px 6px; }
.book__opt { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; text-decoration: none; transition: background .15s; }
.book__opt:hover { background: var(--mint-2); }
.book__opt strong { display: block; font-size: 15px; }
.book__opt small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.book__opt .arrow { margin-left: auto; color: var(--teal); }

.ico {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--mint); color: var(--teal-600);
}
.ico svg { width: 24px; height: 24px; }
.ico--rehab { background: var(--teal-900); color: #bff0e8; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.mnav { display: none; }

/* Hero */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); overflow: hidden;
  background: radial-gradient(1000px 500px at 85% -10%, #d7efea 0%, transparent 60%), linear-gradient(#fff, var(--mint-2)); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -.04em; line-height: 1.02; }
.hero h1 em { color: var(--teal); }
.hero .lead { margin-top: 22px; }
.hero__book { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; max-width: 600px; }
.hbtn {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
  text-decoration: none; background: var(--teal); color: #fff;
  box-shadow: 0 14px 30px -16px rgba(0, 150, 136, .8); transition: transform .2s, box-shadow .2s;
}
.hbtn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(0, 150, 136, .9); }
.hbtn--rehab { background: var(--teal-900); box-shadow: 0 14px 30px -16px rgba(9, 71, 66, .9); }
.hbtn .ico { width: 42px; height: 42px; background: rgba(255,255,255,.16); color: #fff; }
.hbtn small { display: block; font-size: 12px; opacity: .8; line-height: 1.2; }
.hbtn strong { display: block; font-size: 16.5px; line-height: 1.25; letter-spacing: -.01em; }
.hbtn em { display: block; font-style: normal; font-size: 12.5px; opacity: .75; margin-top: 2px; }
.hbtn__arrow { width: 18px; height: 18px; margin-left: auto; flex: none; }
.hero__hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero__hint a { color: var(--teal-600); font-weight: 600; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: #2c3e3b; }
.chip svg { width: 16px; height: 16px; color: var(--teal); }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 1/1; max-height: 580px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.hero__badge {
  position: absolute; left: -22px; bottom: 28px; display: flex; gap: 12px; align-items: center;
  background: #fff; padding: 14px 18px; border-radius: 18px; box-shadow: var(--shadow-lg);
}
.hero__badge strong { display: block; font-size: 15px; }
.hero__badge small { color: var(--muted); font-size: 13px; }

/* Agenda chooser (the main fix) */
.agendas { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); background: var(--mint-2); }
.agendas__title { text-align: center; display: grid; gap: 10px; justify-items: center; margin-bottom: 30px; }
.agendas__title h2 { font-size: clamp(28px, 3.6vw, 40px); }
.agendas__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.acard {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: clamp(26px, 3.4vw, 40px); border-radius: 28px; text-decoration: none;
  background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  overflow: hidden;
}
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.acard--rehab { background: var(--teal-900); color: #e3f2ef; border-color: var(--teal-900); }
.acard--rehab:hover { border-color: #7fd6cb; }
.acard__top { display: flex; align-items: center; gap: 14px; }
.acard__top .ico { width: 56px; height: 56px; border-radius: 16px; }
.acard__top .ico svg { width: 30px; height: 30px; }
.acard__tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); }
.acard--rehab .acard__tag { color: #7fd6cb; }
.acard h3 { font-size: clamp(24px, 2.6vw, 32px); }
.acard__for { font-size: 15px; color: var(--muted); }
.acard--rehab .acard__for { color: #a9c9c4; }
.acard ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.acard li { font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--teal-900); }
.acard--rehab li { background: rgba(255,255,255,.1); color: #d5ece8; }
.acard__doc { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.acard--rehab .acard__doc { border-color: rgba(255,255,255,.14); color: #a9c9c4; }
.acard__doc img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; }
.acard__doc strong { color: var(--ink); display: block; font-size: 14.5px; }
.acard--rehab .acard__doc strong { color: #fff; }
.acard .btn { margin-top: auto; align-self: flex-start; }
.acard--rehab .btn { --bg: #fff; --fg: var(--teal-900); }
.agendas__help { text-align: center; margin-top: 26px; color: var(--muted); font-size: 15px; }
.agendas__help a { color: var(--teal-600); font-weight: 600; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: 26px; width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.split__media .floating {
  position: absolute; right: -16px; bottom: -22px; width: 46%; aspect-ratio: 1; object-fit: cover;
  border: 6px solid #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
}
.feature-list { display: grid; gap: 18px; margin-top: 30px; }
.feature { display: flex; gap: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 4px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 15.5px; }

/* Specialty cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.scard {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scard__img { aspect-ratio: 16/10; overflow: hidden; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.scard:hover .scard__img img { transform: scale(1.05); }
.scard__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.scard h3 { font-size: 21px; letter-spacing: -.015em; }
.scard p { color: var(--muted); font-size: 15px; }
.scard__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--mint); color: var(--teal-600); }
.pill--rehab { background: var(--teal-900); color: #bff0e8; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--teal-600); text-decoration: none; }
.link svg { width: 16px; height: 16px; transition: transform .2s; }
.link:hover svg { transform: translateX(3px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step__ico {
  --ico-color: #fff;
  display: block; width: 52px; height: 52px; flex: none; background: var(--ico-color);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.step__ico--1 { --icon: url("../img/iconos/paso-1.png"); }
.step__ico--2 { --icon: url("../img/iconos/paso-2.png"); }
.step__ico--3 { --icon: url("../img/iconos/paso-3.png"); }
.step__ico--4 { --icon: url("../img/iconos/paso-4.png"); }
.step__ico--5 { --icon: url("../img/iconos/paso-5.png"); }
.step__n { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: #7fd6cb; }
.step h3 { font-size: 17px; margin: 14px 0 8px; color: #fff; letter-spacing: -.01em; }
.step p { font-size: 14.5px; color: #a9c9c4; }

/* Team */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 22px; border-radius: 26px; background: #fff; border: 1px solid var(--line); align-items: center; }
.doc img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 18px; }
.doc h3 { font-size: 24px; margin: 8px 0 10px; }
.doc p { color: var(--muted); font-size: 15px; }
.doc .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; gap: 14px; }
.gallery figure { margin: 0; position: relative; display: flex; flex-direction: column; }
.gallery img { width: 100%; flex: none; height: 240px; object-fit: cover; object-position: center 30%; border-radius: 18px; transition: transform .6s; }
.gallery figcaption { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: #094742; color: #fff; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.3; }
.gallery figure:not(:has(figcaption)) img { flex: 1 1 0; height: 100%; }
.gallery figure:has(figcaption):hover img { transform: none; }
.head .lead + .lead { margin-top: 14px; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.img-lift { filter: brightness(1.55) contrast(1.05) saturate(1.05); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #b8ddd6; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--teal-600); font-size: 20px; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* CTA band */
.cta { border-radius: 32px; padding: clamp(36px, 6vw, 72px); background: var(--teal-900) url("../img/pattern.svg") right -40px center / 420px no-repeat; color: #fff; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); }
.cta h2 em { color: #7fd6cb; }
.cta p { color: #b6d6d1; margin-top: 12px; }
.cta__btns { display: grid; gap: 12px; }
.cta__btns .btn { justify-content: space-between; padding: 18px 24px; font-size: 16px; }
.cta__btns small { display: block; font-weight: 500; font-size: 13px; opacity: .75; }
.cta__btns .btn span { text-align: left; white-space: normal; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); }
.cinfo { display: grid; gap: 14px; margin-top: 28px; }
.cinfo a, .cinfo div { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; background: #fff; }
.cinfo a:hover { border-color: var(--teal); }
.cinfo strong { display: block; font-size: 15px; }
.cinfo small { color: var(--muted); font-size: 14.5px; }
.map { margin-top: 14px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); height: 220px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form { background: #fff; border-radius: 26px; border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; align-content: start; }
.form h3 { font-size: 24px; }
.form > p { color: var(--muted); font-size: 15px; margin-top: -8px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: #2c3e3b; }
.field input, .field select, .field textarea {
  font: 400 15.5px var(--font); color: var(--ink); width: 100%;
  padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--mint-2);
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.form small.note { color: var(--muted); font-size: 13px; text-align: center; }

/* Footer */
.footer { background: var(--teal-950); color: #a9c9c4; padding: 64px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__brand img { height: 56px; border-radius: 12px; margin-bottom: 16px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.footer .social a { width: 38px; height: 38px; background: rgba(255,255,255,.07); }
.footer .social svg { width: 17px; height: 17px; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37,211,102,.6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* Inner page hero */
.phero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); background: radial-gradient(900px 480px at 90% -20%, #d7efea, transparent 60%), linear-gradient(#fff, var(--mint-2)); }
.phero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.phero h1 { font-size: clamp(36px, 5.2vw, 62px); letter-spacing: -.035em; }
.phero h1 em { color: var(--teal); }
.phero .lead { margin-top: 18px; }
.phero__media img { border-radius: 28px; width: 100%; aspect-ratio: 4/3.3; object-fit: cover; box-shadow: var(--shadow-lg); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--teal-600); font-weight: 600; }
.bookbox { margin-top: 28px; padding: 22px; border-radius: 22px; background: #fff; border: 1.5px solid var(--teal); box-shadow: var(--shadow); display: grid; gap: 14px; max-width: 520px; }
.bookbox--rehab { border-color: var(--teal-900); }
.bookbox__row { display: flex; align-items: center; gap: 14px; }
.bookbox strong { display: block; font-size: 17px; }
.bookbox small { color: var(--muted); font-size: 14px; }
.bookbox__alt { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.bookbox__alt a { color: var(--teal-600); font-weight: 600; }

.specialist { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.specialist img { width: 100%; border-radius: 26px; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.specialist h2 { margin: 12px 0 6px; }
.specialist .role { color: var(--teal-600); font-weight: 600; margin-bottom: 18px; }
.specialist p + p { margin-top: 14px; }
.specialist p { color: var(--muted); }
.specialist .btn { margin-top: 26px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.pillar { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.pillar h3 { font-size: 18px; margin: 14px 0 6px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* Before / after */
.case { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 32px); }
.case + .case { margin-top: 22px; }
.case h3 { font-size: 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.case__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.case__steps.five { grid-template-columns: repeat(5, 1fr); }
.case figure { margin: 0; }
.case figure img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; }
.case figcaption { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.case figcaption b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--teal-600); font-size: 12px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (min-width: 901px) and (max-width: 1180px) {
  .hero__book { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; }
  .doc img { aspect-ratio: 4/3; }
}
@media (max-width: 900px) {
  .topbar__info .hide-sm { display: none; }
  .nav, .header .book { display: none; }
  .burger { display: grid; }
  .mnav { display: block; position: fixed; inset: 76px 0 auto 0; max-height: calc(100vh - 90px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 22px; box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; z-index: 49; }
  .mnav.is-open { transform: none; opacity: 1; visibility: visible; }
  .mnav > a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
  .mnav__book { display: grid; gap: 10px; margin-top: 16px; }
  .mnav__book .btn { justify-content: flex-start; }
  .hero__grid, .phero__grid, .split, .contact, .specialist, .cta { grid-template-columns: 1fr; }
  .hero__media img { aspect-ratio: 4/3; max-height: 420px; }
  .hero__badge { left: 12px; bottom: 12px; }
  .agendas__grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .gallery img { height: 200px; }
  .case__steps, .case__steps.five { grid-template-columns: repeat(2, 1fr); }
  .split__media .floating { right: 10px; bottom: -18px; }
  .specialist img { aspect-ratio: 4/3.6; max-height: 520px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .wrap { width: calc(100% - 32px); }
  .topbar__info { gap: 14px; }
  .brand__text { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .acard .btn { align-self: stretch; }
  .hero__book { grid-template-columns: 1fr; }
  .book__menu { width: min(340px, calc(100vw - 32px)); }
  .gallery .wide { grid-column: span 2; }
}

/* Evita que botones largos ensanchen las columnas en pantallas chicas */
.hero__grid > *, .phero__grid > *, .split > *, .contact > *, .specialist > * { min-width: 0; }
.bookbox .btn, .acard .btn, .mnav__book .btn { white-space: normal; text-align: left; }

/* WordPress: barra de administración y vista previa del personalizador */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
.customize-partial-edit-shortcut button { border-radius: 50%; }

/* Aviso de cookies, casillas del formulario y páginas legales */
.cookies { position: fixed; left: 16px; bottom: 16px; z-index: 95; width: min(520px, calc(100vw - 32px)); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(9, 71, 66, .22); padding: 18px 20px; display: grid; gap: 12px; font-size: 14.5px; line-height: 1.5; }
.cookies[hidden], .cookies__ops[hidden], .cookies__btns [hidden] { display: none; }
.cookies__txt { margin: 0; color: #2c3e3b; }
.cookies__txt a { color: var(--teal); text-decoration: underline; }
.cookies__ops { display: grid; gap: 8px; }
.cookies__ops label, .form .check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: #2c3e3b; }
.cookies__ops input, .form .check input { margin-top: 3px; accent-color: var(--teal); flex: none; }
.cookies__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.form .check a { color: var(--teal); text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer__legal a { text-decoration: underline; }
.lead .legal { font-size: 16px; line-height: 1.7; color: #2c3e3b; }
.legal p { margin: 0 0 14px; }
.legal h2 { font-size: 21px; line-height: 1.3; margin: 32px 0 10px; color: #094742; }
.legal ul { padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--teal); }
.legal__meta { font-size: 14px; color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 16px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #dfe9e7; vertical-align: top; }
.legal code { font-size: 13px; background: #eef6f4; padding: 1px 5px; border-radius: 4px; }
@media (max-width: 600px) { .legal table { display: block; overflow-x: auto; } }
