/* ==========================================================================
   PRESUPUESTA ESTUDIOS — DESIGN SYSTEM & STYLES
   Estudio de Diseño Web & Posicionamiento Local para Profesionales de Gremios y Reformas
   Optimizado para máxima velocidad (100/100 PageSpeed), UX Móvil y Cero Efecto IA
   ========================================================================== */

:root {
  /* Paleta Editorial Premium (Profesional, elegante, sin estridencias fluorescentes) */
  --bg-main: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #162036;
  --bg-card: #111a2e;
  --bg-card-hover: #15223c;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.5);
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* Acentos de Confianza y Conversión */
  --color-brand: #10b981;        /* Esmeralda profesional */
  --color-brand-hover: #059669;  /* Verde oscuro para hover */
  --color-brand-soft: rgba(16, 185, 129, 0.12);
  --color-brand-glow: rgba(16, 185, 129, 0.2);

  --color-whatsapp: #22c55e;
  --color-whatsapp-dark: #15803d;

  --color-gold: #fbbf24;
  --color-danger: #f87171;

  /* Tipografía y Contraste WCAG AAA */
  --text-primary: #ffffff;
  --text-body: #cbd5e1;          /* Alto contraste para lectura cómoda */
  --text-muted: #94a3b8;
  --text-dark: #090d16;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1180px;
  --header-height: 70px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 90% 15%, rgba(14, 165, 233, 0.04) 0%, transparent 45%);
}

/* Accesibilidad Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-brand);
  color: #000;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select {
  font-family: inherit;
  font-size: 1rem; /* Previene zoom automático en iOS Safari */
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --------------------------------------------------------------------------
   BOTONES & ELEMENTOS DE LLAMADA A LA ACCIÓN
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 48px; /* Target táctil óptimo para móvil */
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-brand);
  color: #032014;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  background-color: #34d399;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #02260f;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}

.btn-whatsapp:hover {
  background-color: #4ade80;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
  min-height: 52px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
  min-height: 40px;
}

/* --------------------------------------------------------------------------
   BADGES & PÍLDORAS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--color-brand-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-brand);
  box-shadow: 0 0 8px var(--color-brand);
}

/* --------------------------------------------------------------------------
   HEADER & NAVEGACIÓN
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  transition: background-color var(--transition-fast);
}

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

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

.brand-logo-img {
  width: auto;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.logo-group:hover .brand-logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-text span {
  color: #ff7a00; /* Naranja enérgico corporativo de presupuesta.net */
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav links desktop (Centrado, limpio, con márgenes equilibrados) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 auto;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Botón Hamburguesa Móvil */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #fff;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay para Menú Móvil */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Menú Drawer Móvil Lateral Desplegable */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 340px;
  background: #0d1424;
  border-left: 1px solid var(--border-light);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #fff;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-drawer-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.mobile-drawer-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.mobile-drawer-link:hover,
.mobile-drawer-link:active {
  background: var(--color-brand-soft);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.mobile-drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 50px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

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

.hero-description {
  font-size: 1.12rem;
  color: var(--text-body);
  max-width: 580px;
  line-height: 1.6;
}

.hero-description strong {
  color: #fff;
}

/* Selector de Gremio */
.gremio-selector-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gremio-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gremio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.chip-btn.active {
  background: var(--color-brand-soft);
  border-color: var(--color-brand);
  color: #34d399;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.hero-trust-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.trust-bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.trust-bullet svg {
  color: var(--color-brand);
  flex-shrink: 0;
}

/* Preview Card Realista en Hero (Estilo Teléfono / Tarjeta Google Real) */
.hero-visual-card {
  position: relative;
}

.phone-mockup-frame {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
  position: relative;
}

.phone-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.phone-preview-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin-bottom: 14px;
}

.preview-tab {
  flex: 1;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  text-align: center;
  transition: all var(--transition-fast);
}

.preview-tab.active {
  background: #1e293b;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Tarjeta Real de Google Maps */
.google-maps-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.maps-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.maps-biz-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.maps-stars-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.maps-stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.maps-details-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-body);
}

.maps-details-list span strong {
  color: #34d399;
}

.maps-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.maps-action-btn {
  padding: 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.maps-btn-call {
  background: var(--color-brand);
  color: #02260f;
  font-weight: 700;
}

.maps-btn-web {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-light);
}

/* Tarjeta Chat IA */
.ai-dialog-box {
  background: #1e293b;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-bubble-user {
  background: rgba(255, 255, 255, 0.07);
  padding: 10px 14px;
  border-radius: 12px 12px 2px 12px;
  font-size: 0.85rem;
  color: #e2e8f0;
  align-self: flex-end;
  max-width: 90%;
}

.ai-bubble-bot {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 12px 14px;
  border-radius: 12px 12px 12px 2px;
  font-size: 0.85rem;
  color: #f1f5f9;
  line-height: 1.5;
}

.ai-bubble-bot mark {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   BARRA DE MÉTRICAS / NÚMEROS REALES
   -------------------------------------------------------------------------- */
.stats-strip {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: #0b1120;
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.stat-num span {
  color: var(--color-brand);
}

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

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

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand);
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: #fff;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-body);
}

/* Tarjetas Estilo Studio */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   LOS 4 PILARES
   -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

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

.pillar-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-brand);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.pillar-step {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pillar-title {
  font-size: 1.3rem;
  color: #fff;
}

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

.pillar-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.pillar-bullets li {
  font-size: 0.88rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bullet-check {
  color: var(--color-brand);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   SHOWROOM COMPARATIVO GEO & BÚSQUEDA
   -------------------------------------------------------------------------- */
.showroom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.showroom-card-bad {
  border-color: rgba(248, 113, 113, 0.2);
  background: #111420;
}

.showroom-card-good {
  border-color: rgba(16, 185, 129, 0.35);
  background: #0f192b;
}

.tag-bad {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

.tag-good {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   CALCULADORA DE RETORNO / DINERO PERDIDO (ROI)
   -------------------------------------------------------------------------- */
.calc-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.slider-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
}

.slider-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand);
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-brand);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-result-box {
  background: #0b1324;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.loss-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.loss-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #f87171;
  letter-spacing: -0.02em;
}

.gain-row {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gain-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #34d399;
}

/* --------------------------------------------------------------------------
   CASOS REALES (HAKIM, MOHA)
   -------------------------------------------------------------------------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.case-title {
  font-size: 1.18rem;
  color: #fff;
}

.case-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.case-m-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-brand);
}

.case-m-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.case-quote {
  font-size: 0.88rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.5;
  border-left: 2px solid var(--color-brand);
/* --------------------------------------------------------------------------
   SECCIÓN SOFTWARE PRESUPUESTA CON IA
   -------------------------------------------------------------------------- */
.software-card {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}

.software-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
}

.software-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.software-preview-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.software-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.3), rgba(255, 122, 0, 0.12), transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  z-index: 0;
}

.software-img-link {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(37, 99, 235, 0.25);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  background: #090d16;
}

.software-img-link:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(37, 99, 235, 0.45);
}

.software-preview-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.software-badge-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.software-img-link:hover .software-badge-pill {
  background: rgba(37, 99, 235, 0.95);
  color: #ffffff;
}

.live-indicator {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-green 2s infinite ease-in-out;
}

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

/* --------------------------------------------------------------------------
   TABLA COMPARATIVA
   -------------------------------------------------------------------------- */
.table-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.table-scroll-hint {
  display: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 8px;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-card);
  min-width: 640px; /* Asegura legibilidad en móvil con scroll horizontal */
}

.custom-table th, 
.custom-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.custom-table th {
  background: #0f172a;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

.custom-table th.col-brand,
.custom-table td.col-brand {
  background: rgba(16, 185, 129, 0.05);
  border-left: 1px solid rgba(16, 185, 129, 0.2);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
}

.custom-table th.col-brand {
  color: #34d399;
}

.custom-table td.col-brand {
  font-weight: 600;
  color: #fff;
}

.text-cross {
  color: #f87171;
  font-weight: 700;
}

.text-tick {
  color: #34d399;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   PRECIOS
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.pricing-card.featured {
  background: #111d33;
  border-color: var(--color-brand);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
  transform: scale(1.02);
  z-index: 2;
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand);
  color: #032014;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
}

.pricing-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.pricing-bullets li {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.faq-item.active {
  border-color: rgba(16, 185, 129, 0.4);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  min-height: 56px;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--color-brand);
  transition: transform var(--transition-normal);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.6;
}

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

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: #070a12;
  padding: 60px 0 100px; /* Espacio para barra flotante móvil */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   BARRA MÓVIL STICKY
   -------------------------------------------------------------------------- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.mobile-sticky-inner {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-pill);
  min-height: 48px;
}

/* --------------------------------------------------------------------------
   MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  background: #0f172a;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES (TABLETS & SMARTPHONES)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --header-height: 64px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-copy {
    text-align: center;
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust-bullets {
    justify-content: center;
  }
  .gremio-chips {
    justify-content: center;
  }
  .hero-visual-card {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .showroom-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .cases-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .software-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .software-img-link {
    max-width: 400px;
    margin: 0 auto;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: block;
  }
  .table-scroll-hint {
    display: block;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .section {
    padding: 55px 0;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .header-right .btn-whatsapp {
    display: none;
  }
}
