/* ============================================================
   home-enhance.css — capa aditiva sobre main.css para llevar la
   home pública al mismo lenguaje "despiece técnico" que usan las
   6 páginas de servicio (despiece.css). No redefine layout, sólo
   agrega textura, acentos tipográficos monoespaciados y detalles
   tipo HUD/plano técnico. No toca ningún id/clase que use JS
   (carruseles, testimonios, antes-después, reserva).
   ============================================================ */

:root {
  --mono: 'JetBrains Mono', monospace;
}

/* Grilla de plano técnico detrás de todo el sitio (debajo del grano
   que ya agrega main.css en body::after). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(204,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,0,0,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  /* position:fixed → esta máscara es relativa al viewport, no a la página,
     así que se repite igual en cada scroll: visible en casi toda la
     ventana, atenuada sólo cerca de los bordes extremos. */
  mask-image: radial-gradient(ellipse 100% 95% at 50% 45%, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 95% at 50% 45%, #000 0%, #000 55%, transparent 100%);
}

/* Numeración automática de secciones, estilo "ficha técnica" —
   cuenta cada .section-header que aparece en el documento. */
body { counter-reset: hd-section; }
.section-header { counter-increment: hd-section; }
.section-eyebrow {
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '0' counter(hd-section) ' /';
  color: var(--gris-claro);
  font-weight: 600;
}
.reserva-content .section-eyebrow { justify-content: flex-start; }

/* ===== NAV: el menú con 8 items se encimaba entre 901-1180px,
   partiendo "Reservar Hora" en dos líneas dentro de su botón. ===== */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav-links { gap: 16px; }
  .nav-links li a { font-size: 13px; }
  .btn-nav-reserva, .btn-nav-login { padding: 8px 14px; white-space: nowrap; }
}

.reserva-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #E8A33D; color: #412402; font-family: var(--mono);
  font-weight: 700; font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 12px 20px; margin: 22px 0 16px;
  box-shadow: 0 10px 28px rgba(232,163,61,0.3);
}
.reserva-badge svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== HERO: marco HUD + ticket de diagnóstico + specs ===== */
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
}
.hero-frame { position: absolute; inset: 22px; z-index: 2; pointer-events: none; }
.hero-frame span {
  position: absolute; width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,0.35);
}
.hero-frame span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.hero-frame span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.hero-frame span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; }
.hero-frame span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; }

.hero-diag-tag {
  position: absolute; top: 96px; right: 24px; z-index: 3;
  display: none;
  background: var(--rojo); color: #fff;
  font-family: var(--mono); font-weight: 700;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 16px;
  box-shadow: 0 10px 30px rgba(204,0,0,0.35);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.hero-diag-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; margin-right: 6px; animation: hdBlink 1.6s ease-in-out infinite;
}
.hero-diag-tag b { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 1px; margin-top: 3px; }
@keyframes hdBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (min-width: 860px) { .hero-diag-tag { display: block; } }

.hero-badge-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rojo-claro); margin-right: 2px; animation: hdBlink 1.6s ease-in-out infinite;
}

.hero-specs {
  margin-top: 26px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.6);
}
.hero-specs i { width: 4px; height: 4px; background: rgba(255,255,255,0.3); display: inline-block; }

/* ===== TRUST MARQUEE: línea de ticket ===== */
.trust-marquee {
  border-top: 1px dashed rgba(255,255,255,0.35);
  border-bottom: 1px dashed rgba(255,255,255,0.35);
}
.trust-track span { font-family: var(--mono); letter-spacing: 1px; }

/* ===== NÚMEROS: tarjetas con esquinas HUD ===== */
.numeros-grid { position: relative; }
.numero-item {
  position: relative;
  padding: 22px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(13,13,13,0.3);
}
.numero-item::before,
.numero-item::after {
  content: ''; position: absolute; width: 13px; height: 13px;
  border: 1.5px solid var(--rojo-claro); opacity: 0.7;
}
.numero-item::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.numero-item::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.numero-label { font-family: var(--mono); letter-spacing: 1.5px; }

/* ===== PROCESO: números y línea en monoespaciada ===== */
.proceso-numero { font-family: var(--mono); -webkit-text-stroke: 1.2px var(--rojo-claro); }

/* ===== POR QUÉ ELEGIRNOS: etiqueta de ficha ===== */
.por-que-grid .por-que-item { counter-increment: hd-porque; }
.por-que-grid { counter-reset: hd-porque; }
.por-que-item h4::before {
  content: '0' counter(hd-porque) '.';
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rojo-claro);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

/* ===== TESTIMONIOS: tarjetas tipo ticket ===== */
.testimonio-card { position: relative; border-left: 2px solid var(--rojo-claro); }
.testimonio-badge { font-family: var(--mono); letter-spacing: 0.5px; }

/* ===== RESERVA: info-cards con esquina HUD ===== */
.info-card { position: relative; }
.info-card::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 11px; height: 11px; border: 1.5px solid var(--rojo-claro);
  border-right: none; border-bottom: none; opacity: 0.8;
}
.info-card h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; }

/* ===== FOOTER: acento de plano técnico ===== */
.footer { position: relative; }
.footer::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--rojo-claro) 0 10px, transparent 10px 20px);
  opacity: 0.5;
}
.footer-links h5, .footer-contact h5 { font-family: var(--mono); letter-spacing: 1.8px; }
.footer-panel-link { font-family: var(--mono); }

