/* ==========================================================================
   OHTLA — SISTEMA DE DISEÑO (DARK & LIGHT MODE), ROOTSTRAP APPROACH & CARRUSEL
   Manual de Identidad Visual: Space Grotesk, DM Sans & Electric Coral
   ========================================================================== */

:root {
  /* MODO OSCURO (DEFAULT) */
  --bg-dark: #0B0B0C;
  --bg-pure: #000000;
  --bg-card: #131316;
  --bg-card-hover: #18181D;
  --bg-surface: #1B1B20;
  --bg-glass: rgba(11, 11, 12, 0.85);
  
  --border: #27272A;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: #3F3F46;
  --border-focus: #52525B;
  
  --text-main: #FFFFFF;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;
  
  --coral: #FF5733;
  --coral-light: #FF8A65;
  --coral-dark: #E64A19;
  --coral-glow: rgba(255, 87, 51, 0.45);
  --coral-subtle: rgba(255, 87, 51, 0.12);
  --coral-border: rgba(255, 87, 51, 0.35);

  --accent-cyan: #38BDF8;
  --accent-green: #34D399;
  --accent-amber: #FBBF24;

  --grid-line: rgba(255, 255, 255, 0.025);
  --grid-glow: rgba(255, 87, 51, 0.07);

  /* Tipografías */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;

  /* Espaciado & Contenedores */
  --container-max: 1140px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-card: 0 14px 40px -12px rgba(0, 0, 0, 0.75);
  --shadow-coral: 0 0 25px rgba(255, 87, 51, 0.35);
  
  /* Transición */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* TEMA CLARO (LIGHT MODE) */
[data-theme="light"] {
  --bg-dark: #FBFBFC;
  --bg-pure: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F4F4F6;
  --bg-surface: #EFEFF3;
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  --border: #E4E4E7;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-hover: #D4D4D8;
  --border-focus: #A1A1AA;
  
  --text-main: #0B0B0C;
  --text-muted: #52525B;
  --text-dim: #71717A;
  
  --coral: #FF5733;
  --coral-light: #FF7043;
  --coral-dark: #E64A19;
  --coral-glow: rgba(255, 87, 51, 0.25);
  --coral-subtle: rgba(255, 87, 51, 0.08);
  --coral-border: rgba(255, 87, 51, 0.3);

  --accent-cyan: #0284C7;
  --accent-green: #059669;
  --accent-amber: #D97706;

  --grid-line: rgba(0, 0, 0, 0.035);
  --grid-glow: rgba(255, 87, 51, 0.05);

  --shadow-card: 0 10px 30px -8px rgba(0, 0, 0, 0.08);
  --shadow-coral: 0 4px 18px rgba(255, 87, 51, 0.25);
}

/* Reset Universal */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Cuadrícula de Fondo */
.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, var(--grid-glow), transparent 50%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* Tipografía Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Badges y Tags */
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--coral-subtle);
  border: 1px solid var(--coral-border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.brand-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--coral);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--coral);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(255, 87, 51, 0.4);
}

.btn-primary:hover {
  background-color: var(--coral-light);
  box-shadow: 0 6px 24px rgba(255, 87, 51, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #0B0B0C;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: #22BF5B;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.55);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ==========================================================================
   HEADER INTELIGENTE: OCULTAR AL BAJAR / MOSTRAR AL SUBIR O HOVER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-fast), border-color var(--transition-fast);
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--coral);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  padding: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--coral-border);
  background: var(--bg-card-hover);
  transform: rotate(15deg);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  color: var(--coral);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mobile-nav-drawer.open {
  display: flex;
}

/* ==========================================================================
   HERO SECTION (CENTRADO + ANIMACIÓN SUTIL DE PROCESO DE FONDO)
   ========================================================================== */
.hero-section {
  padding-top: 150px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-process-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  max-width: 95vw;
  max-height: 95vw;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  transition: opacity var(--transition-smooth);
}

[data-theme="light"] .hero-process-bg {
  opacity: 0.12;
}

.process-bg-orbit {
  transform-origin: center;
  animation: rotate-orbit 28s infinite linear;
}

.process-bg-orbit-reverse {
  transform-origin: center;
  animation: rotate-orbit-reverse 34s infinite linear;
}

@keyframes rotate-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-orbit-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.hero-centered-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -1.6px;
  line-height: 1.1;
  font-weight: 700;
}

.hero-title .highlight-coral {
  color: var(--coral);
}

.hero-description {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 660px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding-top: 28px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 620px;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   SECCIONES COMUNES
   ========================================================================== */
.section-pad {
  padding: 85px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -1.2px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
}

/* ==========================================================================
   PROBLEMAS / CUELLOS DE BOTELLA (COMPACTO)
   ========================================================================== */
.pain-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pain-card-compact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-smooth);
}

.pain-card-compact:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pain-icon-circle {
  width: 40px;
  height: 40px;
  background: var(--coral-subtle);
  border: 1px solid var(--coral-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
}

.pain-compact-title {
  font-size: 17px;
  letter-spacing: -0.4px;
}

.pain-compact-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pain-pill-bad {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  width: fit-content;
}

/* ==========================================================================
   METODOLOGÍA: ROOTSTRAP EXACT APPROACH (SS4 / SS5 - STICKY + SCROLL TIMELINE)
   ========================================================================== */
.how-section {
  position: relative;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0 120px;
}

.how-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
}

/* Columna Izquierda: Sticky Display */
.how-display {
  position: sticky;
  top: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.hd-num {
  height: 110px;
  overflow: hidden;
  position: relative;
}

.hd-roll {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--i, 0) * -110px));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-roll span {
  height: 110px;
  font-family: var(--font-display);
  font-size: 110px;
  font-weight: 700;
  line-height: 110px;
  color: var(--coral);
  letter-spacing: -4px;
}

.hd-meta {
  margin-top: 18px;
  min-height: 85px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hd-meta.out {
  opacity: 0;
  transform: translateY(6px);
}

.hd-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--coral);
  margin-bottom: 6px;
  font-weight: 600;
}

.hd-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.hd-count {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.hd-bar-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.hd-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: calc(var(--f, 0) * 100%);
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral-glow);
  transition: width 0.1s linear;
}

/* Columna Derecha: Timeline Vertical */
.timeline {
  position: relative;
  padding-left: 54px;
}

.tl-line {
  position: absolute;
  left: 17px;
  top: 40px;
  width: 2px;
  background: var(--border);
  border-radius: var(--radius-full);
}

.tl-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--f, 0) * 100%);
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
  border-radius: var(--radius-full);
}

.tl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 10px 0 60px;
}

.step {
  position: relative;
  cursor: pointer;
  padding: 30px 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:not(.active) {
  opacity: 0.4;
}

.step.active {
  opacity: 1;
  border-color: var(--coral-border);
  box-shadow: 0 12px 36px -10px rgba(255, 87, 51, 0.2);
  transform: translateX(8px);
}

.step .mark {
  position: absolute;
  left: -54px;
  top: 32px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
  z-index: 2;
}

.step .mark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.35s ease;
}

.step.active .mark {
  border-color: var(--coral);
  box-shadow: 0 0 16px var(--coral-glow);
}

.step.active .mark::after {
  background: var(--coral);
  transform: scale(1.2);
}

.step .ttl .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-weight: 600;
}

.step .ttl .sn {
  display: none;
}

.step .ttl h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.step .detail .desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 8px;
}

/* ==========================================================================
   CASOS REALES: CARRUSEL DE TARJETAS (SS3)
   ========================================================================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 24px;
  padding: 10px 4px 24px;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 calc(50% - 12px);
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.carousel-card:hover {
  border-color: var(--coral-border);
  transform: translateY(-4px);
}

.card-img-wrap {
  width: 100%;
  height: 190px;
  background: #0E0E10;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.carousel-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-company-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
}

.card-impact-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--coral);
  background: var(--coral-subtle);
  border: 1px solid var(--coral-border);
  padding: 3px 8px;
  border-radius: 4px;
}

.card-summary-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Controles del Carrusel (Flechas y Puntos) */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.carousel-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--bg-card-hover);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background: var(--coral);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: var(--coral-border);
}

.faq-question-btn {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-main);
  text-align: left;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.faq-toggle-icon {
  font-size: 18px;
  color: var(--coral);
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ==========================================================================
   FORMULARIO DE CONTACTO / CALIFICACIÓN
   ========================================================================== */
.contact-section {
  padding-bottom: 90px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--coral), transparent);
}

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

.form-full {
  grid-column: span 2;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label .required {
  color: var(--coral);
}

.form-input, .form-textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-subtle);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-dim);
}

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

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkbox-label:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--coral);
  width: 15px;
  height: 15px;
}

.form-actions-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.form-privacy-note {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 400px;
}

.form-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-pure);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-logo {
  height: 36px;
  width: auto;
}

.footer-claim {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.footer-link {
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--coral);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--coral-border);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-coral);
  position: relative;
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-icon-success {
  width: 56px;
  height: 56px;
  background: var(--coral-subtle);
  border: 1px solid var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .how-display {
    position: relative;
    top: 0;
  }
  .timeline {
    padding-left: 40px;
  }
  .step .mark {
    left: -40px;
  }
  .pain-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
  .carousel-card {
    flex: 0 0 calc(80% - 12px);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-full {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .main-nav, .header-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .pain-grid-compact {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 0;
  }
  .tl-line {
    display: none;
  }
  .step .mark {
    display: none;
  }
  .step {
    padding: 20px;
  }
  .carousel-card {
    flex: 0 0 calc(92% - 10px);
  }
  .contact-card {
    padding: 24px 18px;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .form-actions-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .form-buttons {
    flex-direction: column;
    width: 100%;
  }
  .form-buttons .btn {
    width: 100%;
  }
}
