/* Alba Dental — lujo clínico sereno: blanco aireado, petróleo profundo y menta. */
:root {
  --bg: #f6f7f4; --white: #ffffff; --ink: #0c2f37; --muted: #5a6d70; --line: rgba(12,47,55,.12);
  --accent: #1f8f84; --mint: #bfe8de; --mint-2: #e3f4ef; --sand: #efe7dc;
  --serif: "DM Serif Display", Georgia, serif; --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1); --gut: clamp(18px, 4vw, 56px);
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); }
::selection { background: var(--mint); color: var(--ink); }
.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--gut); }
em { font-style: italic; color: var(--accent); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.h2 { font: 400 clamp(38px, 5vw, 72px)/1.02 var(--serif); letter-spacing: -.015em; max-width: 18ch; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 52ch; margin-top: 18px; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { text-align: center; display: grid; justify-items: center; }
.sec-head.center .h2 { max-width: 20ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; transition: background .4s var(--ease), color .4s, transform .4s var(--ease), box-shadow .4s; white-space: nowrap; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -14px rgba(31,143,132,.8); }
.btn-accent:hover { background: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--accent); }
.btn-ghost { color: var(--ink); padding-inline: 10px; }
.btn-ghost:hover { color: var(--accent); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #fff; }
.btn-line-light { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.btn-line-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }

/* Barra superior y navegación */
.topbar { display: flex; justify-content: space-between; gap: 12px; padding: 9px var(--gut); background: var(--ink); color: rgba(255,255,255,.85); font-size: 13px; }
.topbar a { color: var(--mint); font-weight: 700; }
.tb-r { display: none; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff7a6b; margin-right: 6px; animation: beat 1.6s infinite; vertical-align: middle; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(255,122,107,.7); } 100% { box-shadow: 0 0 0 10px rgba(255,122,107,0); } }
.nav { position: sticky; top: 0; z-index: 100; transition: background .5s var(--ease), box-shadow .5s; }
.nav.is-scrolled { background: rgba(246,247,244,.88); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 78px; width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 30px/1 var(--serif); }
.logo svg { width: 30px; height: 30px; fill: var(--accent); }
.logo small { font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.menu { display: none; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 600; }
.menu a { position: relative; padding: 6px 0; color: var(--muted); transition: color .3s; }
.menu a:hover { color: var(--ink); }
.nav-cta { display: none; padding: 13px 20px; font-size: 14px; }
.burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open .nav { background: var(--bg); }
.menu-open .menu { display: flex; flex-direction: column; position: fixed; inset: 78px 0 0 0; background: var(--bg); padding: 32px var(--gut); gap: 10px; font: 400 38px/1.25 var(--serif); }
.menu-open .menu a { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: clamp(28px, 5vw, 70px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(600px 420px at var(--mx, 70%) var(--my, 40%), rgba(191,232,222,.75), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 99px; background: #fff; box-shadow: 0 8px 24px -14px rgba(12,47,55,.35); font-size: 14px; font-weight: 600; color: var(--muted); }
.star { padding: 5px 10px; border-radius: 99px; background: var(--ink); color: #ffd36b; font-weight: 700; }
.hero-title { font: 400 clamp(54px, 7.4vw, 112px)/.98 var(--serif); letter-spacing: -.025em; margin: 26px 0 24px; }
.hero-lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-trust li { font-size: 14px; color: var(--muted); max-width: 12ch; line-height: 1.3; }
.hero-trust b { display: block; font: 400 34px/1 var(--serif); color: var(--ink); margin-bottom: 4px; }
.hero-visual { position: relative; justify-self: center; width: min(520px, 100%); }
.arch { aspect-ratio: 4/5; border-radius: 999px 999px 36px 36px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(12,47,55,.5); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.12); }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(12,47,55,.45); font-size: 14px; }
.float b { display: block; }
.float small { color: var(--muted); }
.f1 { left: -6%; bottom: 18%; }
.f2 { right: -4%; top: 12%; }
.f-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--accent); font-weight: 800; }
.avatars { display: flex; }
.avatars img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.badge-rot { position: absolute; right: -2%; bottom: -5%; width: 124px; height: 124px; border-radius: 50%; background: var(--ink); color: var(--mint); display: grid; place-items: center; }
.badge-rot svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.badge-rot text { font: 700 10.5px/1 var(--sans); letter-spacing: .22em; fill: currentColor; }
.badge-rot span { font-size: 30px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pilares */
.pillars { padding: 0 0 clamp(70px, 9vw, 120px); }
.pillar-grid { display: grid; gap: 16px; }
.pillar-grid article { padding: 32px; border-radius: 28px; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.pillar-grid article:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(12,47,55,.5); }
.p-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mint-2); color: var(--accent); font-weight: 800; }
.pillar-grid h3 { font: 400 28px/1.1 var(--serif); margin: 22px 0 10px; }
.pillar-grid p { color: var(--muted); }

/* Tratamientos */
.treat { padding: clamp(80px, 10vw, 140px) 0; background: #fff; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 36px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 13px 20px; border-radius: 99px; background: var(--bg); font-weight: 600; font-size: 15px; color: var(--muted); transition: all .35s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.panel { display: grid; gap: 32px; align-items: center; animation: fadeUp .7s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.panel-img { border-radius: 32px; overflow: hidden; aspect-ratio: 5/4; }
.panel-img img { width: 100%; height: 100%; object-fit: cover; }
.panel-body h3 { font: 400 clamp(32px, 3.4vw, 50px)/1.05 var(--serif); margin-bottom: 16px; }
.panel-body > p { color: var(--muted); font-size: 17px; max-width: 50ch; }
.ticks { display: grid; gap: 10px; margin: 22px 0; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.ticks li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: var(--accent); font-size: 12px; flex: none; }
.panel-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 26px; }
.panel-meta div { background: var(--bg); padding: 16px; }
.panel-meta small { display: block; font-size: 12px; color: var(--muted); }
.panel-meta b { font-size: 15px; }

/* Antes / después */
.ba { padding: clamp(80px, 10vw, 140px) 0; background: var(--mint-2); }
.ba-grid { display: grid; gap: 44px; align-items: center; }
.ba-stats { display: flex; gap: 40px; margin: 34px 0 18px; }
.ba-stats b { display: block; font: 400 60px/1 var(--serif); color: var(--accent); }
.ba-stats span { font-size: 14px; color: var(--muted); }
.ba-note { font-size: 12px; color: var(--muted); }
.ba-box { position: relative; aspect-ratio: 4/3; border-radius: 32px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(12,47,55,.55); user-select: none; }
.ba-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { filter: brightness(1.04) contrast(1.04); }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { filter: sepia(.38) saturate(1.2) brightness(.94) contrast(.96); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); font-size: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 18px; padding: 8px 14px; border-radius: 99px; background: rgba(12,47,55,.75); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); pointer-events: none; }
.ba-t1 { left: 18px; }
.ba-t2 { right: 18px; background: rgba(255,255,255,.85); color: var(--ink); }

/* Presupuesto */
.budget { padding: clamp(80px, 10vw, 140px) 0; }
.sim { display: grid; border-radius: 36px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -60px rgba(12,47,55,.6); border: 1px solid var(--line); }
.sim-left { padding: clamp(26px, 4vw, 48px); }
.sim-k { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.sim-k b { color: var(--accent); font-size: 16px; }
.sim-k.light { color: var(--mint); }
.sim-opts { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 30px; }
.sim-opts label { cursor: pointer; }
.sim-opts input { position: absolute; opacity: 0; }
.sim-opts span { display: flex; justify-content: space-between; gap: 10px; padding: 15px 18px; border-radius: 16px; background: var(--bg); font-weight: 600; border: 1.5px solid transparent; transition: all .3s var(--ease); }
.sim-opts small { color: var(--muted); font-weight: 500; }
.sim-opts input:checked + span { border-color: var(--accent); background: var(--mint-2); }
.sim-opts input:focus-visible + span { outline: 2px solid var(--accent); }
.sim-range { width: 100%; accent-color: var(--accent); height: 28px; }
.sim-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.sim-right { padding: clamp(26px, 4vw, 48px); background: var(--ink); color: #fff; display: grid; align-content: center; gap: 12px; }
.sim-big { font: 400 clamp(60px, 7vw, 96px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sim-sub { color: rgba(255,255,255,.7); }
.sim-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; margin: 8px 0 14px; }
.sim-bar i { display: block; height: 100%; background: var(--mint); border-radius: 6px; transition: width .6s var(--ease); }
.sim-inc { display: grid; gap: 8px; margin-bottom: 14px; font-size: 14px; color: rgba(255,255,255,.85); }
.sim-inc li::before { content: "✓  "; color: var(--mint); }

/* Diseño digital */
.digital { padding: clamp(80px, 10vw, 140px) 0; background: var(--sand); }
.dig-grid { display: grid; gap: 48px; align-items: center; }
.dig-img { border-radius: 32px; overflow: hidden; aspect-ratio: 4/3; }
.dig-img img { width: 100%; height: 100%; object-fit: cover; }
.flow { display: grid; gap: 14px; margin: 32px 0; }
.flow li { display: flex; gap: 18px; padding: 20px; border-radius: 20px; background: rgba(255,255,255,.65); }
.flow span { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; }
.flow h3 { font-size: 18px; font-weight: 700; }
.flow p { color: var(--muted); font-size: 15px; }

/* Equipo */
.team { padding: clamp(80px, 10vw, 140px) 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc { position: relative; }
.doc-img { aspect-ratio: 3/4; border-radius: 26px; overflow: hidden; background: var(--mint-2); margin-bottom: 14px; }
.doc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.doc:hover .doc-img img { transform: scale(1.05); filter: saturate(1.05); }
.doc h3 { font: 400 24px/1.1 var(--serif); }
.doc p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.doc-tag { position: absolute; top: 14px; left: 14px; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.88); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }

/* Reseñas */
.reviews { padding: clamp(60px, 8vw, 110px) 0; background: #fff; }
.rev-grid { display: grid; gap: 40px; }
.stars { color: #f2b230; font-size: 26px; letter-spacing: 4px; margin-top: 16px; }
.rev-list { display: grid; gap: 16px; }
.rev { padding: 30px; border-radius: 26px; background: var(--bg); display: grid; gap: 22px; }
.rev p { font: 400 23px/1.3 var(--serif); }
.rev footer { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.rev footer img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.rev footer span { display: block; color: var(--muted); }

/* Urgencias */
.urgent { padding: clamp(50px, 6vw, 80px) 0; background: linear-gradient(120deg, #0c2f37, #134a52); color: #fff; }
.urg-in { display: grid; gap: 24px; align-items: center; }
.urgent h2 { font: 400 clamp(36px, 4.4vw, 60px)/1 var(--serif); }
.urgent p { color: rgba(255,255,255,.75); margin-top: 10px; max-width: 48ch; }
.urg-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* FAQ */
.faq { padding: clamp(80px, 10vw, 140px) 0; }
.faq-grid { display: grid; gap: 40px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font-size: 19px; font-weight: 700; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-2); color: var(--accent); font-size: 20px; transition: transform .4s var(--ease), background .3s; }
.acc details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent); color: #fff; }
.acc details p { padding: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* Contacto */
.contact { padding: clamp(80px, 10vw, 140px) 0; background: var(--mint-2); }
.ct-grid { display: grid; gap: 40px; align-items: start; }
.ct-card { margin-top: 28px; padding: 26px; border-radius: 24px; background: #fff; display: grid; gap: 10px; color: var(--muted); }
.ct-card b { color: var(--ink); }
.ct-card a { color: var(--accent); font-weight: 700; }
.ct-open { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: var(--bg); font-size: 13px; font-weight: 700; color: var(--ink) !important; }
.ct-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c2c8c6; }
.ct-open.is-open::before { background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.2); }
.ct-img { margin-top: 16px; border-radius: 24px; overflow: hidden; aspect-ratio: 16/9; }
.ct-img img { width: 100%; height: 100%; object-fit: cover; }
.form { display: grid; gap: 16px; padding: clamp(24px, 3.5vw, 40px); border-radius: 32px; background: #fff; box-shadow: 0 40px 90px -50px rgba(12,47,55,.6); }
.form h3 { font: 400 32px/1.1 var(--serif); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input:not([type="radio"]), .form select { padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-size: 15px; transition: border-color .3s, box-shadow .3s; }
.form input:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,143,132,.15); }
.pick { border: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pick legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.pick label { display: block; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: block; padding: 11px 18px; border-radius: 99px; background: var(--bg); font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: all .3s; }
.pick input:checked + span { background: var(--ink); color: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); }
.form-ok { color: var(--accent); font-weight: 700; }

/* Footer */
.foot { background: var(--ink); color: rgba(255,255,255,.72); padding-top: 70px; }
.foot-in { display: grid; gap: 30px; padding-bottom: 44px; }
.foot .logo { color: #fff; }
.foot .logo svg { fill: var(--mint); }
.foot .logo small { color: rgba(255,255,255,.5); }
.foot-in p { margin-top: 12px; }
.foot h4 { color: var(--mint); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.foot a { cursor: pointer; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* Responsive */
@media (min-width: 540px) {
  .sim-opts { grid-template-columns: 1fr 1fr; }
  .tb-r { display: block; }
}
@media (min-width: 720px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .rev-list { grid-template-columns: 1fr 1fr; }
  .urg-in { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .menu, .nav-cta { display: flex; }
  .burger { display: none; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .panel { grid-template-columns: 1fr 1fr; gap: 64px; }
  .ba-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .sim { grid-template-columns: 1.4fr 1fr; }
  .dig-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .rev-grid { grid-template-columns: .8fr 1.2fr; align-items: center; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .ct-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .foot-in { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (max-width: 539px) {
  .f1 { left: 0; bottom: 8%; }
  .f2 { right: 0; top: 4%; }
  .badge-rot { width: 96px; height: 96px; right: 2%; bottom: -4%; }
}
@media (prefers-reduced-motion: reduce) {
  .badge-rot svg { animation-duration: 60s; }
  .pulse { animation: none; }
}
