/* cita.css — Lo propio de la cita online. El maestro horizon-cem va antes y no se toca aquí. */

/* DM Sans servida por esta herramienta (copiado de rehabilitacion/static/css/panel.css). */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-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;
}


/* Cabecera pública: el nombre completo se ve también en el móvil. */
.cabecera-publica { background: #fff; box-shadow: 0 1px 0 var(--border); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; }
.cabecera-publica img { height: 34px; width: auto; }
.cabecera-publica__nombre { font-weight: 600; color: var(--navy); font-size: 15px; line-height: 1.2; }

.paso { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.paso__titulo { font-size: 20px; font-weight: 600; color: var(--navy); margin: 0; }
.atras { background: none; border: none; color: var(--accent); font: inherit; font-size: 15px;
  padding: 8px 0; min-height: 44px; text-align: left; cursor: pointer; }

/* Tamaño de dedo y sin zoom en iPhone. */
.paso .form-input { font-size: 16px; min-height: 44px; }
.paso .form-label { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--navy); font-weight: 600; }
.paso .btn { min-height: 44px; font-size: 16px; justify-content: center; }
.botones { display: flex; flex-direction: column; gap: 10px; }
.botones .btn { width: 100%; }
.eleccion .btn { width: 100%; min-height: 64px; font-size: 17px; }

/* Fecha de nacimiento en una fila que no se pliega. */
.fecha3 { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; }
.fecha3 .form-input { text-align: center; }

/* Tarjeta pulsable (P2, P5). */
.tarjeta-opcion { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px; font: inherit; font-size: 16px; color: var(--navy);
  min-height: 56px; cursor: pointer; }
.tarjeta-opcion:active, .tarjeta-opcion:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent-light); }
.tarjeta-opcion small { display: block; color: var(--text-muted); font-size: 14px; margin-top: 2px; }

/* Tarjeta de cita (P3). */
.cita { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px; }
.cita__cuando { font-size: 17px; font-weight: 600; color: var(--navy); }
.cita__quien { font-size: 15px; }
.cita__esp { font-size: 14px; color: var(--text-muted); }
.cita__botones { display: flex; gap: 10px; margin-top: 10px; }
.cita__botones .btn { flex: 1; }

/* Casilla y opciones de 24 px con la etiqueta pulsable. */
.opcion { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.opcion input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--accent); }

/* Calendario y horas (P7). */
.mes { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--navy); }
.mes button { min-width: 44px; min-height: 44px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 18px; }
.mes button:disabled { opacity: .35; }
.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dias .sem { font-size: 12px; color: var(--text-muted); padding-bottom: 4px; }
.dia { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 15px; color: #b6bcc6; border: none; background: none; }
.dia--libre { color: var(--navy); font-weight: 700; background: var(--accent-light); cursor: pointer; }
.dia--elegido { background: var(--accent); color: #fff; font-weight: 700; }
.horas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hora { min-height: 44px; border: 1px solid var(--accent); color: var(--accent); background: #fff;
  border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; }
.hora--elegida { background: var(--accent); color: #fff; }

/* Resumen (P8, P9). */
.resumen { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 16px; }
.resumen div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.resumen div:last-child { border-bottom: none; }
.resumen dt { color: var(--text-muted); }
.resumen dd { margin: 0; text-align: right; font-weight: 600; color: var(--navy); }
.aviso-cambio { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: var(--radius-md); padding: 12px 14px; font-size: 15px; }

/* Campo con error. */
.form-field--error .form-input { border-color: var(--danger); }
.form-field__error { color: var(--danger-text); font-size: 14px; }

/* Resultado (P9, anulada, error). */
.resultado { text-align: center; padding: 8px 0; }
.resultado__icono { font-size: 40px; }
.resultado__titulo { font-size: 20px; font-weight: 600; color: var(--navy); margin: 6px 0 0; }
.tel { font-weight: 600; }
.fecha3 .form-input { min-width: 0; width: 100%; }
.modal-footer .botones { width: 100%; }

/* Pantalla real (además de lo de la maqueta). */
[hidden] { display: none !important; }
.cita-app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg-page); }
.aviso-error { background: var(--danger-bg); border: 1px solid #fecaca; color: var(--danger-text);
  border-radius: var(--radius-md); padding: 12px 14px; font-size: 15px; }
.lista { display: flex; flex-direction: column; gap: 10px; }
.vacio { color: var(--text-muted); font-size: 15px; text-align: center; padding: 16px 0; }
.rango { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rango .form-input { min-width: 0; width: 100%; }
.dia { cursor: default; }
button.dia--libre { cursor: pointer; }
.subtitulo { font-size: 15px; color: var(--text-muted); margin: -10px 0 0; }

.paso--dentro { padding: 0; }
.opcion--junta { margin-top: -12px; }
.resumen { margin: 0; }
.dia-elegido { color: var(--navy); }
.msg-texto { text-align: center; font-size: 16px; margin: 0; }
.tarjeta-opcion { position: relative; padding-right: 40px; }
.tarjeta-opcion::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--accent); }

/* Confirmar anulación. */
.velo-anular { position: fixed; inset: 0; background: rgba(15, 35, 64, .55); display: flex; align-items: center;
  justify-content: center; padding: 16px; z-index: 50; }
.caja-anular { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 440px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .2); }
.aviso-irreversible { margin: 0; font-size: 15px; color: var(--danger-text); }
.cita__plazo { margin-top: 8px; font-size: 14px; color: var(--text-muted); }
.tel { white-space: nowrap; }

/* Etapa 2A */
.tarjeta-opcion--imagen { display: flex; align-items: center; gap: 12px; }
.tarjeta-opcion--imagen img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.horas--lista { grid-template-columns: 1fr; }
.horas--lista .hora { text-align: left; padding: 0 14px; }
.msg-texto--izq { text-align: left; }
