/* NEYVAK Clinic — sitio público. Mundo visual: lámina de plano de arquitectura.
   Marca fija: azul marino #16324F y verde azulado #168C8C. Tipografía Archivo (OFL), servida localmente. */

@font-face {
  font-family: "Archivo";
  src: url("./assets/fonts/archivo-variable.e3a28eade2.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --navy: #16324F;
  --teal: #168C8C;
  --teal-ink: #0E6767;
  --paper: #F2F6F8;
  --sheet: #FBFCFD;
  --ink-2: #44596D;
  --line: #A9BCCA;
  --line-soft: #D5E0E7;
  --sky: #E3EEF2;
  --wall: 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-draw: cubic-bezier(0.77, 0, 0.175, 1);
  --measure: 66ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--teal); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; text-wrap: pretty; }
html { scrollbar-color: var(--line) var(--paper); }

.container { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .6rem 1rem; background: var(--navy); color: #fff; }
.skip:focus { top: 1rem; }

/* Banda Beta */
.preview-note { padding: .45rem 1.25rem; background: var(--navy); color: #fff; font-size: .8125rem; text-align: center; font-stretch: 108%; }
.preview-note span { color: #C9DCE6; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand img { width: auto; height: 40px; }
#navegacion { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { font-size: .9375rem; text-decoration: none; font-stretch: 106%; color: var(--ink-2); transition: color 160ms ease; }
.nav-links a:hover { color: var(--navy); }
.menu-button { display: none; }

/* Botones y enlaces */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem; border: 0; border-radius: 3px;
  background: var(--teal-ink); color: #fff; font: inherit; font-weight: 620; font-stretch: 108%;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(22,50,79,.18), 0 8px 18px -10px rgba(22,50,79,.55);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.button:hover { background: #0B5555; }
.button:active { transform: scale(0.97); }
.button.small { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.text-link { font-weight: 560; color: var(--navy); text-decoration: underline; text-decoration-color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.text-link:hover { text-decoration-thickness: 3px; }

/* ---------- Lámina del plano (primer viewport) ---------- */
.plan-section { padding: 2rem 0 4.5rem; }
.plan-sheet { position: relative; }
.plan-dimension {
  position: relative; display: flex; justify-content: space-between; align-items: end;
  margin-bottom: .9rem; padding: 0 2px 10px; font-size: .78rem; font-stretch: 116%; color: var(--ink-2);
}
.plan-dimension { padding-bottom: 0; margin-bottom: .4rem; align-items: center; }
.scalebar { display: inline-flex; align-items: center; gap: .55rem; }
.scalebar svg { width: 92px; height: 10px; }
.scalebar rect { fill: var(--navy); stroke: var(--navy); stroke-width: 1; }
.scalebar rect.hollow { fill: var(--sheet); }
.cota { position: relative; display: flex; justify-content: center; height: 22px; margin: 0 0 .7rem; }
.cota::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--ink-2); }
.cota::after { content: ""; position: absolute; inset: 4px 0; border-inline: 1px solid var(--ink-2); }
.cota span { position: relative; z-index: 1; padding: 0 .6rem; background: var(--paper); font-size: .78rem; font-stretch: 116%; color: var(--ink-2); line-height: 22px; }

/* plan */
.plan {
  --hatch: repeating-linear-gradient(45deg, var(--navy) 0 1.4px, transparent 1.4px 6px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: var(--wall);
  padding: var(--wall); background: var(--hatch), var(--sheet);
  box-shadow: 0 30px 60px -40px rgba(22,50,79,.45);
  clip-path: inset(0 0 0 0);
}
.js .plan { animation: plan-draw 1100ms var(--ease-draw) both; }
@keyframes plan-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.hall { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; padding: clamp(1.75rem, 3.4vw, 3.25rem); background: var(--sheet); }
.hall h1 { font-size: clamp(2.5rem, 3.8vw, 3.85rem); font-weight: 720; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1.02; }
.hall-lede { max-width: 44ch; color: var(--ink-2); font-size: 1.09rem; }
.hall-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.5rem; }
.hall-note { font-size: .82rem; color: var(--ink-2); }
.door .swing { stroke-dasharray: 3 4; stroke: var(--line); }

.rooms-wrap { display: grid; grid-template-rows: auto 1fr auto; gap: var(--wall); }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; padding: .85rem 1.1rem; border: 0; background: var(--sheet); }
.keys legend { float: left; margin-right: .4rem; padding: 0; font-size: .84rem; font-stretch: 112%; color: var(--ink-2); }
.keys label { position: relative; cursor: pointer; }
.keys input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.keys span { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; font-weight: 560; font-stretch: 106%; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.keys input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.keys input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

.rooms { display: grid; grid-template-columns: 1fr 1fr 1.15fr .95fr; grid-template-rows: repeat(2, minmax(156px, 1fr)); grid-template-areas: "recepcion sala consultorio direccion" "caja archivo consultorio direccion"; gap: var(--wall); }
.room[data-room="recepcion"] { grid-area: recepcion; }
.room[data-room="sala"] { grid-area: sala; }
.room[data-room="consultorio"] { grid-area: consultorio; }
.room[data-room="caja"] { grid-area: caja; }
.room[data-room="archivo"] { grid-area: archivo; }
.room[data-room="direccion"] { grid-area: direccion; }
.room {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem;
  min-height: 150px; padding: 1rem 1.1rem; border: 0; border-radius: 0; background: var(--sheet);
  color: var(--navy); font: inherit; text-align: left; cursor: pointer; isolation: isolate;
  transition: transform 160ms var(--ease-out);
}
.room:active { transform: scale(0.985); }
.room-fill { position: absolute; inset: 0; z-index: -1; background: var(--teal-ink); clip-path: inset(0 100% 0 0); transition: clip-path 320ms var(--ease-out); }
.room[aria-pressed="true"] .room-fill { clip-path: inset(0 0 0 0); }
.room-name { font-size: 1.28rem; font-weight: 680; font-stretch: 116%; letter-spacing: -0.015em; line-height: 1.1; }
.room-module { font-size: .875rem; color: var(--ink-2); font-stretch: 104%; }
.room[aria-pressed="true"] { color: #fff; }
.room[aria-pressed="true"] .room-module { color: #fff; font-weight: 560; }
.room .furniture { position: absolute; top: 14px; right: 14px; width: min(46%, 132px); fill: none; stroke: var(--line); stroke-width: 1.4; transition: stroke 200ms ease; }
.room-tall .furniture { width: min(70%, 150px); top: 22px; }
.room[aria-pressed="true"] .furniture { stroke: rgba(255,255,255,.55); }
@media (hover: hover) and (pointer: fine) {
  .room:not([aria-pressed="true"]):not(.is-locked):hover .furniture { stroke: var(--teal); }
  .room:not([aria-pressed="true"]):not(.is-locked):hover .room-name { color: var(--teal-ink); }
}
.door { position: absolute; top: calc(-1 * var(--wall)); left: 18px; width: 44px; height: calc(40px + var(--wall)); fill: none; stroke: var(--navy); stroke-width: 1.5; background: linear-gradient(var(--sheet), var(--sheet)) top / 100% var(--wall) no-repeat; z-index: 1; }
.room[aria-pressed="true"] .door .leaf { stroke: #fff; }
.room[aria-pressed="true"] .door .swing { stroke: rgba(255,255,255,.6); }
.room.is-locked .door .swing { opacity: 0; }

.room-lock { order: -1; display: none; align-items: center; gap: .35rem; margin-bottom: .35rem; font-size: .78rem; font-weight: 600; font-stretch: 110%; color: var(--navy); }
.room-lock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.room.is-locked { background: repeating-linear-gradient(-45deg, rgba(22,50,79,.10) 0 1px, transparent 1px 7px), var(--sheet); }
.room.is-locked .room-lock { display: inline-flex; }
.room.is-locked .furniture { opacity: .35; }
.room.is-locked .room-name, .room.is-locked .room-module { color: var(--ink-2); }
.room.is-locked .room-fill { clip-path: inset(0 100% 0 0); }

.ficha-wrap { position: relative; background: var(--sheet); padding: 1.35rem 1.4rem; min-height: 168px; }
.ficha { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.js .ficha:not([hidden]) { animation: ficha-in 260ms var(--ease-out) both; }
@keyframes ficha-in { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }
.ficha h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .45rem; }
.ficha h2 span { display: block; margin-top: .15rem; font-size: .9rem; font-weight: 500; font-stretch: 104%; letter-spacing: 0; color: var(--ink-2); }
.ficha-text p { font-size: .95rem; color: var(--ink-2); }
.ficha-locked { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--navy); max-width: 60ch; }
.ficha-locked svg { flex: none; width: 22px; height: 22px; margin-top: .1rem; fill: none; stroke: var(--navy); stroke-width: 1.6; }
.ficha-locked[hidden] { display: none; }

.sample { position: relative; padding: .9rem 1rem; border: 1px solid var(--line-soft); border-radius: 3px; background: #fff; font-size: .875rem; box-shadow: 0 1px 0 rgba(22,50,79,.05), 0 12px 24px -18px rgba(22,50,79,.4); }
.sample::after { content: "Datos de prueba"; position: absolute; top: -.6rem; right: .75rem; padding: 0 .4rem; background: var(--sheet); font-size: .72rem; color: var(--ink-2); font-stretch: 110%; }
.sample-title { font-weight: 640; font-stretch: 108%; margin-bottom: .55rem; }
.sample-rows { list-style: none; margin: 0; padding: 0; }
.sample-rows li { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: baseline; padding: .4rem 0; border-top: 1px solid var(--line-soft); }
.sample-rows li:first-child { border-top: 0; padding-top: 0; }
.sample-rows li > span:first-child { grid-column: 1 / span 2; }
.sample-rows time + span { grid-column: auto; }
.sample-rows time { color: var(--ink-2); }
.sample-rows b { font-weight: 600; color: var(--navy); font-size: .82rem; }
.sample-rows b.muted { color: var(--ink-2); font-weight: 500; }
.sample-fields { display: grid; gap: .5rem; margin: 0; }
.sample-fields dt { font-size: .76rem; color: var(--ink-2); font-stretch: 108%; }
.sample-fields dd { margin: 0; }
.stamp { display: inline-block; margin-top: .7rem; padding: .15rem .55rem; border: 1px solid var(--navy); border-radius: 2px; color: var(--navy); font-size: .76rem; font-weight: 600; font-stretch: 110%; }

/* ---------- Secciones ---------- */
.section-head { display: grid; gap: 1rem; max-width: 44rem; }
.section-head h2, .faq h2, .notes h2, .beta h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; }
.section-head p { color: var(--ink-2); max-width: var(--measure); }

.day { padding: 6.5rem 0 5.5rem; background: var(--sheet); border-block: 1px solid var(--line-soft); }
.route { list-style: none; margin: 3.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 2.05rem; border-top: 1.5px dashed var(--navy); }
.route li { position: relative; padding: 3.4rem 1.4rem 0 0; }
.route li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 14px; height: 14px; border: 1.5px solid var(--navy); border-radius: 50%; background: var(--sheet); }
.route time { position: absolute; top: 0; left: 0; font-size: .9rem; font-weight: 640; font-stretch: 116%; color: var(--navy); }
.route h3 { font-size: 1.12rem; font-weight: 660; margin-bottom: .45rem; }
.route p { font-size: .95rem; color: var(--ink-2); }

.keys-section { padding: 6.5rem 0; }
.keys-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.keys-statement { font-weight: 620; color: var(--navy) !important; }
.schedule-wrap { overflow-x: auto; }
.schedule-hint { display: none; margin-bottom: .5rem; font-size: .84rem; color: var(--ink-2); }
@media (max-width: 700px) { .schedule-hint { display: block; } }
.schedule { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--sheet); border: 2px solid var(--navy); font-size: .9rem; }
.schedule caption { caption-side: top; text-align: left; padding-bottom: .6rem; font-weight: 640; font-stretch: 112%; }
.schedule th, .schedule td { padding: .75rem .7rem; border: 1px solid var(--line-soft); text-align: center; }
.schedule thead th { font-size: .8rem; font-weight: 600; font-stretch: 110%; color: var(--ink-2); background: var(--sky); border-bottom: 2px solid var(--navy); }
.schedule tbody th { text-align: left; font-weight: 620; white-space: nowrap; }
.schedule td { color: var(--ink-2); }
.schedule td.yes { color: var(--navy); font-weight: 680; background: var(--sky); }
.schedule-note { margin-top: 1rem; font-size: .92rem; color: var(--ink-2); max-width: 62ch; }

.scale { padding: 6rem 0; }
.scale-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3rem; }
.scale-plan { margin: 0; display: grid; gap: 1.4rem; }
.scale-plan svg { width: 100%; background: var(--sheet); }
.scale-plan .wall { fill: none; stroke: var(--navy); stroke-width: 4; }
.scale-plan .soft { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 3 4; }
.scale-plan .active { fill: none; }
.scale-plan .active-one { fill: var(--teal-ink); opacity: .14; }
.scale-plan .obj { fill: none; stroke: var(--line); stroke-width: 1.4; }
.scale-plan h3 { font-size: 1.4rem; font-weight: 680; margin-bottom: .5rem; }
.scale-plan p { color: var(--ink-2); max-width: 52ch; }
.scale-tag { display: inline-block; margin-top: .8rem; font-size: .8rem; font-stretch: 116%; color: var(--ink-2); }

.notes { padding: 6rem 0; }
.notes-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.notes-list { margin: 0; padding: 0; list-style: none; counter-reset: nota; border-top: 2px solid var(--navy); }
.notes-list li { counter-increment: nota; display: grid; grid-template-columns: 2.5rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.notes-list li::before { content: counter(nota) "."; font-weight: 680; font-stretch: 116%; color: var(--navy); }

.beta { padding: 6rem 0; background: var(--sky); border-block: 1px solid var(--line-soft); }
.beta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); }
.beta-grid > div:first-child p { margin-top: 1rem; color: var(--ink-2); max-width: 52ch; }
.beta-steps { margin: 0; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 0; border-top: 2px solid var(--navy); }
.beta-steps li { counter-increment: paso; position: relative; padding: 1rem 0 1rem 3rem; border-bottom: 1px solid var(--line); }
.beta-steps li::before { content: counter(paso); position: absolute; left: 0; top: 1rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1.5px solid var(--navy); border-radius: 50%; font-size: .85rem; font-weight: 700; }
.beta-steps h3 { font-size: 1.08rem; font-weight: 660; }
.beta-steps p { color: var(--ink-2); font-size: .95rem; }
.beta-action { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.faq { padding: 6rem 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.faq-grid > div:first-child p { margin-top: 1.25rem; }
.faq-list { border-top: 2px solid var(--navy); }
details { border-bottom: 1px solid var(--line-soft); }
summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; font-weight: 600; font-stretch: 106%; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: .45rem; border-right: 1.6px solid var(--navy); border-bottom: 1.6px solid var(--navy); transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: var(--measure); }

/* ---------- Cajetín (pie) ---------- */
.footer { padding: 3rem 0 2.5rem; }
.titleblock { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; border: 2px solid var(--navy); background: var(--sheet); }
.tb-cell { padding: 1rem 1.15rem; border-left: 1px solid var(--line); font-size: .9rem; }
.tb-cell:first-child { border-left: 0; }
.tb-label { display: block; margin-bottom: .3rem; font-size: .76rem; color: var(--ink-2); font-stretch: 112%; }
.tb-links p { display: grid; gap: .2rem; }
.tb-links a, .tb-cell a { text-decoration-color: var(--line); }
.tb-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; border-left: 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .8rem; }
.footer-brand { font-size: 1.15rem; font-weight: 720; font-stretch: 116%; }
.footer-brand span { color: var(--teal-ink); }
.tb-brand p { margin-top: .3rem; color: var(--ink-2); }

/* ---------- Páginas interiores: registro y documentos ---------- */
.section { padding: 4.5rem 0 5.5rem; }
.section-intro { margin-top: 1rem; color: var(--ink-2); max-width: 52ch; font-size: 1.09rem; }
.registration h1, .document h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 720; font-stretch: 118%; letter-spacing: -0.03em; }
.registration-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.registration-aside { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 2px solid var(--navy); display: grid; gap: .8rem; }
.registration-aside h2 { font-size: 1.3rem; font-weight: 680; }
.registration-aside p { color: var(--ink-2); }
.form-card { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--sheet); border: 2px solid var(--navy); box-shadow: 0 30px 60px -45px rgba(22,50,79,.5); }
.local-form-note { padding: .75rem .9rem; margin-bottom: 1.25rem; background: var(--sky); font-size: .9rem; color: var(--navy); }
.form-hint { font-size: .86rem; color: var(--ink-2); margin: .75rem 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; margin-bottom: 1.4rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; font-stretch: 106%; }
.field input, .field select {
  width: 100%; min-height: 46px; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 3px;
  background: #fff; color: var(--navy); font: inherit; font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,140,140,.18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #B3261E; }
.field-error { min-height: 1rem; font-size: .82rem; color: #B3261E; }
.consent label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.consent input { width: 20px; min-height: 20px; height: 20px; margin-top: .2rem; accent-color: var(--navy); }
.consent a { font-size: .88rem; }
.submit-button { width: 100%; }
.error-summary { margin-bottom: 1.2rem; padding: .9rem 1rem; border: 1.5px solid #B3261E; background: #FCEEED; color: #7A1B15; font-size: .92rem; }
.error-summary:focus { outline: 2px solid #B3261E; outline-offset: 2px; }
.beta-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#sending-status { margin-top: .75rem; font-size: .9rem; color: var(--ink-2); }
.success { display: grid; gap: .9rem; padding: 1rem 0; }
.success h2 { font-size: 1.6rem; font-weight: 700; }

.document-content { max-width: 46rem; }
.document-content h2 { margin: 2.25rem 0 .6rem; font-size: 1.3rem; font-weight: 680; }
.document-content p { margin-bottom: .9rem; color: var(--ink-2); max-width: var(--measure); }
.document-content p strong { color: var(--navy); }
.document-state { display: inline-block; margin-bottom: 1.2rem; padding: .3rem .7rem; border: 1px solid var(--navy); font-size: .82rem; font-stretch: 110%; }
.document-content .text-link { display: inline-block; margin-top: 1rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "recepcion sala consultorio" "caja archivo consultorio" "direccion direccion direccion"; grid-template-rows: repeat(2, minmax(150px, 1fr)) minmax(110px, auto); }
}
@media (max-width: 1080px) {
  .plan { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before { top: 0; bottom: 0; left: 6px; right: auto; border-top: 0; border-left: 1.5px dashed var(--navy); }
  .route li { padding: 0 0 2rem 2.4rem; }
  .route li::before { top: .25rem; }
  .route time { position: static; display: block; margin-bottom: .2rem; }
}
@media (max-width: 1020px) {
  .menu-button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 3px; background: var(--sheet); color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; }
  .menu-button svg { width: 18px; height: 18px; }
  #navegacion { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem; background: var(--sheet); border-bottom: 2px solid var(--navy); }
  #navegacion.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: .2rem; }
  .nav-links a { padding: .55rem 0; font-size: 1.05rem; }
}
@media (max-width: 860px) {
  .keys-grid, .notes-grid, .faq-grid, .beta-grid, .registration-grid { grid-template-columns: 1fr; }
  .beta-action { grid-column: auto; }
  .scale-grid { grid-template-columns: 1fr; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb-cell:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .tb-cell:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-template-areas: "recepcion sala" "consultorio consultorio" "caja archivo" "direccion direccion"; }
  .room-tall { min-height: 170px; }
  .room-tall .furniture { width: 110px; }
  .room { min-height: 132px; padding: .9rem; }
  .room-name { font-size: 1.1rem; }
  .room .furniture { width: 86px; }
  .ficha { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .day, .keys-section, .scale, .notes, .beta, .faq { padding: 4.25rem 0; }
  .plan-section { padding-top: 1.25rem; }
  .titleblock { grid-template-columns: 1fr; }
  .tb-cell { border-left: 0; border-top: 1px solid var(--line); }
  .tb-cell:first-child { border-top: 0; }
  .tb-foot { flex-direction: column; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 2rem); }
  .hall { padding: 1.5rem 1.25rem; }
  .hall h1 { font-size: 2.35rem; }
  .keys { padding: .8rem; }
  .keys legend { width: 100%; margin-bottom: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .plan, .js .ficha:not([hidden]) { animation: none; }
  .room-fill, .button, .room { transition-duration: 1ms; }
}

/* ======================================================================
   Cianotipo — primer impacto de la portada (lanzamiento público).
   El plano se entrega como en arquitectura: líneas blancas sobre azul marino.
   ====================================================================== */
.button.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.button.ghost:hover { background: rgba(22,50,79,.06); }

.home .preview-note { border-bottom: 1px solid rgba(255,255,255,.12); }
.home .header { background: color-mix(in srgb, var(--navy) 94%, transparent); border-bottom-color: rgba(255,255,255,.12); }
.home .nav-links a { color: rgba(255,255,255,.78); }
.home .nav-links a:hover { color: #fff; }
.home .header .button.small { background: #fff; color: var(--navy); box-shadow: none; }
.home .header .button.small:hover { background: #E3EEF2; }
.home .menu-button { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }

.cyan {
  --c-bg: #16324F;
  --c-room: #183757;
  --c-ink: #fff;
  --c-ink-2: rgba(255,255,255,.74);
  --c-line: rgba(255,255,255,.42);
  --c-active: #127676;
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  color: var(--c-ink);
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 120px 120px,
    var(--c-bg);
}
.cyan .plan-dimension { color: var(--c-ink-2); }
.cyan .scalebar rect { fill: #fff; stroke: #fff; }
.cyan .scalebar rect.hollow { fill: var(--c-bg); }
.cyan .cota::before, .cyan .cota::after { border-color: var(--c-line); }
.cyan .cota span { background: var(--c-bg); color: var(--c-ink-2); }

.cyan .plan {
  --hatch: repeating-linear-gradient(45deg, rgba(255,255,255,.62) 0 1.2px, transparent 1.2px 6px);
  background: var(--hatch), var(--c-bg);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.55);
}
.cyan .hall { background: var(--c-room); padding: clamp(2rem, 4vw, 3.75rem); }
.cyan .hall h1 { color: #fff; font-size: clamp(2.7rem, 4.6vw, 4.6rem); line-height: .98; }
.cyan .hall-lede { color: var(--c-ink-2); font-size: 1.12rem; }
.cyan .hall-note { color: var(--c-ink-2); }
.cyan .button { background: #fff; color: var(--navy); box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.cyan .button:hover { background: #E3EEF2; }
.cyan .button.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.cyan .button.ghost:hover { background: rgba(255,255,255,.08); }
.cyan :focus-visible { outline-color: #fff; }

.cyan .keys { background: var(--c-room); }
.cyan .keys legend { color: var(--c-ink-2); }
.cyan .keys span { border-color: var(--c-line); color: #fff; }
.cyan .keys input:checked + span { background: #fff; border-color: #fff; color: var(--navy); }
.cyan .keys input:focus-visible + span { outline-color: #fff; }

.cyan .room { background: var(--c-room); color: #fff; min-height: 168px; }
.cyan .room-module { color: var(--c-ink-2); }
.cyan .room .furniture { stroke: var(--c-line); }
.cyan .room-fill { background: var(--c-active); }
.cyan .room[aria-pressed="true"] .furniture { stroke: rgba(255,255,255,.7); }
.cyan .door { stroke: #fff; background: linear-gradient(var(--c-room), var(--c-room)) top / 100% var(--wall) no-repeat; }
.cyan .door .swing { stroke: var(--c-line); }
.cyan .room[aria-pressed="true"] .door { background: linear-gradient(var(--c-active), var(--c-active)) top / 100% var(--wall) no-repeat; }
@media (hover: hover) and (pointer: fine) {
  .cyan .room:not([aria-pressed="true"]):not(.is-locked):hover .furniture { stroke: #fff; }
  .cyan .room:not([aria-pressed="true"]):not(.is-locked):hover .room-name { color: #fff; }
  .cyan .room:not([aria-pressed="true"]):not(.is-locked):hover { background: #1D4166; }
}
.cyan .room.is-locked { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.10) 0 1px, transparent 1px 7px), var(--c-room); }
.cyan .room.is-locked .room-name, .cyan .room.is-locked .room-module, .cyan .room-lock { color: var(--c-ink-2); }

/* La ficha es una hoja impresa apoyada sobre el cianotipo. */
.cyan .ficha-wrap { color: var(--navy); }

/* ---------- Vitrina: la pantalla real como lámina ---------- */
.showcase { padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); }
.showcase-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.showcase-head h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 720; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1.02; }
.showcase-head p { color: var(--ink-2); max-width: 46ch; font-size: 1.09rem; }
.lamina { position: relative; margin: 0; padding: clamp(10px, 1.6vw, 18px); background: var(--navy); box-shadow: 0 50px 90px -50px rgba(22,50,79,.7); }
.lamina img { width: 100%; height: auto; border: 1px solid rgba(255,255,255,.2); background: var(--sheet); }
.lamina figcaption { position: absolute; top: clamp(10px, 1.6vw, 18px); right: clamp(22px, 3vw, 36px); transform: translateY(-50%); padding: .15rem .6rem; background: var(--navy); color: #fff; font-size: .76rem; font-stretch: 112%; }
.callouts { list-style: none; counter-reset: llamada; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; padding: 0; }
.callouts li { counter-increment: llamada; position: relative; padding-top: 1.1rem; border-top: 2px solid var(--navy); }
.callouts li::before { content: counter(llamada, decimal-leading-zero); display: block; margin-bottom: .5rem; font-size: .8rem; font-weight: 680; font-stretch: 116%; color: var(--teal-ink); }
.callouts h3 { font-size: 1.12rem; font-weight: 660; margin-bottom: .35rem; }
.callouts p { color: var(--ink-2); font-size: .95rem; }

@media (max-width: 1020px) {
  .home #navegacion { background: var(--navy); }
}
@media (max-width: 860px) {
  .showcase-head { grid-template-columns: 1fr; }
  .callouts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cyan .room { min-height: 132px; }
}

@media (min-width: 1081px) {
  .cyan .plan { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.3fr); }
  .cyan .hall { padding: clamp(2rem, 3.2vw, 3rem); }
  .cyan .hall h1 { font-size: clamp(2.6rem, 4vw, 3.9rem); }
}

/* Guía de prueba y retroalimentación (Beta, solo profesionales invitadas). */
.guide-lead { font-size: 1.1rem; }
.guide-actions, .feedback-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 .5rem; }
.button.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.button.ghost:hover { background: rgba(22,50,79,.06); }
.guide-list, .guide-steps { margin: 0 0 1rem; padding-left: 1.3rem; color: var(--ink-2); max-width: var(--measure); }
.guide-list li { margin-bottom: .55rem; }
.guide-list strong, .guide-steps strong { color: var(--navy); }
.guide-steps > li { margin-bottom: 1.1rem; padding-left: .25rem; }
.guide-steps > li::marker { font-weight: 700; color: var(--teal-ink); }
.guide-steps p { margin: .3rem 0 0; }
.guide-time { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border: 1px solid var(--line); font-size: .78rem; font-stretch: 108%; color: var(--ink-2); vertical-align: .1em; }
.guide-note { padding: .7rem .9rem; border-left: 3px solid var(--teal-ink); background: var(--sheet); }
.guide-table { width: 100%; max-width: var(--measure); border-collapse: collapse; margin: .5rem 0 1rem; font-size: .95rem; }
.guide-table th, .guide-table td { padding: .55rem .7rem; border: 1px solid var(--line-soft); text-align: left; vertical-align: top; color: var(--ink-2); }
.guide-table th { background: var(--navy); color: #fff; font-weight: 620; }
.guide-table td:first-child { font-weight: 600; color: var(--navy); width: 34%; }
.feedback form { display: grid; gap: 1.1rem; max-width: var(--measure); }
.feedback fieldset { margin: 0; padding: 1rem 1.1rem 1.15rem; border: 1px solid var(--line-soft); background: var(--sheet); display: grid; gap: .7rem; min-width: 0; }
.feedback legend { padding: 0 .4rem; font-weight: 680; font-stretch: 112%; color: var(--navy); }
.feedback .step-meta { margin: -.2rem 0 0; font-size: .95rem; }
.feedback label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; color: var(--navy); }
.feedback input[type=text], .feedback input[type=date], .feedback textarea, .feedback select { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--navy); font: inherit; font-weight: 400; }
.feedback textarea { min-height: 4.5rem; resize: vertical; }
.feedback .hint { color: var(--ink-2); font-weight: 400; }
.feedback .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .7rem; }
.feedback .choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.feedback .choices label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 560; font-size: .9rem; cursor: pointer; }
.feedback .choices input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.feedback .choices label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.feedback .choices label:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.feedback-send { padding: 1.1rem; border: 2px solid var(--navy); background: var(--sheet); }
.feedback-send h2 { margin-top: 0; }
.feedback-status { min-height: 1.3em; font-weight: 600; color: var(--teal-ink); }
.feedback-status.missing { color: #A33A2E; }
.feedback pre { margin: 0; padding: .9rem; max-height: 18rem; overflow: auto; border: 1px dashed var(--line); background: #EAF2F5; font: .85rem/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@media print {
  .header, .footer, .preview-note, .skip, .no-print { display: none !important; }
  body { background: #fff; }
  .section.document { padding: 0; }
  .guide-steps > li, .guide-table tr { break-inside: avoid; }
  a { color: inherit; }
}
