/* Pedir cita (citas.html): calendario del mes en azul RA, oscuro, pensado para el móvil. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2-variations"), url("/assets/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --bg: #05070b;
  --panel: #0d162a;
  --panel2: #111d37;
  --linea: #1d2c4d;
  --texto: #eef2fa;
  --suave: #93a3c4;
  --azul: #2f6bff;
  --azul-claro: #8fb0ff;
  --ok: #36e6a3;
  --alerta: #ffb347;
  --malo: #ff7b72;
  --wa: #148240;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.5; color: var(--texto); background: var(--bg);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(47, 107, 255, .28), transparent 70%);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.icon-sprite { display: none; }
svg.icn { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.icn.sm { width: 17px; height: 17px; }
svg.wa-svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.ct-h1 { font-stretch: 66%; font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: .01em; font-size: clamp(38px, 8vw, 56px); margin: 0 0 12px; }

/* Cabecera */
.ct-cab { border-bottom: 1px solid var(--linea); background: rgba(5, 7, 11, .85); }
.ct-cab-in { max-width: 860px; margin: 0 auto; padding: 0 16px; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct-marca { display: flex; align-items: center; gap: 12px; }
.ct-marca img { height: 30px; width: auto; }
.ct-marca span { padding-left: 12px; border-left: 1px solid var(--linea); line-height: 1.15; }
.ct-marca b { display: block; font-stretch: 66%; font-weight: 800; font-size: 19px; letter-spacing: .07em; text-transform: uppercase; }
.ct-marca small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--suave); }
.ct-llamar { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--linea); border-radius: 10px; background: var(--panel); font-weight: 600; font-size: 14.5px; }
.ct-llamar:hover { border-color: var(--azul); }

.ct { max-width: 860px; margin: 0 auto; padding: 22px 16px 44px; }

/* Pasos */
.ct-pasos { list-style: none; display: flex; gap: 8px; margin-bottom: 26px; }
.ct-pasos li { flex: 1; display: flex; align-items: center; gap: 9px; padding-top: 10px; border-top: 3px solid var(--linea); font-size: 14.5px; font-weight: 600; color: var(--suave); }
.ct-pasos li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--panel2); border: 1px solid var(--linea); }
.ct-pasos li.ya { border-top-color: var(--azul); color: var(--texto); }
.ct-pasos li.ya span { background: var(--azul); border-color: var(--azul); color: #fff; }
.ct-pasos li.hecho span { background: var(--ok); border-color: var(--ok); color: #05150e; }

.ct-sub { color: var(--suave); font-size: 17px; max-width: 56ch; }
.ct-sub b { color: var(--texto); }

/* Atajo al primer hueco */
.ct-primero {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 18px; min-height: 58px; padding: 10px 16px;
  border: 1px solid #2c8a67; border-radius: 14px; background: rgba(54, 230, 163, .09); color: var(--texto);
  font: inherit; font-size: 16px; text-align: left; cursor: pointer;
}
.ct-primero:hover { background: rgba(54, 230, 163, .16); }
.ct-primero svg { color: var(--ok); }
.ct-primero b { color: var(--ok); }

/* Calendario */
.cal { margin-top: 14px; background: var(--panel); border: 1px solid var(--linea); border-radius: 20px; padding: 18px; box-shadow: 0 30px 60px -35px #000; }
.cal-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.cal-mes { font-stretch: 66%; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 30px; line-height: 1; text-align: center; flex: 1; }
.cal-flecha {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--linea); background: var(--panel2); cursor: pointer;
  display: grid; place-items: center; color: var(--azul-claro);
}
.cal-flecha:hover:not(:disabled) { border-color: var(--azul); }
.cal-flecha:disabled { opacity: .3; cursor: default; }
.cal-semana, .cal-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-semana span { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--suave); padding-bottom: 8px; }
.cal-semana .cal-dom { color: #c97a75; }

.cal-dia {
  min-height: 74px; border-radius: 12px; border: 1.5px solid transparent; padding: 9px 10px; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; font-family: inherit; cursor: default;
  background: #0a1122; color: #4b5b7c;
}
.cal-dia .num { font-size: 22px; font-weight: 800; line-height: 1; }
.cal-dia .txt { font-size: 12px; font-weight: 600; line-height: 1.2; }
.cal-vacio { background: transparent; }
.cal-dia.est-pasado { background: transparent; color: #34425f; }
.cal-dia.est-libre { background: rgba(54, 230, 163, .1); border-color: #2c8a67; color: var(--ok); cursor: pointer; }
.cal-dia.est-solo-rapidos { background: rgba(255, 179, 71, .09); border-color: #8f6a2a; color: var(--alerta); cursor: pointer; }
.cal-dia.est-completo, .cal-dia.est-cerrado { background: #0a1122; color: #7d5a5a; }
.cal-dia.est-completo .num, .cal-dia.est-cerrado .num { text-decoration: line-through; text-decoration-thickness: 2px; }
.cal-dia.est-libre:hover, .cal-dia.est-solo-rapidos:hover { transform: translateY(-2px); }
.cal-dia.est-libre:hover { border-color: var(--ok); background: rgba(54, 230, 163, .18); }
.cal-dia.est-solo-rapidos:hover { border-color: var(--alerta); background: rgba(255, 179, 71, .16); }
.cal-dia.hoy { box-shadow: inset 0 0 0 2px var(--azul); }
.cal-dia.hoy .num::after { content: "hoy"; margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--azul-claro); vertical-align: 3px; }

.cal-leyenda { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linea); font-size: 14px; color: var(--suave); }
.cal-leyenda i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 7px; vertical-align: -2px; border: 1.5px solid; }
.ley-libre { background: rgba(54, 230, 163, .25); border-color: #2c8a67 !important; }
.ley-rapidos { background: rgba(255, 179, 71, .25); border-color: #8f6a2a !important; }
.ley-lleno { background: #0a1122; border-color: #3a2c32 !important; }
.cal-nota { display: flex; gap: 8px; margin: 14px 2px 0; font-size: 14px; color: var(--suave); }
.cal-nota svg { margin-top: 3px; }
.cal-nota a { color: var(--azul-claro); text-decoration: underline; text-underline-offset: 3px; }

/* Datos */
.ct-atras { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; min-height: 40px; padding: 0 14px; border: 1px solid var(--linea); border-radius: 10px; background: var(--panel); color: var(--texto); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.ct-atras:hover { border-color: var(--azul); }
.ct-dia { display: inline-block; margin: 0 0 20px; padding: 8px 14px; border-radius: 10px; background: rgba(47, 107, 255, .14); border: 1px solid #2a4a99; color: var(--azul-claro); font-weight: 600; font-size: 16.5px; }
.ct-form { max-width: 520px; display: grid; gap: 18px; }
.ct-form label { display: grid; gap: 7px; font-size: 15px; font-weight: 600; }
.ct-form label em { font-style: normal; font-weight: 400; color: var(--suave); }
.ct-form label.ct-privacidad { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; line-height: 1.45; }
.ct-form label.ct-privacidad input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; }
.ct-form label.ct-privacidad a { color: inherit; text-decoration: underline; }
.ct-form input, .ct-form textarea {
  width: 100%; min-height: 54px; padding: 12px 14px; font: inherit; font-size: 17px; font-weight: 400; color: var(--texto);
  background: var(--panel); border: 1px solid var(--linea); border-radius: 12px; resize: vertical;
}
.ct-form input::placeholder, .ct-form textarea::placeholder { color: #566686; }
.ct-form input:focus, .ct-form textarea:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 255, .3); }
.ct-error { padding: 12px 14px; border-radius: 10px; background: rgba(255, 123, 114, .1); border: 1px solid #8a3b36; color: var(--malo); font-size: 15px; }

.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--linea); font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer; text-align: center; }
.ct-btn-principal { background: var(--azul); border-color: var(--azul); color: #fff; width: 100%; }
.ct-btn-principal:hover:not(:disabled) { background: #4a7fff; }
.ct-btn-principal:disabled { opacity: .6; cursor: default; }
.ct-btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.ct-btn-linea { background: var(--panel); color: var(--texto); }
.ct-btn-linea:hover { border-color: var(--azul); }

/* Confirmación */
.ct-ok { max-width: 560px; margin: 20px auto 0; text-align: center; background: var(--panel); border: 1px solid var(--linea); border-radius: 20px; padding: 34px 24px 28px; box-shadow: 0 30px 60px -35px #000; }
.ct-ok-ic { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; margin-bottom: 18px; background: rgba(54, 230, 163, .14); border: 2px solid var(--ok); color: var(--ok); }
.ct-ok-ic svg { width: 32px; height: 32px; stroke-width: 2.4; }
.ct-ok .ct-h1 { color: var(--ok); }
.ct-ok .ct-sub { margin: 0 auto 22px; }
.ct-contacto { display: grid; gap: 10px; }

.ct-direccion { margin-top: 34px; text-align: center; font-size: 14.5px; color: var(--suave); }
.ct-direccion a { display: inline-flex; align-items: center; gap: 8px; }
.ct-direccion a:hover { color: var(--texto); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .ct-marca span { display: none; }
  .ct { padding-top: 16px; }
  .ct-pasos { margin-bottom: 20px; }
  .ct-pasos li { font-size: 13px; gap: 6px; }
  .cal { padding: 12px 10px; border-radius: 16px; }
  .cal-semana, .cal-dias { gap: 4px; }
  .cal-dia { min-height: 54px; padding: 4px; align-items: center; justify-content: center; text-align: center; gap: 3px; }
  .cal-dia .num { font-size: 18px; }
  .cal-dia .txt { display: none; }
  .cal-dia.hoy .num::after { content: none; }
  .cal-dia.est-libre::after, .cal-dia.est-solo-rapidos::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .cal-mes { font-size: 25px; }
  .cal-flecha { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .cal-dia { transition: none; } .cal-dia:hover { transform: none !important; } }
@media (prefers-reduced-motion: no-preference) { .cal-dia { transition: transform .12s, background .12s, border-color .12s; } }
