/* =========================================================================
   FORMATEALA · HOJA DE ESTILOS ÚNICA
   Versión PHP (sin frameworks). Replica exacta del diseño del sitio React.
   Uso: <link rel="stylesheet" href="/assets/estilos.css">
   Orden: 1) Tokens  2) Base  3) Utilidades  4) Header  5) Botones
          6) Hero  7) Secciones  8) Servicios  9) Proceso  10) Contacto
          11) Footer  12) Formularios  13) Seguimiento / Ticket
          14) Admin  15) Responsive
   ========================================================================= */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* Superficies */
  --background: 45 20% 97%;          /* #F9F8F5  fondo general (papel cálido) */
  --foreground: 222 30% 8%;          /* #0E131B  texto principal (tinta) */
  --card: 0 0% 100%;                 /* #FFFFFF  tarjetas */
  --secondary: 220 14% 94%;          /* #EEF0F3  fondos suaves / cabeceras */
  --muted: 220 14% 94%;
  --muted-foreground: 220 9% 42%;    /* #616977  texto secundario */
  --border: 220 13% 88%;             /* #DDE0E5  bordes y separadores */

  /* Marca */
  --primary: 231 100% 58%;           /* #2A4CFF  azul eléctrico */
  --primary-foreground: 0 0% 100%;
  --accent: 231 100% 96%;            /* #EBEEFF  azul muy claro */

  /* Estado */
  --destructive: 0 72% 51%;          /* #DE2A2A  errores */
  --success: 160 84% 39%;            /* #10B981  entregado / ok */
  --success-text: 162 94% 24%;       /* #047857  texto sobre fondo verde suave */

  /* Tinta oscura de secciones (hero, proceso, footer) */
  --ink: #0C0F14;                    /* negro azulado de bloques oscuros */

  /* Radios */
  --radius: 0.75rem;                 /* 12px  base para inputs y tarjetas */
  --radius-lg: 1rem;                 /* 16px  tarjetas grandes */
  --radius-xl: 1.5rem;               /* 24px  bloques contacto */

  /* Tipografía */
  --font-heading: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 72rem;                /* 1152px  ancho máximo de contenido */
  --gutter: 1.25rem;                 /* 20px    margen lateral móvil */
  --gutter-md: 2rem;                 /* 32px    margen lateral escritorio */
}

/* ------------------------------------------------------------------ 2. BASE */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;          /* compensa el header fijo al saltar a #anclas */
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img,
svg,
video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }

::selection { background: hsl(var(--primary) / 0.2); }

/* ------------------------------------------------------------- 3. UTILIDADES */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Etiqueta monoespaciada en mayúsculas: "SERVICIOS", "TICKET", "AVANCE" */
.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
}

.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-balance { text-wrap: balance; }
.mono { font-family: var(--font-mono); }

/* Rejilla técnica sobre fondos oscuros */
.grid-ink {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Rejilla sobre fondos claros */
.grid-paper {
  background-image:
    linear-gradient(to right, hsl(var(--border) / 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border) / 0.55) 1px, transparent 1px);
  background-size: 64px 64px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 hsl(var(--primary) / 0.35); }
  70%  { box-shadow: 0 0 0 10px hsl(var(--primary) / 0); }
  100% { box-shadow: 0 0 0 0 hsl(var(--primary) / 0); }
}

.animate-rise {
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-120 { animation-delay: 120ms; }

/* Texto enriquecido (antecedentes de servicio, salida de Quill) */
.rich-text p { margin: 0 0 0.75rem; }
.rich-text ul,
.rich-text ol { margin: 0 0 0.75rem 1.15rem; padding: 0; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: 0.25rem; }
.rich-text h2,
.rich-text h3 { margin: 1rem 0 0.5rem; font-weight: 600; }
.rich-text a { color: hsl(var(--primary)); text-decoration: underline; }
.rich-text strong { font-weight: 600; }
.rich-text > *:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- 4. HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Clase que agrega site.js al bajar 12px */
.site-header.is-scrolled {
  background: hsl(var(--background) / 0.85);
  border-bottom-color: hsl(var(--border) / 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;                       /* 64px móvil */
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Menú principal (escritorio) */
.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active { color: hsl(var(--foreground)); }

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

/* Botón hamburguesa (móvil / tablet) */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

/* Panel desplegable del menú móvil */
.mobile-menu {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 0.5rem var(--gutter) 1.25rem;
}

.mobile-menu.is-open { display: block; }

.mobile-menu a.mobile-link {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.mobile-menu .btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* --------------------------------------------------------------- 5. BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn svg { width: 1rem; height: 1rem; }

/* Sobre fondo claro */
.btn-dark    { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-outline { border-color: hsl(var(--border)); background: transparent; color: hsl(var(--foreground)); }
.btn-outline:hover { border-color: hsl(var(--foreground)); }

/* Sobre fondo oscuro */
.btn-light   { background: #fff; color: var(--ink); }
.btn-ghost-dark {
  border-color: rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  padding: 0.4rem 0.875rem;
}
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

/* Tamaño grande para el buscador de ticket */
.btn-lg { height: 3rem; padding-inline: 1.75rem; border-radius: 0.75rem; }

/* ----------------------------------------------------------------- 6. HERO */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-block: 4rem 5rem;
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
}

/* Halos azules difusos */
.hero__glow-a,
.hero__glow-b {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
}
.hero__glow-a {
  top: 0; left: -10rem;
  width: 420px; height: 420px;
  background: hsl(var(--primary) / 0.25);
}
.hero__glow-b {
  right: -6rem; bottom: 0;
  width: 360px; height: 360px;
  background: hsl(var(--primary) / 0.1);
  filter: blur(100px);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 3.5rem;
}

/* Píldora superior: punto pulsante + "Taller técnico · Constitución" */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.375rem 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.chip__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: hsl(var(--primary));
  animation: pulse-ring 2.4s ease-out infinite;
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
}

.hero h1 .dim { color: rgba(255, 255, 255, 0.4); }

.hero__lead {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.hero__search { margin-top: 2rem; }

.hero__search .label-mono { display: block; margin-bottom: 0.75rem; color: rgba(255, 255, 255, 0.4); }

.hero__badges {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.hero__badges span { display: inline-flex; align-items: center; gap: 0.375rem; }
.hero__badges svg { width: 1rem; height: 1rem; color: hsl(var(--primary)); }

/* Tarjeta de ticket flotante dentro del hero */
.hero__frame {
  position: relative;
  padding: 1rem;
}

.hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.75rem;
  pointer-events: none;
}

.ticket-preview {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
}

.ticket-preview__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ticket-preview__code {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: #fff;
}

.ticket-preview .label-mono { color: rgba(255, 255, 255, 0.4); }

/* Filas de especificaciones dentro de la tarjeta oscura */
.spec-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.spec-row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-row svg { width: 1rem; height: 1rem; flex: none; color: rgba(255, 255, 255, 0.35); }
.spec-row__label { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); }
.spec-row__value {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

/* Barra de avance de 3 tramos */
.progress {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.progress span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: hsl(var(--border));
}

.progress span.is-done { background: hsl(var(--primary)); }

/* Variante sobre fondo oscuro */
.progress--dark span { background: rgba(255, 255, 255, 0.15); }
.progress--dark span.is-done { background: hsl(var(--primary)); }

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
}

.progress--dark + .progress-labels { color: rgba(255, 255, 255, 0.35); }

.hero__note {
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
}

.hero__note p + p {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------- 7. SECCIONES */
.section { padding-block: 5rem; }
.section--tight { padding-block: 3.5rem; }
.section--dark { background: var(--ink); color: #fff; }
.section--bordered { border-top: 1px solid hsl(var(--border)); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-head h2 {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.15;
}

.section-head__aside {
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.section--dark .section-head__aside,
.section--dark p { color: rgba(255, 255, 255, 0.55); }

/* ------------------------------------------------------------ 8. SERVICIOS */
.services-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1px;                          /* las líneas internas son el borde de la rejilla */
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--border));
}

.service {
  background: hsl(var(--card));
  padding: 1.75rem;
  transition: background 0.2s ease;
}

.service:hover { background: hsl(var(--secondary) / 0.5); }

.service__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.service__code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.6);
}

.service__price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.service h3 {
  margin-top: 1.5rem;
  max-width: 18rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.service p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.service__cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--primary));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service:hover .service__cta { opacity: 1; }
.service__cta svg { width: 0.875rem; height: 0.875rem; }

/* Franja de condiciones: borde punteado */
.extras {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px dashed hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card) / 0.6);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.extras span { display: flex; align-items: center; gap: 0.5rem; }

.extras span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 999px;
  background: hsl(var(--primary));
  flex: none;
}

/* -------------------------------------------------------------- 9. PROCESO */
.steps-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
}

.step {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

/* Segmento azul que marca el inicio de cada paso */
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: hsl(var(--primary));
}

.step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step__head svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); }

.step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

.step h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; }

.step p {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.claims {
  margin-top: 4rem;
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
}

.claims strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.claims span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

/* ------------------------------------------------------------- 10. CONTACTO */
.contact {
  display: grid;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  background: hsl(var(--card));
}

.contact__body { padding: 2rem; }

.contact h2 {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.15;
}

.contact__lead {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.contact__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact__actions .btn { padding: 0.75rem 1.25rem; }

.contact__data {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 2rem;
  font-size: 0.875rem;
}

.contact__data-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact__data-item svg { width: 1rem; height: 1rem; margin-top: 2px; flex: none; color: hsl(var(--primary)); }
.contact__data-item small {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.contact__data-item a { font-weight: 500; word-break: break-word; }
.contact__data-item a:hover { color: hsl(var(--primary)); }

/* Panel derecho oscuro con horarios */
.contact__aside {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 2rem;
}

.contact__aside .grid-ink {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
}

.contact__aside > * { position: relative; }
.contact__aside .label-mono { color: rgba(255, 255, 255, 0.4); }

.hours { margin-top: 1.25rem; display: grid; gap: 1rem; font-size: 0.875rem; }

.hours li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

.hours li span:first-child { color: rgba(255, 255, 255, 0.55); }
.hours li span:last-child { font-family: var(--font-mono); font-size: 0.75rem; color: #fff; }

.contact__card {
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem;
}

.contact__card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact__card p {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.contact__card a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--primary));
}

.contact__card a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- 11. FOOTER */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 3.5rem;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer .brand__mark { background: #fff; color: var(--ink); }
.site-footer .brand__name { color: #fff; }

.site-footer__about {
  margin-top: 1rem;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.75;
}

.site-footer__access { margin-top: 1.5rem; }

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.site-footer ul.contact-list { gap: 0.75rem; }

.site-footer ul.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.site-footer ul.contact-list svg {
  width: 1rem; height: 1rem;
  margin-top: 2px;
  flex: none;
  color: hsl(var(--primary));
}

.site-footer a:hover { color: #fff; }

.site-footer__bottom {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__bottom .mono { font-family: var(--font-mono); }

/* ----------------------------------------------------------- 12. FORMULARIOS */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 36rem;
}

.search-form__field { position: relative; flex: 1; }

.search-form__field svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

.input {
  width: 100%;
  height: 3rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
  padding: 0 1rem 0 2.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.input::placeholder { color: hsl(var(--muted-foreground) / 0.7); }
.input:focus { border-color: hsl(var(--primary)); }

/* Variante dentro del hero oscuro */
.search-form--dark .input {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.search-form--dark .input::placeholder { color: rgba(255, 255, 255, 0.35); }
.search-form--dark .input:focus { border-color: hsl(var(--primary)); }
.search-form--dark .search-form__field svg { color: rgba(255, 255, 255, 0.4); }

/* Campos de formularios del panel (texto, correo, select, textarea) */
.field { display: grid; gap: 0.375rem; }

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: hsl(var(--muted-foreground));
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: 0.625rem;
  background: hsl(var(--card));
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

/* Avisos */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.alert svg { width: 1rem; height: 1rem; margin-top: 2px; flex: none; }

.alert--error {
  border-color: hsl(var(--destructive) / 0.25);
  background: hsl(var(--destructive) / 0.05);
  color: hsl(var(--destructive));
}

.alert--ok {
  border-color: hsl(var(--success) / 0.3);
  background: hsl(var(--success) / 0.07);
  color: var(--success-text);
}

/* Spinner de carga */
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------- 13. SEGUIMIENTO / TICKET */
.page-head { padding-block: 3.5rem 0; }

.page-head h1 {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.15;
}

.page-head p {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.empty-state {
  margin-top: 2.5rem;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--card) / 0.6);
  padding: 2.5rem;
  text-align: center;
}

.empty-state h3 { font-size: 1.125rem; font-weight: 500; }

.empty-state p {
  margin: 0.5rem auto 0;
  max-width: 22rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Tarjeta de resultado del ticket */
.ticket-card {
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--card));
}

.ticket-card__head {
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.4);
  padding: 1.5rem;
}

.ticket-card__title {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-card__code {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ticket-card__meta {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Insignia de estado (píldora con punto) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.status-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.status-badge--done {
  background: hsl(var(--success) / 0.12);
  color: var(--success-text);
}

/* Igual pero sobre fondo oscuro (hero) */
.status-badge--dark {
  border: 1px solid hsl(var(--primary) / 0.3);
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  font-size: 11px;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
}

.ticket-card__body {
  display: grid;
  gap: 1px;
  background: hsl(var(--border));
}

.ticket-card__panel { background: hsl(var(--card)); padding: 1.5rem; }

.detail-list { margin-top: 1rem; display: grid; gap: 0.625rem; }

.detail-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  padding-bottom: 0.625rem;
}

.detail-row:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-row svg { width: 1rem; height: 1rem; flex: none; color: hsl(var(--muted-foreground) / 0.6); }
.detail-row svg.is-accent { color: hsl(var(--primary)); }
.detail-row__label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.detail-row__value {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: right;
}

/* Puntuación estética 1–5 */
.score { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.5rem; }
.score span.seg { flex: 1; height: 6px; border-radius: 999px; background: hsl(var(--border)); }
.score span.seg.is-on { background: hsl(var(--primary)); }
.score b { margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; }

.score-box {
  margin-top: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--secondary) / 0.4);
  padding: 1rem;
}

/* Galería de fotos del proceso */
.gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--secondary) / 0.4);
}

.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery figure:hover img { transform: scale(1.05); }

.gallery figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
}

/* Lista de "qué verás al consultar" */
.checklist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.checklist li svg {
  width: 1rem; height: 1rem;
  margin-top: 2px;
  flex: none;
  color: hsl(var(--primary));
}

/* ----------------------------------------------------------- 14. RESPONSIVE */
@media (min-width: 640px) {
  .search-form { flex-direction: row; }
  .hero__inner { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .site-header__inner { height: 5rem; }
  .nav { display: flex; }
  .header-actions { display: flex; }
  .nav-toggle { display: none; }
  
  .hero { padding-block: 6rem 7rem; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero h1 { font-size: 3.75rem; }
  
  .section { padding-block: 7rem; }
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  
  .services-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  
  .contact { grid-template-columns: 1fr 1fr; }
  
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1280px) {
  /* El contenido ya está centrado en 1152px por .container */
}

@media (prefers-reduced-motion: reduce) {
  .animate-rise { animation: none; }
  .chip__dot { animation: none; }
  .spinner { animation: none; }
}
