/* Estilos comunes de las páginas de profesionales, citas y panel del profesional.
   Mismos colores y tipografías que la página principal. */
:root {
  --bg: #F1F3F7; --surface: #FFFFFF; --ink: #121A3A; --muted: #545D7A; --line: #D4D9E6;
  --brand: #2236A8; --brand-ink: #FFFFFF; --mark: #FFD84D; --mark-ink: #121A3A;
  --alert: #B4361E; --ok: #1F7A4D; --soft: #E6EAFB;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 10px; --wrap: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1325; --surface: #161D36; --ink: #E8EBF5; --muted: #A0A8C3; --line: #2B3459;
    --brand: #93A4FF; --brand-ink: #0E1325; --mark: #E9C443; --alert: #FF8E74; --ok: #6FD3A0; --soft: #232C55;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1325; --surface: #161D36; --ink: #E8EBF5; --muted: #A0A8C3; --line: #2B3459;
  --brand: #93A4FF; --brand-ink: #0E1325; --mark: #E9C443; --alert: #FF8E74; --ok: #6FD3A0; --soft: #232C55;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; font-stretch: 80%; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 850; font-stretch: 85%; }
h3 { font-size: 1.1rem; font-weight: 750; }
p { margin: 0; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.muted { color: var(--muted); }
.oculto { display: none !important; }
.error { color: var(--alert); }
.ok { color: var(--ok); }

header.top { padding-block: 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 900; font-stretch: 80%; font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.logo span span { color: var(--brand); }
nav.enlaces { display: flex; gap: 16px; font-size: .95rem; flex-wrap: wrap; }
nav.enlaces a { text-decoration: none; color: var(--ink); }
nav.enlaces a:hover { color: var(--brand); }
nav.enlaces a[aria-current] { color: var(--brand); font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem var(--f-body); padding: 12px 20px; border-radius: var(--r); text-decoration: none; border: 2px solid var(--brand); cursor: pointer; background: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.chico { padding: 6px 12px; font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: default; }
.chip { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); white-space: nowrap; }
.chip.verif { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); font-weight: 600; }
.chip.alerta { background: color-mix(in srgb, var(--alert) 16%, transparent); color: var(--alert); }

.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
main { padding-block: 32px 64px; }
section + section { margin-top: 28px; }

/* Formularios */
form.formulario { display: grid; gap: 14px; }
.campo { display: grid; gap: 4px; }
.campo label, .campo legend { font-weight: 600; font-size: .95rem; }
.campo .ayuda { font-size: .85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="time"], input[type="datetime-local"], select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
textarea { min-height: 96px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 400; cursor: pointer; background: var(--bg); }
.opciones input { accent-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 4px; accent-color: var(--brand); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trampa { position: absolute; left: -9999px; }

/* Profesionales */
.foto { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--soft); flex-shrink: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 2rem; color: var(--brand); overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto.grande { width: 128px; height: 128px; font-size: 2.8rem; }
.precio { font-family: var(--f-display); font-weight: 850; font-size: 1.3rem; }

/* Agenda */
.dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.dias button { flex: 0 0 auto; min-width: 74px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 8px; cursor: pointer; font: inherit; line-height: 1.25; }
.dias button small { display: block; color: var(--muted); font-size: .75rem; }
.dias button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.dias button[aria-pressed="true"] small { color: inherit; }
.dias button:disabled { opacity: .45; cursor: default; }
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 12px; }
.horas button { border: 1px solid var(--brand); color: var(--brand); background: transparent; border-radius: 8px; padding: 8px 4px; white-space: nowrap; font: 600 .95rem var(--f-body); cursor: pointer; }
.horas button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px; }
.burbuja { max-width: 82%; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); }
.burbuja .meta { display: block; font-size: .75rem; color: var(--muted); }
.burbuja.mio { align-self: flex-end; background: var(--soft); }
.burbuja.sistema { align-self: center; border: 0; background: transparent; color: var(--muted); font-size: .85rem; text-align: center; }
.escribir { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.escribir textarea { min-height: 48px; }

footer.pie { border-top: 1px solid var(--line); padding-block: 24px; font-size: .85rem; color: var(--muted); }
footer.pie .wrap { display: grid; gap: 6px; }

@media (max-width: 720px) {
  .dos { grid-template-columns: 1fr; }
  nav.enlaces { display: none; }
}
