/* ==========================================================================
   GOBO TECNOLOGÍA — LANDING PAGE CRM A MEDIDA
   Sistema visual basado estrictamente en landing-page-design (Part B)
   ========================================================================== */

/* 1. TIPOGRAFÍA LOCAL (B1) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/manrope-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/manrope-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/manrope-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist_mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/geist_mono-600.woff2') format('woff2');
}

/* 2. DESIGN TOKENS (B1, B2, B3, B4) */
:root {
  /* Tipografía */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;

  /* Escala tipográfica Tailwind estricta con altura de línea fija (B1) */
  --text-xs: 12px;
  --lh-xs: 16px;
  --text-sm: 14px;
  --lh-sm: 20px;
  --text-base: 16px;
  --lh-base: 24px;
  --text-lg: 18px;
  --lh-lg: 28px;
  --text-xl: 20px;
  --lh-xl: 28px;
  --text-2xl: 24px;
  --lh-2xl: 32px;
  --text-3xl: 30px;
  --lh-3xl: 36px;
  --text-4xl: 36px;
  --lh-4xl: 40px;
  --text-5xl: 48px;
  --lh-5xl: 1;
  --text-6xl: 60px;
  --lh-6xl: 1;

  /* Espaciado B2 estricto */
  --space-0: 0px;
  --space-25: 2px;
  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
  --space-900: 96px;

  /* Radios de borde Tailwind (B3) */
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* Colores de fondo oscuros aprobados en B4 (Planos, sin degradados de fondo) */
  --bg-black: #000000;
  --bg-base: #131209;
  --bg-card: #181818;
  --bg-card-hover: #1F1F1F;
  --bg-elevated: #272727;
  --bg-subtle: #313131;

  /* Bordes completos (B4) */
  --border-subtle: #272727;
  --border-focus: #63B32E;

  /* Color de marca GOBO verificado */
  --color-primary: #63B32E;
  --color-primary-hover: #529624;
  --color-primary-subtle: rgba(99, 179, 46, 0.12);

  /* Texto */
  --text-white: #FFFFFF;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;

  /* Animación fluida de masa y resortes (B7) */
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-fluid: 700ms;
}

/* 3. RESET Y BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Reglas de redacción B1: Sin cursivas, sin orfandad */
i, em, .italic {
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  font-weight: 700;
  color: var(--text-white);
}

p, span, label, li {
  text-wrap: pretty;
}

/* Enlaces y botones base */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fluid) var(--ease-fluid);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Skip link de accesibilidad (B10) */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-200);
  background: var(--color-primary);
  color: #000000;
  padding: var(--space-100) var(--space-200);
  font-weight: 700;
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top 200ms ease;
}

.skip-link:focus {
  top: var(--space-200);
}

/* Contenedor centralizado mobile-first */
.container {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-200);
  padding-right: var(--space-200);
}

/* 4. BOTONES DEL SISTEMA (B1, B2, B9) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 600;
  padding: var(--space-75) var(--space-100); /* 8px vertical, 12px horizontal */
  min-height: 44px; /* Accesibilidad táctil */
  border-radius: var(--radius-md);
  transition: all var(--duration-fluid) var(--ease-fluid);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #000000;
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-dim);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Botón oficial de WhatsApp */
.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF !important;
  border: 1px solid #25D366;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #20BD5A;
  border-color: #20BD5A;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

.btn-whatsapp svg {
  fill: #FFFFFF;
  flex-shrink: 0;
}

.btn-sm {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  padding: var(--space-75) var(--space-100);
  min-height: 40px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 5. CABECERA FLOTANTE TIPO ISLA FLUIDA (B7) */
.header-island-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding-top: var(--space-200);
  padding-left: var(--space-100);
  padding-right: var(--space-100);
  pointer-events: none;
}

.header-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-100);
  width: 100%;
  max-width: 860px;
  background: rgba(24, 24, 24, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-75) var(--space-200);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all var(--duration-fluid) var(--ease-fluid);
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 45px;
  width: auto;
  display: block;
}

/* Acciones en cabecera */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  flex-shrink: 0;
}

/* Enlace directo a teléfono en cabecera */
.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-white);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-75) var(--space-100);
  min-height: 40px;
  text-decoration: none;
  transition: all var(--duration-fluid) var(--ease-fluid);
  white-space: nowrap;
}

.header-phone-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.header-phone-link svg {
  color: var(--color-primary);
}

.phone-text-desktop {
  display: inline;
}

.phone-text-mobile {
  display: none;
}

.cta-text-desktop {
  display: inline;
}

.cta-text-mobile {
  display: none;
}

/* Grupo de botones principales de llamado a la acción */
.cta-buttons-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-100);
  width: 100%;
}

@media (min-width: 520px) {
  .cta-buttons-group {
    flex-direction: row;
    width: auto;
    gap: var(--space-200);
  }
}

/* Adaptación responsive para pantallas móviles */
@media (max-width: 680px) {
  .header-island {
    padding: var(--space-50) var(--space-100);
    gap: var(--space-50);
  }

  .header-logo img {
    height: 32px;
  }

  .header-phone-link {
    padding: var(--space-50) var(--space-75);
    font-size: var(--text-xs);
    min-height: 44px;
  }

  .phone-text-desktop {
    display: none;
  }

  .phone-text-mobile {
    display: inline;
  }

  .header-wa-btn {
    padding: var(--space-50) var(--space-75);
    font-size: var(--text-xs);
    min-height: 44px;
  }

  .header-cta-btn {
    padding: var(--space-50) var(--space-75);
    font-size: var(--text-xs);
    min-height: 44px;
  }

  .cta-text-desktop {
    display: none;
  }

  .cta-text-mobile {
    display: inline;
  }
}

/* 6. HERO SECTION (B5) */
.hero-section {
  padding-top: calc(var(--space-900) + var(--space-500));
  padding-bottom: var(--space-700);
  text-align: center;
}

.hero-content {
  max-width: 680px; /* B5: tope 680px */
  margin-left: auto;
  margin-right: auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  padding: var(--space-50) var(--space-100);
  background: var(--color-primary-subtle);
  border: 1px solid rgba(99, 179, 46, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-heading {
  font-size: var(--text-4xl);
  line-height: var(--lh-4xl);
  margin-bottom: var(--space-100);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  min-height: 110px; /* Previene saltos de diseño (CLS = 0) */
  position: relative;
}

@media (min-width: 640px) {
  .hero-heading {
    font-size: var(--text-5xl);
    line-height: var(--lh-5xl);
    min-height: 125px;
  }
}

.hero-title-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: opacity 700ms var(--ease-fluid), transform 700ms var(--ease-fluid), filter 700ms var(--ease-fluid);
  pointer-events: none;
  visibility: hidden;
  color: var(--text-white);
  text-wrap: balance;
}

.hero-title-slide.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
  visibility: visible;
}

.hero-title-slide.exiting {
  opacity: 0;
  transform: translateY(-20px);
  filter: blur(4px);
  pointer-events: none;
  visibility: hidden;
}

/* Indicadores de señales de dolor del cliente */
.hero-pain-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  margin-bottom: var(--space-300);
}

.pain-dot {
  width: 20px;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--duration-fluid) var(--ease-fluid);
}

.pain-dot.active {
  width: 36px;
  background: var(--color-primary);
}

.pain-dot:hover:not(.active) {
  background: var(--text-dim);
}

.hero-subheading {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-400);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-200);
  margin-bottom: var(--space-300);
}

.proof-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--text-dim);
}

.proof-signal svg {
  color: var(--color-primary);
}

/* Mockup de producto en Hero */
.hero-visual-card {
  margin-top: var(--space-600);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle); /* B4: Borde en todos los lados */
  border-radius: var(--radius-2xl); /* 16px */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-100) var(--space-200);
  background: var(--bg-card-hover);
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: var(--space-50);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
}

.mockup-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
}

/* Tarjeta anidada dentro de mockup: gap 16px, padding 16px -> inner radius = 16 - 16 = 0 ó radio interior */
.mockup-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
}

.mockup-placeholder {
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-500) var(--space-200);
  text-align: center;
  color: var(--text-dim);
}

.mockup-placeholder p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-75);
}

/* Video en mockup del Hero */
.mockup-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: transparent;
  overflow: hidden;
  border: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.mockup-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 7. TAGLINE REVEAL OBLIGATORIO (B11) */
.tagline-section {
  padding-top: var(--space-800);
  padding-bottom: var(--space-800);
  text-align: center;
}

.tagline-text {
  font-size: var(--text-3xl);
  line-height: var(--lh-3xl);
  font-weight: 700;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .tagline-text {
    font-size: var(--text-4xl);
    line-height: var(--lh-4xl);
  }
}

/* Cada palabra inicia en tono tenue (25% a 35% de opacidad) */
.tagline-word {
  display: inline-block;
  color: var(--text-white);
  opacity: 0.28;
  transition: opacity var(--duration-fluid) var(--ease-fluid);
  margin-right: 0.25em;
}

.tagline-word.active {
  opacity: 1;
}

/* 8. SEÑALES "¿LE SUENA FAMILIAR?" (A2, B8) */
.section-padding {
  padding-top: var(--space-700);
  padding-bottom: var(--space-700);
}

.section-header {
  margin-bottom: var(--space-500);
  text-align: center;
}

.section-header h2 {
  font-size: var(--text-3xl);
  line-height: var(--lh-3xl);
  margin-bottom: var(--space-100);
}

.section-header p {
  color: var(--text-muted);
  font-size: var(--text-base);
}

.signals-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
}

.signal-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-200);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle); /* B4: cuatro lados */
  border-radius: var(--radius-xl);
  padding: var(--space-300);
  transition: all var(--duration-fluid) var(--ease-fluid);
}

.signal-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-dim);
}

.signal-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: rgba(207, 46, 46, 0.1);
  color: #CF2E2E;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-content h3 {
  font-size: var(--text-base);
  line-height: var(--lh-base);
  margin-bottom: var(--space-50);
}

.signal-content p {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--text-muted);
}

/* 9. QUÉ RECIBE (PASOS) */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-300);
  display: flex;
  gap: var(--space-200);
  transition: all var(--duration-fluid) var(--ease-fluid);
}

.step-card:hover {
  background: var(--bg-card-hover);
}

.step-number {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info h3 {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  margin-bottom: var(--space-50);
}

.step-info p {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--text-muted);
}

/* 10. EL AUTODIAGNÓSTICO INTERACTIVO (SECCIÓN 4) */
.diagnostic-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-400);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.diagnostic-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-400);
}

.diagnostic-progress-fill {
  height: 100%;
  width: 10%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-fluid) var(--ease-fluid);
}

.diagnostic-step-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-bottom: var(--space-200);
}

.question-block {
  margin-bottom: var(--space-400);
  padding-bottom: var(--space-400);
  border-bottom: 1px solid var(--border-subtle);
}

.question-block:last-child {
  border-bottom: none;
  margin-bottom: var(--space-300);
  padding-bottom: 0;
}

.question-title {
  font-size: var(--text-base);
  line-height: var(--lh-base);
  margin-bottom: var(--space-200);
  font-weight: 600;
  display: flex;
  gap: var(--space-100);
}

.question-num {
  font-family: var(--font-mono);
  color: var(--color-primary);
}

.options-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-100);
}

/* Botón opción accesible (min 44px con touch-action) */
.option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-100) var(--space-75);
  min-height: 44px;
  touch-action: manipulation;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fluid) var(--ease-fluid);
  user-select: none;
  text-align: center;
}

.option-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-input:focus-visible + .option-label {
  outline: 2px solid var(--color-primary);
}

.option-input:checked + .option-label {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Formulario de captura final (7 campos) */
.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-200);
  margin-top: var(--space-400);
}

@media (min-width: 640px) {
  .lead-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lead-form-grid .full-col {
    grid-column: 1 / -1;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-75);
  text-align: left;
}

/* El atributo hidden debe ganar sobre display:flex de .form-group */
.form-group[hidden] {
  display: none;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-white);
}

.form-input, .form-select {
  width: 100%;
  min-height: 44px;
  padding: var(--space-100) var(--space-200);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: inherit;
  font-size: var(--text-base);
  transition: border-color var(--duration-fluid) var(--ease-fluid);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Estados de validación */
.form-input.invalid,
.form-select.invalid {
  border-color: #dc2626;
}

.form-error {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.2;
  color: #dc2626;
}

/* Honeypot anti-spam blindado */
.honeypot {
  display: none !important;
  position: absolute;
  left: -9999px;
  top: auto;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Resaltado accesible de pregunta faltante */
.question-block.error-highlight {
  border: 1px solid #dc2626;
  border-radius: var(--radius-xl);
  padding: var(--space-200);
  background: rgba(220, 38, 38, 0.08);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
  transition: all var(--duration-fluid) var(--ease-fluid);
}

/* Botón WhatsApp secundario en Hero */
#hero-wa-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
}

#hero-wa-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: #25D366;
  color: var(--text-white);
}
.form-error-summary {
  display: none;
  margin: 0 auto var(--space-200);
  max-width: 380px;
  padding: var(--space-100) var(--space-200);
  border: 1px solid #dc2626;
  border-radius: var(--radius-md);
  background: rgba(220, 38, 38, 0.1);
  color: #fca5a5;
  font-size: var(--text-sm);
  text-align: center;
}

.form-error-summary.visible {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-100);
  margin-top: var(--space-100);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.checkbox-group label {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--text-muted);
}

.checkbox-group a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Estado de resultado en pantalla */
.result-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-500);
  text-align: center;
}

.result-card.active {
  display: block;
}

.result-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border: 1px solid rgba(99, 179, 46, 0.4);
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-300);
}

.result-level-title {
  font-size: var(--text-2xl);
  line-height: var(--lh-2xl);
  margin-bottom: var(--space-200);
}

.result-desc {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-400);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
  align-items: center;
}

/* 11. QUIÉNES SOMOS & VTIGER (A2, A5) */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-400);
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border: 1px solid rgba(99, 179, 46, 0.2);
  padding: var(--space-50) var(--space-100);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-200);
}

.about-card h3 {
  font-size: var(--text-2xl);
  line-height: var(--lh-2xl);
  margin-bottom: var(--space-200);
}

.about-card p {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-200);
}

.about-vtiger-box {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-300);
  margin-top: var(--space-300);
}

.about-vtiger-box h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-75);
  color: var(--text-white);
}

.about-vtiger-box p {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--text-dim);
  margin-bottom: 0;
}

/* 12. CASOS REALES (PRUEBA - A2, A5) */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-300);
}

@media (min-width: 640px) {
  .cases-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-300);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--duration-fluid) var(--ease-fluid);
}

.case-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-dim);
}

.case-header {
  margin-bottom: var(--space-200);
}

.case-category {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  margin-bottom: var(--space-50);
  text-transform: uppercase;
}

.case-title {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
}

.case-section {
  margin-bottom: var(--space-100);
}

.case-section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-25);
}

.case-section-text {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--text-muted);
}

/* 13. CÓMO TRABAJAMOS (METODOLOGÍA) */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-200);
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-300);
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-100);
}

.process-card h3 {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  margin-bottom: var(--space-75);
}

.process-card p {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--text-muted);
}

/* 14. PREGUNTAS FRECUENTES (FAQ) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-fluid) var(--ease-fluid);
}

.faq-item:hover {
  background: var(--bg-card-hover);
}

.faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-300);
  text-align: left;
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 600;
  color: var(--text-white);
  gap: var(--space-200);
  min-height: 44px;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--duration-fluid) var(--ease-fluid);
  color: var(--color-primary);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-fluid) var(--ease-fluid);
  padding: 0 var(--space-300);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-300);
}

.faq-answer p {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--text-muted);
}

/* 15. CTA FINAL Y PIE DE PÁGINA */
.final-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-600) var(--space-400);
  text-align: center;
  margin-bottom: var(--space-700);
}

.final-cta-card h2 {
  font-size: var(--text-3xl);
  line-height: var(--lh-3xl);
  margin-bottom: var(--space-200);
}

.final-cta-card p {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-400);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-600);
  padding-bottom: var(--space-700);
  background: var(--bg-black);
  color: var(--text-dim);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
  margin-bottom: var(--space-400);
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-200);
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-300);
}

/* 16. ANIMACIONES DE SCROLL (B7) */
.reveal-init {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  transition: opacity 800ms var(--ease-fluid), transform 800ms var(--ease-fluid), filter 800ms var(--ease-fluid);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
