/* website/assets/css/citas.css — agenda de citas (citas.html y admin-citas.html)
   Modificado: 2026-11-04 — sección informativa y FAQ (SEO). Creado: 2026-10-24 — usa los tokens de styles.css */

.pg-citas { background: var(--bg-alt); }
.pg-citas [hidden] { display: none !important; }
.citas-nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: .95rem; }
.citas-nav a { color: var(--ink-2); }
.citas-hero { padding: 48px 0 80px; }
.citas-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 10px 0 12px; }
.btn-wa { background: #25D366; color: #fff; gap: 8px; display: inline-flex; align-items: center; }
.btn-wa:hover { background: #1DA851; text-decoration: none; }
.btn-borde { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-borde:hover { border-color: var(--primary); text-decoration: none; }

.citas-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.citas-panel { background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.cal-titulo { font-size: 1.05rem; margin: 22px 0 12px; color: var(--ink); }
.cal-titulo small { font-weight: 600; color: var(--muted); font-family: var(--font); font-size: .9rem; margin-left: 6px; }
.citas-form .cal-titulo { margin-top: 0; }
/* /demo (demo.html): el tipo de cita queda fijo en «demo en vivo» — 2026-11-05 */
.tipo-fijo { margin: 0 0 6px; padding: 14px 16px; border-radius: 14px; background: var(--primary-soft); color: var(--ink-2); font-size: .95rem; }
.tipo-fijo b { color: var(--ink); }

.tipo { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tipo-op { display: flex; gap: 10px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.tipo-op:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.tipo-op input { margin-top: 4px; accent-color: var(--primary); }
.tipo-op b { display: block; color: var(--ink); }
.tipo-op small { display: block; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-flechas { display: flex; gap: 6px; margin-top: 10px; }
.cal-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.cal-btn:disabled { opacity: .35; cursor: default; }

.dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dia { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 4px; text-align: center; cursor: pointer; font: inherit; color: var(--ink); }
.dia .ds { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.dia .dn { display: block; font-size: 1.25rem; font-weight: 800; font-family: var(--font-display); }
.dia .dl { display: block; font-size: .7rem; color: var(--ok); font-weight: 700; }
.dia:hover:not(:disabled) { border-color: var(--primary); }
.dia[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.dia[aria-selected="true"] .ds, .dia[aria-selected="true"] .dl { color: #fff; }
.dia:disabled { background: var(--bg-alt); color: #A3AEC2; cursor: not-allowed; }
.dia:disabled .dl { color: #A3AEC2; }

.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; min-height: 60px; }
.horas .sep { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.hora { padding: 10px 0; border-radius: 10px; border: 1px solid var(--primary); background: #fff; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
.hora:hover:not(:disabled) { background: var(--primary-soft); }
.hora[aria-pressed="true"] { background: var(--primary); color: #fff; }
.hora.ocupado { border-color: var(--line); background: #ECEFF4; color: #8E9AB0; text-decoration: line-through; cursor: not-allowed; }
.hora.pasado { border-color: var(--line); background: #fff; color: #C2CAD8; cursor: not-allowed; }
.vacio { grid-column: 1 / -1; color: var(--muted); margin: 6px 0; }

.leyenda { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; padding: 0; margin: 16px 0 0; font-size: .82rem; color: var(--muted); }
.leyenda li { display: flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-libre { border: 1px solid var(--primary); background: #fff; }
.lg-ocupado { background: #ECEFF4; border: 1px solid var(--line); }
.lg-pasado { background: #fff; border: 1px dashed #C2CAD8; }
.horario { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

.citas-form { position: sticky; top: calc(var(--hdr) + 16px); }
.resumen { background: var(--primary-soft); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 0 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.ok-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 12px; }
.ok-detalle { font-weight: 600; color: var(--ink); }
.ok-codigo { color: var(--muted); }
.ok-cal { display: flex; gap: 8px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.form-ok .btn-wa { width: 100%; justify-content: center; }
.enlace { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.citas-footer { padding: 24px 0; text-align: center; }

/* Panel de administración */
.adm-tabla { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.adm-tabla th, .adm-tabla td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.adm-tabla th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.adm-tabla tr.cancelada td { color: #A3AEC2; text-decoration: line-through; }
.adm-fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.adm-fila input { padding: 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.adm-scroll { overflow-x: auto; }

@media (max-width: 900px) {
  .citas-grid { grid-template-columns: 1fr; }
  .citas-form { position: static; }
  .citas-nav { display: none; }
  .btn-wa.js-wa { margin-left: auto; }
}
@media (max-width: 560px) {
  .tipo { grid-template-columns: 1fr; }
  .citas-panel { padding: 18px 14px; }
  .dias { gap: 4px; }
  .dia .dn { font-size: 1.05rem; }
  .dia .dl { font-size: .62rem; }
  .form .row { grid-template-columns: 1fr; }
}

/* 2026-11-04 — SEO: sección «¿Cómo es una demo?» y preguntas frecuentes */
.citas-info .card h3 { font-size: 1.1rem; }
.citas-mas { text-align: center; margin: 28px auto 0; max-width: 760px; color: var(--muted, #5B6B84); }
