@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fuentes/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fuentes/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fuentes/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fuentes/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #193d5c;
  --navy-profundo: #152137;
  --teal: #7dc1bb;
  --teal-letra: #477978;
  --mint: #d6e8d9;
  --crema: #f2e7c7;
  --agua: #d9eeec;
  --gris: #f0f0f0;
  --gris-suave: #f7f7f7;
  --filete: #e5e5e5;
  --borde: #bac0c5;
  --tinta: #3f4650;
  --tinta-suave: #666666;
  --alerta: #b3261e;
  --alerta-tenue: #fbe9e6;

  --vip: #5e3b96;
  --alto: #8e6fc7;
  --base: #477978;
  --serie-1: #193d5c;
  --serie-2: #7dc1bb;
  --serie-3: #477978;
  --serie-4: #e8d9ae;
  --serie-5: #8e6fc7;
  --serie-6: #bac0c5;
  --serie-7: #5e3b96;
  --serie-8: #d6e8d9;
  --bueno: #2c7d52;
  --malo: #b3261e;

  --titulos: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --cuerpo: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  --ancho: 1280px;
  --margen: 32px;
  --rapido: 0.18s ease;
  --suave: 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--cuerpo);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tinta);
  background: #f4f6f8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--titulos);
  font-weight: 500;
  color: var(--navy);
}

ul,
ol {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.titulo {
  position: relative;
  padding-bottom: 14px;
  font-size: 30px;
  line-height: 1.2;
}
.titulo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--navy);
}

.eyebrow {
  display: block;
  position: relative;
  padding-bottom: 12px;
  font-family: var(--titulos);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-letra);
}
.eyebrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--teal);
}

.titulo-seccion {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--filete);
  font-family: var(--titulos);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.titulo-seccion span {
  font-family: var(--cuerpo);
  letter-spacing: 0;
  text-transform: none;
  color: var(--tinta-suave);
}

.sello {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 2px;
  font-family: var(--titulos);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--gris);
  color: var(--navy);
}
.sello[data-tier='VIP'] { background: var(--vip); color: #ffffff; }
.sello[data-tier='ALTO'] { background: var(--alto); color: #ffffff; }
.sello[data-tier='BASE'] { background: var(--mint); color: #1f4d33; }
.sello[data-estado='preregistro'] { background: #e8e4f4; color: #4a3775; }
.sello[data-estado='abierta'] { background: var(--crema); color: #5a4a14; }
.sello[data-estado='en_atencion'] { background: var(--agua); color: #1f4f4d; }
.sello[data-estado='hospitalizado'] { background: #f6cdb6; color: #7a2c12; }
.sello[data-estado='alta'] { background: var(--mint); color: #1f4d33; }
.sello[data-estado='programada'] { background: var(--agua); color: #1f4f4d; }
.sello[data-estado='en_curso'] { background: var(--crema); color: #5a4a14; }
.sello[data-estado='cerrada'] { background: var(--gris); color: var(--tinta-suave); }
.sello[data-tono='bueno'] { background: var(--mint); color: #1f4d33; }
.sello[data-tono='malo'] { background: var(--alerta-tenue); color: #7a1a14; }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--navy);
  border-radius: 0;
  background: var(--navy);
  color: #ffffff;
  font-weight: 500;
}
.boton {
  transition: background-color var(--rapido), border-color var(--rapido), color var(--rapido), transform var(--rapido), box-shadow var(--rapido);
}
.boton:hover {
  background: var(--navy-profundo);
  border-color: var(--navy-profundo);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(21, 33, 55, 0.14);
}
.boton:active {
  transform: translateY(0);
  box-shadow: none;
}
.boton[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.boton--claro {
  background: #ffffff;
  color: var(--navy);
}
.boton--claro:hover {
  background: var(--gris);
  border-color: var(--navy);
}

.aviso {
  padding: 14px 16px;
  border-left: 0;
  background: var(--alerta-tenue);
  color: #7a1a14;
}
.aviso strong {
  display: block;
  font-family: var(--titulos);
  font-weight: 600;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}
.entrada,
select.entrada,
textarea.entrada {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--borde);
  border-radius: 0;
  background: #ffffff;
}
.entrada:focus-visible {
  outline: 0;
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
textarea.entrada {
  min-height: 90px;
  resize: vertical;
}
.campo {
  display: block;
}
.campo > span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--titulos);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.boton--chico {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
}
.boton--peligro {
  border-color: var(--malo);
  background: #ffffff;
  color: var(--malo);
}
.boton--peligro:hover {
  background: var(--alerta-tenue);
  border-color: var(--malo);
}
.exito {
  padding: 14px 16px;
  background: var(--mint);
  color: #1f4d33;
}
.exito strong {
  display: block;
  font-family: var(--titulos);
  font-weight: 600;
}
.silencio {
  color: var(--tinta-suave);
}

@keyframes entra {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fundir {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes crecer-y {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes crecer-x {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes trazar {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes abrir-dialogo {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lienzo.entra > * {
  animation: entra 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.lienzo.entra > * + * {
  animation-delay: 0.06s;
}
.lienzo.entra > * + * + * {
  animation-delay: 0.12s;
}
.cargando {
  animation: fundir 0.4s ease both;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

.sello-rango--boton {
  border: 0;
  cursor: pointer;
}
.sello-rango--boton:hover {
  filter: brightness(1.08);
}

.explicacion {
  width: min(520px, calc(100vw - 32px));
  padding: 32px 36px;
  border: 1px solid var(--filete);
  border-radius: 0;
  background: #ffffff;
  color: var(--tinta);
}
.explicacion::backdrop {
  background: rgba(21, 33, 55, 0.55);
}
.explicacion-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--filete);
}
.explicacion h2 {
  font-size: 22px;
}
.explicacion dl {
  display: grid;
  gap: 4px 0;
  margin-top: 18px;
}
.explicacion dt {
  margin-top: 12px;
  font-family: var(--titulos);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.explicacion dd {
  line-height: 1.55;
}
.explicacion .boton {
  margin-top: 24px;
}
