/* ============================================================
   BALANSOFT - ESTILOS CORPORATIVOS
   Paleta basada en la identidad de marca SGLB
   ============================================================ */

/* ---------- ROOT: Variables Corporativas SGLB ---------- */
:root {
  /* Colores Principales del Ecosistema Balansoft (SGLB) */
  --sglb-primary: #1a3a5c;
  --sglb-secondary: #2d6a9f;
  --sglb-accent: #4a90d9;
  
  /* Colores Semánticos de Estado */
  --sglb-success: #28a745;
  --sglb-warning: #ffc107;
  --sglb-danger: #dc3545;
  --sglb-info: #17a2b8;
  
  /* Fondos y Texto */
  --sglb-light: #f8f9fa;
  --sglb-dark: #212529;
  
  /* Gradientes y acentos extra */
  --sglb-gradient-start: #0a1e3a;
  --sglb-gradient-end: #1a3a6a;
  --sglb-accent-light: #6aafff;
  --sglb-primary-light: #1a3a6a;
  
  /* Escala de Espaciado Uniforme */
  --sglb-spacing-xs: 0.25rem;  /* 4px */
  --sglb-spacing-sm: 0.5rem;   /* 8px */
  --sglb-spacing-md: 1rem;     /* 16px */
  --sglb-spacing-lg: 1.5rem;   /* 24px */
  --sglb-spacing-xl: 2rem;     /* 32px */
  
  /* Sistema de Radio de Bordes */
  --sglb-radius-sm: 4px;
  --sglb-radius-md: 8px;
  --sglb-radius-lg: 12px;
  
  /* Sombras Elevadas */
  --sglb-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --sglb-shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --sglb-shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  
  /* Alias para compatibilidad con código existente */
  --blue-900: var(--sglb-gradient-start);
  --blue-800: var(--sglb-primary);
  --blue-700: var(--sglb-secondary);
  --blue-600: var(--sglb-accent);
  --blue-100: #e7eef5;
  --gray-900: var(--sglb-dark);
  --gray-700: #44505c;
  --gray-600: #4a5568;
  --gray-500: #6b7886;
  --gray-400: #9ca3af;
  --gray-200: #dce3ea;
  --gray-100: var(--sglb-light);
  --orange-600: #d96b13;
  --orange-500: var(--sglb-accent);
  --white: #ffffff;
  --radius: var(--sglb-radius-md);
  --maxw: 1160px;
  --shadow: var(--sglb-shadow-md);
}

/* ---------- RESET Y BASE ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--sglb-dark);
  background: var(--sglb-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.brand-text, .logo.brand-text {
  font-family: 'Balansoft Brand', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: var(--sglb-accent) !important;
}

a { color: var(--blue-600); }
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange-500);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.container { 
  max-width: var(--maxw); 
  margin: 0 auto; 
  padding: 0 20px; 
}

/* ---------- HEADER / NAVBAR ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sglb-primary);
  color: #fff;
  box-shadow: var(--sglb-shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.logo {
  font-family: 'Balansoft Brand', sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  color: var(--sglb-accent);
  text-decoration: none;
}

.logo:hover {
  color: var(--sglb-accent-light);
}

.logo small {
  font-weight: 600;
  font-size: 0.7rem;
  color: #c9d6e2;
  letter-spacing: 0.08em;
}

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

.nav-links { 
  display: flex; 
  gap: 20px; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #fff; }

.nav-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- BOTONES ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  padding: 12px 22px;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { 
  background: var(--sglb-accent); 
  color: #fff; 
}
.btn-primary:hover { background: var(--sglb-accent-light); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline:hover { border-color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: var(--sglb-secondary);
  border: 1.5px solid var(--sglb-accent);
}
.btn-outline-dark:hover { background: var(--blue-100); }

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

.btn-secondary {
  background: #e0e0e0;
  color: #757575;
  cursor: not-allowed;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  padding: 12px 22px;
  transition: background-color .15s ease;
}
.btn-secondary:hover { background: #d5d5d5; }

.btn-link {
  background: transparent;
  color: #fff;
  text-decoration: underline;
  border: none;
  cursor: pointer;
}
.btn-link:hover { color: var(--sglb-accent); }

/* ---------- SECCIONES ---------- */
section { padding: 72px 0; }

.section-dark { 
  background: var(--blue-900); 
  color: #fff; 
}
.section-tint { 
  background: var(--gray-100); 
}
.section-divider { 
  background: linear-gradient(90deg, var(--blue-800), var(--blue-600)); 
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sglb-accent);
  margin: 0 0 10px;
}

.section-title { 
  font-size: clamp(1.7rem, 4vw, 2.5rem); 
  line-height: 1.15; 
  margin: 0 0 14px; 
  color: var(--sglb-primary); 
}
.section-dark .section-title { color: #fff; }

.section-sub { 
  font-size: 1.05rem; 
  color: var(--gray-700); 
  max-width: 720px; 
  margin: 0 0 34px; 
}
.section-dark .section-sub { color: #c9d6e2; }

/* ---------- CORRECCIÓN: Textos en secciones con fondo claro ---------- */
.section-tint .section-title {
  color: var(--sglb-dark) !important;
}

.section-tint .section-sub {
  color: var(--gray-600) !important;
}

.section-tint .eyebrow {
  color: var(--sglb-accent);
}

.section-tint .card h3 {
  color: var(--sglb-dark) !important;
}

.section-tint .card p {
  color: var(--gray-600) !important;
}

.section-tint .promise {
  color: var(--sglb-dark) !important;
}

.section-tint .step h3 {
  color: var(--sglb-dark) !important;
}

.section-tint .step p {
  color: var(--gray-600) !important;
}

.section-tint .metric-box b {
  color: var(--sglb-primary) !important;
}

.section-tint .metric-box span {
  color: var(--gray-600) !important;
}

.section-tint .ind-chip {
  color: var(--sglb-dark) !important;
  background: #fff;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(74,144,217,.16), transparent 60%),
    linear-gradient(180deg, var(--sglb-primary), var(--sglb-gradient-start));
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: 
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner { 
  position: relative; 
  z-index: 1; 
  display: grid; 
  grid-template-columns: 1.25fr .75fr; 
  gap: 48px; 
  align-items: center; 
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero p.lead { 
  font-size: 1.18rem; 
  color: #cfe0ee; 
  margin: 0 0 28px; 
  max-width: 620px; 
}

.hero .trust { 
  margin-top: 20px; 
  font-size: 0.85rem; 
  color: #9fb4c6; 
}
.hero .trust b { color: #fff; font-weight: 600; }

.hero-ctas { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
}

.hero-extra { margin-top: 16px; }

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.visual-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 150px;
}

.visual-panel .bar {
  height: 14px;
  border-radius: 4px;
  background: rgba(255,255,255,.16);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.visual-panel .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 62%;
  background: linear-gradient(90deg, var(--orange-500), #f5a460);
  border-radius: 4px;
}

.visual-panel .rows span {
  display: block;
  height: 10px;
  background: rgba(255,255,255,.14);
  border-radius: 3px;
  margin-bottom: 8px;
}

.metric-strip { display: flex; gap: 12px; }
.metric-chip {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 12px 14px;
}
.metric-chip b { display: block; font-size: 1.2rem; color: #fff; }
.metric-chip small { color: #b9cad9; }

/* ---------- INDUSTRIAS ---------- */
.industries-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.ind-chip {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  color: var(--sglb-dark);
  font-size: 0.92rem;
  box-shadow: var(--sglb-shadow-sm);
  transition: all 0.2s ease;
}

.ind-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--sglb-shadow-md);
  border-color: var(--sglb-accent);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.metric-box { 
  text-align: center; 
  padding: 26px 16px; 
  background: #fff; 
  border: 1px solid var(--gray-200); 
  border-radius: var(--radius);
  box-shadow: var(--sglb-shadow-sm);
  transition: all 0.2s ease;
}

.metric-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--sglb-shadow-md);
}

.metric-box b { 
  display: block; 
  font-size: 2rem; 
  color: var(--sglb-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.metric-box span { 
  color: var(--gray-500); 
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- CARDS GENÉRICAS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--sglb-shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sglb-shadow-md);
}

.card h3 { 
  margin: 14px 0 8px; 
  font-size: 1.1rem; 
  color: var(--sglb-primary);
  font-weight: 700;
}

.card p { 
  margin: 0; 
  color: var(--gray-700); 
  font-size: 0.95rem;
  line-height: 1.6;
}

.card .ico {
  width: 44px; 
  height: 44px;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--sglb-secondary);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
}

/* ---------- PROBLEMA ---------- */
.pain-card { 
  border-left: 4px solid var(--sglb-accent);
  padding-left: 22px;
}

.pain-card h3 { 
  margin-top: 0;
  color: var(--sglb-dark);
}

.pain-card p {
  color: var(--gray-600);
}

/* ---------- VALOR ---------- */
.promise {
  background: var(--blue-100);
  border-left: 5px solid var(--sglb-accent);
  border-radius: 8px;
  padding: 22px 26px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sglb-dark);
  margin: 0 0 36px;
  line-height: 1.5;
}

/* ---------- MÓDULOS ---------- */
.tabs { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
  margin-bottom: 28px; 
}

.tab-btn {
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: var(--gray-100);
  border-color: var(--sglb-accent);
}

.tab-btn[aria-selected="true"] { 
  background: var(--sglb-primary); 
  border-color: var(--sglb-primary); 
  color: #fff; 
}

.mod-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 18px; 
}

.mod-card { 
  display: flex; 
  flex-direction: column; 
  gap: 8px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--sglb-shadow-sm);
  transition: all 0.2s ease;
}

.mod-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sglb-shadow-md);
}

.mod-card .code { 
  font-weight: 800; 
  color: var(--sglb-accent); 
  letter-spacing: 0.03em; 
  font-size: 0.82rem; 
}

.mod-card h3 { 
  margin: 0; 
  font-size: 1.08rem; 
  color: var(--sglb-primary);
  font-weight: 700;
}

.mod-card .tagline { 
  font-style: italic; 
  color: var(--gray-500); 
  font-size: 0.9rem; 
  margin: 0; 
}

.mod-card p.desc { 
  color: var(--gray-700); 
  font-size: 0.92rem; 
  margin: 0; 
  flex-grow: 1;
  line-height: 1.6;
}

.mod-card .btn { 
  align-self: flex-start; 
  margin-top: 6px; 
}
.mod-card button { 
  font-size: 0.85rem; 
  padding: 10px 16px; 
}

.mod-panel { display: none; }
.mod-panel.active { 
  display: block; 
  animation: fadeIn .25s ease; 
}

@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(6px); } 
  to { opacity: 1; transform: none; } 
}

/* Estados de módulos */
.modulo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.modulo-estado {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.estado-disponible {
  background: #e8f5e9;
  color: #2e7d32;
}

.estado-desarrollo {
  background: #fff3e0;
  color: #e65100;
}

.estado-no-disponible {
  background: #fce4ec;
  color: #c62828;
}

.estado-incompleto {
  background: #fff8e1;
  color: #f57f17;
}

.mod-card .btn-secondary {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 0.85rem;
  padding: 10px 16px;
}

.mod-card .modulo-estado {
  margin-left: auto;
}

/* ---------- CÓMO FUNCIONA ---------- */
.steps { 
  counter-reset: step; 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 22px; 
}

.step { 
  position: relative; 
  padding: 26px; 
  background: #fff; 
  border: 1px solid var(--gray-200); 
  border-radius: var(--radius);
  box-shadow: var(--sglb-shadow-sm);
  transition: all 0.2s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--sglb-shadow-md);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 22px;
  width: 34px;
  height: 34px;
  background: var(--sglb-accent);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.step h3 { 
  margin: 6px 0 8px; 
  color: var(--sglb-primary);
  font-size: 1.1rem;
}

.step p { 
  margin: 0; 
  color: var(--gray-700); 
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- DIFERENCIADORES ---------- */
.diff-card { 
  border-top: 4px solid var(--sglb-accent);
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(4px);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}

.diff-card h3 {
  color: #fff !important;
}

.diff-card p {
  color: rgba(255,255,255,0.85) !important;
}

.diff-quote {
  font-size: 1.35rem;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  max-width: 860px;
  margin: 0 auto 8px;
}
.diff-quote span { color: var(--sglb-accent); }

/* ---------- TESTIMONIOS ---------- */
#testimonios { display: none; }

.testimonio-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--sglb-shadow-sm);
  transition: all 0.2s ease;
}

.testimonio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sglb-shadow-md);
}

.testimonio-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.testimonio-foto {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-200);
  flex-shrink: 0;
}

.testimonio-autor h4 {
  margin: 0 0 2px;
  color: var(--sglb-primary);
}

.testimonio-autor span {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.testimonio-autor .testimonio-empresa {
  font-weight: 600;
  color: var(--sglb-secondary);
}

.testimonio-card blockquote {
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--sglb-accent);
  padding-left: 16px;
}

.testimonio-card blockquote p {
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.6;
}

.testimonio-card blockquote footer {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ---------- SEGURIDAD ---------- */
#seguridad .section-title {
  color: var(--sglb-dark) !important;
}

.security-quote {
  font-size: 1.2rem;
  color: var(--sglb-dark) !important;
  font-weight: 600;
  max-width: 780px;
  margin: 0 0 36px;
  line-height: 1.6;
}

#seguridad .card h3 {
  color: var(--sglb-dark);
}

#seguridad .card p {
  color: var(--gray-600);
}

/* ---------- FAQ ---------- */
#faq .section-title {
  color: var(--sglb-dark) !important;
}

#faq .section-sub {
  color: var(--gray-600) !important;
}

.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item { 
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--sglb-dark) !important;
  padding: 20px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.faq-q:hover {
  color: var(--sglb-accent) !important;
}

.faq-q .chev { 
  transition: transform .2s ease; 
  color: var(--sglb-accent); 
  font-weight: 800; 
  font-size: 1.2rem;
  flex-shrink: 0;
}
.faq-item[aria-expanded="true"] .chev { transform: rotate(45deg); }

.faq-a { 
  display: none; 
  padding: 0 4px 20px; 
  color: var(--gray-600) !important;
  font-size: 0.95rem;
}
.faq-item[aria-expanded="true"] .faq-a { display: block; }

.faq-a p {
  color: var(--gray-600) !important;
  line-height: 1.7;
  margin: 0;
}

.faq-a a {
  color: var(--sglb-accent);
  text-decoration: underline;
}

.faq-a a:hover {
  color: var(--sglb-secondary);
}

/* ---------- FORMULARIO ---------- */
.cta-band { 
  background: linear-gradient(180deg, var(--sglb-primary), var(--sglb-gradient-start)); 
  color: #fff; 
}
.cta-band h2 { color: #fff; }
.cta-band .lead { 
  font-size: 1.15rem; 
  color: #e0e8f0;
  max-width: 640px; 
  margin: 0 auto 8px; 
}

.form-wrap {
  max-width: 720px;
  margin: 36px auto 0;
  background: #fff;
  color: var(--sglb-dark);
  border-radius: var(--radius);
  box-shadow: var(--sglb-shadow-md);
  padding: 34px;
}

.form-wrap h3 {
  color: var(--sglb-primary) !important;
  font-size: 1.3rem;
  margin: 0 0 4px;
}

.form-wrap .form-subtitle {
  color: var(--gray-600) !important;
  font-size: 0.95rem;
  margin: 0 0 24px;
}

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

.form-field { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}
.form-field.full { grid-column: 1 / -1; }

label { 
  font-weight: 600; 
  font-size: 0.9rem; 
  color: var(--sglb-dark) !important;
}

.req { 
  color: var(--sglb-accent); 
  font-weight: 700;
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  background: #fff;
  color: var(--sglb-dark);
  min-height: 44px;
  transition: all 0.2s ease;
}

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

select option {
  color: var(--sglb-dark);
  background: #fff;
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-400) !important;
  opacity: 0.7;
}

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

input:focus, 
select:focus, 
textarea:focus { 
  border-color: var(--sglb-accent); 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(74,144,217,.12); 
}

.field-error { 
  color: var(--sglb-danger); 
  font-size: 0.82rem; 
  display: none; 
}
.field-error.show { display: block; }

.field.invalid input, 
.field.invalid select, 
.field.invalid textarea { border-color: var(--sglb-danger); }

.privacy-note { 
  grid-column: 1 / -1; 
  font-size: 0.82rem; 
  color: var(--gray-500);
  margin-top: 8px;
  line-height: 1.5;
}

.privacy-note a {
  color: var(--sglb-accent);
  text-decoration: underline;
}

.privacy-note a:hover {
  color: var(--sglb-secondary);
}

.check-field { 
  display: flex; 
  gap: 10px; 
  align-items: flex-start; 
  grid-column: 1 / -1; 
}
.check-field input { 
  min-height: 0; 
  width: 18px; 
  height: 18px; 
  margin-top: 3px; 
  flex-shrink: 0;
  cursor: pointer;
}

.check-field label {
  font-weight: 400 !important;
  color: var(--gray-600) !important;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.5;
}

.form-actions { 
  grid-column: 1 / -1; 
  text-align: center; 
}
.form-actions .btn { 
  width: 100%; 
  padding: 15px 22px; 
  font-size: 1.05rem; 
}

.honeypot { 
  position: absolute; 
  left: -9999px; 
  height: 0; 
  overflow: hidden; 
}

.form-error {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  color: var(--sglb-danger);
  font-size: 0.9rem;
  background: #fdecec;
  border: 1px solid #e6b3b3;
  border-radius: 6px;
  padding: 12px 14px;
}
.form-error.show { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success h3 { 
  color: var(--sglb-primary); 
  margin: 0 0 8px; 
}
.form-success p { 
  color: var(--gray-600); 
  margin: 0 0 20px; 
  line-height: 1.6;
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sglb-primary);
  color: #fff;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
  display: none;
}

.cookie-banner-content {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-content p {
  margin: 0;
  flex: 1;
  min-width: 250px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner-buttons .btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ---------- FOOTER ---------- */
.site-footer { 
  background: var(--sglb-primary); 
  color: #c3d2df; 
  padding: 56px 0 30px; 
}

.footer-grid { 
  display: grid; 
  grid-template-columns: 1.4fr 1fr 1fr 1fr; 
  gap: 32px; 
}

.site-footer .logo {
  margin-bottom: 12px;
  color: var(--sglb-accent) !important;
}

.site-footer .logo:hover {
  color: var(--sglb-accent-light) !important;
}

.site-footer h3 { 
  color: #fff; 
  font-size: 1rem; 
  margin: 0 0 12px;
  font-weight: 700;
}

.site-footer ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}
.site-footer li { 
  margin-bottom: 8px;
}
.site-footer a { 
  color: #c3d2df; 
  text-decoration: none; 
  transition: color 0.2s ease;
}
.site-footer a:hover { 
  color: #fff; 
  text-decoration: underline; 
}

.social-link {
  color: #c3d2df;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.social-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #8fa6ba;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* ---------- Tablets y pantallas medianas ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 960px) {
  .hero-inner { 
    grid-template-columns: 1fr; 
  }
  .hero-visual { 
    display: none; 
  }
  
  .grid-4 { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .mod-grid { 
    grid-template-columns: 1fr; 
  }
  
  .steps { 
    grid-template-columns: 1fr; 
  }
  
  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 24px; 
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #testimonios-container.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Móviles y tablets pequeñas ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--blue-900);
    padding: 16px 20px 24px;
    gap: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav-links.open { display: flex; }
  
  .nav-cta.header-cta { display: none; }
  .menu-toggle { display: block; }
  
  .grid-3 { 
    grid-template-columns: 1fr; 
  }
  
  .metrics-grid { 
    grid-template-columns: 1fr; 
  }
  
  .form-grid { 
    grid-template-columns: 1fr; 
  }
  
  section { padding: 52px 0; }
  .mod-grid { grid-template-columns: 1fr; }
  
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 24px; 
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  .hero p.lead {
    font-size: 1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
    text-align: center;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-banner-buttons {
    justify-content: center;
  }
  
  .cookie-banner-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  #testimonios-container.grid-3 {
    grid-template-columns: 1fr;
  }
  
  .testimonio-header {
    flex-direction: column;
    text-align: center;
  }
  
  .form-wrap {
    padding: 20px;
  }
  
  .form-actions .btn {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  /* Ajustes para el logo en móvil */
  .logo small {
    display: none;
  }
  
  .logo {
    font-size: 1rem;
  }
}

/* ---------- Móviles pequeños ---------- */
@media (max-width: 480px) {
  .grid-4 { 
    grid-template-columns: 1fr; 
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .metric-chip {
    padding: 8px 12px;
  }
  
  .metric-chip b {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .card {
    padding: 18px;
  }
  
  .form-wrap {
    padding: 16px;
  }
  
  .step {
    padding: 18px;
  }
  
  .step::before {
    top: -12px;
    left: 16px;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  
  .visual-panel {
    min-height: 100px;
    padding: 14px;
  }
  
  .hero .trust {
    font-size: 0.75rem;
  }
}

/* ---------- Pantallas muy grandes ---------- */
@media (min-width: 1400px) {
  :root {
    --maxw: 1280px;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .grid-4 {
    gap: 24px;
  }
  
  .grid-3 {
    gap: 28px;
  }
}

/* ---------- Accesibilidad: Prefiere movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Accesibilidad: Contraste alto ---------- */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
  }
  
  .btn-outline {
    border: 2px solid #fff;
  }
  
  .card {
    border: 2px solid #000;
  }
  
  .ind-chip {
    border: 2px solid #000;
  }
  
  .tab-btn {
    border: 2px solid #000;
  }
}

/* ---------- Modo oscuro (soporte) ---------- */
@media (prefers-color-scheme: dark) {
  /* Solo aplica si el usuario tiene modo oscuro en el sistema */
  :root:not(.theme-light) {
    --gray-100: #1a1a2e;
    --gray-200: #2a2a3e;
    --gray-400: #6a6a8e;
    --gray-500: #8a8a9e;
    --gray-600: #b8b8c8;
    --gray-700: #c8c8d8;
    --gray-900: #e8e8f0;
    --white: #12121e;
    --blue-100: #1a2a3e;
    --sglb-light: #12121e;
    --sglb-dark: #e8e8f0;
  }
  
  .card,
  .metric-box,
  .step,
  .ind-chip,
  .form-wrap,
  .testimonio-card,
  .mod-card {
    background: #1a1a2e;
    border-color: #2a2a3e;
  }
  
  .tab-btn {
    background: #1a1a2e;
    border-color: #2a2a3e;
    color: #b8b8c8;
  }
  
  .tab-btn[aria-selected="true"] {
    background: var(--blue-800);
    border-color: var(--blue-800);
    color: #fff;
  }
  
  .form-field input,
  .form-field select,
  .form-field textarea {
    background: #1a1a2e;
    border-color: #2a2a3e;
    color: #e8e8f0;
  }
  
  .form-field input::placeholder,
  .form-field textarea::placeholder {
    color: #6a6a8e !important;
  }
  
  select option {
    background: #1a1a2e;
    color: #e8e8f0;
  }
  
  .promise {
    background: #1a2a3e;
    color: #e8e8f0;
  }
  
  .section-tint .section-title {
    color: #e8e8f0 !important;
  }
  
  .section-tint .section-sub {
    color: #b8b8c8 !important;
  }
  
  .section-tint .card h3 {
    color: #e8e8f0 !important;
  }
  
  .section-tint .card p {
    color: #b8b8c8 !important;
  }
  
  .faq-q {
    color: #e8e8f0 !important;
  }
  
  .faq-a p {
    color: #b8b8c8 !important;
  }
  
  label {
    color: #e8e8f0 !important;
  }
  
  .form-wrap h3 {
    color: #e8e8f0 !important;
  }
  
  .form-success h3 {
    color: #e8e8f0 !important;
  }
  
  .form-success p {
    color: #b8b8c8 !important;
  }
  
  .check-field label {
    color: #b8b8c8 !important;
  }
  
  .security-quote {
    color: #e8e8f0 !important;
  }
  
  #seguridad .section-title {
    color: #e8e8f0 !important;
  }
  
  .metric-box b {
    color: #e8e8f0 !important;
  }
  
  .ind-chip {
    color: #e8e8f0 !important;
  }
  
  .metric-box {
    background: #1a1a2e;
  }
  
  .pain-card {
    background: #1a1a2e;
  }
  
  .diff-card {
    background: rgba(255,255,255,0.04) !important;
  }
  
  .mod-card .code {
    color: var(--sglb-accent-light);
  }
  
  .mod-card h3 {
    color: #e8e8f0;
  }
  
  .mod-card .tagline {
    color: #8a8a9e;
  }
  
  .mod-card p.desc {
    color: #b8b8c8;
  }
}

/* ---------- INDUSTRIAS ---------- */
.industries-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.ind-chip {
  background: var(--sglb-primary);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.25s ease;
  letter-spacing: 0.03em;
  cursor: default;
  position: relative;
  overflow: hidden;
}

/* Efecto de brillo al hover */
.ind-chip::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ind-chip:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(26, 58, 92, 0.3);
  background: var(--sglb-secondary);
  border-color: var(--sglb-accent-light);
}

.ind-chip:hover::before {
  opacity: 1;
}

/* Para dar variedad, colores alternativos */
.ind-chip:nth-child(3n+1) {
  background: var(--sglb-primary);
}

.ind-chip:nth-child(3n+2) {
  background: var(--sglb-secondary);
}

.ind-chip:nth-child(3n+3) {
  background: var(--sglb-gradient-start);
}

.ind-chip:nth-child(3n+1):hover {
  background: var(--sglb-secondary);
}

.ind-chip:nth-child(3n+2):hover {
  background: var(--sglb-accent);
}

.ind-chip:nth-child(3n+3):hover {
  background: var(--sglb-primary);
}

/* ---------- HERO CON LOGO CENTRADO ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(74,144,217,.16), transparent 60%),
    linear-gradient(180deg, var(--sglb-primary), var(--sglb-gradient-start));
  color: #fff;
  overflow: hidden;
  padding: 40px 0 72px 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: 
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner { 
  position: relative; 
  z-index: 1; 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 48px; 
  align-items: center; 
}

/* Logo superior centrado */
.hero-logo-wrapper {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-brand {
  font-size: 5.8rem !important;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--sglb-accent) !important;
  display: inline-block;
  text-shadow: 0 0 60px rgba(74,144,217,0.2);
  position: relative;
}

.hero-brand::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sglb-accent), transparent);
}

.hero-tagline {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  font-weight: 300;
}

/* Contenido principal del hero */
.hero-content {
  grid-column: 1 / 2;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero p.lead { 
  font-size: 1.18rem; 
  color: #cfe0ee; 
  margin: 0 0 28px; 
  max-width: 620px; 
}

.hero .trust { 
  margin-top: 20px; 
  font-size: 0.85rem; 
  color: #9fb4c6; 
}
.hero .trust b { color: #fff; font-weight: 600; }

.hero-ctas { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
}

.hero-extra { margin-top: 16px; }

/* Visual panel lado derecho */
.hero-visual {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-inner { 
    grid-template-columns: 1fr; 
  }
  
  .hero-content {
    grid-column: 1 / -1;
  }
  
  .hero-visual {
    grid-column: 1 / -1;
    display: none;
  }
  
  .hero-logo-wrapper {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }
  
  .hero-brand {
    font-size: 4.2rem !important;
  }
  
  .hero-tagline {
    font-size: 0.65rem;
    letter-spacing: 4px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 24px 0 52px 0;
  }
  
  .hero-brand {
    font-size: 2.8rem !important;
  }
  
  .hero-tagline {
    font-size: 0.55rem;
    letter-spacing: 3px;
    margin-top: 8px;
  }
  
  .hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
  
  .hero p.lead {
    font-size: 1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   FIX RESPONSIVE PARA MÓVILES - AGREGADO 2026-08-05
   ============================================================ */

/* ---------- Correcciones para todos los dispositivos móviles ---------- */
@media screen and (max-width: 768px) {
    /* Reset de contenedores */
    .container {
        padding: 0 12px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Hero - hacerlo más compacto */
    .hero {
        padding: 20px 0 40px 0 !important;
    }
    
    .hero-inner {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .hero-logo-wrapper {
        margin-bottom: 8px !important;
        padding-bottom: 12px !important;
    }
    
    .hero-brand {
        font-size: 2.8rem !important;
    }
    
    .hero-tagline {
        font-size: 0.6rem !important;
        letter-spacing: 3px !important;
    }
    
    .hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
    }
    
    .hero p.lead {
        font-size: 0.95rem !important;
    }
    
    .hero-ctas {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .hero-ctas .btn {
        width: 100% !important;
        text-align: center !important;
        padding: 14px !important;
    }
    
    .hero .trust {
        font-size: 0.75rem !important;
        text-align: center !important;
    }
    
    .hero-visual {
        display: none !important;
    }
    
    /* Todas las secciones */
    section {
        padding: 40px 0 !important;
    }
    
    /* Títulos */
    .section-title {
        font-size: 1.5rem !important;
        word-wrap: break-word !important;
    }
    
    .section-sub {
        font-size: 0.95rem !important;
    }
    
    /* Grids - forzar 1 columna */
    .grid-3,
    .grid-4,
    .mod-grid,
    .steps,
    .metrics-grid,
    #testimonios-container.grid-3 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Tarjetas - asegurar ancho completo */
    .card,
    .step,
    .mod-card,
    .metric-box,
    .testimonio-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 16px !important;
    }
    
    /* Chips de industrias */
    .industries-row {
        gap: 6px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .ind-chip {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
        white-space: nowrap !important;
    }
    
    /* Métricas */
    .metric-box b {
        font-size: 1.5rem !important;
    }
    
    .metric-box span {
        font-size: 0.8rem !important;
    }
    
    /* Formulario - CRÍTICO para móviles */
    .form-wrap {
        padding: 16px !important;
        margin: 0 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 8px !important;
    }
    
    .form-wrap h3 {
        font-size: 1.1rem !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .form-field.full {
        grid-column: 1 / -1 !important;
    }
    
    .form-actions .btn {
        width: 100% !important;
        padding: 14px !important;
    }
    
    input, select, textarea {
        font-size: 16px !important; /* Evita zoom en iOS */
        padding: 10px 12px !important;
    }
    
    /* Tabs de módulos */
    .tabs {
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    .tab-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
    }
    
    /* Módulos */
    .mod-card .modulo-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    
    .mod-card .modulo-estado {
        margin-left: 0 !important;
        align-self: flex-start !important;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 6px !important;
        font-size: 0.75rem !important;
    }
    
    /* Navegación - menú hamburguesa */
    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--sglb-primary) !important;
        padding: 16px 20px 24px !important;
        gap: 12px !important;
        border-top: 1px solid rgba(255,255,255,0.12) !important;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
        z-index: 200 !important;
    }
    
    .nav-links.open {
        display: flex !important;
    }
    
    .nav-links a {
        padding: 8px 0 !important;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    .nav-links a:last-child {
        border-bottom: none !important;
    }
    
    .nav-cta.header-cta {
        display: none !important;
    }
    
    .menu-toggle {
        display: block !important;
        font-size: 1.5rem !important;
        padding: 4px 12px !important;
    }
    
    /* Cookie banner */
    .cookie-banner-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }
    
    .cookie-banner-buttons {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .cookie-banner-buttons .btn {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Testimonios */
    .testimonio-header {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .testimonio-foto {
        width: 48px !important;
        height: 48px !important;
    }
    
    /* FAQ */
    .faq-q {
        font-size: 0.95rem !important;
        padding: 14px 4px !important;
    }
    
    .faq-a p {
        font-size: 0.9rem !important;
    }
    
    /* Párrafos y textos */
    p, li, .step p, .card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Promesas y citas */
    .promise {
        font-size: 1rem !important;
        padding: 16px 18px !important;
        margin: 0 0 24px !important;
    }
    
    .diff-quote {
        font-size: 1.1rem !important;
        padding: 0 8px !important;
    }
    
    .security-quote {
        font-size: 1rem !important;
    }
    
    /* Corregir overflow */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Imágenes y medios */
    img, .visual-panel {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Logo en header */
    .logo {
        font-size: 1.2rem !important;
    }
    
    .logo small {
        display: none !important;
    }
}

/* ---------- Teléfonos muy pequeños (menos de 400px) ---------- */
@media screen and (max-width: 400px) {
    .hero-brand {
        font-size: 2.2rem !important;
    }
    
    .hero h1 {
        font-size: 1.3rem !important;
    }
    
    .section-title {
        font-size: 1.3rem !important;
    }
    
    .form-wrap {
        padding: 12px !important;
    }
    
    .ind-chip {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
    }
    
    .card, .step, .mod-card {
        padding: 12px !important;
    }
}

/* ---------- Tablets (modo paisaje) ---------- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .mod-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ---------- Asegurar que el menú hamburguesa funcione ---------- */
@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        flex-direction: row !important;
        gap: 20px !important;
        box-shadow: none !important;
    }
    
    .nav-links a {
        border-bottom: none !important;
        padding: 0 !important;
    }
    
    .nav-cta.header-cta {
        display: inline-block !important;
    }
}

/* ============================================================
   FIX: FORMULARIO RESPONSIVE - INPUTS QUE NO SE SALEN
   ============================================================ */

/* ---------- Corrección radical para el formulario ---------- */
@media screen and (max-width: 768px) {
    /* Contenedor del formulario */
    .form-wrap {
        padding: 12px 8px !important;
        margin: 0 4px !important;
        width: calc(100% - 8px) !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Grid del formulario - forzar 1 columna */
    .form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Cada campo del formulario */
    .form-field {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    
    /* Forzar que los inputs ocupen todo el ancho disponible */
    .form-field input,
    .form-field select,
    .form-field textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; /* Evita que se desborden */
        box-sizing: border-box !important;
        padding: 12px 10px !important;
        font-size: 16px !important; /* Evita zoom en iOS */
        border-radius: 6px !important;
        border: 1.5px solid var(--gray-200) !important;
    }
    
    /* Campo de texto (textarea) */
    .form-field textarea {
        min-height: 80px !important;
        resize: vertical !important;
        width: 100% !important;
    }
    
    /* Checkbox - alinear correctamente */
    .check-field {
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 2px !important;
    }
    
    .check-field input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        flex-shrink: 0 !important;
        margin-top: 2px !important;
    }
    
    .check-field label {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }
    
    /* Botón del formulario */
    .form-actions .btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
    }
    
    /* Select - asegurar que no se desborde */
    .form-field select {
        appearance: auto !important;
        -webkit-appearance: auto !important;
        padding: 12px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        background-color: #fff !important;
    }
    
    /* Labels */
    .form-field label {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        display: block !important;
        width: 100% !important;
    }
    
    /* Mensajes de error */
    .field-error {
        font-size: 0.75rem !important;
    }
    
    /* Nota de privacidad */
    .privacy-note {
        font-size: 0.75rem !important;
        padding: 0 2px !important;
        line-height: 1.4 !important;
    }
}

/* ---------- Móviles muy pequeños (menos de 400px) ---------- */
@media screen and (max-width: 400px) {
    .form-wrap {
        padding: 8px 4px !important;
        margin: 0 2px !important;
    }
    
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 10px 8px !important;
        font-size: 15px !important;
    }
    
    .form-actions .btn {
        padding: 12px !important;
        font-size: 0.9rem !important;
    }
}

/* ---------- Asegurar que todo el formulario no se desborde ---------- */
.form-wrap,
.form-wrap * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ---------- Fix para el contenedor principal ---------- */
.cta-band .container {
    padding: 0 8px !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
