/* ==========================================================================
   Laboratorio Dental Luna — estilos
   Dirección: formal y profesional. Fondo blanco, líneas finas, verde
   institucional, tipografía sans sobria, sin bloques ni recuadros de color.
   ========================================================================== */

:root {
  --ink: #0b3a3f;          /* verde institucional (texto y botones) */
  --ink-2: #124c52;
  --green: #2bb39f;        /* acento de marca, uso mínimo */
  --green-d: #13756a;
  --green-50: #eef7f5;
  --bg: #ffffff;
  --alt: #f5f7f7;
  --line: #dde4e3;
  --line-2: #c9d3d2;
  --text: #1b2b2d;
  --muted: #5d6e70;
  --wa: #1fa855;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: 6px;
  --r-lg: 10px;
  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--green-d); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.03rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 62ch; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-d); }
.center { text-align: center; margin-inline: auto; align-items: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; letter-spacing: .005em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178f48; color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--green-50); color: var(--ink); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-size: .95rem; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover { border-color: var(--ink); color: var(--ink); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Barra superior y encabezado ---------- */
.topbar { background: var(--ink); color: #c8dcda; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; color: #c8dcda; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; }
@media (max-width: 640px) { .topbar span { display: none; } .topbar .wrap { justify-content: center; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: #fff; z-index: 60; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(11, 58, 63, .06); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand svg rect { rx: 6; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.05; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 12px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .25s ease; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1160px) { .nav { display: none; } .menu-toggle { display: inline-flex; } }
@media (max-width: 560px) { .header-cta .btn { display: none; } .brand-name small { display: none; } }

/* Menú móvil: panel blanco con lista */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: #fff; color: var(--ink);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 22px) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.3rem; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.mobile-menu nav a::after { content: "→"; color: var(--line-2); font-size: 1rem; }
.mobile-menu nav a[aria-current="page"] { color: var(--green-d); font-weight: 600; }
.mobile-menu .close { width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu .close svg { width: 22px; height: 22px; }
.mobile-menu .btn-row { margin-top: auto; }
.mobile-menu .btn-row .btn { flex: 1 1 200px; }
.mobile-menu .btn-light { border-color: var(--line-2); }
body.menu-open { overflow: hidden; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section.alt { background: var(--alt); border-block: 1px solid var(--line); }
.section.dark { background: var(--alt); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 720px; }
.section-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; max-width: none; flex-wrap: wrap; gap: 18px; }
.section-head.row > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }

/* ---------- Marcadores de foto ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: linear-gradient(135deg, #e6ecec, #d3dddc); color: var(--ink);
  min-height: 200px; display: flex; align-items: flex-end; aspect-ratio: var(--ratio, 4 / 3); max-width: 100%;
}
.ph::after {
  content: ""; position: absolute; width: 46px; height: 46px; left: 50%; top: 46%; transform: translate(-50%, -50%); opacity: .35;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%230b3a3f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 8c-7 0-12 5.5-12 13 0 5 2 8 3.5 11 1.6 3.4 2.2 8 2.9 14 .7 6 2 10 4.6 10s3.3-5 4.5-10.5C24.6 40.6 27 38 32 38s7.4 2.6 8.5 7.5C41.7 51 42.4 56 45 56s3.9-4 4.6-10c.7-6 1.3-10.6 2.9-14C54 29 56 26 56 21c0-7.5-5-13-12-13-5 0-7.5 2.5-12 2.5S25 8 20 8Z'/%3E%3C/svg%3E");
}
.ph > .ph-label { position: relative; z-index: 1; margin: 12px; padding: 5px 10px; border-radius: 4px; background: rgba(255, 255, 255, .92); font-size: .75rem; font-weight: 500; line-height: 1.3; color: var(--muted); }
.ph > .ph-label::before { content: "Foto: "; color: var(--ink); font-weight: 600; }
.ph.loaded { background: var(--line); }
.ph.loaded > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.loaded::after, .ph.loaded > .ph-label { display: none; }
.ph.round { border-radius: 50%; min-height: 0; aspect-ratio: 1; }
.ph.round > .ph-label { display: none; }

/* ---------- Inicio ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 16px 16px 0 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--ink); line-height: 1.25; }
.hero-tool { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: 0 24px 60px -30px rgba(11, 58, 63, .35); min-width: 0; }
.tool-head { padding: 22px 24px 0; display: flex; flex-direction: column; gap: 4px; }
.tool-head p { color: var(--muted); font-size: .93rem; }
.hero-tool .tabs { padding: 0 24px 24px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .facts div { padding: 12px 0; } .tool-head { padding: 18px 18px 0; } .hero-tool .tabs { padding: 0 18px 18px; } }

/* Comparador de materiales */
.advisor { display: flex; flex-direction: column; gap: 18px; }
.advisor > p { color: var(--muted); font-size: .97rem; }
.meters { display: grid; gap: 12px; }
.meter { display: grid; grid-template-columns: 120px 1fr 36px; gap: 12px; align-items: center; font-size: .88rem; }
.meter span { color: var(--text); font-weight: 500; }
.meter b { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.meter .bar { height: 6px; border-radius: 3px; background: var(--alt); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: calc(var(--v) * 20%); background: var(--ink); border-radius: 3px; transform-origin: left; animation: grow .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ideal { border-top: 1px solid var(--line); padding-top: 16px; }
.ideal span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ideal ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.ideal li { display: flex; gap: 10px; align-items: baseline; font-size: .95rem; }
.ideal li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; transform: translateY(-2px); }
.advisor-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; font-size: .9rem; color: var(--muted); }
.advisor-foot span { display: inline-flex; align-items: center; gap: 8px; }
.advisor-foot svg { width: 17px; height: 17px; color: var(--green-d); }
@media (max-width: 420px) { .meter { grid-template-columns: 96px 1fr 32px; gap: 8px; } }

/* Herramientas: fecha de entrega y guía */
.tool { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: start; padding-top: 8px; }
.tool-copy { display: flex; flex-direction: column; gap: 10px; }
.tool-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.tool-copy p { color: var(--muted); }
.tool-body { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.tool-body .btn { align-self: flex-start; }
.eta-out { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-block: 1px solid var(--line); color: var(--muted); }
.eta-out span, .guide-out span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eta-out strong { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.eta-out small { font-size: .85rem; }
.tool fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tool legend { font-weight: 600; color: var(--ink); font-size: .93rem; margin-bottom: 10px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: .93rem; font-weight: 500; color: var(--text); transition: border-color .2s ease, background .2s ease, color .2s ease; }
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--green-d); outline-offset: 2px; }
.guide-out { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); min-height: 64px; }
.guide-out strong { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.guide-out p { color: var(--muted); }
.guide-out .btn-row { margin-top: 8px; }
.guide-out.pop { animation: tabIn .4s ease; }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } }

/* ---------- Páginas internas ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--alt), #fff 70%); }
.page-hero .banner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero .banner.solo { grid-template-columns: 1fr; }
.page-hero .copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.page-hero .ph { --ratio: 16 / 11; }
.crumbs { font-size: .84rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 860px) { .page-hero .banner { grid-template-columns: 1fr; } }

/* ---------- Rejillas: columnas con línea superior, sin recuadros ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { border-top: 2px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card p { color: var(--muted); font-size: .97rem; }
.icon-badge { width: 44px; height: 44px; border-radius: var(--r); background: var(--green-50); color: var(--green-d); display: grid; place-items: center; flex: none; }
.icon-badge svg { width: 22px; height: 22px; }

/* Franja final */
.cta-strip { background: var(--ink); color: #c8dcda; padding-block: clamp(48px, 6vw, 80px); }
.cta-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-copy { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.cta-strip h2 { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.split .copy p { color: var(--muted); }
.split .ph { --ratio: 5 / 4; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; border-top: 1px solid var(--line); }
.stat-row div { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px 0 0; }
.stat-row div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.stat-row strong { font-family: var(--display); font-weight: 600; font-size: 1.8rem; color: var(--ink); line-height: 1; }
.stat-row span { font-size: .82rem; color: var(--muted); line-height: 1.35; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line-2); font-size: .93rem; font-weight: 500; color: var(--ink); }

.gear-list { list-style: none; padding: 0; margin: 0; display: grid; }
.gear-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gear-list li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--green); flex: none; }
.gear-list strong { color: var(--ink); }

/* ---------- Servicios ---------- */
.category-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 32px; }
.category-head .copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.category-head .ph { --ratio: 16 / 10; }
@media (max-width: 860px) { .category-head { grid-template-columns: 1fr; } .tab-panel .category-head .ph { --ratio: 16 / 9; min-height: 0; } }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.filters button { padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: 500 .93rem var(--sans); cursor: pointer; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery figure[hidden] { display: none; }
.gallery .ph { --ratio: 1 / 1; min-height: 0; }
.gallery figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.gallery figcaption strong { color: var(--ink); font-weight: 600; }
.gallery figcaption span { color: var(--muted); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

.ba { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; user-select: none; }
.ba .ph { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; min-height: 0; height: 100%; }
.ba .ph.before { background: linear-gradient(135deg, #d9d4c8, #bfb8a8); }
.ba .after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; z-index: 3; }
.ba .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 600; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.ba .tag { position: absolute; top: 12px; z-index: 2; background: rgba(11, 58, 63, .82); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 4px; }
.ba .tag.l { left: 12px; } .ba .tag.r { right: 12px; }

/* ---------- Formularios ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 44px); box-shadow: 0 24px 60px -36px rgba(11, 58, 63, .3); min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field .label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--text); background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; min-height: 48px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 58, 63, .08); }
.field input[type="file"] { padding: 10px; border-style: dashed; }
.field.invalid input, .field.invalid select { border-color: #b3381f; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.form-status { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--green-50); color: var(--ink); font-size: .93rem; font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.side-stack { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.form-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }

/* Odontograma */
.odonto { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.quad { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.quad:nth-child(odd) { border-right: 1px solid var(--line); }
.quad:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.quad:nth-child(2) .q-name, .quad:nth-child(4) .q-name { text-align: right; }
.q-name { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.q-teeth { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.quad:nth-child(-n+2) .q-teeth { align-items: end; }
.tooth { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; border-radius: 4px; }
.quad:nth-child(n+3) .tooth { flex-direction: column-reverse; }
.tooth i { display: block; width: 78%; max-width: 26px; height: 26px; border: 1.5px solid var(--line-2); background: #fff; border-radius: 40% 40% 30% 30% / 45% 45% 30% 30%; transition: background .15s ease, border-color .15s ease; }
.tooth.a i { width: 60%; height: 30px; border-radius: 45% 45% 25% 25% / 35% 35% 25% 25%; }
.tooth.p i { height: 26px; }
.tooth.m i { width: 90%; height: 24px; border-radius: 30%; }
.tooth b { font-size: .72rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tooth:hover i { border-color: var(--ink); }
.tooth[aria-pressed="true"] i { background: var(--ink); border-color: var(--ink); }
.tooth[aria-pressed="true"] b { color: var(--ink); }
.tooth:focus-visible { outline: 2px solid var(--green-d); outline-offset: 1px; }
.odonto + input { margin-top: 10px; }
@media (max-width: 620px) {
  .odonto { grid-template-columns: 1fr; }
  .quad:nth-child(odd) { border-right: 0; }
  .quad:not(:last-child) { border-bottom: 1px solid var(--line); }
  .quad:nth-child(2) .q-name, .quad:nth-child(4) .q-name { text-align: left; }
}

/* ---------- Acordeones como lista ---------- */
details.qa { border-bottom: 1px solid var(--line); }
details.qa:first-child { border-top: 1px solid var(--line); }
details.qa summary { list-style: none; cursor: pointer; padding: 20px 2px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .25s ease; }
details.qa[open] summary::after { transform: rotate(225deg) translateY(-3px); }
details.qa summary:hover { color: var(--green-d); }
details.qa .ans { padding: 0 2px 22px; color: var(--muted); max-width: 70ch; }

/* ---------- Contacto ---------- */
.contact-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: -32px; background: #fff; position: relative; box-shadow: 0 20px 50px -34px rgba(11, 58, 63, .35); }
.contact-quick a { display: flex; align-items: center; gap: 14px; padding: 22px; text-decoration: none; color: var(--ink); min-width: 0; transition: background .2s ease; }
.contact-quick a + a { border-left: 1px solid var(--line); }
.contact-quick a:hover { background: var(--alt); }
.contact-quick strong { display: block; font-size: 1rem; font-weight: 600; }
.contact-quick span { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 760px) { .contact-quick { grid-template-columns: 1fr; } .contact-quick a + a { border-left: 0; border-top: 1px solid var(--line); } }
.side-stack .card { border-top-width: 1px; border-color: var(--line); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.info-list svg { width: 20px; height: 20px; color: var(--green-d); margin-top: 3px; }
.info-list strong { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; }
.info-list span { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Texto legal ---------- */
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 1.45rem; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* ---------- Pie de página ---------- */
.site-footer { background: #072b2f; color: #a7c0be; padding-block: 72px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .93rem; }
.site-footer a { color: #d6e6e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid > div:first-child p { max-width: 36ch; }
.footer-grid h4 { margin: 0 0 16px; color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-name small { color: #8fb0ad; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(18px, calc(env(safe-area-inset-right, 0px) + 14px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px)); z-index: 70;
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; text-decoration: none; box-shadow: 0 10px 28px rgba(0, 0, 0, .2); transition: transform .2s ease;
}
.wa-float:hover { transform: translateY(-2px); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float span { display: none; }

/* ---------- Animación de entrada (solo con JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transition-duration: .01s; } .meter .bar i { animation: none; } }

/* ==========================================================================
   Componentes interactivos (sin JS todo queda visible)
   ========================================================================== */
.wrap.narrow { max-width: 900px; }
.hint-swipe { font-size: .86rem; color: var(--muted); }

/* ---------- Pestañas: subrayado ---------- */
.tabs { min-width: 0; }
.tab-list { display: none; }
.js .tab-list { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; position: relative;
  padding: 14px 18px; border: 0; background: none; color: var(--muted);
  font: 500 .95rem var(--sans); cursor: pointer; transition: color .2s ease;
}
.tab-list button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .25s ease; }
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tab-list button[aria-selected="true"]::after { transform: scaleX(1); }
.tab-list button svg { width: 18px; height: 18px; }
.tab-list .count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--alt); color: var(--muted); font-size: .72rem; display: inline-grid; place-items: center; }
.tab-panels > .tab-panel + .tab-panel { margin-top: 48px; }
.js .tab-panels > .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel:focus { outline: none; }
.tab-panel.enter { animation: tabIn .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sticky-tabs .tab-list { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 20; background: rgba(255, 255, 255, .97); }
.section.alt .sticky-tabs .tab-list { background: rgba(245, 247, 247, .97); }
.tabs-section { padding-top: clamp(40px, 5vw, 64px); }
/* Pestañas segmentadas (comparador del inicio) */
.js .tabs.seg .tab-list { border: 1px solid var(--line); border-radius: var(--r); padding: 4px; gap: 4px; margin: 18px 0 22px; }
.tabs.seg .tab-list button { flex: 1 0 auto; justify-content: center; padding: 10px 12px; border-radius: 4px; font-size: .88rem; }
.tabs.seg .tab-list button::after { display: none; }
.tabs.seg .tab-list button[aria-selected="true"] { background: var(--ink); color: #fff; }
.panel-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; max-width: 680px; }
.panel-sub { margin: 44px 0 18px; }
.qa-list { display: flex; flex-direction: column; }
.qa-list details.qa summary { padding: 16px 2px; font-size: .98rem; }

/* Selector de materiales */
.chip-picker .chip { cursor: pointer; font-family: var(--sans); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chip-picker .chip:hover { border-color: var(--ink); }
.chip-picker .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-info { margin: 20px 0 8px; padding: 4px 0 4px 18px; border-left: 2px solid var(--green); color: var(--text); font-size: 1.05rem; max-width: 640px; }

/* ---------- Proceso: línea de tiempo ---------- */
.js .stepper .tab-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 0; margin-bottom: 28px; overflow: visible; position: relative; }
.js .stepper .tab-list::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--line-2); }
.stepper .tab-list button { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 12px 0 0; text-align: left; font-size: .9rem; line-height: 1.3; color: var(--muted); }
.stepper .tab-list button::after { display: none; }
.stepper .tab-list button .n { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--muted); transition: background .25s ease, color .25s ease, border-color .25s ease; }
.section.alt .stepper .tab-list button .n, .section.dark .stepper .tab-list button .n { background: var(--alt); }
.stepper .tab-list button:hover .n { border-color: var(--ink); color: var(--ink); }
.stepper .tab-list button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.stepper .tab-list button[aria-selected="true"] .n { background: var(--ink) !important; border-color: var(--ink); color: #fff; }
.stepper .tab-list button.done .n { border-color: var(--ink); color: var(--ink); }
.step-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: start; padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.step-card .icon-badge { grid-row: span 4; width: 56px; height: 56px; }
.step-card .icon-badge svg { width: 26px; height: 26px; }
.step-card .k { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.step-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.step-card p { color: var(--muted); font-size: 1.02rem; max-width: 56ch; }
.step-card .btn-row { padding-top: 10px; }
.step-card .btn-light { background: var(--ink); color: #fff; }
.stepper .tab-panels > .tab-panel + .tab-panel { margin-top: 16px; }
.js .stepper .tab-panels > .tab-panel + .tab-panel { margin-top: 0; }
@media (max-width: 760px) {
  .stepper .tab-list button { align-items: center; padding: 0; }
  .stepper .tab-list button .t { display: none; }
  .step-card { grid-template-columns: 1fr; }
  .step-card .icon-badge { grid-row: auto; margin-bottom: 8px; }
}

/* ---------- Carrusel ---------- */
.carousel { --per: 3; --gap: 20px; min-width: 0; }
.car-track { display: grid; grid-auto-flow: column; gap: var(--gap); grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 4px; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; min-width: 0; }
.car-ctrl { display: none; }
.js .car-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.car-dots { display: flex; gap: 4px; margin-right: auto; flex-wrap: wrap; align-items: center; }
.car-dots button { width: 24px; height: 2px; padding: 8px 0; background: none; border: 0; cursor: pointer; position: relative; }
.car-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line-2); transition: background .25s ease; }
.car-dots button[aria-current="true"]::before { background: var(--ink); }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; transition: border-color .2s ease, background .2s ease, color .2s ease, opacity .2s ease; }
.car-btn:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: #fff; }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-works { --per: 3.2; }
.work { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.work .ph { --ratio: 4 / 5; min-height: 0; }
.work figcaption { font-size: .93rem; font-weight: 500; color: var(--ink); }
@media (max-width: 1000px) { .car-works { --per: 2.2; } }
@media (max-width: 620px) { .car-works { --per: 1.3; } }

/* ---------- Servicios: lista desplegable ---------- */
.svc-acc { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.svc-item { border-bottom: 1px solid var(--line); }
.svc-item summary { list-style: none; cursor: pointer; padding: 20px 2px; display: flex; align-items: center; gap: 16px; }
.svc-item summary::-webkit-details-marker { display: none; }
.svc-item summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .25s ease; }
.svc-item[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.svc-item .nm { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink); flex: 1; min-width: 0; }
.svc-item summary:hover .nm { color: var(--green-d); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.badge svg { width: 15px; height: 15px; }
.svc-body { padding: 0 2px 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px 40px; align-items: start; }
.svc-body p { color: var(--muted); }
.svc-body dl { margin: 0; display: grid; grid-row: span 2; }
.svc-body dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; padding: 9px 0; border-bottom: 1px solid var(--line); }
.svc-body dl div:first-child { border-top: 1px solid var(--line); }
.svc-body dt { color: var(--muted); }
.svc-body dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.svc-body .btn { justify-self: start; }
@media (max-width: 760px) { .svc-body { grid-template-columns: 1fr; } .svc-body dl { grid-row: auto; } }
@media (max-width: 420px) { .svc-item .badge { display: none; } }

/* ---------- Galería: ver más y visor ---------- */
.gallery .zoom { all: unset; position: relative; display: block; cursor: zoom-in; border-radius: var(--r); overflow: hidden; }
.gallery .zoom:focus-visible { outline: 2px solid var(--green-d); outline-offset: 3px; }
.gallery .zoom .ph { transition: transform .5s ease; }
.gallery .zoom:hover .ph { transform: scale(1.03); }
.zoom-ico { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; z-index: 2; opacity: 0; transition: opacity .2s ease; }
.gallery .zoom:hover .zoom-ico, .gallery .zoom:focus-visible .zoom-ico { opacity: 1; }
@media (hover: none) { .zoom-ico { opacity: 1; } }
.more-row { display: flex; justify-content: center; margin-top: 36px; }
.more-row[hidden] { display: none; }
.ba-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.ba-info { display: flex; flex-direction: column; gap: 12px; }
.ba-info p { color: var(--muted); }
@media (max-width: 820px) { .ba-wrap { grid-template-columns: 1fr; } }
.lightbox { width: min(940px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: rgba(7, 30, 33, .85); }
.lightbox[open] { display: flex; flex-direction: column; animation: tabIn .3s ease; }
.lb-stage { min-height: 0; flex: 1; }
.lb-stage .ph, .lb-stage img { width: 100%; max-height: calc(100dvh - 140px); border-radius: 0; --ratio: 4 / 3; object-fit: contain; }
.lb-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.lb-cap { flex: 1; text-align: center; font-weight: 600; }
.lb-cap span { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.lb-close svg { width: 20px; height: 20px; }

/* ---------- Formulario por pasos ---------- */
.wizard .wiz-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.wizard .wiz-head h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.wizard .wiz-head p { color: var(--muted); }
.wiz-progress { display: none; }
.js .wiz-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; counter-reset: wiz; }
.wiz-progress li { counter-increment: wiz; display: flex; flex-direction: column; gap: 8px; font-size: .8rem; font-weight: 500; color: var(--muted); }
.wiz-progress li::before { content: ""; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s ease; }
.wiz-progress li.on { color: var(--ink); font-weight: 600; }
.wiz-progress li.on::before, .wiz-progress li.done::before { background: var(--ink); }
.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step + .form-step { margin-top: 32px; }
.js .form-step + .form-step { margin-top: 0; }
.form-step legend { font-family: var(--display); font-size: 1.25rem; color: var(--ink); font-weight: 600; margin-bottom: 20px; padding: 0; }
.form-step.enter { animation: tabIn .35s ease; }
.form-step .check { margin-top: 18px; }
.wiz-nav { display: none; }
.js .wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.wiz-nav [hidden] { display: none; }
.wiz-nav [data-wiz-next] { margin-left: auto; }

.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 620px) { .choice-grid, .choice-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.choice svg { width: 22px; height: 22px; color: var(--green-d); }
.choice b { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.choice:hover > span { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--green-50); }
.choice input:focus-visible + span { outline: 2px solid var(--green-d); outline-offset: 2px; }
.choice.sm > span { flex-direction: row; align-items: center; }
.field.invalid .choice > span { border-color: #b3381f; }

.shade-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.shade { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: var(--r); border: 1px solid transparent; transition: border-color .2s ease; }
.shade input { position: absolute; opacity: 0; pointer-events: none; }
.shade i { width: 28px; height: 40px; border-radius: 9px 9px 14px 14px; border: 1px solid rgba(0, 0, 0, .12); display: block; }
.shade span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.shade.wide i { width: 40px; background: repeating-linear-gradient(45deg, #fff, #fff 5px, var(--alt) 5px, var(--alt) 10px); }
.shade:hover { border-color: var(--line-2); }
.shade:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.shade:has(input:checked) span { color: var(--ink); }
.shade:has(input:focus-visible) { outline: 2px solid var(--green-d); outline-offset: 2px; }

.wiz-summary:empty { display: none; }
.wiz-summary { display: grid; gap: 0; border-top: 1px solid var(--line); }
.sum-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sum-block header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sum-block h4 { margin: 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sum-block button { border: 0; background: none; color: var(--green-d); font: 600 .85rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sum-block dl { margin: 0; display: grid; gap: 4px; }
.sum-block dl div { display: flex; justify-content: space-between; gap: 14px; font-size: .92rem; }
.sum-block dt { color: var(--muted); }
.sum-block dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.sum-block .empty { color: var(--muted); font-size: .9rem; }

/* ---------- Envío: paneles de información ---------- */
.info-panel { display: flex; gap: 22px; align-items: flex-start; max-width: 780px; padding-left: 22px; border-left: 2px solid var(--ink); }
.info-panel > div:last-child { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1; }
.info-panel h3 { font-size: 1.45rem; }
.info-panel p { color: var(--muted); }
@media (max-width: 520px) { .info-panel { flex-direction: column; } }
.tab-panel .split .copy h3 { font-size: 1.6rem; }

/* ---------- Preguntas: buscador ---------- */
.faq-search { position: relative; margin-bottom: 26px; }
.faq-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.faq-search input { width: 100%; min-height: 56px; padding: 0 16px 0 48px; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; font: 400 1.02rem var(--sans); color: var(--text); }
.faq-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 58, 63, .08); }
.faq-empty { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); margin-bottom: 18px; }
.faq-empty[hidden] { display: none; }
.faq-group { display: flex; flex-direction: column; }
.faq-tabs.searching .tab-list { opacity: .45; }
.faq-tabs.searching .tab-panel[hidden] { display: block; }
.faq-tabs.searching .tab-panel + .tab-panel { margin-top: 0; }
details.qa[hidden] { display: none; }
mark { background: #e3f1ee; color: inherit; border-radius: 2px; padding: 0 2px; }
