/* ==========================================================================
   FACTURLY - SISTEMA DE DISEÑO & ESTILOS CSS
   Landing Page Oficial de Autofactura CFDI 4.0
   Colores: Azul Noche (#0b2653) & Verde Menta (#1db28a)
   Tipografía: Outfit
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Paleta Oficial Facturly */
  --brand-navy: #0b2653;
  --brand-navy-dark: #061733;
  --brand-navy-deep: #030d1e;
  --brand-navy-light: #153b7a;
  --brand-navy-subtle: #edf2f9;

  --brand-mint: #1db28a;
  --brand-mint-hover: #169674;
  --brand-mint-dark: #12795e;
  --brand-mint-light: #e8f7f2;
  --brand-mint-glow: rgba(29, 178, 138, 0.28);
  --brand-mint-border: #a7e7d5;

  /* Estados de Fricción / Alerta SAT */
  --friction-red: #e11d48;
  --friction-red-bg: #fff1f2;
  --friction-red-border: #fecdd3;

  /* Neutros & Superficies */
  --surface-white: #ffffff;
  --surface-bg: #f8fafc;
  --surface-subtle: #f1f5f9;
  --surface-card: #ffffff;
  --surface-hover: #fbfcfe;

  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #1db28a;

  /* Textos */
  --text-primary: #0b2653;
  --text-heading: #071733;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #94a3b8;

  /* Tipografía */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras FinTech */
  --shadow-xs: 0 1px 2px 0 rgba(11, 38, 83, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(11, 38, 83, 0.06), 0 1px 2px -1px rgba(11, 38, 83, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(11, 38, 83, 0.08), 0 2px 6px -1px rgba(11, 38, 83, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(11, 38, 83, 0.1), 0 4px 12px -2px rgba(11, 38, 83, 0.05);
  --shadow-xl: 0 20px 32px -6px rgba(11, 38, 83, 0.14), 0 8px 16px -4px rgba(11, 38, 83, 0.08);
  --shadow-mint: 0 8px 24px -4px rgba(29, 178, 138, 0.35);

  /* Transiciones */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--surface-bg);
  color: var(--text-body);
}

body {
  overflow-x: hidden;
  background-color: var(--surface-white);
  line-height: 1.55;
}

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

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

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

/* Micro Patrón de Fondo FinTech */
.bg-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 820px;
  background-image: 
    radial-gradient(rgba(11, 38, 83, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(232, 247, 242, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  background-size: 28px 28px, 100% 100%;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
}

/* --------------------------------------------------------------------------
   3. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 960px;
}

.section-spacing {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

.section-spacing-sm {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Encabezados de Sección */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--brand-mint-light);
  border: 1px solid var(--brand-mint-border);
  color: var(--brand-mint-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-tag.tag-navy {
  background-color: var(--brand-navy-subtle);
  border-color: #cbdcf2;
  color: var(--brand-navy);
}

.section-tag.tag-danger {
  background-color: var(--friction-red-bg);
  border-color: var(--friction-red-border);
  color: var(--friction-red);
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. NAVBAR FLUIDA & MODERNA
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.96);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-isotipo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(11, 38, 83, 0.12));
}

.brand-text {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.brand-text span {
  color: var(--brand-mint);
}

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 24px);
  list-style: none;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

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

.nav-item a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  transition: var(--transition-fast);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  display: inline-block;
}

.nav-item a:hover {
  color: var(--brand-mint-dark);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-mint);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-item a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-actions .btn {
  white-space: nowrap;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: var(--brand-mint);
  color: #ffffff;
  box-shadow: var(--shadow-mint);
}

.btn-primary:hover {
  background-color: var(--brand-mint-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(29, 178, 138, 0.45);
}

.btn-navy {
  background-color: var(--brand-navy);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-navy:hover {
  background-color: var(--brand-navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: #ffffff;
  border-color: var(--border-light);
  color: var(--brand-navy);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  border-color: var(--brand-navy);
  background-color: var(--surface-bg);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

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

/* Botón Hamburguesa Móvil */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--brand-navy);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION: CONVERSIÓN & SIMULADOR INTERACTIVO
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 50px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 16px 6px 8px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}

.hero-pill-badge {
  background-color: var(--brand-mint);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hero-pill-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.hero-title {
  font-size: clamp(2.5rem, 4.4vw, 3.7rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero-title .highlight-mint {
  color: var(--brand-mint);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-mint::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background-color: var(--brand-mint-light);
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.hero-badge-item svg {
  color: var(--brand-mint);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-guarantee-sat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--brand-navy);
}

/* --------------------------------------------------------------------------
   6. SIMULADOR INTERACTIVO (TICKET POS -> SMARTPHONE MOCKUP)
   -------------------------------------------------------------------------- */
.simulator-wrapper {
  position: relative;
  background: linear-gradient(145deg, #ffffff, #f6fafd);
  border: 1px solid #dbe6f5;
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  box-shadow: var(--shadow-xl);
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-light);
}

.sim-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sim-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-mint);
  box-shadow: 0 0 0 3px rgba(29, 178, 138, 0.25);
  animation: pulse-mint 2s infinite;
}

@keyframes pulse-mint {
  0% { box-shadow: 0 0 0 0 rgba(29, 178, 138, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(29, 178, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 178, 138, 0); }
}

.sim-reset-btn {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sim-reset-btn:hover {
  background-color: #ffffff;
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.simulator-stage {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 20px;
  align-items: start;
}

/* Ticket Térmico Realista */
.pos-ticket {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 18px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  border: 1px solid #e5e9f0;
  position: relative;
  font-family: 'Outfit', monospace;
  font-size: 0.82rem;
}

.pos-ticket::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: radial-gradient(circle, transparent, transparent 50%, #ffffff 50%, #ffffff 100%);
  background-size: 12px 12px;
}

.ticket-header {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
  margin-bottom: 10px;
}

.ticket-store {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-navy);
}

.ticket-folio {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.ticket-items {
  margin-bottom: 12px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.ticket-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-navy);
  border-top: 1px dashed #cbd5e1;
  padding-top: 6px;
  margin-top: 6px;
}

/* Código QR en Ticket */
.ticket-qr-box {
  margin-top: 14px;
  text-align: center;
  background-color: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: var(--transition-normal);
}

.ticket-qr-box:hover {
  border-color: var(--brand-mint);
  background-color: var(--brand-mint-light);
  transform: scale(1.02);
}

.ticket-qr-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 6px auto;
  border-radius: 6px;
  background-color: #ffffff;
  padding: 4px;
  box-shadow: var(--shadow-xs);
}

.ticket-qr-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-mint-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Smartphone Mockup */
.phone-mockup {
  background: #ffffff;
  border: 2px solid #0f172a;
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 16px 36px -10px rgba(11, 38, 83, 0.22);
  min-height: 440px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 80px;
  height: 14px;
  background-color: #0f172a;
  border-radius: 0 0 10px 10px;
  margin: -12px auto 8px auto;
}

.phone-screen {
  flex: 1;
  background-color: #ffffff;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.screen-step {
  display: none;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.3s ease;
}

.screen-step.active {
  display: flex;
}

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

.step-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.step-nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-navy);
}

.step-indicator {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-mint-dark);
  background-color: var(--brand-mint-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Pantalla 1: Escaneo inicial */
.scan-camera-view {
  background-color: #0f172a;
  border-radius: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 16px;
  text-align: center;
}

.scan-target-box {
  width: 130px;
  height: 130px;
  border: 2px dashed var(--brand-mint);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
}

.scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-mint);
  box-shadow: 0 0 10px var(--brand-mint);
  animation: scan-move 2s infinite ease-in-out;
}

@keyframes scan-move {
  0%, 100% { top: 0%; opacity: 0.4; }
  50% { top: 100%; opacity: 1; }
}

.scan-action-btn {
  background-color: var(--brand-mint);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(29, 178, 138, 0.4);
  transition: var(--transition-fast);
}

.scan-action-btn:hover {
  background-color: var(--brand-mint-hover);
  transform: scale(1.04);
}

/* Pantalla 2: Validación de Datos */
.mock-form-group {
  margin-bottom: 10px;
}

.mock-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.mock-sat-valid {
  color: var(--brand-mint-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.mock-input {
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.mock-input:focus {
  outline: none;
  border-color: var(--brand-mint);
  background-color: #ffffff;
}

.mock-constancia-upload {
  border: 1px dashed #cbd5e1;
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 12px;
}

/* Pantalla 3: Éxito y Descarga */
.success-screen {
  text-align: center;
  padding-top: 10px;
}

.success-seal {
  width: 56px;
  height: 56px;
  background-color: var(--brand-mint-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-mint);
  margin: 0 auto 12px auto;
  border: 2px solid var(--brand-mint);
}

.success-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.success-uuid {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: monospace;
  background-color: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
  word-break: break-all;
}

.success-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.download-chip {
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-whatsapp-send {
  background-color: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   7. REALIDAD OPERATIVA VS FLUJO FACTURLY (COMPARATIVA DE IMPACTO)
   -------------------------------------------------------------------------- */
.comparison-section {
  background-color: #ffffff;
}

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

.comparison-col {
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: var(--transition-normal);
}

/* Columna Fricción Tradicional */
.col-friction {
  background-color: #fff9f9;
  border: 1px solid #ffd6db;
  box-shadow: var(--shadow-sm);
}

.col-friction:hover {
  box-shadow: 0 12px 30px -8px rgba(225, 29, 72, 0.12);
}

.col-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #fee2e2;
}

.col-header-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.col-friction .col-header-icon {
  background-color: var(--friction-red-bg);
  color: var(--friction-red);
}

.col-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #881337;
  line-height: 1.2;
}

.col-subtitle {
  font-size: 0.92rem;
  color: #9f1239;
  margin-top: 2px;
}

/* Columna Facturly */
.col-facturly {
  background: linear-gradient(160deg, #f3fcf8 0%, #ffffff 100%);
  border: 2px solid var(--brand-mint);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.col-facturly .col-header-icon {
  background-color: var(--brand-mint-light);
  color: var(--brand-mint);
}

.col-facturly .col-header {
  border-bottom: 1px solid #d1fae5;
}

.col-facturly .col-title {
  color: var(--brand-navy);
}

.col-facturly .col-subtitle {
  color: var(--brand-mint-dark);
  font-weight: 600;
}

.badge-recommended {
  position: absolute;
  top: -14px;
  right: 28px;
  background-color: var(--brand-mint);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(29, 178, 138, 0.4);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.item-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.col-friction .item-icon {
  background-color: #fee2e2;
  color: var(--friction-red);
}

.col-facturly .item-icon {
  background-color: #d1fae5;
  color: var(--brand-mint-dark);
}

.item-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.col-friction .item-content h4 {
  color: #9f1239;
}

.col-facturly .item-content h4 {
  color: var(--brand-navy);
}

.item-content p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. PILARES DE SOLUCIÓN & BENEFICIOS OPERATIVOS
   -------------------------------------------------------------------------- */
.pillars-section {
  background-color: var(--surface-bg);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: transparent;
  transition: var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.pillar-card:hover::before {
  background-color: var(--brand-mint);
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background-color: var(--brand-mint-light);
  color: var(--brand-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition-fast);
}

.pillar-card:hover .pillar-icon-box {
  background-color: var(--brand-mint);
  color: #ffffff;
  transform: scale(1.08);
}

.pillar-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.pillar-desc {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.6;
  flex-grow: 1;
}

.pillar-tag {
  margin-top: 20px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-navy);
  background-color: var(--surface-bg);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   9. CALCULADORA INTERACTIVA DE AHORRO Y FUGA OPERATIVA
   -------------------------------------------------------------------------- */
.calculator-section {
  background-color: #ffffff;
  position: relative;
}

.calculator-card {
  background: linear-gradient(145deg, #0b2653 0%, #071733 100%);
  border-radius: var(--radius-xl);
  color: #ffffff;
  padding: 50px 48px;
  box-shadow: 0 24px 48px -12px rgba(11, 38, 83, 0.4);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.calc-ambient-circle {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 178, 138, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
}

.slider-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-mint);
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-mint);
  border: 3px solid #ffffff;
  box-shadow: 0 0 10px rgba(29, 178, 138, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Panel de Resultados del Dashboard */
.calc-results-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.calc-result-main {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-result-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-mint);
}

.calc-result-amount {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin: 6px 0;
  letter-spacing: -0.03em;
}

.calc-result-desc {
  font-size: 0.88rem;
  color: #94a3b8;
}

.calc-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-metric-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}

.metric-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-mint);
}

.metric-title {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.calc-cta-btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   10. CÓMO FUNCIONA (PASO A PASO VISUAL)
   -------------------------------------------------------------------------- */
.how-it-works-section {
  background-color: var(--surface-bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-mint-border);
}

.step-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.8rem;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: var(--transition-fast);
}

.step-card:hover .step-number {
  color: var(--brand-mint-light);
}

.step-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--brand-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.step-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. CASOS DE USO / INDUSTRIAS
   -------------------------------------------------------------------------- */
.industries-section {
  background-color: #ffffff;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.industry-box {
  background-color: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.industry-box:hover {
  background-color: #ffffff;
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.industry-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-mint-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.industry-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.industry-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. BLINDAJE SAT CFDI 4.0 & SEGURIDAD
   -------------------------------------------------------------------------- */
.sat-section {
  background-color: var(--brand-navy-dark);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.sat-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(29, 178, 138, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.sat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.sat-content .section-title {
  color: #ffffff;
}

.sat-content .section-subtitle {
  color: #cbd5e1;
}

.sat-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.sat-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: #e2e8f0;
}

.sat-bullet-item svg {
  color: var(--brand-mint);
  flex-shrink: 0;
  margin-top: 3px;
}

.sat-shield-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.sat-rule-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(225, 29, 72, 0.2);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #fda4af;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.sat-rule-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.sat-rule-text {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.sat-compliance-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(29, 178, 138, 0.15);
  border: 1px solid rgba(29, 178, 138, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-mint);
}

/* --------------------------------------------------------------------------
   13. PREGUNTAS FRECUENTES (FAQ ACORDEÓN)
   -------------------------------------------------------------------------- */
.faq-section {
  background-color: #ffffff;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
  background-color: #ffffff;
}

.faq-item.active {
  border-color: var(--brand-mint);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy);
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--brand-mint-dark);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--surface-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
  color: var(--brand-navy);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: var(--brand-mint-light);
  color: var(--brand-mint-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 24px;
}

.faq-answer-inner {
  padding-bottom: 22px;
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   14. CTA FINAL & FORMULARIO MODERNO
   -------------------------------------------------------------------------- */
.cta-section {
  background-color: var(--surface-bg);
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, #0b2653 0%, #153b7a 100%);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  box-shadow: var(--shadow-xl);
}

.cta-content h2 {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.cta-content p {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 28px;
}

.cta-form-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: var(--brand-navy);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-heading);
  background-color: #f8fafc;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand-mint);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 178, 138, 0.2);
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--brand-navy-deep);
  color: #94a3b8;
  padding: 70px 0 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-text {
  color: #ffffff;
}

.footer-desc {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
  color: #94a3b8;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--brand-mint);
  border-color: var(--brand-mint);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--brand-mint-glow);
}

.footer-social-btn svg {
  display: block;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--brand-mint);
}

.footer-links a .footer-link-icon {
  flex-shrink: 0;
  color: inherit;
  opacity: 0.85;
}

.footer-links a:hover .footer-link-icon {
  color: var(--brand-mint);
  opacity: 1;
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-sipod-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.footer-sipod-badge strong {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .cta-box {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }

  .sat-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1180px) {
  .nav-actions .btn-outline {
    display: none;
  }
}

@media (max-width: 992px) {
  .navbar-nav {
    margin: 0;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  /* Menú Móvil Desplegable */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    gap: 16px;
    align-items: flex-start;
    z-index: 999;
  }

  .nav-links.mobile-open .nav-item a {
    font-size: 1.05rem;
    padding: 8px 0;
  }

  .nav-actions .btn-outline {
    display: none;
  }
}

@media (max-width: 768px) {
  .simulator-stage {
    grid-template-columns: 1fr;
  }

  .pos-ticket {
    order: 2;
  }

  .phone-mockup {
    order: 1;
    min-height: 480px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .section-spacing {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}
