:root {
  --navy: #083958;
  --teal: #008e98;
  --pale: #eaf7f6;
  --ink: #193b4a;
  --line: #d6e4e7;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    sans-serif;
  background: #fcfefe;
}
h1,
h2,
h3,
p {
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -4px;
  color: var(--navy);
}
h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -1px;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
.btn {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  padding: 14px 22px;
  font-weight: 650;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.btn:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #e3aa2a;
  outline-offset: 3px;
}
.secondary {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
}
.wrap {
  max-width: 1160px;
  margin: auto;
  padding: 0 26px;
}
header {
  background: #fffffff2;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  gap: 20px;
}
nav img {
  width: 125px;
  height: auto;
}
nav span {
  font-size: 13px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 65px 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 750;
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 22px;
}
.lead {
  font-size: 23px;
  line-height: 1.4;
  max-width: 600px;
}
.muted,
small {
  color: #526e7a;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}
.art {
  background: var(--pale);
  border-radius: 32px;
  padding: 36px;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.art:before {
  content: '2027';
  position: absolute;
  right: -15px;
  top: -50px;
  font-size: 150px;
  font-weight: 900;
  color: #d8eeed;
  letter-spacing: -12px;
}
.art > * {
  z-index: 1;
}
.art .big {
  font-size: 70px;
  line-height: 1;
  font-weight: 800;
  color: var(--teal);
}
.ticket {
  background: white;
  padding: 23px;
  border-radius: 16px;
  margin-top: 25px;
  box-shadow: 0 12px 30px #103c4810;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 14px;
  font-size: 13px;
  background: white;
}
section {
  padding: 65px 0;
  border-top: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.num {
  font-size: 14px;
  color: var(--teal);
  border-top: 2px solid var(--teal);
  padding-top: 15px;
  margin-bottom: 12px;
}
.tabs {
  display: flex;
  gap: 10px;
  margin: 25px 0;
}
.tabs button[aria-pressed='true'] {
  background: var(--navy);
  color: white;
}
.studies {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}
.study {
  padding: 23px 15px;
  background: var(--pale);
  border-radius: 12px;
  font-weight: 650;
}
.benefit {
  background: var(--navy);
  color: white;
  border-radius: 22px;
  padding: 35px;
  display: flex;
  gap: 30px;
  align-items: center;
}
.benefit strong {
  font-size: 72px;
  line-height: 1;
}
.formlayout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 60px;
}
.panel {
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 20px;
  background: white;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #b9cdd2;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  margin-top: 6px;
}
input[type='checkbox'] {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--teal);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.child {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 450;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.choices label {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
}
.notice {
  font-size: 13px;
  background: var(--pale);
  padding: 14px;
  border-radius: 9px;
  margin: 15px 0;
}
.error {
  color: #ae2947;
  font-size: 14px;
}
details {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  font-weight: 650;
  cursor: pointer;
}
details p {
  margin: 14px 0 0;
  max-width: 800px;
}
footer {
  padding: 40px 0 100px;
  background: var(--navy);
  color: white;
}
.footergrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.sticky {
  display: none;
}
dialog {
  border: 0;
  border-radius: 22px;
  padding: 0;
  width: min(650px, 95vw);
  max-height: 90dvh;
  color: var(--ink);
}
dialog::backdrop {
  background: #052c45b8;
}
.chathead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: var(--navy);
  color: white;
}
.chathead button {
  padding: 6px 12px;
  background: #ffffff20;
}
.chatbody {
  padding: 22px;
  max-height: 70dvh;
  overflow: auto;
  background: #f2f7f8;
}
.bubble {
  background: white;
  padding: 18px;
  border-radius: 4px 16px 16px;
  margin: 12px 0;
  box-shadow: 0 2px 5px #1231;
}
.userbubble {
  background: #d9efed;
  margin-left: 40px;
}
.botoptions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.botoptions button {
  font-size: 14px;
  padding: 11px 15px;
}
.summaryrow {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summaryrow strong {
  display: block;
}
.status {
  font-size: 12px;
  color: var(--teal);
  font-weight: 700;
}
.progress {
  height: 4px;
  background: var(--line);
}
.progress i {
  display: block;
  height: 100%;
  background: #36c0bc;
  transition: width 0.3s;
}
.hidden {
  display: none !important;
}
@media (max-width: 760px) {
  .hero,
  .formlayout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero {
    padding: 35px 0;
  }
  h1 {
    letter-spacing: -2px;
  }
  .hero .art {
    min-height: 240px;
    padding: 25px;
  }
  .art .big {
    font-size: 50px;
  }
  .lead {
    font-size: 20px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .studies {
    grid-template-columns: 1fr 1fr;
  }
  .benefit {
    align-items: start;
    gap: 20px;
    padding: 24px;
  }
  .benefit strong {
    font-size: 52px;
  }
  section {
    padding: 40px 0;
  }
  .panel {
    padding: 20px;
  }
  .wrap {
    padding: 0 20px;
  }
  nav span {
    display: none;
  }
  /* En el celular "Reservar turno" ya está fijo abajo: el encabezado deja lugar a "Consultar mi turno". */
  nav .btn {
    display: none;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .footergrid {
    grid-template-columns: 1fr;
  }
  .sticky {
    display: block;
    position: fixed;
    bottom: 12px;
    left: 20px;
    right: 20px;
    z-index: 11;
    text-align: center;
    box-shadow: 0 4px 20px #08395840;
  }
  .choices {
    grid-template-columns: 1fr;
  }
  dialog {
    max-height: 95dvh;
  }
  .chatbody {
    max-height: 78dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Refinamiento visual: tarjetas e iconografía de apoyo. */
body {
  background: #fbfdfd;
}
.hero {
  gap: 48px;
}
.art {
  background: linear-gradient(145deg, #245e95, #10475d);
  color: white;
  box-shadow: 0 22px 55px #0c4b6420;
  min-height: 450px;
  padding: 34px;
}
.art:before {
  color: #ffffff09;
  top: -25px;
  font-size: 160px;
}
.art h2 {
  font-size: 38px;
  line-height: 1.16;
  max-width: 330px;
}
.art .eyebrow {
  color: #7be4d7;
}
.art > p {
  color: #d6e9ee;
}
.art .ticket {
  background: #ffffff15;
  border: 1px solid #ffffff30;
  box-shadow: none;
  color: white;
}
.art .big {
  color: #8fe9df;
  font-size: 54px;
}
.heroicon {
  position: absolute;
  right: 28px;
  top: 27px;
  font-size: 43px;
  transform: rotate(8deg);
}
.artfeatures {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.artfeature {
  background: #ffffff14;
  border: 1px solid #ffffff12;
  border-radius: 14px;
  padding: 14px;
  flex: 1;
  font-size: 13px;
}
.artfeature span {
  display: block;
  font-size: 25px;
  margin-bottom: 5px;
}
.iconbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #e7f6f6;
  font-size: 26px;
  flex-shrink: 0;
  margin-bottom: 18px;
}
.study .iconbox {
  margin-bottom: 14px;
}
.study:nth-child(1) .iconbox {
  background: #fff8e7;
}
.study:nth-child(2) .iconbox {
  background: #f5edfa;
}
.study:nth-child(3) .iconbox {
  background: #fff0f3;
}
.study:nth-child(4) .iconbox {
  background: #eaf7ff;
}
.study:nth-child(5) .iconbox {
  background: #e9faf1;
}
.study {
  background: white;
  border: 1px solid #e4edef;
  border-radius: 19px;
  box-shadow: 0 3px 0 #143a4803;
  padding: 24px 20px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.study:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px #143a4809;
}
.study strong {
  display: block;
  font-size: 16px;
}
.steps > div {
  border: 1px solid #e4edef;
  background: white;
  border-radius: 19px;
  padding: 23px;
  box-shadow: 0 3px 0 #143a4803;
}
.steps .num {
  border: 0;
  padding: 0;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 750;
}
.steps .iconbox {
  float: right;
  width: 42px;
  height: 42px;
  font-size: 22px;
  margin: 0 0 14px 10px;
}
.valuegrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 46px;
}
.valuecard {
  padding: 26px;
  border: 1px solid #e4edef;
  border-radius: 22px;
  background: white;
  box-shadow: 0 3px 0 #143a4803;
}
.valuecard h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.valuecard p {
  font-size: 15px;
  color: #526e7a;
  margin: 0;
}
.benefit {
  background: linear-gradient(115deg, #083958, #116477);
  box-shadow: 0 15px 40px #08395812;
}
.benefit strong {
  background: #ffffff12;
  border: 1px solid #ffffff20;
  border-radius: 18px;
  padding: 20px;
  font-size: 60px;
}
.panel {
  border-color: #e0ebee;
  box-shadow: 0 16px 50px #163e4b08;
}
.panel h3 {
  color: var(--navy);
}
.panel > h3:before {
  content: '📋';
  display: inline-flex;
  padding: 7px;
  background: var(--pale);
  border-radius: 10px;
  margin-right: 10px;
  font-size: 20px;
}
input,
select {
  background: #fcfefe;
  border-color: #cedde2;
}
.chip {
  box-shadow: 0 2px 5px #1231;
}
.footergrid > div {
  border: 1px solid #ffffff25;
  background: #ffffff08;
  padding: 25px;
  border-radius: 20px;
}
.footergrid h3 {
  display: flex;
  align-items: center;
  gap: 13px;
}
.footergrid .iconbox {
  margin: 0;
  background: #ffffff12;
  width: 48px;
  height: 48px;
}
.footergrid p {
  color: #d8e9ee;
}
.footergrid a {
  color: #a8eee6;
  font-weight: 650;
}
.chathead strong:before {
  content: '✦';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #ffffff18;
  border-radius: 10px;
  margin-right: 9px;
  color: #8fe9df;
}
.bubble {
  border: 1px solid #e2ecef;
  box-shadow: 0 4px 12px #183f4a05;
}
.tabs button {
  border-radius: 30px;
  padding: 11px 23px;
}
.tabs button[aria-pressed='true'] {
  box-shadow: 0 5px 15px #08395820;
}
@media (max-width: 760px) {
  .art h2 {
    font-size: 30px;
    max-width: 260px;
  }
  .hero .art {
    min-height: 360px;
    padding: 28px;
  }
  .heroicon {
    font-size: 34px;
    right: 20px;
    top: 20px;
  }
  .valuegrid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 26px;
  }
  .valuecard {
    padding: 21px;
  }
  .valuecard .iconbox {
    float: left;
    margin: 0 18px 20px 0;
  }
  .valuecard p {
    overflow: hidden;
  }
  .valuecard h3 {
    font-size: 18px;
  }
  .studies {
    gap: 10px;
  }
  .study {
    padding: 18px 14px;
  }
  .study strong {
    font-size: 14px;
  }
  .benefit strong {
    font-size: 38px;
    padding: 15px;
  }
  .benefit h2 {
    font-size: 25px;
  }
  .steps {
    gap: 12px;
  }
  .steps > div {
    padding: 17px;
    font-size: 14px;
  }
  .steps .iconbox {
    float: none;
    display: flex;
    margin-bottom: 14px;
  }
  .iconbox {
    width: 47px;
    height: 47px;
    font-size: 24px;
  }
}
h1 {
  font-size: clamp(40px, 5.4vw, 67px);
  line-height: 1.06;
  letter-spacing: -2px;
}
.valuegrid {
  grid-template-columns: 1fr;
}
.valuegrid .valuecard {
  display: block;
}
.valuegrid .iconbox {
  float: left;
  margin: 0 20px 0 0;
}
@media (max-width: 760px) {
  h1 {
    font-size: 42px;
    letter-spacing: -1.5px;
  }
}
.art .ticket .big {
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -1px;
}

/* ===== Fase 6: clases que reemplazan estilos en línea (CSP sin 'unsafe-inline') y componentes nuevos ===== */
.resaltado {
  color: var(--teal);
}
.lead.separado {
  margin-top: 25px;
}
.sin-margen {
  margin: 0;
}
.ticket .sin-margen {
  margin-top: 10px;
}
.pie-legal {
  margin-top: 35px;
  font-size: 12px;
}
.ancho {
  width: 100%;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}
legend {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}
.sede-fija {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  background: var(--pale);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
}
.sede-fija strong {
  color: var(--navy);
}
.sede-fija a {
  color: var(--teal);
  font-weight: 650;
}
.tabs a {
  border-radius: 30px;
  padding: 11px 23px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 650;
  color: var(--navy);
  background: white;
}
.tabs a[aria-current='page'] {
  background: var(--navy);
  color: white;
  box-shadow: 0 5px 15px #08395820;
}
.nino {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}
.nino-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.nino-cabecera h3 {
  margin: 0;
}
.quitar {
  padding: 4px 10px;
  font-size: 14px;
}
.fila-dni {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.fila-dni label {
  margin: 0;
}
.fila-dni button {
  padding: 12px 18px;
}
.estado-busqueda {
  font-size: 14px;
  margin: 10px 0 0;
  min-height: 1em;
}
.tarjeta-paciente {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: var(--pale);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
}
.convenio {
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
}
.convenio.socio {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.datos-nuevos {
  margin-top: 14px;
}
.opciones-sexo {
  display: flex;
  gap: 10px;
}
.opciones-sexo label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0;
}
.opciones-sexo input {
  width: auto;
  margin: 0;
}
.opciones-horario {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.horario {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 10px 16px;
  text-align: left;
  line-height: 1.3;
}
.horario small {
  display: block;
  font-weight: 500;
}
.horario[aria-pressed='true'] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.horario[aria-pressed='true'] small {
  color: #d6e9ee;
}
.modalidades {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.modalidades label {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin: 0;
  font-weight: 600;
}
.modalidades input,
.practica input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--teal);
  flex-shrink: 0;
}
.lista-practicas {
  display: grid;
  gap: 6px;
}
.practica {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  margin: 0;
  font-weight: 500;
}
.practica .nombre-practica {
  flex: 1;
}
.practica .monto {
  font-size: 14px;
  color: #526e7a;
  white-space: nowrap;
}
.practica.incluida {
  background: #f6fbfb;
}
.practica.sin-cobertura {
  opacity: 0.6;
}
.practica.sin-cobertura .monto {
  color: #ae2947;
  font-weight: 700;
}
.precio-nino {
  font-weight: 700;
  color: var(--navy);
  margin: 12px 0 0;
}
.total-familiar {
  margin: 22px 0 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.total-familiar:empty {
  display: none;
}
.aviso-nino,
.aviso-paquete {
  font-size: 14px;
  background: #fff4e5;
  border-radius: 9px;
  padding: 12px;
  margin: 12px 0 0;
}
.estudio-adicional {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  margin-top: 4px;
}
.precio-paquete {
  font-weight: 650;
  color: var(--navy);
}
.cargando {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: girar 0.9s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}
.en-proceso {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
}
.reserva {
  background: white;
  border: 2px solid var(--teal);
  border-radius: 16px;
  padding: 18px;
  margin: 12px 0;
}
.reserva .numero {
  font-size: 42px;
  line-height: 1;
  font-weight: 850;
  color: var(--navy);
  letter-spacing: 1px;
  margin: 6px 0 10px;
}
.reserva ul {
  margin: 6px 0 10px;
  padding-left: 20px;
}
.etiqueta {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 750;
  color: var(--teal);
  text-transform: uppercase;
}
.solo-impresion {
  display: none;
}
#verificacion {
  margin: 14px 0 0;
}
@media (max-width: 760px) {
  .modalidades {
    grid-template-columns: 1fr;
  }
  .fila-dni {
    grid-template-columns: 1fr;
  }
  .reserva .numero {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cargando {
    animation: none;
    border-top-color: var(--line);
  }
}
/* ---------- Comprobante imprimible ---------- */
/* Margen 0: el navegador no agrega su encabezado (fecha, título) ni el pie (URL). */
@page {
  size: A4;
  margin: 0;
}
@media print {
  body > *:not(#impresion) {
    display: none !important;
  }
  body {
    background: #fff;
  }
  #impresion {
    display: block !important;
    padding: 14mm 16mm;
    color: var(--ink);
    font-size: 11pt;
    line-height: 1.45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
.cp-encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 4px solid var(--teal);
  margin-bottom: 18px;
}
.cp-logo {
  width: 52mm;
  height: auto;
}
.cp-titulo {
  text-align: right;
}
.cp-titulo span {
  color: var(--teal);
  font-weight: 700;
  font-size: 9pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cp-titulo h1 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 22pt;
  line-height: 1.1;
}
.cp-titulo p {
  margin: 2px 0 0;
  color: #5b7480;
}
.cp-reserva {
  position: relative;
  display: grid;
  grid-template-columns: 38mm 1fr;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  break-inside: avoid;
}
.cp-numero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 8px;
  background: linear-gradient(160deg, var(--navy), var(--teal));
  color: #fff;
  text-align: center;
}
.cp-numero span {
  font-size: 8pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}
.cp-numero strong {
  font-size: 34pt;
  line-height: 1;
}
.cp-cuerpo {
  padding: 14px 18px 14px 20px;
}
.cp-paciente {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  padding-right: 32mm;
}
.cp-paciente strong {
  color: var(--navy);
  font-size: 14pt;
}
.cp-convenio {
  border: 1px solid var(--teal);
  border-radius: 30px;
  padding: 1px 10px;
  color: var(--teal);
  font-size: 9pt;
  font-weight: 700;
}
.cp-convenio.socio {
  background: var(--teal);
  color: #fff;
}
.cp-datos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  margin-bottom: 10px;
  padding-right: 32mm;
}
.cp-dato span,
.cp-subtitulo {
  display: block;
  color: #5b7480;
  font-size: 8pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cp-dato strong {
  color: var(--ink);
}
.cp-estudios {
  columns: 2;
  margin: 4px 0 12px;
  padding: 0;
  list-style: none;
}
.cp-estudios li {
  position: relative;
  padding-left: 18px;
  break-inside: avoid;
}
.cp-estudios li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.cp-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--pale);
}
.cp-total span {
  font-weight: 600;
}
.cp-total strong {
  color: var(--navy);
  font-size: 14pt;
}
.cp-total-familiar {
  margin-bottom: 14px;
  border: 1.5px solid var(--teal);
}
/* Sello tipo timbre (SVG): doble anillo, texto curvo y una leve rotación. */
.cp-sello {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 31mm;
  height: 31mm;
  transform: rotate(-12deg);
}
.cp-sello-anillo {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1;
}
.cp-sello-anillo.grueso {
  stroke-width: 3;
}
.cp-sello-texto {
  fill: var(--teal);
  font-size: 8.2px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.cp-sello-estrella {
  fill: var(--teal);
  font-size: 8px;
  text-anchor: middle;
}
.cp-indicaciones {
  padding: 10px 14px;
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: #f6fafb;
  break-inside: avoid;
}
.cp-indicaciones strong {
  color: var(--navy);
}
.cp-indicaciones ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.cp-pie {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: #5b7480;
  font-size: 8.5pt;
}
[hidden] {
  display: none !important;
}

.ayuda-telefono {
  display: block;
  margin: -6px 0 12px;
}
.ayuda-telefono.ok {
  color: var(--teal);
  font-weight: 600;
}

/* ---------- Consultá tu turno ---------- */
nav .enlace-consulta {
  margin-left: auto;
  color: var(--navy);
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
}
.consulta-resultado {
  margin-top: 16px;
}
.consulta-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.estado-reserva {
  border-radius: 30px;
  padding: 3px 12px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.estado-reserva.cancelada {
  background: #8a3b3b;
}
