/* =============================================================
   Clínica Alba · Dental & Estética — demo ficticia
   Arquetipo 04 · Glassmorphism Modern (perla, petróleo, aguamarina, rubor)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --pearl: #F7F5F2;
  --pearl-2: #EFEAE3;
  --petrol: #0F3D3E;
  --petrol-2: #185455;
  --petrol-3: #2A6767;
  --ink: #0F3D3E;
  --text: #3F5859;
  --muted: #587070;
  --aqua: #9ED8D0;
  --aqua-2: #CDEBE6;
  --aqua-3: #E7F5F2;
  --blush: #F2B8A2;
  --blush-2: #F8D9CD;
  --blush-3: #FCEEE8;
  --terra: #8A4B36;
  --line: rgba(15, 61, 62, .11);
  --line-2: rgba(15, 61, 62, .2);
  --glass: rgba(255, 255, 255, .56);
  --glass-strong: rgba(255, 255, 255, .74);
  --shadow-sm: 0 1px 2px rgba(15, 61, 62, .05), 0 6px 18px -6px rgba(15, 61, 62, .1);
  --shadow: 0 2px 6px rgba(15, 61, 62, .04), 0 28px 60px -22px rgba(15, 61, 62, .28);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 14px;
  --r: 22px;
  --r-lg: 32px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--pearl);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; line-height: 1.05; font-weight: 500; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--aqua); color: var(--petrol); }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }
svg { width: 1em; height: 1em; flex-shrink: 0; }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 999; padding: .6rem 1rem; background: var(--petrol); color: var(--pearl); border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.sr-only, .sr-only-h { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fine { margin-top: 1.5rem; font-size: .84rem; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }
.fine svg { font-size: 1rem; margin-top: .2rem; color: var(--petrol-3); }
.fine-center { justify-content: center; text-align: center; max-width: 70ch; margin-inline: auto; }
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border-radius: 999px; background: var(--blush-3); border: 1px solid var(--blush-2); color: var(--terra); font: 600 .74rem/1.2 var(--sans); letter-spacing: .02em; vertical-align: middle; }
.tag-soft { font-size: .7rem; padding: .22rem .6rem; }

/* Fondo de malla (degradado vivo, muy suave) */
.mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mesh i { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; will-change: transform; }
.mesh-a { top: -38vmax; right: -30vmax; background: radial-gradient(circle, rgba(158, 216, 208, .62) 0%, rgba(158, 216, 208, 0) 62%); animation: driftA 38s ease-in-out infinite alternate; }
.mesh-b { top: 22vh; left: -44vmax; background: radial-gradient(circle, rgba(242, 184, 162, .42) 0%, rgba(242, 184, 162, 0) 62%); animation: driftB 46s ease-in-out infinite alternate; }
.mesh-c { bottom: -52vmax; right: -12vmax; background: radial-gradient(circle, rgba(158, 216, 208, .4) 0%, rgba(158, 216, 208, 0) 62%); animation: driftC 54s ease-in-out infinite alternate; }
@keyframes driftA { to { transform: translate3d(-12vmax, 10vmax, 0) scale(1.12); } }
@keyframes driftB { to { transform: translate3d(14vmax, -8vmax, 0) scale(.92); } }
@keyframes driftC { to { transform: translate3d(-16vmax, -12vmax, 0) scale(1.1); } }

/* Cristal */
.glass, .glass-strong {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--shadow-sm);
}
.glass-strong { box-shadow: inset 0 1px 0 #fff, var(--shadow); }
@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass { background: var(--glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
  .glass-strong { background: var(--glass-strong); backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%); }
}

/* =============================================================
   4. Typography helpers
   ============================================================= */
.kicker { display: inline-flex; align-items: center; gap: .5rem; font: 700 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--petrol-3); margin-bottom: 1rem; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.kicker svg { font-size: .95rem; color: var(--petrol-3); }
.kicker:has(svg)::before { display: none; }
.sec-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 1.45rem + 3.5vw, 4rem); line-height: 1; letter-spacing: -.015em; max-width: 17ch; }
.sec-title em, .hero-title em {
  font-style: italic; color: var(--petrol-3);
  background: linear-gradient(transparent 72%, rgba(242, 184, 162, .55) 72%, rgba(242, 184, 162, .55) 90%, transparent 90%);
  padding-inline: .06em;
}
.sec-lead { margin-top: 1.1rem; font-size: clamp(1rem, .95rem + .3vw, 1.14rem); max-width: 58ch; color: var(--text); }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head-center { text-align: center; }
.sec-head-center .sec-title, .sec-head-center .sec-lead { margin-inline: auto; }
.sec-head-split .sec-lead .tag { margin-top: .6rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); font: 600 .8rem/1.2 var(--sans); color: var(--petrol-2); box-shadow: var(--shadow-sm); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blush); box-shadow: 0 0 0 4px rgba(242, 184, 162, .3); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.4rem; border-radius: 999px;
  font: 600 .97rem/1.2 var(--sans); letter-spacing: -.005em; text-align: center;
  transition: transform .45s var(--ease-out), background-color .3s, box-shadow .45s var(--ease-out), color .3s;
}
.btn svg { font-size: 1.1rem; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-dark { background: var(--petrol); color: var(--pearl); box-shadow: 0 14px 30px -14px rgba(15, 61, 62, .7); }
.btn-dark:hover { background: var(--petrol-2); box-shadow: 0 18px 36px -14px rgba(15, 61, 62, .75); }
.btn-glass { background: rgba(255, 255, 255, .62); color: var(--ink); border: 1px solid rgba(15, 61, 62, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: #fff; }
.btn-sm { min-height: 42px; padding: .55rem 1.05rem; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-text { font-weight: 600; color: var(--petrol-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(15, 61, 62, .3); padding: .5rem .2rem; }
.btn-text:hover { text-decoration-color: currentColor; }

/* Formularios */
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field > label, .field > legend { font: 600 .86rem/1.3 var(--sans); color: var(--ink); margin-bottom: .1rem; }
.field .opt { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 1rem; transition: border-color .2s, box-shadow .3s var(--ease-out), background-color .2s;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol-3); box-shadow: 0 0 0 4px rgba(158, 216, 208, .55); background: #fff; }
input.is-bad, select.is-bad, textarea.is-bad { border-color: #B5543A; box-shadow: 0 0 0 4px rgba(242, 184, 162, .45); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px; border-right: 1.8px solid var(--petrol); border-bottom: 1.8px solid var(--petrol); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-wrap select { padding-right: 2.6rem; text-overflow: ellipsis; }
.hint { display: flex; gap: .45rem; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.hint svg { font-size: .95rem; margin-top: .1rem; color: var(--petrol-3); }
.form-msg { margin-top: .6rem; padding: .7rem .9rem; border-radius: 12px; background: var(--blush-3); border: 1px solid var(--blush-2); color: var(--terra); font-size: .9rem; font-weight: 500; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; line-height: 1.45; margin: .3rem 0 1rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--petrol); flex-shrink: 0; }
.consent em { color: var(--muted); }

.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; padding: .3rem; border-radius: 16px; background: rgba(15, 61, 62, .06); }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: .4rem .3rem; border-radius: 12px; font: 600 .86rem/1.1 var(--sans); color: var(--petrol-2); text-align: center; transition: background-color .3s, color .3s, box-shadow .3s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -4px rgba(15, 61, 62, .25); }
.seg input:focus-visible + span { outline: 2px solid var(--petrol); outline-offset: 2px; }

.b-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(145deg, #fff, var(--aqua-3)); border: 1px solid rgba(255, 255, 255, .9); color: var(--petrol); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.b-icon svg { font-size: 1.3rem; }

/* Foco de luz en tarjetas */
[data-spot] { position: relative; isolation: isolate; }
[data-spot]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 0%), rgba(158, 216, 208, .42), transparent 65%); pointer-events: none; }
[data-spot]:hover::before { opacity: 1; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---- Barra de demo ---- */
.demo-bar { position: relative; z-index: 41; display: block; min-height: 34px; padding: .45rem 1rem; background: var(--petrol); color: rgba(247, 245, 242, .86); font-size: .76rem; line-height: 1.45; font-weight: 500; text-align: center; letter-spacing: .01em; }
.demo-bar a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.demo-dot { display: inline-block; width: 6px; height: 6px; margin-right: .45rem; vertical-align: .1em; border-radius: 50%; background: var(--blush); }

/* ---- Navegación ---- */
.nav { position: sticky; top: 0; z-index: 40; padding: .6rem clamp(.6rem, 2vw, 1.2rem) 0; }
.nav-inner {
  position: relative; display: flex; align-items: center; gap: 1rem; max-width: 1240px; margin-inline: auto;
  min-height: 62px; padding: .45rem .5rem .45rem 1rem; border-radius: 999px;
  border: 1px solid transparent; transition: background-color .4s, border-color .4s, box-shadow .5s var(--ease-out);
}
.nav.is-scrolled .nav-inner, .nav.is-open .nav-inner { background: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); }
@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .nav.is-scrolled .nav-inner, .nav.is-open .nav-inner { background: rgba(255, 255, 255, .58); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); }
}
.logo { display: inline-flex; align-items: center; gap: .65rem; margin-right: auto; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--petrol); color: var(--aqua); box-shadow: 0 8px 18px -8px rgba(15, 61, 62, .7); }
.logo-mark svg { font-size: 1.55rem; }
.logo-text { display: grid; line-height: 1; }
.logo-text b { font: 600 1.7rem/0.9 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.logo-text small { font: 700 .58rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .22rem; }
.nav-links { position: relative; display: none; align-items: center; gap: .15rem; }
.nav-links a { position: relative; z-index: 1; padding: .55rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--petrol-2); transition: color .3s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-pill { position: absolute; z-index: 0; top: 50%; left: 0; height: 38px; width: 0; margin-top: -19px; border-radius: 999px; background: rgba(158, 216, 208, .45); opacity: 0; transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s; pointer-events: none; }
.nav-cta { display: none; }
.burger { display: grid; place-content: center; gap: 6px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .7); border: 1px solid rgba(15, 61, 62, .1); }
.burger span { display: block; width: 18px; height: 1.8px; border-radius: 2px; background: var(--petrol); transition: transform .45s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.9px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.9px) rotate(-45deg); }
.sheet {
  position: absolute; left: clamp(.6rem, 2vw, 1.2rem); right: clamp(.6rem, 2vw, 1.2rem); top: calc(100% + .5rem);
  display: grid; gap: .1rem; padding: .8rem; border-radius: 26px;
  background: rgba(255, 255, 255, .95); border: 1px solid #fff; box-shadow: var(--shadow);
  animation: sheetIn .45s var(--ease-out);
}
@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .sheet { background: rgba(255, 255, 255, .8); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); }
}
.sheet a:not(.btn) { padding: .85rem 1rem; border-radius: 14px; font-weight: 600; color: var(--ink); }
.sheet a:not(.btn):hover { background: var(--aqua-3); }
.sheet .btn { margin-top: .5rem; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(1.8rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.85rem, 1.5rem + 5.6vw, 5.9rem); line-height: .96; letter-spacing: -.022em; margin: 1.2rem 0 1.3rem; max-width: 13ch; }
.hero-sub { font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem); max-width: 50ch; color: var(--text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.8rem; font-size: .88rem; font-weight: 600; color: var(--petrol-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust svg { font-size: 1.05rem; padding: 2px; border-radius: 50%; background: var(--aqua-2); color: var(--petrol); }

.hero-visual { position: relative; width: 100%; max-width: 560px; margin-inline: auto; padding: 1.5rem 0 2.5rem; }
.arch {
  position: relative; width: min(76vw, 400px); aspect-ratio: 4 / 5; margin-inline: auto;
  border-radius: 999px 999px 34px 34px; overflow: hidden;
  border: 7px solid rgba(255, 255, 255, .78); box-shadow: 0 40px 80px -30px rgba(15, 61, 62, .45), 0 0 0 1px rgba(15, 61, 62, .06);
  background: var(--aqua-3);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform-origin: 50% 60%; }
.arch-glow { position: absolute; inset: 0; background: radial-gradient(220px circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .5), transparent 70%), linear-gradient(180deg, rgba(158, 216, 208, .12), rgba(15, 61, 62, .12)); pointer-events: none; mix-blend-mode: soft-light; }
.orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.orb-1 { width: 58%; aspect-ratio: 1; top: -2%; right: -4%; background: radial-gradient(circle at 35% 35%, #fff 0%, var(--aqua) 55%, rgba(158, 216, 208, 0) 72%); opacity: .75; }
.orb-2 { width: 44%; aspect-ratio: 1; bottom: 2%; left: -2%; background: radial-gradient(circle at 60% 40%, #fff 0%, var(--blush) 52%, rgba(242, 184, 162, 0) 72%); opacity: .6; }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: .7rem; padding: .75rem .95rem; border-radius: 20px; font-size: .8rem; line-height: 1.3; color: var(--text); animation: bob 7s ease-in-out infinite; }
.float-card b { display: block; color: var(--ink); font-size: .86rem; }
.float-card small { display: block; font-size: .76rem; color: var(--muted); }
.fc-1 { top: 10%; left: 0; max-width: 250px; }
.fc-2 { top: 44%; right: 0; display: grid; gap: .1rem; text-align: left; animation-delay: -2.4s; }
.fc-3 { bottom: 5%; left: 4%; animation-delay: -4.6s; }
.fc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--petrol); color: var(--aqua); flex-shrink: 0; }
.fc-icon svg { font-size: 1.1rem; }
.fc-kicker { font: 700 .62rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--petrol-3); }
.fc-big { font: 500 2.4rem/1 var(--serif) !important; color: var(--ink); }
.fc-avatars { display: flex; }
.fc-avatars i { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; border: 2px solid #fff; font: 700 .62rem/1 var(--sans); font-style: normal; color: var(--petrol); background: var(--aqua-2); }
.fc-avatars i:first-child { margin-left: 0; }
.fc-avatars i:nth-child(2) { background: var(--blush-2); }
.fc-avatars i:nth-child(3) { background: #fff; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(2.5rem, 5vw, 4rem); border-radius: var(--r-lg); overflow: hidden; }
.facts li { display: grid; gap: .3rem; padding: 1.2rem 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li:nth-child(2n) { border-right: 0; }
.facts li:nth-child(n+3) { border-bottom: 0; }
.facts b { font: 500 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.facts b small { font-size: .45em; font-family: var(--sans); font-weight: 600; letter-spacing: 0; color: var(--petrol-3); }
.facts span { font-size: .84rem; color: var(--muted); line-height: 1.35; }

/* ---- Secciones genéricas ---- */
.section { position: relative; padding-block: clamp(3.8rem, 7.5vw, 6.2rem); scroll-margin-top: 70px; }
#cita { scroll-margin-top: 96px; }

/* ---- Tratamientos ---- */
.tabs { position: relative; display: inline-flex; gap: .25rem; padding: .35rem; margin-bottom: 1.6rem; border-radius: 999px; background: rgba(255, 255, 255, .66); border: 1px solid #fff; box-shadow: var(--shadow-sm); }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .6rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--petrol-2); transition: color .35s; }
.tab svg { font-size: 1.2rem; }
.tab-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 .35rem; border-radius: 999px; background: rgba(15, 61, 62, .08); font-size: .74rem; transition: background-color .35s; }
.tab.is-on { color: var(--pearl); background: var(--petrol); }
.tab.is-on .tab-n { background: rgba(255, 255, 255, .16); }
.tabs.has-ink .tab.is-on { background: transparent; }
.tab-ink { position: absolute; z-index: 0; top: .35rem; bottom: .35rem; left: 0; width: 0; border-radius: 999px; background: var(--petrol); box-shadow: 0 10px 22px -10px rgba(15, 61, 62, .8); transition: transform .6s var(--ease-out), width .6s var(--ease-out); display: none; }
.tabs.has-ink .tab-ink { display: block; }

.tr-panel + .tr-panel { margin-top: 3rem; }
.tabs.has-ink ~ .tr-panel + .tr-panel { margin-top: 0; }
.tr-panel.is-entering .tr-card { animation: cardIn .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.tr-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.tr-feature { position: relative; min-height: 240px; border-radius: var(--r-lg); overflow: hidden; background: var(--aqua-3); }
.tr-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.tr-feature:hover img { transform: scale(1.04); }
.tr-feature figcaption { position: absolute; left: .8rem; right: .8rem; bottom: .8rem; display: grid; gap: .15rem; padding: .9rem 1.1rem; border-radius: 18px; }
.tr-feature figcaption b { font: 500 1.6rem/1.05 var(--serif); color: var(--ink); }
.tr-feature figcaption span { font-size: .88rem; }
.tr-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.35rem 1.35rem 1.2rem; border-radius: var(--r); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.tr-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 #fff, var(--shadow); }
.tr-card h4 { font: 500 1.7rem/1.02 var(--serif); letter-spacing: -.01em; }
.tr-card p { font-size: .93rem; line-height: 1.5; }
.tr-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tr-card dt { font: 700 .64rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tr-card dd { margin: .2rem 0 0; font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.tr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .2rem; }
.price { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.price b { font: 600 1.45rem/1 var(--serif); color: var(--ink); margin-left: .15rem; }
.tr-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .45rem .85rem; border-radius: 999px; background: var(--aqua-3); border: 1px solid rgba(158, 216, 208, .8); font-size: .82rem; font-weight: 700; color: var(--petrol); transition: background-color .3s, color .3s; white-space: nowrap; }
.tr-link svg { transition: transform .4s var(--ease-out); }
.tr-link:hover { background: var(--petrol); color: var(--pearl); border-color: var(--petrol); }
.tr-link:hover svg { transform: translateX(3px); }

/* ---- Asistente (herramienta estrella) ---- */
.section-tool::before { content: ""; position: absolute; inset: 8% -10% 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 45% at 22% 55%, rgba(158, 216, 208, .5), transparent 70%), radial-gradient(35% 40% at 80% 40%, rgba(242, 184, 162, .35), transparent 70%); }
.tool { display: grid; gap: 0; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; }
.tool-ask { padding: clamp(1.25rem, 3.5vw, 2.6rem); }
.chips-group { margin-bottom: 1.3rem; }
.chips-group legend { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .7rem; font: 700 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--petrol-3); }
.chips-group legend svg { font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line-2); font-size: .92rem; font-weight: 600; color: var(--petrol-2); transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--petrol-3); transition: background-color .3s, border-color .3s, transform .4s var(--ease-bounce, var(--ease-out)); }
.chip:hover { border-color: var(--petrol-3); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--pearl); }
.chip[aria-pressed="true"]::before { background: var(--aqua); border-color: var(--aqua); transform: scale(1.15); }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .4rem; }
.tool-actions .btn svg { font-size: 1.15rem; }
.tool-result { position: relative; padding: clamp(1.25rem, 3.5vw, 2.6rem); background: linear-gradient(160deg, rgba(231, 245, 242, .85), rgba(252, 238, 232, .7)); border-top: 1px solid rgba(255, 255, 255, .9); min-height: 360px; }
.tool-empty { display: grid; justify-items: center; align-content: center; gap: 1rem; min-height: 100%; text-align: center; padding: 1rem 0; }
.tool-empty-orb { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--aqua) 70%); color: var(--petrol); box-shadow: 0 0 0 10px rgba(255, 255, 255, .45), 0 20px 40px -18px rgba(15, 61, 62, .5); animation: breathe 5s ease-in-out infinite; }
.tool-empty-orb svg { font-size: 2rem; }
@keyframes breathe { 50% { box-shadow: 0 0 0 18px rgba(255, 255, 255, .25), 0 20px 40px -18px rgba(15, 61, 62, .5); } }
.tool-empty-title { font: 500 1.9rem/1.1 var(--serif); color: var(--ink); }
.tool-steps { display: grid; gap: .6rem; max-width: 36ch; text-align: left; }
.tool-steps li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.tool-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--petrol); font-size: .8rem; flex-shrink: 0; box-shadow: var(--shadow-sm); }

.res { display: grid; gap: 1.1rem; animation: fadeUp .6s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.res-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .75rem; border-radius: 999px; font: 700 .72rem/1.2 var(--sans); letter-spacing: .04em; }
.badge svg { font-size: .9rem; }
.badge-ia { background: var(--petrol); color: var(--aqua); }
.badge-basic { background: #fff; color: var(--petrol-2); border: 1px solid var(--line-2); }
.res-text { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.res-text ul { margin: .5rem 0; display: grid; gap: .3rem; }
.res-text li { position: relative; padding-left: 1.1rem; }
.res-text li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--blush); }
.res-text a, .cmsg a { color: var(--petrol); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(15, 61, 62, .35); }
.res-urgent { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--blush); box-shadow: 0 0 0 4px rgba(242, 184, 162, .25); color: var(--ink); font-size: .92rem; }
.res-urgent svg { font-size: 1.35rem; color: #B5543A; margin-top: .05rem; }
.res-urgent a { font-weight: 700; text-decoration: underline; }
.res-h { font: 700 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--petrol-3); margin-top: .2rem; }
.res-cards { display: grid; gap: .75rem; }
.sug { display: grid; gap: .6rem; padding: 1rem 1.1rem; border-radius: 20px; animation: fadeUp .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
.sug-top { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.sug h4 { font: 500 1.45rem/1.05 var(--serif); }
.sug .sug-area { font: 700 .62rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--petrol-3); }
.sug-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .82rem; color: var(--text); }
.sug-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.sug-meta svg { color: var(--petrol-3); }
.sug-price { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.sug-price b { font: 600 1.25rem/1 var(--serif); color: var(--ink); }
.sug-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; }
.res-legal { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.res-loading { display: grid; gap: .8rem; }
.res-loading p { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--petrol-2); }
.skel { height: 14px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, .5) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel-card { height: 96px; border-radius: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(15, 61, 62, .2); border-top-color: var(--petrol); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Financiación ---- */
.fin-grid { display: grid; gap: 2rem; align-items: center; }
.fin-head { margin-bottom: 0; }
.fin-points { display: grid; gap: .55rem; margin-top: 1.5rem; font-weight: 600; color: var(--petrol-2); font-size: .95rem; }
.fin-points li { display: flex; align-items: center; gap: .55rem; }
.fin-points svg { font-size: 1.2rem; padding: 3px; border-radius: 50%; background: var(--aqua-2); color: var(--petrol); }
.calc { padding: clamp(1.25rem, 3.5vw, 2.4rem); border-radius: clamp(24px, 3vw, 36px); }
.amount-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
.amount-input { position: relative; width: 8.6rem; }
.amount-input input { padding-right: 2rem; font-weight: 700; text-align: right; -moz-appearance: textfield; }
.amount-input input::-webkit-outer-spin-button, .amount-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input span { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--petrol-3); pointer-events: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--petrol) var(--fill, 20%), rgba(15, 61, 62, .14) var(--fill, 20%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(15, 61, 62, .14); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--petrol); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 2px solid var(--petrol); box-shadow: 0 4px 12px -2px rgba(15, 61, 62, .4); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--petrol); box-shadow: 0 4px 12px -2px rgba(15, 61, 62, .4); }
input[type="range"]:focus-visible { outline: 2px solid var(--petrol); outline-offset: 4px; }
.calc-out { margin-top: .6rem; padding: 1.4rem; border-radius: 24px; color: rgba(247, 245, 242, .82); background: radial-gradient(120% 90% at 100% 0%, rgba(158, 216, 208, .28), transparent 55%), linear-gradient(150deg, var(--petrol-2), var(--petrol)); box-shadow: 0 30px 60px -30px rgba(15, 61, 62, .8); }
.calc-label { font: 700 .7rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }
.calc-fee { display: flex; align-items: baseline; gap: .5rem; margin: .35rem 0 1rem; color: var(--pearl); }
.calc-fee b { font: 500 clamp(3rem, 2.2rem + 3vw, 4.4rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.calc-fee span { font-weight: 600; color: rgba(247, 245, 242, .75); }
.calc-fee.is-bump b { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: translateY(-3px); color: var(--aqua); } }
.calc-dl { display: grid; gap: .45rem; padding: .9rem 0 1.1rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.calc-dl div { display: flex; justify-content: space-between; gap: 1rem; }
.calc-dl dd { margin: 0; font-weight: 700; color: var(--pearl); text-align: right; }
.calc-out .btn-dark { background: var(--pearl); color: var(--petrol); box-shadow: none; }
.calc-out .btn-dark:hover { background: #fff; }
.calc-legal { margin-top: 1rem; font-size: .76rem; line-height: 1.5; color: var(--muted); }
.calc-legal b { color: var(--ink); font-weight: 700; }

/* ---- La clínica (bento) ---- */
.bento { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.bento-item { position: relative; border-radius: var(--r-lg); overflow: hidden; }
figure.bento-item { aspect-ratio: 4 / 3; background: var(--aqua-3); }
.bento-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.bento-item:hover img { transform: scale(1.04); }
.bento-item figcaption { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; display: grid; gap: .1rem; padding: .8rem 1rem; border-radius: 18px; }
.bento-item figcaption b { font: 500 1.4rem/1.05 var(--serif); color: var(--ink); }
.bento-item figcaption span { font-size: .84rem; line-height: 1.4; }
.b-text { display: grid; align-content: start; gap: .7rem; padding: 1.5rem; }
.b-text h3 { font: 500 1.7rem/1.05 var(--serif); margin-top: .3rem; }
.b-text p { font-size: .92rem; }

/* ---- Equipo ---- */
.team { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.person { padding: 1.5rem; border-radius: var(--r); transition: transform .6s var(--ease-out); }
.person:hover { transform: translateY(-4px); }
.avatar { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 1.1rem; border-radius: 50%; font: 500 1.8rem/1 var(--serif); color: var(--petrol); border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.av-1 { background: radial-gradient(circle at 30% 25%, #fff, var(--aqua) 85%); }
.av-2 { background: radial-gradient(circle at 30% 25%, #fff, var(--blush) 85%); }
.av-3 { background: radial-gradient(circle at 30% 25%, #fff, #C9DDD8 50%, var(--blush-2) 95%); }
.av-4 { background: radial-gradient(circle at 30% 25%, var(--aqua-2), var(--petrol-3) 110%); color: #fff; }
.person h3 { font: 500 1.6rem/1.05 var(--serif); }
.person .role { margin: .35rem 0 .7rem; font: 700 .7rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--petrol-3); }
.person p:last-child { font-size: .92rem; }

/* ---- Primera visita + cita ---- */
.visit-grid { display: grid; gap: 2.5rem; align-items: start; }
.visit-steps { display: grid; gap: 1.3rem; margin-top: 2rem; }
.visit-steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.vs-n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(145deg, #fff, var(--blush-3)); border: 1px solid var(--blush-2); font: 600 1.25rem/1 var(--serif); color: var(--petrol); }
.visit-steps h3 { font: 500 1.55rem/1.1 var(--serif); margin: .2rem 0 .3rem; }
.visit-steps p { font-size: .95rem; }
.visit-fig { display: none; margin-top: 2.2rem; height: 230px; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; border: 6px solid rgba(255, 255, 255, .75); box-shadow: var(--shadow); max-width: 440px; }
.visit-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.booking { padding: clamp(1.25rem, 3.5vw, 2.4rem); border-radius: clamp(24px, 3vw, 36px); outline: none; transition: box-shadow .6s var(--ease-out); }
.booking.is-flash { box-shadow: inset 0 1px 0 #fff, 0 0 0 5px rgba(158, 216, 208, .8), var(--shadow); }
.booking-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.booking-head h3 { font: 500 clamp(1.7rem, 1.4rem + 1vw, 2.1rem)/1.05 var(--serif); }
.booking-head p { font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
select.is-picked { animation: picked 1.2s var(--ease-out); }
@keyframes picked { 0% { box-shadow: 0 0 0 0 rgba(158, 216, 208, .9); } 100% { box-shadow: 0 0 0 12px rgba(158, 216, 208, 0); } }
.demo-note { display: flex; gap: .5rem; align-items: flex-start; margin-top: .9rem; padding: .65rem .85rem; border-radius: 12px; background: var(--blush-3); border: 1px solid var(--blush-2); color: var(--terra); font-size: .82rem; line-height: 1.4; font-weight: 500; }
.demo-note svg { font-size: 1rem; margin-top: .1rem; }
.booking-ok { display: grid; justify-items: center; gap: .7rem; text-align: center; padding: 1.5rem 0 .5rem; outline: none; animation: fadeUp .6s var(--ease-out) both; }
.booking-ok h3 { font: 500 2.2rem/1 var(--serif); }
.booking-ok p[data-booking-summary] { font-weight: 600; color: var(--ink); }
.booking-ok .demo-note { text-align: left; max-width: 44ch; }
.ok-orb { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--aqua) 75%); color: var(--petrol); box-shadow: 0 0 0 10px rgba(158, 216, 208, .25); }
.ok-orb svg { font-size: 2rem; }

/* ---- Opiniones ---- */
.quotes { display: grid; gap: 1rem; }
.quote { display: grid; gap: 1rem; align-content: start; padding: 1.6rem; border-radius: var(--r); }
.quote .tag { justify-self: start; }
.quote blockquote { font: italic 500 1.45rem/1.32 var(--serif); color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 600; color: var(--petrol-2); }
.q-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--aqua-2); font: 600 1rem/1 var(--serif); color: var(--petrol); }

/* ---- FAQ ---- */
.faq-grid { display: grid; gap: 1.5rem; align-items: start; }
.faq-grid .sec-head .btn { margin-top: 1.6rem; }
.faq { display: grid; gap: .7rem; }
.faq details { border-radius: 20px; overflow: hidden; }
.faq summary { position: relative; display: block; padding: 1.1rem 3.4rem 1.1rem 1.3rem; font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: #fff linear-gradient(var(--petrol), var(--petrol)) center / 11px 1.6px no-repeat; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out); }
.faq summary::before { content: ""; position: absolute; z-index: 1; right: calc(1.1rem + 14.2px); top: 50%; width: 1.6px; height: 11px; margin-top: -5.5px; background: var(--petrol); transition: transform .5s var(--ease-out), opacity .3s; }
.faq details[open] summary::before { transform: rotate(90deg); opacity: 0; }
.faq details[open] summary::after { transform: rotate(180deg); background-color: var(--aqua-2); }
.faq details p { padding: 0 1.3rem 1.25rem; font-size: .95rem; max-width: 62ch; }
.faq details p a { color: var(--petrol); font-weight: 700; text-decoration: underline; }

/* ---- Contacto ---- */
.contact { display: grid; gap: 0; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; }
.contact-info { padding: clamp(1.4rem, 4vw, 3rem); }
.contact-info .sec-title { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); }
.contact-list { display: grid; gap: 1rem; margin: 1.8rem 0 1.5rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list b { display: block; color: var(--ink); font-size: 1.02rem; }
.contact-list small { display: block; font-size: .8rem; color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours th, .hours td { padding: .7rem 0; border-top: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 600; color: var(--text); }
.hours td { text-align: right; font-weight: 700; color: var(--ink); }
.contact-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.map { position: relative; min-height: 300px; background: linear-gradient(160deg, #EAF6F3, #F8EEE9); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 52%; top: 44%; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: .5rem; }
.map-pin i { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--petrol); border: 4px solid #fff; box-shadow: 0 6px 16px rgba(15, 61, 62, .4); order: 2; }
.map-pin i::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--petrol); opacity: 0; animation: ping 2.6s var(--ease-out) infinite; }
.map-pin b { order: 1; padding: .45rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: .8rem; color: var(--ink); box-shadow: var(--shadow-sm); white-space: nowrap; }
.map-label { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--petrol-3); }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---- Pie ---- */
.footer { position: relative; margin-top: 2rem; padding: clamp(3.5rem, 7vw, 5rem) 0 7rem; background: var(--petrol); color: rgba(247, 245, 242, .74); font-size: .9rem; }
.footer-grid { display: grid; gap: 2.2rem; }
.footer .logo-text b { color: var(--pearl); }
.footer .logo-text small { color: rgba(247, 245, 242, .6); }
.footer .logo-mark { background: var(--aqua); color: var(--petrol); }
.footer-brand p { margin-top: 1.1rem; max-width: 40ch; }
.footer-brand b { color: var(--pearl); }
.footer-links { display: grid; gap: .55rem; align-content: start; }
.footer-links a { color: var(--pearl); font-weight: 600; width: fit-content; border-bottom: 1px solid transparent; transition: border-color .3s; }
.footer-links a:hover { border-color: var(--aqua); }
.footer-legal { display: grid; gap: .7rem; align-content: start; font-size: .84rem; }
.footer-demo { padding: .8rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: var(--pearl); font-weight: 600; }
.footer-demo a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }
.footer :focus-visible { outline-color: var(--aqua); }

/* ---- Chat flotante ---- */
.chat-launch {
  position: fixed; z-index: 60; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .6rem; padding: .4rem; border-radius: 999px;
  background: rgba(255, 255, 255, .88); border: 1px solid #fff; box-shadow: 0 18px 40px -16px rgba(15, 61, 62, .55);
  transition: transform .5s var(--ease-out), opacity .3s;
}
@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { .chat-launch { background: rgba(255, 255, 255, .66); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); } }
.chat-launch:hover { transform: translateY(-3px); }
.chat-launch.is-hidden { opacity: 0; pointer-events: none; transform: scale(.9); }
.chat-launch-orb { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--petrol-3), var(--petrol) 70%); color: var(--aqua); }
.chat-launch-orb svg { font-size: 1.4rem; animation: twinkle 4.5s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: rotate(45deg) scale(.86); } }
.chat-launch-text { display: none; padding-right: .9rem; font-weight: 700; font-size: .9rem; color: var(--ink); }
.chat {
  position: fixed; z-index: 70; inset: auto .5rem .5rem .5rem; height: min(640px, calc(100svh - 1rem));
  display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
  animation: chatIn .5s var(--ease-out);
}
.chat.glass-strong { background: rgba(250, 249, 247, .95); }
@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { .chat.glass-strong { background: rgba(250, 249, 247, .84); } }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem .9rem .9rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.chat-orb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--petrol); color: var(--aqua); flex-shrink: 0; }
.chat-orb svg { font-size: 1.15rem; }
.chat-id { flex: 1; display: grid; line-height: 1.25; }
.chat-id b { color: var(--ink); font-size: .95rem; }
.chat-id small { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; color: var(--muted); }
.chat-id small i { width: 7px; height: 7px; border-radius: 50%; background: #3FAE93; box-shadow: 0 0 0 3px rgba(63, 174, 147, .2); }
.chat-close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--petrol); box-shadow: var(--shadow-sm); }
.chat-close svg { font-size: 1.15rem; }
.chat-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .6rem; padding: 1rem; }
.cmsg { max-width: 88%; padding: .7rem .95rem; border-radius: 18px; font-size: .92rem; line-height: 1.5; }
.cmsg-bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.cmsg-user { align-self: flex-end; background: var(--petrol); color: var(--pearl); border-bottom-right-radius: 6px; }
.cmsg ul { margin: .35rem 0; display: grid; gap: .2rem; }
.cmsg li { position: relative; padding-left: .95rem; }
.cmsg li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--blush); }
.cmsg.is-pop { animation: fadeUp .45s var(--ease-out) both; }
.cmsg-trs { align-self: flex-start; display: grid; gap: .4rem; width: 88%; }
.cmsg-tr { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .8rem; border-radius: 14px; background: var(--aqua-3); border: 1px solid rgba(158, 216, 208, .8); text-align: left; font-size: .84rem; color: var(--ink); transition: background-color .3s; }
.cmsg-tr:hover { background: #fff; }
.cmsg-tr b { font-weight: 700; }
.cmsg-tr span { font-size: .76rem; color: var(--petrol-3); white-space: nowrap; }
.cmsg-urgent { align-self: stretch; display: flex; gap: .5rem; padding: .7rem .8rem; border-radius: 14px; background: #fff; border: 1px solid var(--blush); font-size: .84rem; color: var(--ink); }
.cmsg-urgent svg { color: #B5543A; font-size: 1.1rem; margin-top: .1rem; }
.typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--petrol-3); opacity: .35; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-3px); } }
.chat-sugs { display: flex; gap: .4rem; padding: 0 1rem .6rem; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.chat-sugs::-webkit-scrollbar { display: none; }
.chat-sugs button { flex-shrink: 0; padding: .5rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; color: var(--petrol-2); white-space: nowrap; }
.chat-sugs button:hover { border-color: var(--petrol-3); }
.chat-form { display: flex; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.chat-form input { min-height: 46px; border-radius: 999px; padding: .6rem 1rem; }
.chat-form button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--petrol); color: var(--pearl); flex-shrink: 0; }
.chat-form button[disabled] { opacity: .5; }
.chat-form button svg { font-size: 1.15rem; }
.chat-legal { padding: 0 1rem .7rem; font-size: .7rem; color: var(--muted); text-align: center; background: rgba(255, 255, 255, .6); }

/* ---- Página de créditos ---- */
.page-credits main { padding: 3rem 0 5rem; }
.page-credits h1 { font-family: var(--serif); font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); margin: 1.5rem 0 1rem; }
.credits-list { display: grid; gap: .8rem; margin-top: 2rem; }
.credits-list li { padding: 1.1rem 1.25rem; border-radius: 18px; font-size: .92rem; }
.credits-list a { color: var(--petrol); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   7. Effects (reveals)
   ============================================================= */
.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .nav-cta { display: inline-flex; }
  .chat-launch-text { display: inline; }
  .seg:not(.seg-2) { grid-template-columns: repeat(4, 1fr); }
  .tr-grid { grid-template-columns: repeat(2, 1fr); }
  .tr-feature { grid-column: span 2; min-height: 280px; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .res-cards { grid-template-columns: 1fr; }
  .float-card { font-size: .84rem; }
  .fc-1 { left: 2%; }
}

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { border-bottom: 0; }
  .facts li:nth-child(2n) { border-right: 1px solid var(--line); }
  .facts li:last-child { border-right: 0; }
  .facts li { padding: 1.5rem 1.6rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-big { grid-column: span 2; }
  figure.b-big { aspect-ratio: 16 / 8; }
  .bento .b-wide:last-child { grid-column: span 2; aspect-ratio: 16 / 8; }
  .chat { inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto; width: 400px; height: min(640px, calc(100svh - 2rem)); }
  .contact { grid-template-columns: 1.1fr .9fr; }
  .map { min-height: 100%; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .visit-fig { display: block; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
  .hero-visual { padding: 2rem 0; }
  .arch { width: min(34vw, 430px); }
  .fin-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; }
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; }
  .faq-grid .sec-head { position: sticky; top: 110px; }
  .footer-grid { grid-template-columns: 1.2fr .7fr 1.1fr; gap: 3rem; }
  .tool { grid-template-columns: 1fr 1fr; }
  .tool-result { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .9); min-height: 560px; }
  .res-cards { grid-template-columns: 1fr; }
}

@media (min-width: 1280px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .sheet { display: none !important; }
  .tr-grid { grid-template-columns: repeat(4, 1fr); }
  .tr-grid-dental .tr-feature { grid-column: span 2; grid-row: span 2; }
  .tr-grid-estetica .tr-feature { grid-column: span 2; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; }
  figure.bento-item { aspect-ratio: auto; }
  .b-big { grid-column: span 2; grid-row: span 2; }
  figure.b-big { aspect-ratio: auto; }
  .b-tall { grid-row: span 2; }
  .b-wide { grid-column: span 2; }
  .bento .b-wide:last-child { aspect-ratio: auto; }
  .team { grid-template-columns: repeat(4, 1fr); }
  .fc-1 { left: -4%; }
  .fc-2 { right: -2%; }
  .sec-head-split { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
}

/* =============================================================
   9. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh i { animation: none; }
  .map-pin i::after { animation: none; }
  .float-card { animation-duration: 12s; }
}

/* Reservas reales (módulo de reservas) */
.seg label.is-off { opacity: .4; pointer-events: none; }
.booking-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: .4rem 0 1rem; }
.booking-links:empty { display: none; }
