/* Acné Faciales — Citas: tokens y componentes comunes (frente y panel). Se puede AÑADIR al final. */
:root {
  --rosa: #D94F70;
  --rosa-600: #C23E60;
  --rosa-50: #FFF1F4;
  --rosa-100: #FFE1E8;
  --tinta: #1F2430;
  --gris: #6B7280;
  --gris-claro: #9CA3AF;
  --borde: #ECE7EA;
  --fondo: #FBF8F9;
  --blanco: #FFFFFF;
  --ok: #16A34A;
  --ok-50: #ECFDF3;
  --pend: #D97706;
  --pend-50: #FFF7E6;
  --mal: #DC2626;
  --mal-50: #FEF2F2;
  --info: #2563EB;
  --info-50: #EFF6FF;

  --radio: 16px;
  --radio-sm: 10px;
  --sombra: 0 1px 2px rgba(31, 36, 48, .06), 0 8px 24px rgba(31, 36, 48, .06);
  --sombra-alta: 0 12px 40px rgba(31, 36, 48, .16);
  --fuente: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--fondo);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
a { color: var(--rosa-600); }

:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.25rem;
  border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--fuente);
  cursor: pointer; text-decoration: none;
  transition: background-color .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primario { background: var(--rosa); color: #fff; box-shadow: 0 6px 16px rgba(217, 79, 112, .28); }
.btn-primario:hover { background: var(--rosa-600); }
.btn-secundario { background: var(--blanco); color: var(--tinta); border: 1px solid var(--borde); }
.btn-secundario:hover { background: var(--rosa-50); }
.btn-peligro { background: var(--mal-50); color: var(--mal); }
.btn-bloque { width: 100%; }
.btn svg { width: 20px; height: 20px; }

/* Campos */
.campo { display: grid; gap: .35rem; margin-bottom: 1rem; }
.campo label { font-weight: 600; font-size: .95rem; }
.campo .ayuda { color: var(--gris); font-size: .85rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .75rem 1rem;
  border: 1.5px solid var(--borde); border-radius: var(--radio-sm);
  background: var(--blanco); color: var(--tinta);
  font: 1rem var(--fuente);
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--rosa); box-shadow: 0 0 0 4px var(--rosa-100); }

/* Tarjetas */
.tarjeta { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 1.25rem; }

/* Etiquetas de estado */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.chip-pendiente { background: var(--pend-50); color: var(--pend); }
.chip-confirmada { background: var(--info-50); color: var(--info); }
.chip-completada { background: var(--ok-50); color: var(--ok); }
.chip-cancelada { background: var(--mal-50); color: var(--mal); text-decoration: line-through; }

/* Avisos */
.aviso { padding: .85rem 1rem; border-radius: var(--radio-sm); font-size: .95rem; }
.aviso-ok { background: var(--ok-50); color: #166534; }
.aviso-error { background: var(--mal-50); color: #991B1B; }
.aviso-info { background: var(--rosa-50); color: var(--rosa-600); }

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