/* Piezas comunes de /kit/ y /inmobiliarias/: el calendario de reservas (assets/agenda.js) y el bloque de clientes.
   Usan los colores de cada página (--bg, --surface, --line, --accent…). */
.ag { display: grid; gap: 20px; }
.ag-paso { display: grid; gap: 10px; }
.ag-sub { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ag-sub span { text-transform: none; letter-spacing: 0; margin-left: 6px; opacity: .8; }

.ag-dias { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; scroll-snap-type: x proximity; }
.ag-dias::-webkit-scrollbar { display: none; }
.ag-dia {
  flex: 0 0 auto; min-width: 64px; display: grid; justify-items: center; gap: 1px; padding: 10px 8px 9px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  font: 400 12px var(--body); scroll-snap-align: start; transition: border-color .15s ease, background-color .15s ease;
}
.ag-dia b { font: 700 22px/1.1 var(--display); }
.ag-dia-s, .ag-dia-m { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.ag-dia:hover { border-color: var(--accent); }
.ag-dia[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.ag-dia[aria-pressed="true"] span { color: rgba(255, 255, 255, .85); }

.ag-franjas { display: grid; gap: 14px; }
.ag-franja { display: grid; gap: 8px; }
.ag-franja-t { font-size: 13px; color: var(--muted); }
.ag-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.ag-hora {
  min-height: 46px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px;
  font: 600 15px var(--mono); cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.ag-hora:not([disabled]):hover { border-color: var(--accent); color: var(--accent); }
.ag-hora[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
/* Hora no disponible (solo /llamada/, op.ocupados): tachada, sin hover, no se puede pulsar. */
.ag-hora.ag-no { background: transparent; color: #565C66; border-color: color-mix(in srgb, var(--line) 70%, transparent);
  text-decoration: line-through; text-decoration-color: #565C66; cursor: not-allowed; font-weight: 500; }
.ag-dia:focus-visible, .ag-hora:focus-visible, .ag-cambiar:focus-visible, .ag input:focus-visible, .ag textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ag-vacio { color: var(--muted); font-size: 15px; padding: 6px 0; }
.ag-vacio a, .ag-alt a, .ag-legal a { color: var(--accent); }
.ag-aviso, .ag-fallo { font-size: 14px; color: var(--bad); }

.ag-form { display: grid; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); animation: ag-in .25s ease both; }
@keyframes ag-in { from { opacity: 0; transform: translateY(8px); } }
.ag-res { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ag-res > div { display: grid; gap: 4px; }
.ag-cuando { font: 700 18px/1.3 var(--display); }
.ag-cambiar { background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 6px; padding: 8px 12px; font: 500 13px var(--body); cursor: pointer; }
.ag-cambiar:hover { background: var(--surface-2); }
.ag-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ag-ancho { grid-column: 1 / -1; }
.ag .field { display: grid; gap: 7px; min-width: 0; }
.ag .field label { font-size: 14px; font-weight: 600; }
.ag input[type="text"], .ag input[type="tel"] {
  width: 100%; background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 6px; padding: 13px 14px; font: 400 16px var(--body);
}
.ag textarea {
  width: 100%; min-height: 86px; resize: vertical; background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; font: 400 16px/1.5 var(--body);
}
.ag input::placeholder, .ag textarea::placeholder { color: #6B7078; }
.ag .field.bad input, .ag .field.bad textarea { border-color: var(--bad); }
.ag-opc { font-weight: 400; color: var(--muted); }
/* Casilla de asistencia (/llamada/): en su propia caja para que se lea antes de pulsar. */
.ag .ag-check label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.ag .ag-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-strong); cursor: pointer; }
.ag .ag-check:has(input:checked) label { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ag .field.bad.ag-check label { border-color: var(--bad); }
.ag .err { font-size: 13px; color: var(--bad); }
.ag-pista { font-size: 12px; color: var(--muted); }
.ag-enviar { width: 100%; }
.ag-enviar[disabled] { opacity: .7; cursor: progress; transform: none; }
.ag-legal, .ag-alt { font-size: 12px; color: var(--muted); text-align: center; }

.ag-listo { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 12px 0 4px; outline: none; }
.ag-tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.ag-listo h3 { font-size: 26px; }
.ag-listo p { color: var(--muted); max-width: 44ch; }

@media (min-width: 641px) {
  .ag-dias { flex-wrap: wrap; overflow: visible; }
  .ag-dia { flex: 1 0 58px; min-width: 58px; max-width: 76px; }
}
@media (max-width: 640px) {
  .ag-campos { grid-template-columns: minmax(0, 1fr); }
  .ag-horas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ag-form { animation: none; }
  .ag-dia, .ag-hora { transition: none; }
}

/* Bloque «Algunas de las empresas que confían en nosotros»: logo (PNG sin fondo, versión para negro) + una línea de
   qué hacemos. Mismo texto que en iacentry.com/inmobiliarias/. Sin citas ni cifras hasta tener testimonios reales. */
.clientes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cliente { display: grid; gap: 14px; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.cliente-logo { height: 64px; display: flex; align-items: center; }
.cliente-logo img { max-height: 64px; max-width: 200px; width: auto; height: auto; display: block; }
.cliente b { display: block; font: 700 19px/1.25 var(--display); }
.cliente .donde { display: block; font: 400 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 2px 0 8px; }
.cliente p { font-size: 15px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .clientes { grid-template-columns: minmax(0, 1fr); }
  .cliente { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; }
  .cliente-logo { height: auto; justify-content: center; }
  .cliente-logo img { max-width: 120px; max-height: 56px; }
}
@media (max-width: 400px) { .cliente { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; } .cliente-logo img { max-width: 92px; } }

/* Cabecera de la tarjeta del calendario: título + «Gratis · 30 min» */
.booker-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.booker-head h2 { font-size: 26px; }
.gratis { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 640px) { .booker-head h2 { font-size: 22px; } .gratis { font-size: 12px; padding: 5px 10px; } }
