@import url('/fonts/montserrat/montserrat.css');

/* ═══════════════════════════════════════════════
   Clínica Aurora — plantilla odontológica digital
   Porcelana + azul marino + azul eléctrico + lima.
   Cabecera flotante, hero con reserva rápida, lista
   editorial de tratamientos, triaje, presupuesto
   interactivo y comparativa. Sin CDN, sin modo oscuro
   total (salud = claridad y legibilidad).
   ═══════════════════════════════════════════════ */

:root {
  --bg: #F7FAFD;
  --ice: #EAF1FA;
  --surface: #FFFFFF;
  --navy: #0A1F44;
  --navy-2: #12305F;
  --ink: #0A1F44;
  --ink-2: #47587A;
  --line: #DCE5F0;
  --azure: #2A5FE8;
  --azure-d: #1E50D6;
  --lime: #C8F169;
  --lime-d: #A8D944;
  --coral: #D63A40;
  --coral-soft: #FFE9E7;
  --amber: #F2A13B;
  --amber-soft: #FFF3DF;
  --green: #14764C;
  --green-soft: #E2F6EC;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(10, 31, 68, .05), 0 18px 40px -18px rgba(10, 31, 68, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 110px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; }
.skip-link:focus { left: 12px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container-mid { width: min(960px, 100% - 48px); }
.container-narrow { width: min(820px, 100% - 48px); }

/* ─── Botones ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 14px;
  font: 700 .95rem/1.2 'Montserrat', sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: none; }
.btn-primary { background: var(--azure); color: #fff; box-shadow: 0 10px 24px -10px rgba(47, 107, 255, .8); }
.btn-primary:hover { background: var(--azure-d); }
.btn-accent { background: var(--lime); color: var(--navy); }
.btn-accent:hover { background: var(--lime-d); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-danger { background: var(--coral); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1rem; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .88rem; }
.btn-block { display: flex; width: 100%; }

/* ─── Textos de sección ─── */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-ice { background: var(--ice); }
.section-navy { background: var(--navy); color: #fff; }
.section-head { max-width: 46rem; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head-left { margin-inline: 0; text-align: left; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #DCE8FF; color: var(--azure-d); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow-lime, .on-dark .eyebrow { background: rgba(200, 241, 105, .16); color: var(--lime); }
.section-title { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; }
.section-lead { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; }
.on-dark .section-title { color: #fff; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--lime); color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.card-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 18px; }

/* Rejillas: SIEMPRE auto-fit (si el usuario borra una tarjeta, las demás se centran) */
.need-grid, .case-grid, .cmf-grid, .team-grid, .edu-grid, .review-grid, .tips {
  display: grid; gap: 22px; justify-content: center;
}
.need-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.case-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cmf-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.edu-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.review-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 28px; }
.tips { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
[data-tm-grid] > .tm-add-btn { grid-column: 1 / -1; width: 100%; }

/* ─── Aviso superior ─── */
.promo { background: var(--navy); color: #fff; font-size: .86rem; font-weight: 600; }
.promo-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding: 9px 20px; text-align: center; }
.promo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.promo-link { color: var(--lime); font-weight: 800; text-underline-offset: 3px; }

/* ─── Cabecera flotante ─── */
.dock-wrap { position: sticky; top: 0; z-index: 80; padding: 14px 16px 0; margin-bottom: -76px; pointer-events: none; }
.dock {
  pointer-events: auto; position: relative; display: flex; align-items: center; gap: 22px;
  width: min(1120px, 100%); margin-inline: auto; padding: 9px 10px 9px 26px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 22px; transition: box-shadow .3s;
}
.dock.is-scrolled { box-shadow: 0 16px 40px -14px rgba(10, 31, 68, .35); }
.logo { font-size: 1.2rem; font-weight: 900; letter-spacing: -.03em; text-decoration: none; color: var(--navy); white-space: nowrap; }
.logo::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: var(--azure); box-shadow: 8px 0 0 -2px var(--lime); vertical-align: 1px; }
.main-menu { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.main-menu a { padding: 10px 14px; border-radius: 12px; font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--ink-2); transition: background-color .2s, color .2s; }
.main-menu a:hover { background: var(--ice); color: var(--navy); }
.main-menu .menu-urgent { color: var(--coral); }
.dock-cta { min-height: 46px; padding: 10px 20px; border-radius: 14px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--navy); border-radius: 14px; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; margin-left: auto; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

/* ─── Hero ─── */
.hero { padding: clamp(96px, 11vw, 132px) 0 clamp(40px, 6vw, 72px); overflow-x: clip; }
.hero-card {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 40px; color: #fff; overflow: hidden;
  background: radial-gradient(900px 500px at 85% 0%, rgba(47, 107, 255, .55), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(200, 241, 105, .14), transparent 60%), var(--navy);
}
.status-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-weight: 600; font-size: .85rem; margin-bottom: 24px; }
.status-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #8A9BBE; }
.status-chip[data-state="open"] .dot { background: #3DDC84; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }
.hero-title { font-size: clamp(2.2rem, 4.8vw, 4.1rem); font-weight: 900; line-height: 1.05; letter-spacing: -.035em; }
.hero-title > span { display: inline; }
.hl { color: var(--lime); }
.hero-lead { margin-top: 24px; max-width: 34rem; font-size: 1.08rem; color: #C6D3EC; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-actions .btn-outline { border-color: rgba(255, 255, 255, .35); }
.hero-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16); }
.proof-item { display: flex; flex-direction: column; }
.proof-item strong { font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; color: var(--lime); line-height: 1.15; }
.proof-item span { font-size: .82rem; color: #A9BADA; line-height: 1.4; }

.hero-media { position: relative; display: grid; gap: 0; justify-items: center; }
.hero-figure { width: min(100%, 360px); border-radius: 200px 200px 28px 28px; overflow: hidden; background: rgba(255, 255, 255, .06); aspect-ratio: 640 / 760; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.quick {
  position: relative; z-index: 2; width: min(100%, 400px); margin-top: -96px; padding: 22px;
  color: var(--navy); background: #fff; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.quick-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.quick-title { font-size: 1.1rem; font-weight: 900; }
.quick-slot { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: var(--green); }
.field-label { display: block; margin: 12px 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.field { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: 600 .95rem 'Montserrat', sans-serif; color: var(--navy); }
.field:focus { border-color: var(--azure); outline: none; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 12px; font-size: .88rem; font-weight: 700; background: #fff; color: var(--ink-2); transition: all .2s; }
.chip-opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-opt input:focus-visible + span { outline: 3px solid var(--azure); outline-offset: 2px; }
.quick .btn { margin-top: 16px; }
.form-note { margin-top: 10px; font-size: .78rem; color: var(--ink-2); text-align: center; }

/* ─── Franja de credenciales ─── */
.strip { padding: 8px 0 0; }
.strip-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 26px; justify-content: center; }
.strip-item { display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.strip-item svg { color: var(--azure); flex: none; }

/* ─── Tratamientos por necesidad ─── */
.need { position: relative; padding: 30px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s; }
.need:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.need:nth-child(2) { background: var(--navy); color: #fff; border-color: var(--navy); }
.need:nth-child(2) .need-desc, .need:nth-child(2) .need-list li { color: #C6D3EC; }
.need:nth-child(2) .need-icon { background: var(--lime); color: var(--navy); }
.need:nth-child(2) .need-link { color: var(--lime); }
.need-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; background: #DCE8FF; color: var(--azure-d); }
.need-title { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; }
.need-desc { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.need-list { display: grid; gap: 10px; margin: 20px 0; }
.need-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.need-list svg { flex: none; margin-top: 2px; color: var(--green); }
.need-link { font-weight: 800; color: var(--azure-d); text-underline-offset: 4px; }

.svc-list { display: grid; margin-top: clamp(36px, 5vw, 64px); border-top: 2px solid var(--navy); }
.svc {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 22px;
  padding: 26px 8px; border-bottom: 1px solid var(--line); transition: background-color .25s, padding .25s var(--ease);
}
.svc:hover { background: #fff; padding-inline: 22px; }
.svc-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ice); color: var(--azure-d); transition: background-color .25s, color .25s; }
.svc:hover .svc-icon { background: var(--navy); color: var(--lime); }
.svc-title { margin-top: 6px; font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; }
.svc-desc { margin-top: 6px; color: var(--ink-2); font-size: .95rem; max-width: 46rem; }
.svc-meta { display: grid; justify-items: end; gap: 2px; text-align: right; white-space: nowrap; }
.svc-time { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.svc-price { font-size: 1.1rem; font-weight: 900; }
.svc-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 12px; background: var(--navy); color: #fff; font-size: .86rem; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.svc-cta:hover { background: var(--azure); }

/* ─── Triaje ─── */
.triage-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.triage-wrap > .section-head { margin: 0; }
.triage { display: grid; gap: 18px; }
.tri-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.tri-opt { position: relative; cursor: pointer; }
.tri-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tri-opt span { display: flex; align-items: center; min-height: 60px; padding: 12px 18px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font-size: .9rem; font-weight: 700; line-height: 1.35; transition: all .2s; }
.tri-opt:hover span { border-color: var(--azure); }
.tri-opt input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.tri-opt input:focus-visible + span { outline: 3px solid var(--azure); outline-offset: 2px; }
.tri-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tri-result { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 18px; border: 2px solid transparent; opacity: .55; transition: opacity .25s, transform .25s var(--ease), border-color .25s; }
.tri-red { background: var(--coral-soft); }
.tri-amber { background: var(--amber-soft); }
.tri-green { background: var(--green-soft); }
.tri-res-title { font-size: 1rem; font-weight: 900; }
.tri-res-text { font-size: .88rem; color: var(--ink-2); flex: 1; }
.triage[data-level=""] .tri-result { opacity: .8; }
.triage[data-level="red"] .tri-red, .triage[data-level="amber"] .tri-amber, .triage[data-level="green"] .tri-green { opacity: 1; transform: translateY(-4px) scale(1.02); }
.triage[data-level="red"] .tri-red { border-color: var(--coral); }
.triage[data-level="amber"] .tri-amber { border-color: var(--amber); }
.triage[data-level="green"] .tri-green { border-color: var(--green); }

/* ─── Presupuesto ─── */
.bud-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.bud-card { padding: clamp(22px, 3vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.bud-list { display: grid; }
.bud-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line); }
.bud-row:last-child { border-bottom: 0; }
.bud-check { position: relative; display: flex; flex: 1; align-items: center; gap: 14px; min-height: 52px; cursor: pointer; }
.bud-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.box { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 8px; background: #fff; transition: all .2s; }
.bud-check input:checked + .box { background: var(--azure); border-color: var(--azure); }
.bud-check input:checked + .box::after { content: ''; width: 6px; height: 11px; margin-top: -2px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.bud-check input:focus-visible + .box { outline: 3px solid var(--azure); outline-offset: 2px; }
.bud-name { font-weight: 600; font-size: .95rem; }
.bud-price { font-weight: 900; white-space: nowrap; }
.bud-total { position: sticky; top: 100px; background: var(--navy); border-color: var(--navy); color: #fff; }
.bud-total .card-title { color: #fff; }
.bud-total .field-label { color: #A9BADA; }
.bud-total .chip-opt span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.bud-total .chip-opt input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.bud-sum strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.03em; color: var(--lime); line-height: 1.1; }
.bud-month { margin: 16px 0 20px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: 1.6rem; font-weight: 900; }
.bud-month small { margin-left: 8px; font-size: .85rem; font-weight: 600; color: #A9BADA; }
.bud-total .form-note { color: #A9BADA; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font-size: .78rem; font-weight: 700; color: #DDE6F7; }
.plan-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 22px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: linear-gradient(120deg, var(--azure), #5B8DFF); color: #fff; }
.plan-banner > div { flex: 1 1 320px; }
.plan-title { font-size: 1.4rem; font-weight: 900; }
.plan-text { margin-top: 6px; font-size: .95rem; color: #E4ECFF; }
.plan-price strong { font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; }
.plan-price span { font-weight: 600; }

/* ─── Antes y después ─── */
.case-card { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ba { position: relative; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 16px; background: var(--ice); --pos: 50%; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 31, 68, .15); pointer-events: none; }
.ba-handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(10, 31, 68, .3); font-weight: 900; font-size: .8rem; letter-spacing: 2px; color: var(--navy); }
.ba-label { position: absolute; z-index: 2; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(10, 31, 68, .8); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ba-label-after { left: 12px; }
.ba-label-before { right: 12px; }
.ba-range { display: block; width: calc(100% - 8px); height: 44px; margin: 6px 4px 0; background: transparent; accent-color: var(--azure); cursor: ew-resize; }
.case-title { padding: 0 10px; font-size: 1.15rem; font-weight: 900; }
.case-desc { padding: 0 10px 8px; margin-top: 6px; color: var(--ink-2); font-size: .9rem; }

/* ─── Comodidad ─── */
.cmf { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cmf:nth-child(3n+1) { background: var(--ice); border-color: transparent; }
.cmf-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 14px; background: var(--navy); color: var(--lime); }
.cmf-title { font-size: 1.1rem; font-weight: 900; }
.cmf-desc { margin-top: 6px; color: var(--ink-2); font-size: .92rem; }

/* ─── Comparativa ─── */
.vs { display: grid; gap: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .04); }
.vs-head, .vs-row { display: grid; grid-template-columns: .8fr 1.1fr 1fr; gap: 16px; align-items: center; padding: 18px 26px; }
.vs-head { background: rgba(255, 255, 255, .06); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #A9BADA; }
.vs-col-a { color: var(--lime); }
.vs-row { border-top: 1px solid rgba(255, 255, 255, .1); }
.vs-k { font-weight: 800; }
.vs-yes { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; color: #fff; }
.vs-yes svg { flex: none; margin-top: 2px; color: var(--lime); }
.vs-no { color: #8FA2C6; font-size: .92rem; }

/* ─── Equipo ─── */
.team-card { text-align: center; }
.team-photo { position: relative; margin-bottom: 18px; border-radius: 200px 200px 24px 24px; overflow: hidden; background: var(--ice); aspect-ratio: 4 / 5; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-badge { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: var(--lime); color: var(--navy); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.team-name { font-size: 1.2rem; font-weight: 900; }
.team-role { font-weight: 700; color: var(--azure-d); font-size: .92rem; }
.team-cred { margin-top: 2px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.team-bio { margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
.team-lang { margin-top: 10px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ice); font-size: .76rem; font-weight: 800; }
.tour { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 7vw, 90px); }
.tour-fig { border-radius: var(--radius); overflow: hidden; background: var(--ice); box-shadow: var(--shadow); }
.tour-fig img { width: 100%; height: auto; }
.tour-title { margin: 4px 0 12px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
.tour-text { margin-bottom: 22px; color: var(--ink-2); }

/* ─── Trayectoria (timeline del editor) ─── */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--azure), var(--lime)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: baseline; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 10px; width: 17px; height: 17px; border: 4px solid var(--ice); border-radius: 50%; background: var(--azure); box-shadow: 0 0 0 2px var(--azure); }
.timeline-year { font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; color: var(--azure-d); }
.timeline-title { font-size: 1.15rem; font-weight: 900; }
.timeline-text { margin-top: 4px; color: var(--ink-2); font-size: .95rem; }

/* ─── Guías ─── */
.edu { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), border-color .3s; }
.edu:hover { transform: translateY(-4px); border-color: var(--azure); }
.edu .tag { align-self: flex-start; background: #DCE8FF; color: var(--azure-d); }
.edu-icon { color: var(--azure); }
.edu-title { font-size: 1.1rem; font-weight: 900; line-height: 1.3; }
.edu-title a { text-decoration: none; }
.edu-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.edu-read { margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--ink-2); }

/* ─── Reseñas ─── */
.rating-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 40px); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.rating-main { display: grid; gap: 10px; justify-items: start; }
.rating-score { display: flex; align-items: baseline; gap: 14px; }
.rating-score strong { font-size: 4.4rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.stars { color: var(--amber); letter-spacing: 2px; }
.rating-text { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 44px; gap: 14px; align-items: center; font-size: .82rem; font-weight: 700; }
.bar { height: 10px; border-radius: 999px; background: var(--ice); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--azure), var(--lime-d)); transition: width .8s var(--ease); }
.bar-pct { text-align: right; color: var(--ink-2); }
.review { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review-quote { flex: 1; font-size: .98rem; font-weight: 500; }
.review-by { display: flex; flex-direction: column; font-size: .82rem; color: var(--ink-2); }
.review-by strong { color: var(--navy); font-size: .92rem; }

/* ─── Urgencias ─── */
.section-urgent { background: var(--coral-soft); }
.urgent-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; margin-bottom: 34px; }
.urgent-head > div:nth-child(2) { flex: 1 1 320px; }
.urgent-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: var(--coral); color: #fff; }
.urgent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tip { padding: 24px; background: #fff; border-radius: 20px; border-left: 5px solid var(--coral); }
.tip-title { font-size: 1.05rem; font-weight: 900; }
.tip-text { margin-top: 6px; font-size: .9rem; color: var(--ink-2); }

/* ─── FAQ ─── */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--azure); box-shadow: var(--shadow); }
.faq-item summary { position: relative; display: block; padding: 20px 60px 20px 24px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 18px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ice); font-size: 1.3rem; font-weight: 700; color: var(--azure-d); line-height: 1; }
.faq-item[open] summary::after { content: '–'; background: var(--azure); color: #fff; }
.faq-item p { padding: 0 24px 22px; color: var(--ink-2); }

/* ─── Reserva ─── */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.checks { display: grid; gap: 12px; margin: 26px 0; }
.check-item { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #DDE6F7; }
.check-item svg { flex: none; color: var(--lime); }
.booking-form { padding: clamp(22px, 3vw, 34px); background: #fff; color: var(--navy); border-radius: var(--radius); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5); }
.booking-form .btn { margin-top: 18px; }

/* ─── Ubicación ─── */
.loc-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.loc-info { display: grid; gap: 26px; }
.loc-h { margin-bottom: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--azure-d); }
.loc-note { margin-top: 4px; font-size: .88rem; color: var(--ink-2); }
.hours { display: grid; gap: 8px; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.hours-time { font-weight: 900; }
.contact-list { display: grid; gap: 10px; margin-bottom: 16px; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.contact-list svg { color: var(--azure); flex: none; }
.contact-list a { text-underline-offset: 3px; }
.map-frame { border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--ice); box-shadow: var(--shadow); }
.map-frame img { width: 100%; height: auto; }

/* ─── Footer ─── */
.footer { background: var(--navy); color: #C6D3EC; padding: clamp(48px, 7vw, 80px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
.footer-logo { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.footer-tag { margin-top: 8px; max-width: 22rem; font-size: .92rem; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s, color .2s; }
.social a:hover { background: var(--lime); color: var(--navy); }
.footer-h { margin-bottom: 14px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-bottom: 8px; font-size: .86rem; }
.footer-legal a { text-underline-offset: 3px; }
.footer-copy { width: min(1180px, 100% - 48px); margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; text-align: center; }

.mobile-bar { display: none; }

/* ─── Animaciones de scroll (mejora progresiva, solo CSS) ─── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .need, .case-card, .team-card, .cmf, .edu, .review, .tip, .bud-card, .tri-opt, .booking-form, .loc-block, .svc, .timeline-item {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%;
    }
    @keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
  }
}

/* ─── Responsive ─── */
@media (max-width: 1040px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin-inline: auto; width: 100%; }
  .triage-wrap, .bud-grid, .tour, .booking, .loc-grid { grid-template-columns: 1fr; }
  .bud-total { position: static; }
  .svc { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .svc-cta { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .dock { border-radius: 22px; padding-left: 20px; }
  .dock-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-menu { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
  .main-menu.menu-open { display: flex; }
  .main-menu a { padding: 14px 16px; font-size: 1rem; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 6px;
    position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 12px; padding: 8px;
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 34px -8px rgba(10, 31, 68, .4);
  }
  .mb-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 16px; font-size: .74rem; font-weight: 800; text-decoration: none; color: var(--navy); }
  .mb-primary { background: var(--lime); }
  .footer { padding-bottom: 110px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .container, .container-mid, .container-narrow { width: min(100% - 32px, 1180px); }
  .hero-card { border-radius: 28px; padding: 26px 20px 30px; }
  .rating-panel { grid-template-columns: 1fr; }
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .timeline-item { grid-template-columns: 1fr; gap: 2px; }
  .svc { grid-template-columns: 1fr; gap: 12px; padding: 22px 4px; }
  .svc:hover { padding-inline: 4px; }
  .svc-meta { justify-items: start; text-align: left; grid-auto-flow: column; gap: 14px; }
  .svc-cta { grid-column: auto; }
  .bar-row { grid-template-columns: 78px minmax(0, 1fr) 40px; gap: 10px; }
}

/* Chip de estado veraz: solo se muestra la etiqueta que corresponde a la hora */
.status-chip .st-open, .status-chip .st-closed { display: none; font-weight: 800; }
.status-chip[data-state="open"] .st-open, .status-chip[data-state="closed"] .st-closed { display: inline; }
.status-chip[data-state="open"] .st-hours::before, .status-chip[data-state="closed"] .st-hours::before { content: '· '; }

/* ── Correcciones del estudio UX/UI (objetivos táctiles, texto mínimo, contraste, lectura) ── */
.tag { font-size: .78rem; }
.stars { color: #9A5B00; }
.plan-banner { background: linear-gradient(120deg, #2A5FE8, #2350C9); }
.promo-link, .need-link, .svc-cta, .tr-cta, .contact-list a, .footer-links a, .footer-legal a, .logo { display: inline-flex; align-items: center; min-height: 44px; }
.promo-inner { gap: 0 12px; padding-block: 2px; }
.footer-links { gap: 0; }
.mb-btn span { font-size: .78rem; }
.eyebrow { font-size: .8rem; }
.ba-label { font-size: .78rem; }
main p { max-width: 70ch; }
.section-head p, .review p, .quick p, .bud-card p, .plan-banner p { margin-inline: auto; }
.need-desc, .svc-desc, .cmf-desc, .team-bio, .case-desc, .review-quote, .con-d, .tip-text, .plan-text, .loc-note { margin-inline: 0; }
.tri-result { opacity: .75; }
.main-menu a { display: inline-flex; align-items: center; min-height: 44px; }
.quick-slot { font-size: .8rem; }
