/* =============================================================================
   JALAPEÑOS 2026 — COMPONENTES REUTILIZABLES
   Biblioteca completa de componentes UI del sistema de diseño.
   Cada componente es standalone — no depende de otros componentes.
   ============================================================================= */


/* =============================================================================
   1. BOTONES
   Táctil: -translate-y-[1px] en active. Sin outer glow.
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  white-space: nowrap;
  border: none;
  /* Táctil feedback — simular presión física */
  transform: translateY(0);
}

.btn:active {
  transform: translateY(1px);
}

/* Botón primario — amarillo, texto negro */
.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-bg);
}

/* Botón ghost — transparente, borde blanco → borde amarillo en hover */
.btn--ghost {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Botón dark — negro, texto blanco (para secciones amarillas) */
.btn--dark {
  background-color: var(--color-bg);
  color: var(--color-white);
  border: none;
}

.btn--dark:hover {
  background-color: #1a1a1a;
  color: var(--color-white);
}

/* Tamaño grande — para CTA hero */
.btn--lg {
  font-size: var(--text-body);
  padding: 18px 36px;
  letter-spacing: var(--tracking-wide);
}

/* Tamaño pequeño — para nav */
.btn--sm {
  font-size: 10px;
  padding: 10px 20px;
  letter-spacing: var(--tracking-widest);
}

/* Flecha inline en botón — el arrow es parte del texto */
.btn__arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
  font-style: normal;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Grupo de botones */
.btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .btn--lg {
    padding: 16px 20px;
    font-size: 14px;
    letter-spacing: 0.04em;
  }
}


/* =============================================================================
   2. SECTION LABEL
   Estilo [ 01 // CORE ] — etiqueta de sección numerada
   ============================================================================= */

.section-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gray-400);
  line-height: 1;
  margin-bottom: clamp(16px, 2.5vw, 32px);
}

/* Variante con brackets — [ 01 // CORE ] */
.section-label::before { content: '[ '; }
.section-label::after  { content: ' ]'; }

/* Variante sin brackets — usar .section-label--plain */
.section-label--plain::before,
.section-label--plain::after { content: ''; }

/* Section tag — variante simple sin brackets, Barlow Condensed */
.section-tag {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: var(--section-gap-sm);
}
.section-tag::before { content: '[ '; }
.section-tag::after  { content: ' ]'; }


/* =============================================================================
   2B. HEADLINE GLOBAL — Barlow Condensed line-height y letter-spacing
   Aplica a todos los titulares del sitio. Las reglas más específicas
   por componente sobreescriben donde sea necesario.
   ============================================================================= */

h1, h2,
.hero-headline, .hero-title,
.section-headline, .display-title,
[class*="headline"], [class*="display"] {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 0.95;
  letter-spacing: -0.02em;
}


/* =============================================================================
   3. CARDS
   Doble estructura (outer shell + inner) según high-end-visual-design skill.
   Hover: borde amarillo + sutil lift.
   ============================================================================= */

/* Card base */
.card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--pad-card);
  transition:
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Card con accent top border */
.card--accent-top {
  border-top: 2px solid var(--color-accent);
}

/* Card para servicios — accent line izquierda */
.card--service {
  border-left: 2px solid var(--color-accent);
  border-top: 1px solid var(--color-border-subtle);
  border-right: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--pad-card);
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out);
}

.card--service:hover {
  border-left-color: var(--color-accent);
  background-color: var(--color-bg-hover);
  transform: translateY(-3px);
}

/* Card de proceso / paso numerado */
.card--step {
  background-color: transparent;
  border-top: 1px solid var(--color-border-subtle);
  border-radius: 0;
  padding: clamp(24px, 3vw, 40px) 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}

.card--step:first-child {
  border-top: none;
}

.card--step:hover {
  transform: none;
  border-color: var(--color-border-subtle);
  box-shadow: none;
}

/* Card métrica — stat destacado con número grande */
.card--metric {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Número del paso */
.card__step-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: var(--weight-black);
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.4;
}

/* Título de la card */
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin-bottom: 8px;
}

/* Descripción de la card */
.card__body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-gray-400);
  line-height: var(--leading-relaxed);
}

/* Lista dentro de card */
.card__list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card__list-item {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-gray-400);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__list-item::before {
  content: '—';
  color: var(--color-accent);
  font-size: 10px;
}

/* CTA link de card */
.card__link {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--duration-fast) var(--ease-out);
}

.card:hover .card__link {
  gap: 10px;
}

/* Icono de card — SVG inline */
.card__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* =============================================================================
   4. PROOF BAR — Métricas horizontales
   Fondo #0F0F0F, 4 métricas con separadores grises
   ============================================================================= */

.proof-bar {
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: clamp(24px, 4vw, 48px) 0;
}

.proof-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.proof-bar__item {
  padding: 0 clamp(16px, 3vw, 40px);
  border-right: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proof-bar__item:first-child {
  padding-left: 0;
}

.proof-bar__item:last-child {
  border-right: none;
}

.proof-bar__number {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-accent);
}

.proof-bar__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #555555;
  word-break: break-word;
  overflow-wrap: break-word;
}

.proof-bar__footnote {
  margin-top: clamp(12px, 2vw, 20px);
  text-align: center;
  font-size: var(--text-label);
  color: var(--color-gray-600);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .proof-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: var(--color-border-subtle);
  }

  .proof-bar__item {
    background-color: var(--color-bg-card);
    padding: 20px 16px;
    border-right: none;
  }

  /* Restaurar padding del primer ítem — el 0 es solo para desktop */
  .proof-bar__item:first-child {
    padding-left: 16px;
  }
}

@media (max-width: 400px) {
  .proof-bar__inner {
    grid-template-columns: 1fr;
  }
}


/* =============================================================================
   5. DISPLAY MÉTRICA ENORME
   Para las garantías: 90 / 60 días
   ============================================================================= */

.metric-display {
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.metric-display__number {
  font-family: var(--font-display);
  font-size: var(--text-stat);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--color-accent);
}

.metric-display__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-display__title {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-white);
}

.metric-display__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-small);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gray-400);
}

/* Stack vertical de dos métricas */
.metric-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.metric-stack .metric-display {
  padding: var(--section-gap-md) 0;
}

.metric-stack .metric-display:first-child {
  border-bottom: 0.5px solid #1A1A1A;
  padding-top: 0;
}


/* =============================================================================
   6. TABLA DE RESULTADOS
   Columnas: # / CATEGORÍA / CLIENTE / KPI / RESULTADO
   ============================================================================= */

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table thead {
  border-bottom: 1px solid var(--color-border-subtle);
}

.results-table th {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gray-400);
  text-align: left;
  padding: 12px 16px 12px 0;
}

.results-table th:last-child {
  text-align: right;
  padding-right: 0;
}

.results-table tbody tr {
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.results-table tbody tr:hover {
  background-color: var(--color-bg-hover);
}

.results-table tbody tr:last-child {
  border-bottom: none;
}

.results-table td {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-gray-400);
  padding: 20px 16px 20px 0;
  vertical-align: middle;
}

.results-table td:last-child {
  text-align: right;
  padding-right: 0;
}

/* Número de fila */
.results-table__index {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-gray-600);
  width: 40px;
}

/* KPI en amarillo */
.results-table__kpi {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  letter-spacing: var(--tracking-tight);
  color: var(--color-accent);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Tag de categoría */
.results-table__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gray-400);
  background-color: var(--color-bg-hover);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

/* Nombre del cliente */
.results-table__client {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
}

/* Enlace "Ver todos" */
.results-table__cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Responsive — tabla scrollable en mobile */
.results-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .results-table th,
  .results-table td {
    padding: 14px 12px 14px 0;
    font-size: var(--text-small);
  }
}


/* =============================================================================
   7. NAV — Navegación principal
   Sticky, negro con blur en scroll, mobile hamburger
   ============================================================================= */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  transition:
    background-color var(--duration-base) var(--ease-out),
    backdrop-filter var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

/* Estado scrolled — blur + fondo semitransparente */
.site-nav.is-scrolled {
  background-color: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border-subtle);
}

/* Logo */
.site-nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-nav__logo img {
  height: 37px;
  width: auto;
  display: block;
}

@media (max-width: 1024px) {
  .site-nav__logo img {
    height: 32px;
  }
}

/* Links de navegación — centro */
.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
}

.site-nav__link {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-gray-300);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--duration-base) var(--ease-out);
}

.site-nav__link:hover {
  color: var(--color-white);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  width: 100%;
}

.site-nav__link.is-active {
  color: var(--color-white);
}

/* CTA en nav */
.site-nav__cta {
  flex-shrink: 0;
}

/* --- DROPDOWN DE SERVICIOS --- */
.site-nav__item--dropdown {
  position: relative;
}

.site-nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  font-size: 10px;
  color: #A0A0A0;
  transition: transform 200ms var(--ease-out);
}

.site-nav__item--dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Puente invisible entre trigger y dropdown — evita que el
   mouse "abandone" el hover al cruzar el gap de 8px */
.site-nav__item--dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px; /* cubre el gap + margen extra */
  background: transparent;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #0F0F0F;
  border: 1px solid #222222;
  border-radius: 0 0 6px 6px;
  min-width: 180px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 150ms var(--ease-out),
              transform 150ms var(--ease-out),
              visibility 150ms;
  z-index: 200;
}

.site-nav__item--dropdown:hover .site-nav__dropdown,
.site-nav__item--dropdown:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.site-nav__dropdown li {
  margin: 0;
  padding: 0;
}

.site-nav__dropdown a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: #A0A0A0;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 100ms var(--ease-out), background 100ms var(--ease-out);
}

.site-nav__dropdown a:hover {
  color: var(--color-accent);
  background: #1A1A1A;
}

/* Hamburger button — mobile */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.site-nav__hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-white);
  transition:
    transform var(--duration-base) var(--ease-out),
    opacity var(--duration-base) var(--ease-out);
  transform-origin: center;
}

/* Hamburger → X morph */
.site-nav__hamburger.is-open .site-nav__hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-nav__hamburger.is-open .site-nav__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-nav__hamburger.is-open .site-nav__hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.site-nav__mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background-color: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px var(--gutter) var(--gutter);
  /* Oculto por defecto */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--duration-base) var(--ease-out),
    visibility var(--duration-base) var(--ease-out);
}

.site-nav__mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Botón cerrar — esquina superior derecha del overlay */
.site-nav__mobile-close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gray-600);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  padding: 8px 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.site-nav__mobile-close:hover {
  color: var(--color-accent);
}

/* Links en mobile menu — stagger reveal via data-index */
.site-nav__mobile-menu .site-nav__links {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.site-nav__mobile-menu .site-nav__link {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 56px);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  color: var(--color-gray-400);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.site-nav__mobile-menu.is-open .site-nav__link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 50ms; }
.site-nav__mobile-menu.is-open .site-nav__link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
.site-nav__mobile-menu.is-open .site-nav__link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 150ms; }
.site-nav__mobile-menu.is-open .site-nav__link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 200ms; }
.site-nav__mobile-menu.is-open .site-nav__link:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 250ms; }
.site-nav__mobile-menu.is-open .site-nav__link:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 300ms; }
.site-nav__mobile-menu.is-open .site-nav__link:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 350ms; }

.site-nav__mobile-menu .site-nav__link:hover {
  color: var(--color-white);
}

.site-nav__mobile-menu .btn {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.site-nav__mobile-menu.is-open .btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 300ms;
}

/* Mostrar hamburger en mobile, ocultar links del nav desktop */
@media (max-width: 1024px) {
  .site-nav > .site-nav__links,
  .site-nav__cta {
    display: none;
  }
  .site-nav__hamburger {
    display: flex;
  }
  /* El .site-nav__links dentro del overlay mobile siempre visible cuando is-open */
  .site-nav__mobile-menu .site-nav__links {
    display: flex;
  }
}


/* =============================================================================
   8. FOOTER — 3 filas: nav | brand+meta | copyright+social
   ============================================================================= */

.site-footer {
  background: #0A0A0A;
  border-top: 1px solid #1E1E1E;
  padding: 56px 0 32px;
}

.site-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── FILA 1: navegación centrada ── */

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1E1E1E;
  margin-bottom: 48px;
  width: 100%;
}

.site-footer__nav-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555555;
  text-decoration: none;
  transition: color 150ms var(--ease-out);
}
.site-footer__nav-link:hover { color: var(--color-accent); }

/* ── FILA 2: Logo + separador + badge (lado a lado) ── */

.site-footer__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}

.site-footer__logo {
  display: flex;
  align-items: center;
}

/* Logo Jalapeños en footer — cuadrado, alineado al límite interior del badge */
.site-footer__logo img {
  height: 72px;
  width: auto;
  display: block;
}

/* Separador vertical entre logo y badge */
.site-footer__brand-divider {
  width: 1px;
  height: 60px;
  background: #222222;
  flex-shrink: 0;
}

/* Google Partners badge */
.google-partners-badge {
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 200ms var(--ease-out);
}
.google-partners-badge:hover { opacity: 1; }

/* Badge Google Partner en footer */
.google-partners-img {
  height: 80px;
  width: auto;
  display: block;
}

.google-partners-img--sm {
  height: 32px;
}

.google-partners-fallback {
  font-size: 9px;
  color: #444444;
  border: 1px solid #333333;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  letter-spacing: 0.05em;
}

/* ── META: tagline + email (bajo la marca) ── */

.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
}

.site-footer__tagline {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #333333;
}

.site-footer__email {
  font-size: 12px;
  color: #444444;
  text-decoration: none;
  transition: color 150ms var(--ease-out);
}
.site-footer__email:hover { color: var(--color-accent); }

/* ── FILA 3: copyright izq | social der — AL FINAL ── */

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid #1E1E1E;
  gap: 24px;
}

.site-footer__copy {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333333;
}

.site-footer__social {
  display: flex;
  gap: 20px;
}

.site-footer__social-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444444;
  text-decoration: none;
  transition: color 150ms var(--ease-out);
}
.site-footer__social-link:hover { color: var(--color-accent); }

/* ── Responsive ── */

@media (max-width: 768px) {
  .site-footer__brand {
    flex-direction: row;
    gap: 24px;
  }

  .site-footer__brand-divider {
    width: 1px;
    height: 48px;
  }

  .site-footer__logo img {
    height: 44px;
  }

  .google-partners-img {
    height: 64px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .site-footer__nav { gap: 8px 20px; }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 40px 0 24px;
  }

  .site-footer__nav {
    gap: 8px 16px;
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
}


/* =============================================================================
   9. SECCIÓN HERO — estructura de layout
   ============================================================================= */

.hero {
  min-height: 100dvh;  /* NUNCA h-screen — iOS Safari */
  display: flex;
  align-items: center;
  padding-top: 64px; /* altura del nav fijo */
  padding-bottom: clamp(60px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: var(--z-base);
  width: 100%;
}

/* Headline hero con palabra en amarillo */
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  color: var(--color-white);
  max-width: 900px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.hero__subhead {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-400);
  max-width: 52ch;
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* Roas counter grande */
.hero__counter {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.hero__counter-number {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: var(--weight-black);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-accent);
}

.hero__counter-label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-top: 6px;
}


/* =============================================================================
   10. PAIN POINTS — lista de problemas numerados
   ============================================================================= */

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pain-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: clamp(20px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: padding-left var(--duration-base) var(--ease-out);
}

.pain-item:first-child {
  border-top: 1px solid var(--color-border-subtle);
}

.pain-item__number {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gray-600);
  padding-top: 4px;
}

.pain-item__text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  color: var(--color-gray-400);
  transition: color var(--duration-base) var(--ease-out);
}

/* En scroll reveal — el texto va de gris a blanco */
.pain-item.is-visible .pain-item__text {
  color: var(--color-white);
}


/* =============================================================================
   11. DIFERENCIADORES — grid 4 columnas
   ============================================================================= */

.differentiators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.differentiator {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--color-border-subtle);
  transition: background-color var(--duration-base) var(--ease-out);
}

.differentiator:last-child {
  border-right: none;
}

.differentiator:hover {
  background-color: var(--color-bg-hover);
}

.differentiator__icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.differentiator__title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
  margin-bottom: 8px;
}

.differentiator__body {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-gray-400);
  line-height: var(--leading-relaxed);
}

@media (max-width: 1024px) {
  .differentiators {
    grid-template-columns: repeat(2, 1fr);
  }
  .differentiator:nth-child(2) {
    border-right: none;
  }
  .differentiator:nth-child(1),
  .differentiator:nth-child(2) {
    border-bottom: 1px solid var(--color-border-subtle);
  }
}

@media (max-width: 640px) {
  .differentiators {
    grid-template-columns: 1fr;
  }
  .differentiator {
    border-right: none;
    border-bottom: 1px solid var(--color-border-subtle);
  }
  .differentiator:last-child {
    border-bottom: none;
  }
}


/* =============================================================================
   12. BADGES / TAGS
   ============================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

.badge--accent {
  background-color: rgba(var(--color-accent-rgb), 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

.badge--neutral {
  background-color: var(--color-bg-hover);
  color: var(--color-gray-400);
  border: 1px solid var(--color-border-subtle);
}

.badge--dot::before {
  content: '';
  width: 5px;
  height: 5px;
  background-color: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}


/* =============================================================================
   13. FORMULARIO DE CONTACTO
   ============================================================================= */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-gray-400);
}

.form-input,
.form-textarea,
.form-select {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-white);
  width: 100%;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-600);
}

.form-input:hover,
.form-textarea:hover {
  border-color: var(--color-gray-400);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent);
  background-color: var(--color-bg-hover);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: var(--text-small);
  color: var(--color-red);
  margin-top: 4px;
}

.form-helper {
  font-size: var(--text-small);
  color: var(--color-gray-600);
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}



/* Badge en Stack section del home */
.stack-partners-badge {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--color-border-subtle);
}



/* =============================================================================
   VIDEO EMBED — páginas interiores (home, nosotros, gracias, bienvenida)
   No afecta al .hero-video (page-home.css) ni al placeholder anterior.
   ============================================================================= */

.video-section {
  padding: var(--section-gap-sm) 0;
  background: var(--color-bg);
}

.video-section .section-label {
  display: block;
  margin-bottom: 16px;
}

.video-embed {
  width: 100%;
  max-width: var(--container-md);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .video-embed {
    border-radius: 4px;
  }
}


/* ============================================
   Logo carousel v5 — loop dinámico sin hipo
   ============================================ */

.logo-carousel {
  width: 100%;
  overflow: hidden;
  padding: 64px 0;
  border-top: 0.5px solid #1A1A1A;
  border-bottom: 0.5px solid #1A1A1A;
  -webkit-mask-image: linear-gradient(
    to right, transparent 0%, black 10%, black 90%, transparent 100%
  );
  mask-image: linear-gradient(
    to right, transparent 0%, black 10%, black 90%, transparent 100%
  );
}

.logo-carousel__label {
  display: block;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 40px;
}

.logo-carousel__wrapper {
  width: 100%;
  overflow: hidden;
}

.logo-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 80px;
  width: max-content;
  will-change: transform;
  /* Sin animation aquí — la inyecta el JS dinámicamente */
}

.logo-carousel__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Tamaños base — sobreescritos por clases específicas por logo */
.logo-carousel__img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  display: block;
  flex-shrink: 0;
}

/* Logos con mucho detalle → más grandes para legibilidad */
.logo-carousel__img--lg {
  height: 48px;
}

/* Logotipos simples/anchos → más pequeños para no dominar */
.logo-carousel__img--sm {
  height: 26px;
}

/* Logotipos con viewBox cuadrado o proporción inusual → necesitan más altura */
.logo-carousel__img--xl {
  height: 96px;
}

/* Logos con mucho detalle o texto pequeño → mayor que --lg pero menor que --xl */
.logo-carousel__img--2xl {
  height: 72px;
}

/* Logos muy anchos → limitar ancho independientemente del height */
.logo-carousel__img--wide {
  height: 32px;
  max-width: 180px;
}

/* Logos anchos que deben aparecer más pequeños que el resto */
.logo-carousel__img--wide-sm {
  height: 24px;
  max-width: 140px;
}

.logo-carousel:hover .logo-carousel__img {
  opacity: 0.88;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .logo-carousel { padding: 48px 0; }
  .logo-carousel__label { font-size: 11px; margin-bottom: 28px; }
  .logo-carousel__track { gap: 48px; }
  .logo-carousel__img { height: 28px; }
  .logo-carousel__img--lg { height: 36px; }
  .logo-carousel__img--sm { height: 20px; }
  .logo-carousel__img--xl { height: 72px; }
  .logo-carousel__img--2xl { height: 56px; }
  .logo-carousel__img--wide { height: 24px; max-width: 140px; }
  .logo-carousel__img--wide-sm { height: 18px; max-width: 110px; }
}

/* =============================================================================
   GUARANTEE STAT — Shared component (homepage + páginas internas)
   Layout wrappers (.garantia-layout, .guarantee-stats) en page-home.css.
   ============================================================================= */

.guarantee-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 40px) 0;
}

.guarantee-stat + .guarantee-stat {
  border-top: 0.5px solid #1A1A1A;
}

.guarantee-stat__header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.guarantee-stat__number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--text-stat);
  font-weight: 900;
  color: #CCFF00;
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.guarantee-stat__labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guarantee-stat__label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.guarantee-stat__service {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  color: #CCFF00;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.guarantee-stat__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--text-sm);
  color: #A0A0A0;
  line-height: 1.6;
  max-width: 440px;
}

/* Variante single — páginas internas */
.guarantee-stats--single {
  justify-content: flex-start;
}

.guarantee-stats--single .guarantee-stat {
  padding-top: 0;
}

@media (max-width: 768px) {
  .guarantee-stat__header { gap: 16px; }
  .guarantee-stat__body { max-width: 100%; }
}

/* =============================================================================
   VIDEO + CTA UNIT — componente compartido (home, nosotros, etc.)
   Fondo oscuro, botón #CCFF00 texto negro.
   ============================================================================= */

.home-video-unit {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid #1A1A1A;
}

.home-video-unit__player {
  width: 100%;
  line-height: 0;
}

.home-video-unit__player video {
  width: 100%;
  display: block;
}

.home-video-unit__cta {
  background: #0D0D0D;
  border-top: 0.5px solid #1A1A1A;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.home-video-unit__btn {
  display: block;
  width: 100%;
  background: #CCFF00;
  color: #050505;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s ease;
  border: none;
  white-space: normal;
}

.home-video-unit__btn:hover {
  opacity: 0.88;
}

.home-video-unit__note {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: #555555;
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .home-video-unit__cta {
    padding: 20px 24px;
  }
  .home-video-unit__btn {
    font-size: 16px;
    padding: 14px 20px;
  }
}
