/* =====================================================================
   FULLEXTREMO — Sistema visual "Bahía de calibración"
   La estética de un banco de pruebas de precisión: negro azulado de
   monitor apagado, un solo neón cian como instrumento de medida y
   magenta reservado para lo que exige atención. Archivo (ancha,
   industrial) titula; Instrument Sans conversa; IBM Plex Mono muestra
   todo dato que se lee en voz alta: código, placa, importe, hora.
   ===================================================================== */

:root {
  /* Superficies */
  --n0: #04060B;                       /* fondo profundo */
  --n1: #090D15;                       /* panel base */
  --n2: #0E141F;                       /* panel elevado */
  --n3: #141C2A;                       /* controles */
  --hueco: #060910;                    /* campos de entrada */

  /* Líneas */
  --linea:        rgba(120, 200, 255, .10);
  --linea-fuerte: rgba(120, 200, 255, .26);

  /* Neón (tema.css.php lo reescribe con el color elegido en el panel) */
  --ambar:       #00E5FF;
  --ambar-hondo: #00A8C0;
  --halo:        rgba(0, 229, 255, .15);
  --halo-fuerte: rgba(0, 229, 255, .42);
  --acento-rgb:  0, 229, 255;
  --magenta:     #FF2E7E;

  /* Señales de estado */
  --menta: #29F2A9;
  --rojo:  #FF4D6D;
  --hielo: #7FB2FF;

  /* Texto */
  --texto:   #E9F4FF;
  --texto-2: #9AAEC4;
  --gris:    #5F7288;

  /* Tipografía */
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --body:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  /* Geometría: radios suaves + una sola esquina cortada como firma */
  --corte: 18px;
  --corte-sm: 10px;
  --radio: 16px;
  --radio-sm: 10px;
  --sombra: 0 24px 60px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--texto);
  background-color: var(--n0);
  background-image:
    radial-gradient(80% 55% at 18% -10%, var(--halo) 0%, transparent 55%),
    radial-gradient(55% 45% at 92% 8%, rgba(255, 46, 126, .08) 0%, transparent 58%),
    radial-gradient(70% 50% at 50% 115%, rgba(var(--acento-rgb), .07) 0%, transparent 60%),
    linear-gradient(rgba(120, 200, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 255, .028) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
  background-attachment: fixed;
}

main { flex: 1 0 auto; padding-bottom: 72px; }

::selection { background: var(--halo-fuerte); color: var(--texto); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -.015em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; font-stretch: 105%; }
p  { margin: 0 0 1em; }
a  { color: var(--ambar); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
hr, .rule { border: 0; border-top: 1px solid var(--linea); margin: 20px 0; }

.h-lg { font-size: clamp(1.45rem, 4vw, 1.9rem); }
.h-xl { font-size: clamp(1.7rem, 5vw, 2.3rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: .68rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--ambar);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--ambar), transparent);
  box-shadow: 0 0 8px var(--halo-fuerte);
}
.hint  { font-size: .84rem; color: var(--gris); line-height: 1.55; }
.muted { color: var(--texto-2); }
.lead, .hero p.lead { font-size: 1.1rem; color: var(--texto-2); max-width: 52ch; }

/* ---------- Estructura ---------- */
.wrap    { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { width: 100%; max-width: 740px;  margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ambar); color: var(--n0);
  padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Cabecera: consola fija ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(4, 6, 11, .82);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--linea);
  transition: background .25s ease;
}
.site-header::after {
  content: ''; display: block; height: 1px;
  background: linear-gradient(90deg, transparent 8%, var(--ambar) 42%, var(--magenta) 58%, transparent 92%);
  opacity: .55;
}
.site-header.compacta { background: rgba(4, 6, 11, .96); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap;
  transition: min-height .25s ease;
}
.site-header.compacta .wrap { min-height: 56px; }

.logo {
  font-family: var(--display);
  font-weight: 900; font-stretch: 122%;
  font-size: 1.24rem; letter-spacing: .05em;
  color: var(--texto); text-transform: uppercase;
  display: inline-flex; align-items: baseline; gap: .3em;
}
.logo:hover { text-decoration: none; }
.logo b { color: var(--ambar); text-shadow: 0 0 20px var(--halo-fuerte); }
.logo-tag {
  font-family: var(--mono); font-size: .58rem; font-weight: 500;
  letter-spacing: .22em; color: var(--gris);
  border: 1px solid var(--linea); padding: 2px 7px;
  text-transform: uppercase;
}

.header-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.header-nav a {
  position: relative;
  font-size: .88rem; font-weight: 500;
  color: var(--texto-2);
  padding: 9px 14px;
  border: 1px solid transparent;
}
.header-nav a::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px;
  background: var(--ambar);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.header-nav a:hover { color: var(--texto); text-decoration: none; }
.header-nav a:hover::after { transform: scaleX(1); }
.header-nav .nav-cta {
  color: var(--ambar);
  border-color: var(--linea-fuerte);
  border-radius: var(--radio-sm);
  border-top-right-radius: 3px;
  background: var(--halo);
}
.header-nav .nav-cta::after { display: none; }
.header-nav .nav-out { color: var(--gris); }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 130px) 0 clamp(52px, 8vw, 88px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(104deg, transparent 44%, var(--halo) 50%, transparent 56%);
  opacity: .8;
}
.hero .wrap { position: relative; }
.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  font-stretch: 124%;
  letter-spacing: -.03em;
  line-height: .96;
  text-shadow: 0 0 26px var(--halo), 0 0 80px rgba(255, 46, 126, .14);
}
.hero h1::after {
  content: '';
  display: block;
  width: 110px; height: 2px; margin-top: 24px;
  background: linear-gradient(90deg, var(--ambar), var(--magenta));
  box-shadow: 0 0 16px var(--halo-fuerte);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero .eyebrow, .hero h1, .hero .lead, .hero-actions {
  animation: sube .7s cubic-bezier(.2, .75, .25, 1) both;
}
.hero h1 { animation-delay: .07s; }
.hero .lead { animation-delay: .14s; }
.hero-actions { animation-delay: .21s; }
@keyframes sube { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Ficha técnica bajo el titular */
.specs {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--linea);
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris);
  animation: sube .7s cubic-bezier(.2, .75, .25, 1) .28s both;
}
.specs b { color: var(--ambar); font-weight: 600; margin-left: 6px; }

/* ---------- Tarjetas: módulos con chaflán ---------- */
.card {
  position: relative;
  background:
    linear-gradient(160deg, rgba(120, 200, 255, .06), rgba(120, 200, 255, .01) 42%),
    rgba(9, 13, 21, .72);
  backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  border-top-right-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--corte)) 0, 100% var(--corte), 100% 100%, 0 100%);
  padding: 28px;
  box-shadow: var(--sombra);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--halo-fuerte) 40%, rgba(255, 46, 126, .35) 60%, transparent);
  opacity: .75;
}
.card::after {
  /* Bisel luminoso en la esquina cortada: la firma de la marca */
  content: '';
  position: absolute; top: 0; right: 0;
  width: calc(var(--corte) * 1.42); height: 1px;
  background: linear-gradient(90deg, var(--ambar), transparent);
  transform: rotate(45deg);
  transform-origin: right top;
  box-shadow: 0 0 10px var(--halo-fuerte);
}
.card:hover { border-color: var(--linea-fuerte); box-shadow: var(--sombra), 0 0 38px -14px var(--halo-fuerte); }
.card + .card { margin-top: 18px; }
.card h2, .card h3 { margin-top: 0; }
.card-table { padding: 0; overflow-x: auto; }
.card-table::after { display: none; }

.kpi { padding: 18px 20px; }
.kpi .eyebrow { margin-bottom: 2px; }
.kpi .pay-amount { font-size: 2.1rem; margin: 2px 0 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body);
  font-size: .92rem; font-weight: 600;
  letter-spacing: .01em;
  padding: 13px 22px;
  border: 1px solid var(--linea-fuerte);
  background: var(--n3);
  color: var(--texto);
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radio-sm);
  border-top-right-radius: 3px;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { background: #1B2534; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ambar), color-mix(in srgb, var(--ambar) 55%, var(--magenta)));
  border-color: transparent;
  color: var(--n0);
  font-weight: 700;
  box-shadow: 0 6px 26px -8px var(--halo-fuerte);
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%);
  transform: translateX(-130%);
}
.btn-primary:hover { box-shadow: 0 8px 36px -6px var(--halo-fuerte); transform: translateY(-1px); }
.btn-primary:hover::after { transform: translateX(130%); transition: transform .65s ease; }
.btn-ghost { background: transparent; border-color: var(--linea); color: var(--texto-2); }
.btn-ghost:hover { border-color: var(--linea-fuerte); color: var(--texto); background: rgba(120, 200, 255, .05); }
.btn-ok     { background: rgba(41, 242, 169, .1);  border-color: rgba(41, 242, 169, .45); color: var(--menta); }
.btn-ok:hover { background: rgba(41, 242, 169, .18); box-shadow: 0 0 22px -10px rgba(41, 242, 169, .7); }
.btn-danger { background: rgba(255, 77, 109, .1);  border-color: rgba(255, 77, 109, .45); color: var(--rojo); }
.btn-danger:hover { background: rgba(255, 77, 109, .18); }
.btn-warn   { background: rgba(255, 46, 126, .08); border-color: rgba(255, 46, 126, .4); color: #FF7BAB; }
.btn-warn:hover { background: rgba(255, 46, 126, .16); }
.btn-dark   { background: var(--hueco); }
.btn-sm     { padding: 8px 13px; font-size: .72rem; }
.btn-block  { display: flex; width: 100%; }
.file-btn   { margin: 0; cursor: pointer; }
.summary-btn { list-style: none; cursor: pointer; display: inline-flex; }
.summary-btn::-webkit-details-marker { display: none; }

/* ---------- Formularios: consola de entrada ---------- */
label {
  display: block;
  font-family: var(--body);
  font-size: .84rem; font-weight: 600;
  letter-spacing: .01em;
  color: var(--texto-2);
  margin: 18px 0 7px;
}
label b, label strong { color: var(--ambar); }
input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=file], input[type=color],
select, textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--texto);
  background: var(--hueco);
  border: 1px solid var(--linea);
  border-left: 2px solid var(--linea-fuerte);
  border-radius: var(--radio-sm);
  padding: 13px 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input::placeholder, textarea::placeholder { color: #46586E; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ambar);
  border-left-color: var(--ambar);
  box-shadow: 0 0 0 1px var(--ambar), 0 0 20px -6px var(--halo-fuerte);
}
textarea { min-height: 100px; resize: vertical; font-family: var(--body); }
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ambar) 50%),
    linear-gradient(135deg, var(--ambar) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
input[type=color] { padding: 4px; height: 46px; cursor: pointer; }
input[type=checkbox] { width: auto; accent-color: var(--ambar); transform: scale(1.15); margin-right: 6px; }

.up { text-transform: uppercase; }
.form-row { gap: 12px; align-items: end; }
.item-row { gap: 8px; margin-bottom: 8px; }
.w-money { width: 140px; flex: none; }
.error-msg { color: var(--rojo); font-size: .85rem; margin-top: 8px; }

/* ---------- Fichas de selección (servicio / horario) ---------- */
.service-grid, .slots {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-top: 8px;
}
.slots { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
.service-grid input, .slots input { position: absolute; opacity: 0; pointer-events: none; }
.service-grid label, .slots label {
  position: relative;
  margin: 0; text-align: center; cursor: pointer;
  padding: 14px 10px;
  font-family: var(--body);
  font-size: .88rem; font-weight: 600;
  letter-spacing: .01em;
  color: var(--texto-2);
  background: var(--hueco);
  border: 1px solid var(--linea);
  border-radius: var(--radio-sm);
  border-top-right-radius: 3px;
  transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.service-grid label:hover, .slots label:hover { border-color: var(--linea-fuerte); color: var(--texto); }
.service-grid label:has(input:checked), .slots label:has(input:checked),
.service-grid label.marcado,            .slots label.marcado {
  border-color: var(--ambar);
  color: var(--ambar);
  background: var(--halo);
  box-shadow: inset 0 0 22px -12px var(--ambar), 0 0 22px -10px var(--halo-fuerte);
  transform: translateY(-2px);
}
.service-grid label:has(input:checked)::after, .slots label:has(input:checked)::after,
.service-grid label.marcado::after,            .slots label.marcado::after {
  content: '';
  position: absolute; right: 10px; top: 10px;
  width: 5px; height: 9px;
  border: solid var(--ambar); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.service-grid label:has(input:focus-visible), .slots label:has(input:focus-visible) {
  outline: 2px solid var(--ambar); outline-offset: 2px;
}
.chip-static { cursor: default; }

/* ---------- Asistente de reserva ---------- */
.steps-bar { display: flex; gap: 8px; margin: 28px 0 32px; }
.steps-bar span {
  flex: 1; height: 3px;
  background: rgba(120, 200, 255, .12);
  border-radius: 3px;
  transition: background .3s ease, box-shadow .3s ease;
}
.steps-bar span.done { background: var(--ambar); box-shadow: 0 0 10px var(--halo-fuerte); }

.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.step-title h2 { margin: 0; }
.step-title .num {
  font-family: var(--mono); font-size: .82rem; font-weight: 600;
  color: var(--ambar);
  border: 1px solid var(--linea-fuerte);
  padding: 4px 9px;
  flex: none;
  border-radius: 7px; border-top-right-radius: 2px;
}
.step-title .opt { text-transform: none; font-size: .9rem; color: var(--gris); font-weight: 400; letter-spacing: 0; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wizard-step { animation: sube .35s ease both; }

/* ---------- Placa del código (elemento de firma) ---------- */
.code-box {
  display: inline-block;
  font-family: var(--mono); font-weight: 600;
  font-size: 1.55rem; letter-spacing: .18em;
  color: var(--ambar);
  padding: 18px 30px;
  background: var(--hueco);
  border: 1px solid var(--ambar);
  border-radius: var(--radio-sm);
  border-top-right-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--corte)) 0, 100% var(--corte), 100% 100%, 0 100%);
  text-shadow: 0 0 18px var(--halo-fuerte);
  box-shadow: inset 0 0 30px -16px var(--ambar), 0 0 30px -12px var(--halo-fuerte);
}
.code-box-sm { font-size: .84rem; letter-spacing: .05em; padding: 10px 14px; word-break: break-all; }
.track { font-family: var(--mono); letter-spacing: .1em; }

/* ---------- Línea de tiempo: circuito de proceso ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 32px; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--ambar), rgba(120, 200, 255, .1));
  box-shadow: 0 0 12px var(--halo-fuerte);
}
.timeline li { position: relative; padding: 0 0 22px; color: var(--texto-2); font-size: .95rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
  position: absolute; left: -32px; top: 4px;
  width: 16px; height: 16px;
  background: var(--n0);
  border: 2px solid rgba(120, 200, 255, .22);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);   /* rombo */
}
.timeline li.done { color: var(--texto); }
.timeline li.done .dot { border-color: var(--ambar); background: var(--ambar); box-shadow: 0 0 12px var(--halo-fuerte); }
.timeline li.current { color: var(--texto); font-weight: 600; }
.timeline li.current .dot {
  border-color: var(--ambar);
  background: var(--n0);
  box-shadow: 0 0 0 5px var(--halo), 0 0 24px var(--ambar);
  animation: pulso 2.2s ease-in-out infinite;
}
.timeline li.pending { color: var(--gris); }
@keyframes pulso {
  0%, 100% { box-shadow: 0 0 0 4px var(--halo), 0 0 18px var(--ambar); }
  50%      { box-shadow: 0 0 0 9px rgba(var(--acento-rgb), .05), 0 0 26px var(--ambar); }
}

/* ---------- Etiquetas de estado ---------- */
.status-chip, .badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--linea);
  background: var(--hueco);
  color: var(--texto-2);
  white-space: nowrap;
  border-radius: 999px;
}
.status-chip::before { content: ''; width: 7px; height: 7px; background: currentColor; flex: none;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.chip-espera,  .b-espera  { color: var(--hielo); border-color: rgba(127, 178, 255, .35); }
.chip-proceso, .b-proceso { color: var(--ambar); border-color: var(--linea-fuerte); }
.chip-ok,      .b-ok      { color: var(--menta); border-color: rgba(41, 242, 169, .4); }
.chip-cancel,  .b-cancel  { color: var(--rojo);  border-color: rgba(255, 77, 109, .4); }
.vivo-senal { margin-left: 8px; font-size: .62rem; }
.vivo-senal::before { animation: latido 1.7s ease-in-out infinite; }
@keyframes latido { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* ---------- Datos ---------- */
.data-list { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; margin: 0; }
.data-list dt {
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gris);
  padding: 12px 0; border-bottom: 1px solid var(--linea);
}
.data-list dd {
  margin: 0; padding: 12px 0; text-align: right;
  border-bottom: 1px solid var(--linea);
  color: var(--texto);
}
.data-list dt:last-of-type, .data-list dd:last-of-type { border-bottom: 0; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; white-space: nowrap;
  font-family: var(--mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ambar);
  padding: 15px 18px;
  border-bottom: 1px solid var(--linea-fuerte);
  background: var(--hueco);
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.table tr:hover td { background: rgba(var(--acento-rgb), .045); }
.table tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }
.pad-lg { padding: 34px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; }
.filters label { margin: 0 0 6px; }
.filters > div { min-width: 165px; }

/* ---------- Cotización y pago ---------- */
.quote-table { width: 100%; border-collapse: collapse; }
.quote-table td { padding: 12px 0; border-bottom: 1px solid var(--linea); }
.quote-table td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; }
.quote-table tr.total td {
  border-bottom: 0; border-top: 2px solid var(--ambar);
  padding-top: 18px;
  font-family: var(--display); font-size: 1.3rem; font-weight: 800;
  font-stretch: 112%; text-transform: uppercase;
}
.quote-table tr.total td:last-child {
  font-family: var(--mono); color: var(--ambar);
  text-shadow: 0 0 14px var(--halo-fuerte);
}
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.pay-amount {
  display: block;
  font-family: var(--mono); font-weight: 600;
  font-size: 2.1rem; letter-spacing: -.01em;
  color: var(--ambar);
  text-shadow: 0 0 20px var(--halo-fuerte);
  margin: 6px 0 4px;
}
.gateway-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Chat: canal de comunicaciones ---------- */
.chat-box { display: flex; flex-direction: column; gap: 14px; }
.chat-msgs {
  display: flex; flex-direction: column; gap: 14px;
  max-height: 430px; min-height: 190px;
  overflow-y: auto;
  padding: 6px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--linea-fuerte) transparent;
}
.chat-msgs::-webkit-scrollbar { width: 6px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--linea-fuerte); }
.msg { max-width: 80%; animation: sube .25s ease both; }
.msg .who {
  display: block;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gris);
  margin-bottom: 5px;
}
.msg .bubble {
  display: inline-block;
  background: var(--n2);
  border: 1px solid var(--linea);
  border-left: 2px solid var(--magenta);
  padding: 12px 16px;
  color: var(--texto);
  white-space: pre-wrap; word-break: break-word;
  border-radius: 14px 14px 14px 4px;
  text-align: left;
}
.msg .time { display: block; font-family: var(--mono); font-size: .64rem; color: var(--gris); margin-top: 5px; }
.msg.mine { margin-left: auto; text-align: right; }
.msg.mine .bubble {
  background: var(--halo);
  border-color: var(--linea-fuerte);
  border-left: 1px solid var(--linea-fuerte);
  border-right: 2px solid var(--ambar);
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 0 22px -12px var(--halo-fuerte);
}
.msg img.chat-photo {
  display: block; margin-top: 8px;
  max-width: 230px;
  border: 1px solid var(--linea-fuerte);
}
.chat-form { display: flex; gap: 10px; align-items: center; }
.chat-form input[type=text] { flex: 1; }

/* ---------- Fotos ---------- */
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.photo-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--linea);
  background: var(--hueco);
  border-radius: var(--radio-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.photo-grid img:hover { border-color: var(--ambar); transform: scale(1.02); }

/* ---------- Avisos: indicadores de consola ---------- */
.alert {
  position: relative;
  border: 1px solid var(--linea);
  border-left: 3px solid var(--gris);
  background: var(--hueco);
  padding: 15px 18px;
  margin: 16px 0;
  font-size: .92rem;
  color: var(--texto-2);
  border-radius: var(--radio-sm);
  border-top-right-radius: 3px;
}
.alert-error { border-left-color: var(--rojo);  color: #FFC2CE; }
.alert-ok    { border-left-color: var(--menta); color: #B4F5DE; }
.alert-info  { border-left-color: var(--hielo); color: #CBDFFF; }

/* Bloque recién actualizado por el tiempo real */
.destello { animation: destella 1.3s ease; }
@keyframes destella {
  0%   { box-shadow: 0 0 0 1px var(--ambar), 0 0 36px -8px var(--halo-fuerte); }
  100% { box-shadow: var(--sombra); }
}

/* ---------- Utilidades ---------- */
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.ai-base { align-items: baseline; }
.f1 { flex: 1; }
.minw { min-width: 220px; }
.narrow { max-width: 460px; }
.inline-form { display: inline-block; }
.mt-0 { margin-top: 0; }   .mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.aparecer { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.aparecer.visible { opacity: 1; transform: none; }

/* ---------- Pie ---------- */
.site-footer {
  border-top: 1px solid var(--linea);
  background: rgba(4, 6, 11, .8);
  padding: 28px 0;
  font-size: .8rem;
  color: var(--gris);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.foot-mark {
  font-family: var(--display); font-weight: 900; font-stretch: 122%;
  letter-spacing: .05em; color: var(--texto-2); text-transform: uppercase;
}
.foot-mark b { color: var(--ambar); }
.foot-services { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; }
.foot-note { margin-left: auto; }

/* ---------- Panel interno: misma bahía, más densidad ---------- */
.admin-body .card { padding: 22px; }
.admin-header { background: rgba(4, 6, 11, .96); }
.admin-header .logo b { color: var(--texto-2); text-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  :root { --corte: 10px; }
  .site-header .wrap { min-height: 58px; padding: 10px 18px; }
  .header-nav a { padding: 8px 10px; font-size: .82rem; }
  .card { padding: 20px; }
  .msg { max-width: 92%; }
  .data-list { grid-template-columns: 1fr; }
  .data-list dd { text-align: left; padding-top: 0; }
  .data-list dt { border-bottom: 0; padding-bottom: 2px; }
  .foot-note { margin-left: 0; }
  .quote-table tr.total td { font-size: 1.05rem; }
  .code-box { font-size: 1.2rem; padding: 14px 20px; letter-spacing: .12em; }
  .kpi .pay-amount { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .aparecer { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .btn, .chat-form, .vivo-senal { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border-color: #bbb; box-shadow: none; clip-path: none; }
  .pay-amount, .code-box, .quote-table tr.total td:last-child { color: #000; text-shadow: none; }
}

/* ---------- Detalles finos ---------- */
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--n0); }
body::-webkit-scrollbar-thumb {
  background: var(--n3);
  border-radius: 6px;
  border: 2px solid var(--n0);
}
body::-webkit-scrollbar-thumb:hover { background: var(--linea-fuerte); }

.table a { font-family: var(--mono); font-size: .82rem; }

/* Enfoque visible también en enlaces */
a:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; border-radius: 4px; }

/* Registro técnico (Herramientas) */
.log-box {
  margin: 0;
  max-height: 260px; overflow: auto;
  font-family: var(--mono); font-size: .74rem; line-height: 1.7;
  color: var(--texto-2);
  background: var(--hueco);
  border: 1px solid var(--linea);
  border-left: 2px solid var(--ambar);
  border-radius: var(--radio-sm);
  padding: 14px 16px;
  white-space: pre-wrap; word-break: break-all;
  scrollbar-width: thin; scrollbar-color: var(--linea-fuerte) transparent;
}

/* ---------- Filtros rápidos del panel ---------- */
.chips-rapidos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-filtro {
  font-size: .84rem; font-weight: 600;
  color: var(--texto-2);
  border: 1px solid var(--linea);
  border-radius: 999px;
  padding: 7px 16px;
  background: var(--hueco);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.chip-filtro:hover { color: var(--texto); border-color: var(--linea-fuerte); text-decoration: none; }
.chip-filtro.activo {
  color: var(--n0);
  background: var(--ambar);
  border-color: var(--ambar);
  box-shadow: 0 0 18px -8px var(--halo-fuerte);
}

/* ---------- Avance compacto (reemplaza la lista larga de etapas) ---------- */
.progreso { margin-top: 16px; }
.progreso-cabeza {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; margin-bottom: 8px;
}
.progreso-etapa {
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris);
}
.progreso-actual { font-size: 1.02rem; color: var(--ambar); text-shadow: 0 0 14px var(--halo); }
.progreso-riel {
  height: 8px; border-radius: 999px;
  background: var(--hueco);
  border: 1px solid var(--linea);
  overflow: hidden;
}
.progreso-lleno {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--ambar-hondo), var(--ambar));
  box-shadow: 0 0 14px var(--halo-fuerte);
  transition: width .6s cubic-bezier(.2, .75, .25, 1);
}
.etapas { margin-top: 10px; }
.etapas summary {
  cursor: pointer; list-style: none;
  font-size: .82rem; font-weight: 600; color: var(--texto-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.etapas summary::-webkit-details-marker { display: none; }
.etapas summary::after {
  content: ''; width: 7px; height: 7px;
  border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.etapas[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.etapas summary:hover { color: var(--ambar); }
.etapas-lista {
  margin: 10px 0 0; padding: 0;
  list-style: none;
  display: grid; gap: 6px 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  counter-reset: etapa;
}
.etapas-lista li {
  counter-increment: etapa;
  font-size: .82rem; color: var(--gris);
  display: flex; align-items: center; gap: 8px;
}
.etapas-lista li::before {
  content: counter(etapa);
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .64rem;
  border: 1px solid var(--linea);
  border-radius: 50%;
}
.etapas-lista li.done { color: var(--texto-2); }
.etapas-lista li.done::before { border-color: var(--ambar); color: var(--ambar); background: var(--halo); }
.etapas-lista li.current { color: var(--texto); font-weight: 600; }
.etapas-lista li.current::before {
  border-color: var(--ambar); background: var(--ambar); color: var(--n0);
  box-shadow: 0 0 12px var(--halo-fuerte);
}

/* ---------- Seguimiento apretado en pantallas chicas ---------- */
@media (max-width: 640px) {
  main { padding-bottom: 40px; }
  .wrap-sm { padding: 0 14px; }
  .wrap-sm .card { padding: 16px 15px; }
  .card + .card, .mt-2 { margin-top: 12px; }
  .h-lg { font-size: 1.25rem; }
  .data-list dt { padding: 7px 0 0; font-size: .62rem; }
  .data-list dd { padding: 2px 0 7px; font-size: .92rem; }
  .chat-msgs { max-height: 300px; min-height: 140px; }
  .pay-amount { font-size: 1.6rem; }
  .quote-table td { padding: 9px 0; font-size: .92rem; }
  .btn { padding: 12px 16px; }
  .status-chip { font-size: .6rem; padding: 4px 9px; }
  .progreso-actual { font-size: .95rem; }
  .alert { padding: 12px 14px; font-size: .87rem; }
}

/* ---------- Datos de la cita plegados en una sola línea ---------- */

/* ---------- Ficha de datos plegable en el seguimiento ---------- */
.datos summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--hueco);
  border: 1px solid var(--linea);
  border-radius: var(--radio-sm);
  transition: border-color .15s ease;
}
.datos summary::-webkit-details-marker { display: none; }
.datos summary:hover { border-color: var(--linea-fuerte); }
.datos[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.datos-resumen { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.datos-resumen .track { color: var(--ambar); font-weight: 600; letter-spacing: .12em; }
.datos-cita { font-size: .82rem; color: var(--texto-2); }
.datos-abrir {
  flex: none;
  font-size: .78rem; font-weight: 600; color: var(--texto-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.datos-abrir::after {
  content: ''; width: 7px; height: 7px;
  border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.datos[open] .datos-abrir::after { transform: rotate(-135deg) translateY(-1px); }
.datos[open] .datos-abrir { color: var(--ambar); }
.datos .data-list {
  border: 1px solid var(--linea); border-top: 0;
  border-radius: 0 0 var(--radio-sm) var(--radio-sm);
  padding: 4px 14px;
}

/* ---------- «Últimos trabajos» en la portada ---------- */
.galeria-seccion { margin-top: 30px; }
.galeria-trabajos {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  margin-top: 18px;
}
.trabajo {
  position: relative; margin: 0;
  border: 1px solid var(--linea);
  border-radius: var(--radio-sm);
  overflow: hidden;
  background: var(--hueco);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.trabajo img {
  display: block; width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .35s ease;
}
.trabajo:hover { border-color: var(--linea-fuerte); box-shadow: 0 0 26px -12px var(--halo-fuerte); }
.trabajo:hover img { transform: scale(1.04); }
.trabajo figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 11, .88) 55%);
  font-size: .86rem; color: var(--texto);
}
.trabajo figcaption span {
  font-family: var(--mono); font-size: .7rem; color: var(--ambar);
  border: 1px solid var(--linea-fuerte); border-radius: 999px;
  padding: 1px 8px; flex: none;
}
@media (max-width: 640px) {
  .galeria-trabajos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .trabajo figcaption { font-size: .74rem; padding: 18px 8px 7px; }
}

/* ---------- Fotos del panel con acciones ---------- */
.foto-item { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.foto-acciones { margin: 0; }
.foto-acciones .btn { width: 100%; }

/* =====================================================================
   TEMA CLARO — se activa con el botón de la cabecera (memoria por equipo)
   El neón de la marca se conserva; cambian superficies, líneas y texto.
   ===================================================================== */
[data-tema="claro"] {
  --n0: #EEF2F7;
  --n1: #FFFFFF;
  --n2: #F5F8FC;
  --n3: #E5EBF3;
  --hueco: #F0F4F9;
  --linea:        rgba(15, 55, 90, .14);
  --linea-fuerte: rgba(15, 55, 90, .30);
  --ambar-hondo:  #0090A8;
  --halo:         rgba(0, 165, 190, .12);
  --halo-fuerte:  rgba(0, 150, 175, .35);
  --texto:   #10222F;
  --texto-2: #45596B;
  --gris:    #6C7E8F;
  --sombra: 0 14px 40px rgba(20, 45, 70, .12), 0 0 0 1px rgba(15, 55, 90, .04);
}
[data-tema="claro"] body {
  background-image:
    radial-gradient(80% 55% at 18% -10%, var(--halo) 0%, transparent 55%),
    radial-gradient(55% 45% at 92% 8%, rgba(255, 46, 126, .05) 0%, transparent 58%),
    linear-gradient(rgba(15, 55, 90, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 55, 90, .035) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
}
[data-tema="claro"] .card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .75) 42%);
}
[data-tema="claro"] .site-header { background: rgba(255, 255, 255, .82); }
[data-tema="claro"] .site-header.compacta { background: rgba(255, 255, 255, .96); }
[data-tema="claro"] .site-footer { background: rgba(255, 255, 255, .7); }
[data-tema="claro"] .hero h1 { text-shadow: none; }
[data-tema="claro"] .btn-primary { color: #fff; }
[data-tema="claro"] .code-box { background: #fff; }
[data-tema="claro"] .msg.mine .bubble { background: rgba(0, 165, 190, .1); }
[data-tema="claro"] .trabajo figcaption {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .92) 55%);
  color: var(--texto);
}
[data-tema="claro"] input:focus, [data-tema="claro"] select:focus, [data-tema="claro"] textarea:focus {
  box-shadow: 0 0 0 1px var(--ambar-hondo), 0 0 14px -6px var(--halo-fuerte);
}

/* Botón del tema: sol/luna dibujados en CSS, sin imágenes */
.tema-btn {
  position: relative;
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: var(--hueco);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tema-btn:hover { border-color: var(--ambar); box-shadow: 0 0 16px -6px var(--halo-fuerte); }
.tema-btn::before {          /* luna (tema oscuro activo) */
  content: '';
  position: absolute; inset: 9px;
  border-radius: 50%;
  background: var(--ambar);
  clip-path: circle(58% at 32% 40%);
  box-shadow: 0 0 10px var(--halo-fuerte);
}
[data-tema="claro"] .tema-btn::before {   /* sol */
  clip-path: none;
  inset: 11px;
  box-shadow: 0 0 0 3px var(--hueco), 0 0 0 4px var(--ambar-hondo), 0 0 12px var(--halo-fuerte);
}

/* =====================================================================
   TÁCTIL — celulares y tablets: objetivos grandes y sin trampas de zoom
   ===================================================================== */
@media (pointer: coarse) {
  .btn { min-height: 46px; }
  .btn-sm { min-height: 40px; }
  .header-nav a, .chip-filtro { min-height: 40px; display: inline-flex; align-items: center; }
  .service-grid label, .slots label { min-height: 52px; display: flex; align-items: center; justify-content: center; }
  input[type=checkbox] { transform: scale(1.35); }
  .datos summary, .etapas summary { min-height: 44px; }
  .table td { padding: 16px 14px; }
  .trabajo:hover img { transform: none; }        /* nada de zoom fantasma al tocar */
}
@media (max-width: 900px) {
  /* iOS hace zoom si el campo tiene letra menor a 16px: se evita de raíz */
  input[type=text], input[type=tel], input[type=email], input[type=password],
  input[type=number], input[type=date], select, textarea { font-size: 16px; }
}

/* =====================================================================
   MAPA DE SUCURSALES
   ===================================================================== */
.mapa-sucursales { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 18px; }
.mapa-card { padding: 0; overflow: hidden; }
.mapa-card::after { display: none; }
.mapa-card iframe {
  display: block; width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  filter: saturate(.9);
}
.mapa-card .mapa-info { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mapa-card .mapa-info strong { font-size: .95rem; }
.mapa-card .mapa-info .hint { margin: 0; }

/* =====================================================================
   «CÓMO FUNCIONA» — didáctico en tres pasos
   ===================================================================== */
.pasos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 18px; }
.paso { position: relative; padding-left: 6px; }
.paso .paso-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  font-family: var(--mono); font-weight: 600; font-size: 1rem;
  color: var(--ambar);
  border: 1px solid var(--linea-fuerte);
  border-radius: 12px; border-top-right-radius: 3px;
  background: var(--halo);
  box-shadow: 0 0 16px -8px var(--halo-fuerte);
  margin-bottom: 10px;
}
.paso h3 { margin: 0 0 4px; text-transform: none; font-stretch: 100%; font-size: 1rem; }
.paso p { margin: 0; font-size: .9rem; color: var(--texto-2); }

/* ---------- Contraste del tema claro: señales legibles sobre blanco ---------- */
[data-tema="claro"] {
  --menta: #0A7A46;      /* verde oscuro: legible sobre panel claro */
  --rojo:  #B4123F;
  --hielo: #1D5FAE;
}
[data-tema="claro"] .alert-ok    { color: #0A5A36; background: rgba(10, 122, 70, .07); }
[data-tema="claro"] .alert-error { color: #8E0F32; background: rgba(180, 18, 63, .06); }
[data-tema="claro"] .alert-info  { color: #164B85; background: rgba(29, 95, 174, .07); }
[data-tema="claro"] .btn-ok      { background: rgba(10, 122, 70, .08); }
[data-tema="claro"] .btn-danger  { background: rgba(180, 18, 63, .07); }
[data-tema="claro"] .btn-warn    { color: #A3155B; }
[data-tema="claro"] .eyebrow     { color: var(--ambar-hondo); text-shadow: none; }
[data-tema="claro"] .progreso-actual { color: var(--ambar-hondo); text-shadow: none; }
[data-tema="claro"] .pay-amount  { color: var(--ambar-hondo); text-shadow: none; }
[data-tema="claro"] .code-box    { color: var(--ambar-hondo); text-shadow: none; }
[data-tema="claro"] .datos-resumen .track { color: var(--ambar-hondo); }
[data-tema="claro"] .logo b      { color: var(--ambar-hondo); text-shadow: none; }
[data-tema="claro"] label        { color: #33475A; }
[data-tema="claro"] .quote-table tr.total td:last-child { color: var(--ambar-hondo); text-shadow: none; }
[data-tema="claro"] .trabajo figcaption span { color: var(--ambar-hondo); }

/* ---------- Beneficios ---------- */
.beneficio h3 { text-transform: none; font-stretch: 100%; font-size: 1rem; margin-bottom: 4px; }
.beneficio h3::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; margin-right: 9px;
  background: var(--ambar);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 10px var(--halo-fuerte);
}

/* ---------- Preguntas frecuentes ---------- */
.faq details {
  border: 1px solid var(--linea);
  border-radius: var(--radio-sm);
  margin-top: 10px;
  background: var(--hueco);
  overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 14px 16px;
  font-weight: 600; font-size: .95rem;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--mono); font-size: 1.1rem; color: var(--ambar);
  flex: none; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: var(--linea-fuerte); }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--texto-2); font-size: .92rem; }

/* ---------- Cierre y documentos ---------- */
.cierre-cta { margin-top: 26px; }
.legal-doc h2 { font-size: 1.02rem; margin: 22px 0 8px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { color: var(--texto-2); font-size: .95rem; }
.foot-legal { display: flex; gap: 6px; flex-wrap: wrap; }
.foot-legal a { color: var(--texto-2); }
.foot-legal a:hover { color: var(--ambar); }

/* ---------- Hojas de reclamación en Herramientas ---------- */
.reclamo { border-top: 1px solid var(--linea); padding: 14px 0; }
.reclamo:first-of-type { border-top: 0; }
.reclamo-pendiente { border-left: 3px solid var(--rojo); padding-left: 12px; }

/* =====================================================================
   CONTRASTE REFORZADO DE AVISOS — legibles en oscuro y en claro
   ===================================================================== */
.alert { font-weight: 500; border-left-width: 4px; }
.alert-ok    { color: #7FF5C4; background: rgba(43, 255, 179, .10); }
.alert-error { color: #FFA3B5; background: rgba(255, 46, 126, .10); }
.alert-info  { color: #A9CCFF; background: rgba(102, 179, 255, .10); }
[data-tema="claro"] .alert-ok    { color: #075E37; background: rgba(10, 122, 70, .10);  border-color: #0A7A46; }
[data-tema="claro"] .alert-error { color: #7E0D2C; background: rgba(180, 18, 63, .09);  border-color: #B4123F; }
[data-tema="claro"] .alert-info  { color: #123F70; background: rgba(29, 95, 174, .10);  border-color: #1D5FAE; }
[data-tema="claro"] .muted   { color: #45596B; }
[data-tema="claro"] .hint    { color: #5A6E80; }

/* ---------- Semáforo del taller ---------- */
.semaforo-estado {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  background: var(--hueco);
  border: 1px solid var(--linea);
  border-radius: var(--radio-sm);
}
.semaforo {
  flex: none;
  display: flex; flex-direction: column; gap: 7px;
  padding: 9px 7px;
  background: var(--n0);
  border: 1px solid var(--linea-fuerte);
  border-radius: 10px;
}
.luz {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--n3);
  border: 1px solid var(--linea);
  opacity: .45;
  transition: all .3s ease;
}
.luz.on { opacity: 1; }
.luz-roja.on  { background: #FF3B5C; border-color: #FF3B5C; box-shadow: 0 0 12px rgba(255, 59, 92, .8); }
.luz-ambar.on { background: #FFB020; border-color: #FFB020; box-shadow: 0 0 12px rgba(255, 176, 32, .8); animation: latido-luz 1.6s ease-in-out infinite; }
.luz-verde.on { background: #22DD77; border-color: #22DD77; box-shadow: 0 0 12px rgba(34, 221, 119, .8); }
@keyframes latido-luz { 50% { box-shadow: 0 0 20px rgba(255, 176, 32, .95); } }
.semaforo-frase { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.5; }
[data-tema="claro"] .semaforo { background: #fff; }

/* ---------- Casilla legal de la reserva ---------- */
.acepta-legal {
  display: flex; align-items: flex-start; gap: 10px;
  text-align: left; font-size: .85rem; line-height: 1.5;
  margin: 14px 0 4px; padding: 12px 14px;
  white-space: normal;
}
.acepta-legal input { margin-top: 3px; flex: none; }
.acepta-legal a { color: var(--ambar); }
[data-tema="claro"] .acepta-legal a { color: var(--ambar-hondo); }
@keyframes sacudida { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.sacudir { animation: sacudida .4s ease; border-color: var(--rojo) !important; }

/* ---------- Retoques del index ordenado ---------- */
.seccion { margin-top: 30px; }
.seccion:first-of-type { margin-top: 0; }
.paso .paso-num svg { display: block; }
.hero-actions.centro { justify-content: center; }
.foot-redes { display: flex; gap: 12px; align-items: center; }
.foot-redes a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  color: var(--texto-2);
  border: 1px solid var(--linea);
  border-radius: 50%;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.foot-redes a:hover { color: var(--ambar); border-color: var(--ambar); box-shadow: 0 0 14px -5px var(--halo-fuerte); }
[data-tema="claro"] .foot-redes a:hover { color: var(--ambar-hondo); border-color: var(--ambar-hondo); }
@media (max-width: 640px) {
  .semaforo-frase { font-size: .92rem; }
  .seccion { margin-top: 22px; }
}

/* ---------- Pase QR del cliente ---------- */
.pase-qr {
  display: flex; gap: 18px; align-items: center;
  padding: 16px 18px;
  border: 1px dashed var(--linea-fuerte);
  border-radius: var(--radio-sm);
  background: var(--hueco);
}
.pase-info { min-width: 0; }
.pase-info p { font-size: .9rem; color: var(--texto-2); margin-top: 6px; }
.pase-codigo { display: inline-block; margin-top: 8px; font-weight: 600; letter-spacing: .12em; }
.pase-cuadro { flex: none; }
.pase-cuadro .qr {
  display: block;
  width: 148px; height: 148px;
  border-radius: 10px;
  box-shadow: 0 0 22px -8px var(--halo-fuerte);
}
@media (max-width: 560px) {
  .pase-qr { flex-direction: column-reverse; text-align: center; }
  .pase-cuadro .qr { width: 190px; height: 190px; }
}

/* ---------- reCAPTCHA dentro del formulario ---------- */
.g-recaptcha { display: flex; justify-content: center; }

/* =====================================================================
   TÁCTIL FINO — sin resaltados azules, sin doble-toque-zoom, con muescas
   ===================================================================== */
html { -webkit-tap-highlight-color: transparent; }
.btn, .chip-filtro, .header-nav a, .tema-btn, .faq summary, .datos summary,
.etapas summary, .chip-static, .foot-redes a { touch-action: manipulation; }
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.site-header { padding-top: env(safe-area-inset-top); }
@media (pointer: coarse) {
  .foot-redes a { width: 42px; height: 42px; }
  select { min-height: 46px; }
  .faq details p { font-size: .95rem; }
}

/* ---------- Selector de citas (acceso por celular) ---------- */
.cita-opcion {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--hueco);
  border: 1px solid var(--linea);
  border-radius: var(--radio-sm);
  cursor: pointer;
  text-align: left;
  font: inherit; color: var(--texto);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cita-opcion:hover { border-color: var(--ambar); box-shadow: 0 0 18px -8px var(--halo-fuerte); }
.cita-opcion-izq { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cita-opcion-izq .track { letter-spacing: .1em; }
.cita-opcion-izq span { font-size: .84rem; color: var(--texto-2); }
.cita-opcion .status-chip { flex: none; }
