/* =====================================================================
   DSI Citas · «Pedir cita» (modo directorio de reservar.html) · v4.3
   Cabecera, pie, botones y tokens vienen de base.css + reservar.css.
   Aquí solo: presentación, lista de negocios, bloque de WhatsApp y
   preguntas frecuentes. Todo grande, claro y sin animaciones de adorno.
   ===================================================================== */

#vista-directorio { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }

.aviso { margin-top: 18px; }
.aviso:focus { outline: none; }
.aviso__in { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 18px; background: var(--warn-soft); color: var(--ink); font-weight: 600; }
.aviso__in .icon { width: 1.4em; height: 1.4em; color: var(--warn); margin-top: .1rem; }

/* ------------------------------------------------------- presentación */
.dhero { padding: clamp(26px, 6vw, 64px) 0 clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.dhero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.dhero__lead { font-size: clamp(1.15rem, 2.4vw, 1.35rem); color: var(--ink); max-width: 36em; }
.dpasos { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dpasos li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 1.04rem; color: var(--ink-2); }
.dpasos b { color: var(--ink); }
.dpasos__n { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 1.15rem; }
.dhero__wa { display: flex; align-items: center; gap: .6rem; font-size: 1.08rem; font-weight: 600; }
.dhero__wa .icon { width: 1.5em; height: 1.5em; color: var(--wa); }
.dhero__wa a { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--wa); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ------------------------------------------------------------- negocios */
.lista { padding-top: clamp(12px, 3vw, 24px); scroll-margin-top: calc(var(--bar-h) + 12px); }
.lista:focus { outline: none; }
.lista h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.buscar { display: flex; align-items: center; gap: .6rem; max-width: 560px; min-height: 60px; padding: 0 1rem; border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface); margin-bottom: 8px; }
.buscar:focus-within { border-color: var(--pen); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pen) 20%, transparent); }
.buscar .icon { width: 1.4em; height: 1.4em; color: var(--ink-2); }
.buscar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font-size: 1.12rem; min-height: 56px; }
.buscar input::placeholder { color: var(--ink-3); opacity: 1; }
.cuenta { color: var(--ink-2); font-size: 1rem; min-height: 1em; margin: 0 0 12px; }
.cuenta:empty { margin: 0; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.neg { display: grid; gap: 16px; align-content: start; padding: clamp(18px, 3vw, 26px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); border-top: 6px solid var(--acc); }
.neg__top { display: flex; align-items: center; gap: 14px; }
.neg .avatar { width: 60px; height: 60px; border-radius: 18px; font-size: 1.2rem; }
.neg__id { min-width: 0; }
.neg__id h3 { font-size: clamp(1.4rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.neg__id p { color: var(--ink-2); font-size: 1rem; margin-top: 4px; }
.neg__datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 1rem; }
.neg__datos li { display: flex; gap: .55rem; align-items: flex-start; }
.neg__datos .icon { width: 1.25em; height: 1.25em; color: var(--ink-3); margin-top: .15rem; }
.neg__datos .is-open b { color: var(--ok); }
.neg__datos .is-open .icon { color: var(--ok); }
.neg__datos .is-closed b { color: var(--ink); }
.neg__go { justify-content: space-between; }
.neg__go .icon { width: 1.5em; height: 1.5em; stroke-width: 2.4; }
.neg__wa { justify-self: center; display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .6rem; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--wa); text-decoration-thickness: 2px; text-underline-offset: 4px; border-radius: 12px; }
.neg__wa .icon { width: 1.4em; height: 1.4em; color: var(--wa); }
.neg__wa:hover { background: color-mix(in srgb, var(--wa) 10%, transparent); }
.neg__wa:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; }

.grid .sk { height: 300px; border-radius: 26px; }

.estado { display: grid; gap: .7rem; justify-items: start; padding: 1.4rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.estado h3 { font-size: 1.35rem; font-weight: 800; }
.estado p { color: var(--ink-2); }

/* ------------------------------------------------------------- WhatsApp */
.wa-bloque { margin-top: clamp(32px, 6vw, 64px); padding: clamp(22px, 4vw, 44px); border-radius: 30px; background: color-mix(in srgb, var(--wa) 9%, var(--surface)); border: 2px solid color-mix(in srgb, var(--wa) 40%, var(--line)); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 48px); align-items: center; scroll-margin-top: calc(var(--bar-h) + 12px); }
.wa-bloque:focus { outline: none; }
.wa-bloque__txt { display: grid; gap: 14px; justify-items: start; }
.wa-bloque h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.wa-bloque p { font-size: 1.1rem; color: var(--ink); max-width: 34em; }
.wa-bloque__num b { display: inline-block; font-family: var(--f-display); font-size: clamp(2.2rem, 7vw, 3.2rem); font-weight: 800; letter-spacing: -.01em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.wa-bloque__pie { font-size: .98rem !important; color: var(--ink-2) !important; }

.wa-chat { margin: 0; padding: 18px 16px; border-radius: 24px; background: #ECE5DD; display: grid; gap: 8px; color: #111B21; }
:root[data-theme="dark"] .wa-chat { background: #0B141A; color: #E9EDEF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa-chat { background: #0B141A; color: #E9EDEF; } }
.wa-msg { justify-self: start; max-width: 88%; padding: .6rem .85rem; border-radius: 4px 16px 16px 16px; background: #fff; font-size: 1rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.wa-msg--yo { justify-self: end; border-radius: 16px 4px 16px 16px; background: #D9FDD3; }
:root[data-theme="dark"] .wa-msg { background: #202C33; }
:root[data-theme="dark"] .wa-msg--yo { background: #005C4B; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wa-msg { background: #202C33; }
  :root:not([data-theme="light"]) .wa-msg--yo { background: #005C4B; }
}
.wa-chat figcaption { font-size: .9rem; text-align: center; opacity: .8; margin-top: 4px; }

/* ----------------------------------------------------------------- FAQ */
.faq { margin-top: clamp(32px, 6vw, 64px); max-width: 820px; display: grid; gap: 10px; }
.faq h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: .8rem 1.2rem; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 1.4rem; font-weight: 600; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; border-radius: 18px; }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--ink); font-size: 1.05rem; }

/* ========================================================= RESPONSIVE */
@media (max-width: 860px) {
  .dpasos { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dpasos li { padding: 12px 14px; }
  .wa-bloque { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wa-bloque .btn--xl { width: 100%; }
  .neg { border-radius: 22px; }
}
