/* App del paciente: lo que no está en /comun/base.css. Mismo tono cálido. */

.saludo { font-family: "Cormorant", serif; font-style: italic; font-weight: 300; font-size: 30px; line-height: 1.1; margin: 6px 0 2px; }
.saludo + p { color: var(--fg-2); font-size: 15px; }

/* La oferta de hueco: lo primero que se ve, y se ve que es para ti. */
.oferta {
  background: var(--surface); border: 1.5px solid var(--accent); border-radius: 18px; padding: 16px;
  box-shadow: var(--sombra); display: grid; gap: 8px; position: relative; overflow: hidden;
}
.oferta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.oferta__etiqueta { font-size: 13px; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }
.oferta__cuando { font-family: "Josefin"; font-weight: 300; font-size: 24px; line-height: 1.2; }
.oferta__plazo { font-size: 14px; color: var(--warn); font-weight: 600; }

.tarjeta-cita {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radio);
  padding: 14px 16px; box-shadow: var(--sombra); display: grid; gap: 4px; border-left: 4px solid var(--prof-cita, var(--accent));
}
.tarjeta-cita__cuando { font-weight: 600; font-size: 17px; }
.tarjeta-cita__dato { font-size: 14px; color: var(--fg-2); }

/* Pasos de la reserva */
.paso { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.paso h1 { font-size: 26px; flex: 1; }
.paso__num { font-size: 13px; color: var(--fg-3); }
.opciones { display: grid; gap: 10px; margin-top: 8px; }
.opcion {
  width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radio);
  padding: 14px 16px; box-shadow: var(--sombra); display: grid; gap: 2px; min-height: 64px;
}
.opcion b { font-size: 17px; font-weight: 600; }
.opcion span { font-size: 14px; color: var(--fg-2); }
/* Elegir sitio entre varios (docs/48): tarjetas una al lado de otra, para que
   se vea que es una elección. Cuándo arriba, el precio al pie, alineados. */
.opciones--sitios { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); align-items: stretch; }
.opcion--sitio { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.opcion--sitio .opcion__cuando { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.opcion--sitio .opcion__donde { font-size: 13.5px; line-height: 1.4; }
.opcion--sitio .opcion__precio { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--fg-3); }
@media (max-width: 520px) {
  .opciones--sitios { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .opcion--sitio { padding: 14px 10px; min-width: 0; }
  .opcion--sitio .opcion__cuando { font-size: 9.5px; letter-spacing: .05em; overflow-wrap: anywhere; }
  .opcion--sitio b { white-space: nowrap; }
  .opcion--sitio .opcion__donde { display: none; }
  .opcion--sitio .opcion__precio { font-size: 12px; }
}
.opcion[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); }
.opcion--destacada { border-color: var(--accent); }
.persona { display: flex; align-items: center; gap: 12px; }
.persona__punto { width: 14px; height: 14px; border-radius: 50%; flex: none; }

/* La semana a la vista: los siete días en columnas y sus horas debajo. */
.semana__cab { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 440px; margin: 10px auto 6px; }
.semana__mes { flex: 1; min-width: 0; text-align: center; font-size: 17px; color: var(--fg); }
.semana__flecha {
  flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--surface);
  font-size: 22px; line-height: 1; color: var(--fg); cursor: pointer; display: grid; place-items: center; padding: 0 0 2px;
}
.semana__flecha:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.semana__flecha:disabled { opacity: .3; cursor: default; }
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.semana__dia { display: grid; align-content: start; gap: 8px; min-width: 0; }
.semana__nombre { display: grid; justify-items: center; gap: 2px; font-size: 12.5px; color: var(--fg-3); text-transform: lowercase; }
.semana__nombre b { font-size: 16px; font-weight: 600; color: var(--fg); }
.semana__dia--hoy .semana__nombre b { color: var(--accent-ink); }
/* Las horas: botones finos de esquinas suaves, centrados en su columna. */
.semana__horas { display: grid; justify-items: center; gap: 6px; }
.semana .hora {
  width: 100%; max-width: 76px; min-width: 0; min-height: 32px; padding: 4px 2px; border-radius: 8px;
  /* Libres de verdad: fondo claro, borde y número en el verde de la marca (el
     borde pasa de 3:1 y el número de 4.5:1, WCAG AA). Nada de gris apagado. */
  border: 1px solid var(--accent); background: var(--surface); box-shadow: 0 1px 2px rgb(63 103 103 / .12);
  font-size: 13px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--accent-ink);
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.semana .hora:hover { background: var(--accent-wash); border-color: var(--accent-ink); box-shadow: 0 2px 6px rgb(63 103 103 / .18); }
.semana .hora[aria-pressed="true"] { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.semana .hora small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.semana__nada { text-align: center; color: var(--fg-3); padding-top: 8px; }
@media (min-width: 560px) {
  .semana { gap: 8px; }
  .semana .hora { min-height: 34px; font-size: 14px; }
}
.hora small { display: block; font-size: 11px; font-weight: 400; line-height: 1; margin-top: 2px; }
.hora { height: auto; min-height: 44px; padding: 6px 10px; }

.resumen-reserva { background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: var(--sombra); display: grid; gap: 10px; }
.resumen-reserva dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 15px; }
.resumen-reserva dt { color: var(--fg-3); }
.resumen-reserva dd { margin: 0; font-weight: 600; }

.enlace-espera { margin-top: 18px; padding: 14px 16px; border-radius: var(--radio); background: var(--bg-2); display: grid; gap: 8px; font-size: 15px; }

/* Lista de espera: rejilla de mañanas y tardes */
.rejilla { display: grid; grid-template-columns: 58px repeat(5, 1fr); gap: 6px; align-items: center; font-size: 13px; }
.rejilla > span { color: var(--fg-3); text-align: center; }
.rejilla > span:first-child, .rejilla > .fila-nombre { text-align: left; }
.celda { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 12px; }
.celda[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Interruptores de permisos */
.permiso { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.permiso:last-child { border-bottom: 0; }
.permiso b { font-weight: 600; }
.permiso p { grid-column: 1; font-size: 14px; color: var(--fg-2); }
.interruptor {
  grid-row: 1 / span 2; grid-column: 2; width: 52px; height: 32px; border-radius: 16px; border: 0; background: var(--line);
  position: relative; transition: background .15s;
}
.interruptor::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .15s;
}
.interruptor[aria-checked="true"] { background: var(--accent); }
.interruptor[aria-checked="true"]::after { transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) { .interruptor, .interruptor::after { transition: none; } }

.exito { text-align: center; padding: 40px 8px 12px; display: grid; gap: 12px; justify-items: center; }
.exito__marca {
  width: 72px; height: 72px; border-radius: 50%; background: var(--ok-wash); color: var(--ok);
  display: grid; place-items: center; font-size: 34px;
}
.exito h1 { font-size: 30px; }
.texto-legal { white-space: pre-wrap; font-size: 15px; color: var(--fg-2); background: var(--surface-2); border-radius: 12px; padding: 12px; }
/* La foto del tratamiento, arriba de su opción. */
.opcion__foto { display: block; width: calc(100% + 32px); max-width: none; margin: -14px -16px 8px; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radio) var(--radio) 0 0; background: var(--surface-2); }
/* Las caras de quien hace cada tratamiento, junto a sus datos. */
.opcion__datos { display: flex !important; align-items: center; gap: 10px; }
.opcion__datos--varios { flex-direction: column; align-items: flex-start; gap: 8px; }
/* Las caras: solo la cara, en círculo, una un poco encima de otra. Al pasar
   el ratón, crece y dice su nombre. */
.opcion__caras { display: flex; flex: none; }
.opcion__caras .cara {
  position: relative; width: 30px; height: 30px; margin-left: -9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface);
  display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); font-size: 12px; font-weight: 600;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.opcion__caras .cara:first-child { margin-left: 0; }
.opcion__caras .cara { cursor: pointer; }
.opcion__caras .cara img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.opcion__caras .cara::after {
  content: attr(data-nombre); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 3;
  padding: 4px 10px; border-radius: 999px; background: var(--fg); color: var(--surface);
  font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .2s, transform .2s;
}
.opcion__caras .cara:hover { transform: scale(1.25); z-index: 2; }
.opcion__caras .cara:hover::after { opacity: 1; transform: translate(-50%, 0) scale(.8); }
.opcion .opcion__desc { display: block; font-size: 13px; color: var(--fg-3); margin-top: 4px; line-height: 1.4; }
.descripcion-servicio { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; margin-top: 8px; }
.descripcion-servicio p { font-size: 14px; color: var(--fg-2); margin-top: 4px; white-space: pre-line; }
.descripcion-servicio .enlace { margin-top: 6px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600;
  color: var(--accent-ink); cursor: pointer; }
.enlace-texto { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pie-continuar { margin-top: 18px; }
.exito__acciones { display: grid; gap: 8px; width: 100%; max-width: 360px; margin-top: 6px; }
/* «¿Con quién?»: la persona y sus primeras horas libres, en la misma tarjeta. */
.opcion--persona { display: grid; gap: 12px; }
.opcion__persona { width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.primeras { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.primeras__titulo { font-size: 13px; font-weight: 600; color: var(--fg-3); }
.primeras .hora { min-width: 84px; }
.primeras__mas {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; margin-top: 2px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--accent-ink); cursor: pointer;
}
.primeras__mas:hover { border-color: var(--accent); background: var(--accent-wash); }
/* El botón de la hoja, pegado abajo mientras se eligen horas («Cambiar la hora»). */
.hoja__pie { position: sticky; bottom: -18px; margin: 16px -18px 0; padding: 12px 18px 16px; background: var(--surface);
  box-shadow: 0 -8px 16px -12px rgb(47 42 37 / .25); }
/* La cita de un correo (docs/33): las acciones, una debajo de otra. */
.enlace-acciones { display: grid; gap: 10px; margin: 16px 0; }

/* «Apuntarme a la lista de espera»: un marco de colores que da vueltas, con
   un resplandor detrás, como el borde de Siri. Es de lo más importante para el
   centro: tiene que verse (Carlos, 15/11/2026). Con «menos movimiento», quieto. */
.boton--espera {
  /* El degradado lo calcula arcoirisVivo() (app.js) según el contorno del botón
     y lo hace girar; este es el de reserva, quieto. */
  --arcoiris: conic-gradient(#FF8A3D, #FF4D8D, #C55CFF, #5B8CFF, #3FD0FF, #FF8A3D);
  position: relative; isolation: isolate; border: 0 !important; background: transparent !important; border-radius: 12px !important;
  color: var(--fg) !important; font-weight: 700; letter-spacing: .01em;
}
.boton--espera::before, .boton--espera::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; }
/* El botón: fondo claro y un marco de 2 px con los colores dando la vuelta. */
.boton--espera::before {
  inset: -2px; z-index: -1; border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--arcoiris) border-box;
}
/* El resplandor, detrás y alrededor, con los mismos colores. */
.boton--espera::after { inset: 2px; z-index: -2; background: var(--arcoiris); filter: blur(14px); opacity: .6; transition: opacity .3s; }
.boton--espera:hover::after, .boton--espera:focus-visible::after { opacity: .9; }

/* ── Lista de espera, en fichas (Carlos, 15/11/2026) ── */
/* ¿Con quién?: caras en cuadros de esquinas suaves, con el nombre debajo; la elegida, con aro y ✓. */
.caras-elegir { display: flex; flex-wrap: wrap; gap: 14px 10px; }
.cara-elegir {
  display: grid; justify-items: center; gap: 6px; width: 74px; padding: 4px 0; border: 0; background: none;
  font: inherit; color: var(--fg-2); cursor: pointer;
}
.cara-elegir__circulo {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: var(--accent-wash); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s;
}
.cara-elegir__circulo > img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
.cara-elegir__inicial { font-size: 22px; font-weight: 600; color: var(--accent-ink); }
/* «Cualquiera»: un mosaico de 2 × 2 con las caras (y «+N» si hay más). */
.cara-elegir__circulo--grupo { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 3px; padding: 5px; background: var(--surface); }
.cara-elegir__circulo.cara-elegir__circulo--grupo > * { width: 100%; height: 100%; min-height: 0; border-radius: 7px; object-fit: cover; }
.cara-elegir__circulo--grupo:has(> :nth-child(3):last-child) > :first-child { grid-column: 1 / -1; }   /* con tres: una arriba, dos abajo */
.cara-elegir__mas { display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.cara-elegir__nombre { font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.cara-elegir:hover .cara-elegir__circulo { transform: scale(1.05); }
.cara-elegir[aria-pressed="true"] { color: var(--fg); }
.cara-elegir[aria-pressed="true"] .cara-elegir__circulo { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-ink); }
.cara-elegir[aria-pressed="true"] .cara-elegir__circulo::after {
  content: "✓"; position: absolute; right: -7px; top: -7px; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent-ink); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 2px var(--surface);
}
.cara-elegir:focus-visible { outline: none; }
.cara-elegir:focus-visible .cara-elegir__circulo { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }

/* ¿Cómo de urgente es?: tres fichas en fila, con su nivel en barras. */
.niveles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.nivel {
  display: grid; justify-items: start; align-content: start; gap: 4px; min-height: 108px; padding: 12px; text-align: left;
  border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); box-shadow: var(--sombra);
  font: inherit; color: var(--fg); cursor: pointer; transition: border-color .2s, background .2s;
}
/* El icono de cada nivel, con su color (contraste de icono ≥ 3:1). */
.nivel__icono { width: 26px; height: 26px; margin-bottom: 4px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nivel__icono--1 { stroke: #4F7D4F; }
.nivel__icono--2 { stroke: #96701F; }
.nivel__icono--3 { stroke: #B4513A; fill: rgb(180 81 58 / .14); }
.nivel b { font-size: 15px; line-height: 1.2; }
.nivel small { font-size: 12px; line-height: 1.35; color: var(--fg-3); }
.nivel:hover { border-color: var(--accent); }
.nivel[aria-pressed="true"] { border: 1.5px solid var(--accent-ink); background: var(--accent-wash); }

/* ¿Hasta cuándo te sirve?: fichas como de calendario, con la cifra grande. */
.plazos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }   /* todas a lo ancho, a partes iguales */
@media (max-width: 420px) { .plazos { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plazo {
  display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 84px; padding: 10px 6px;
  border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); box-shadow: var(--sombra);
  font: inherit; color: var(--fg); cursor: pointer; transition: border-color .2s, background .2s;
}
.plazo b { font-size: clamp(20px, 4.4vw, 26px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; text-transform: capitalize; white-space: nowrap; }
.plazo small { font-size: 12.5px; color: var(--fg-2); text-align: center; line-height: 1.25; }
.plazo:hover { border-color: var(--accent); }
.plazo[aria-pressed="true"] { border-color: var(--accent-ink); background: var(--accent-ink); color: #fff; }
.plazo[aria-pressed="true"] small { color: rgb(255 255 255 / .85); }

/* «Ya tienes una visita»: antes de reservar, si ya tiene una por delante. */
.ya-tienes {
  display: grid; gap: 8px; margin-top: 14px; padding: 18px; border-radius: var(--radio);
  background: var(--accent-wash); border: 1.5px solid var(--accent); box-shadow: var(--sombra);
}
.ya-tienes__rotulo { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.ya-tienes__texto { font-size: 16px; line-height: 1.45; color: var(--fg); }
.ya-tienes__pregunta { font-size: 16px; font-weight: 700; color: var(--fg); margin-top: 4px; }
.ya-tienes__botones { display: grid; gap: 8px; margin-top: 4px; }

/* Las acciones de una tarjeta, como botones en fila con su icono (Carlos, 15/11/2026). */
.tarjeta-acciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; margin-top: 14px; min-width: 0; }
/* La tarjeta no crece más que su columna: si no caben, los botones bajan de línea. */
.tarjeta-cita, .fila { min-width: 0; max-width: 100%; }
.tarjeta-acciones .boton { min-width: 0; }
.tarjeta-acciones .boton {
  width: 100%; min-height: 46px; padding: 0 14px; gap: 8px; justify-content: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--accent-ink); font-size: 14px; font-weight: 600;
  box-shadow: 0 1px 2px rgb(80 60 35 / .05); transition: border-color .2s, background .2s; white-space: nowrap;
}
.tarjeta-acciones .boton:hover { border-color: var(--accent); background: var(--accent-wash); }
.tarjeta-acciones .boton.boton--principal { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
/* Anular, salir: con un fondo rosa claro, que se vea a la primera (mucha gente no sabe cómo anular). */
.boton--peligro, .tarjeta-acciones .boton--peligro { color: #A3412C; background: #FBEAE6; border-color: rgb(163 65 44 / .35); }
.boton--peligro:hover, .tarjeta-acciones .boton--peligro:hover { border-color: #A3412C; background: #F7DCD5; }
.boton[data-icono]::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--icono) center / contain no-repeat; mask: var(--icono) center / contain no-repeat;
}
.boton[data-icono="calendario"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M4 10h16M9 3v4M15 3v4M12 13v5M9.5 15.5h5'/%3E%3C/svg%3E"); }
.boton[data-icono="reloj"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.boton[data-icono="anular"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E"); }
.boton[data-icono="telefono"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h3l1.5 4-2 1.5a11 11 0 0 0 6 6l1.5-2 4 1.5v3a2 2 0 0 1-2 2A16 16 0 0 1 4 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.boton[data-icono="salir"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4M10 16l-4-4 4-4M6 12h10'/%3E%3C/svg%3E"); }
.boton[data-icono="buscar"] { --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E"); }

/* WhatsApp por adelantado: la explicación de cuándo empezará. */
.permiso__pronto { grid-column: 1 / -1; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: var(--accent-wash); color: var(--fg); font-size: 14px; line-height: 1.45; }

/* Cambiar una cita: la hora de antes, tachada. */
.resumen-reserva__antes { text-decoration: line-through; color: var(--fg-3) !important; }

/* ── Mi cuenta (docs/12 §1bis): las secciones a la izquierda; en el móvil, una
   tira arriba que se desliza. ── */
.cuenta { display: grid; gap: 16px; }
.cuenta__nav { display: grid; gap: 10px; min-width: 0; }
.cuenta__nav ul { list-style: none; margin: 0 -2px; padding: 2px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cuenta__nav ul::-webkit-scrollbar { display: none; }
.cuenta__nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg-2);
  font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.cuenta__nav a:hover { border-color: var(--accent); color: var(--accent-ink); }
.cuenta__nav a[aria-current] { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.cuenta__quien, .cuenta__salir { display: none; }
.cuenta__contenido { min-width: 0; }
.cuenta__contenido > .saludo:first-child { margin-top: 4px; }
@media (min-width: 900px) {
  #app:has(.cuenta) { max-width: 1080px; }
  .cuenta { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
  .cuenta__contenido .linea { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .cuenta__nav {
    position: sticky; top: 96px; gap: 12px; padding: 18px 12px; border-radius: var(--radio);
    background: var(--surface); border: 1px solid var(--line-soft); box-shadow: 0 10px 30px -18px rgb(80 60 35 / .25);
  }
  .cuenta__nav ul { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 2px; }
  .cuenta__nav a { width: 100%; border-color: transparent; background: none; min-height: 44px; }
  .cuenta__nav a:hover { background: var(--surface-2); border-color: transparent; }
  .cuenta__nav a[aria-current] { background: var(--accent-wash); border-color: transparent; color: var(--accent-ink); }
  .cuenta__quien { display: grid; gap: 2px; padding: 0 14px 12px; border-bottom: 1px solid var(--line-soft); min-width: 0; }
  .cuenta__quien small { color: var(--fg-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cuenta__salir { display: block; justify-self: start; margin: 4px 14px 0; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--fg-3); cursor: pointer; }
  .cuenta__salir:hover { color: var(--accent-ink); text-decoration: underline; }
}
.cuenta__form { gap: 12px; }
.cuenta__form > .boton { justify-self: start; }
.cuenta__dos, .cuenta__tres { display: grid; gap: 12px; }
@media (min-width: 600px) { .cuenta__dos { grid-template-columns: 1fr 1fr; } .cuenta__tres { grid-template-columns: 1fr 1.4fr 1fr; } }
.cuenta__botones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cuenta__email { display: grid; gap: 10px; justify-items: start; }
.cuenta__email input { width: 100%; }
.sesiones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sesion { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface-2); }
.sesion__que { display: grid; gap: 2px; min-width: 0; }
.sesion__que small { color: var(--fg-3); font-size: 13px; }

/* Contraseñas (036): el campo con «Ver», el error de entrar y los otros caminos. */
.contrasena { position: relative; display: flex; align-items: center; }
.contrasena input { width: 100%; min-height: 48px; padding: 10px 76px 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 16px; }
.contrasena__ver { position: absolute; right: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-ink); cursor: pointer; }
.contrasena__ver:hover { background: var(--accent-wash); }
.entrar__error { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FBEAE6; color: #A3412C; font-size: 14.5px; }
.entrar-tarjeta { gap: 12px; }
.entrar-tarjeta__otros { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.restablecer { max-width: 520px; margin: 28px auto 0; }

/* Reservar con el formulario, sin cuenta (docs/60): lo de su Wix, en compacto. */
.formulario-reserva { display: grid; gap: 12px; }
.formulario-reserva__cuenta { display: block; font-size: 15px; }
.formulario-reserva__datos { display: grid; gap: 12px; }
@media (min-width: 640px) { .formulario-reserva__datos { grid-template-columns: 1fr 1fr; } }
.formulario-reserva__telefono { display: flex; gap: 8px; }
.formulario-reserva__telefono input { flex: 1; min-width: 0; }
.formulario-reserva__prefijo { flex: none; width: auto; }
.formulario-reserva textarea { min-height: 88px; }
.formulario-reserva__trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Mis citas en listado (Carlos, 15/11/2026): cada visita en una fila, con sus
   acciones al lado; en el móvil, debajo. */
.citas-lista { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.tarjeta-cita--fila { column-gap: 20px; }
.tarjeta-cita--fila .tarjeta-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tarjeta-cita--fila .tarjeta-acciones .boton { width: auto; min-height: 40px; padding: 0 14px; font-size: 14px; }
/* Plegable: las acciones, ocultas hasta tocar el renglón; una flecha lo dice. */
.tarjeta-cita--plegable { position: relative; cursor: pointer; padding-right: 48px; transition: box-shadow .25s, border-color .25s; }
.tarjeta-cita--plegable:hover { box-shadow: 0 10px 26px -16px rgb(80 60 35 / .35); }
.tarjeta-cita--plegable:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* La × para quitar la cita: pequeña y redonda, en la esquina de arriba a la
   derecha, sobre el borde. Lleva a «¿cambiar o anular?» (app.js). */
.tarjeta-cita--con-quitar { position: relative; }
.tarjeta-cita__quitar {
  position: absolute; top: -9px; right: -9px; z-index: 2; display: grid; place-items: center;
  width: 26px; height: 26px; padding: 0; border-radius: 8px; cursor: pointer;
  background: var(--surface); color: var(--fg-2); border: 1px solid var(--line);
  box-shadow: 0 2px 6px -2px rgb(80 60 35 / .25); font: 400 17px/1 system-ui, sans-serif;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.tarjeta-cita__quitar span { margin-top: -1px; }
.tarjeta-cita__quitar:hover, .tarjeta-cita__quitar:focus-visible { color: #A3412C; border-color: #A3412C; background: #FBEAE6; transform: scale(1.08); }
.tarjeta-cita__quitar:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* El sí definitivo de anular: lleno y en el rojo de aviso. */
.boton--peligro-lleno, .boton--principal.boton--peligro-lleno { background: #A3412C; border-color: #A3412C; color: #fff; }
.boton--peligro-lleno:hover { background: #8A3423; border-color: #8A3423; }
@media (prefers-reduced-motion: reduce) { .tarjeta-cita__quitar { transition: none; } }

.tarjeta-cita--plegable::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.5px solid var(--fg-3); border-bottom: 1.5px solid var(--fg-3); transform: rotate(45deg); transition: transform .25s, margin-top .25s;
}
.tarjeta-cita--plegable.abierta::after { transform: rotate(-135deg); margin-top: -2px; }
/* El renglón: cuándo y con quién en una línea (en el móvil, dos). */
.tarjeta-cita--fila { padding-top: 12px; padding-bottom: 12px; }
.tarjeta-cita__linea { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0; }
.tarjeta-cita__linea .tarjeta-cita__cuando { font-size: 16px; }
.tarjeta-cita__linea .chip { align-self: center; }
.tarjeta-cita--plegable .tarjeta-cita__mas { display: none; }
.tarjeta-cita--plegable.abierta .tarjeta-cita__mas { display: grid; gap: 6px; padding-top: 4px; animation: desplegar .25s cubic-bezier(.2, .7, .2, 1) both; }
.tarjeta-cita__mas .tarjeta-acciones { margin-top: 6px; }
@keyframes desplegar { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .tarjeta-cita--plegable.abierta .tarjeta-cita__mas { animation: none; } }
/* El historial, plegado: lo que ya pasó, sin acciones. */
.historial { margin-top: 26px; }
.historial summary { cursor: pointer; font: italic 300 24px/1.2 "Cormorant", Georgia, serif; color: var(--fg); list-style: none; display: flex; align-items: center; gap: 10px; }
.historial summary::-webkit-details-marker { display: none; }
.historial summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.historial[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.cita-pasada { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.cita-pasada__cuando { font-weight: 600; font-size: 15px; }
.cita-pasada__que { grid-column: 1; font-size: 14px; color: var(--fg-2); }
.cita-pasada .chip { grid-column: 2; grid-row: 1 / span 2; }

/* En lista de espera: un aviso flotante, abajo a la derecha, con un punto que
   late mientras sigue buscando. */
.flotante-espera {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 9;   /* debajo de la hoja (10) */
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 12px 18px 12px 14px;
  border: 1px solid rgb(255 255 255 / .9); border-radius: 14px; cursor: pointer; text-align: left; font: inherit; color: var(--fg);
  background: rgb(255 253 249 / .86); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 #fff, 0 14px 34px -14px rgb(47 79 79 / .45);
  animation: flotar-entra .5s cubic-bezier(.2, .7, .2, 1) both;
}
.flotante-espera:hover { transform: translateY(-2px); transition: transform .25s; }
.flotante-espera__texto { display: grid; gap: 1px; min-width: 0; }
.flotante-espera__texto b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flotante-espera__texto small { font-size: 12.5px; color: var(--fg-3); }
.flotante-espera__punto { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: #5E8C5E; }
.flotante-espera__punto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #5E8C5E; animation: latir-espera 2s ease-out infinite; }
.flotante-espera--pausa .flotante-espera__punto, .flotante-espera--pausa .flotante-espera__punto::after { background: var(--fg-3); animation: none; }
@keyframes latir-espera { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
@keyframes flotar-entra { from { transform: translateY(20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flotante-espera, .flotante-espera__punto::after { animation: none; } }
@media (min-width: 1000px) { .flotante-espera { right: 28px; bottom: 28px; } }

/* Por qué conectar el calendario (app.js): tres razones con su marca. */
.razones { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 10px; }
.razones li { position: relative; display: grid; gap: 1px; padding-left: 30px; font-size: 14.5px; color: var(--fg-2); line-height: 1.45; }
.razones li b { color: var(--fg); font-size: 15px; }
.razones li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-wash);
}

/* El logo del centro en el alta (docs/43): con sus proporciones, nunca deformado. */
.entrar .alta__logo { flex: none; width: auto; height: 56px; max-width: 220px; object-fit: contain; object-position: left center;
  border-radius: 0; background: none; padding: 0; }
