/* ==========================================================================
   INTEGRA IT SOLUCIONES - SISTEMA DE DISEÑO LIGHT MODE CORPORATIVO / SAAS
   Inspirado en la ingeniería de software moderna (Vercel, Linear, Stripe)
   Tema claro minimalista, tipografía de alto contraste y bordes nítidos.
   ========================================================================== */

:root {
  /* Alias de compatibilidad para vistas secundarias */
  --bg-dark: 0deg 0% 100%;
  --primary: 221deg 83% 53%;         /* #2563eb */
  --primary-glow: 221deg 83% 53% / 8%;
  --secondary: 222deg 47% 11%;       /* #0f172a */
  --secondary-glow: 222deg 47% 11% / 5%;
  --accent: 221deg 83% 53%;
  --glass-bg: 0deg 0% 100% / 95%;
  --glass-border: 214deg 32% 91% / 100%;

  /* Paleta cromática Light Mode de alta precisión */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  /* Acentos de ingeniería sobrios */
  --accent-primary: #0f172a;
  --accent-primary-hover: #1e293b;
  --accent-primary-glow: rgba(15, 23, 42, 0.05);

  --accent-cobalt: #2563eb;
  --accent-cobalt-hover: #1d4ed8;
  --accent-cobalt-subtle: #eff6ff;

  --accent-secondary: #2563eb;
  --accent-secondary-glow: rgba(37, 99, 235, 0.08);

  --accent-success: #10b981;
  --accent-success-subtle: #ecfdf5;
  --accent-success-glow: rgba(16, 185, 129, 0.12);

  /* Textos y Jerarquía - Contraste nítido */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  /* Bordes nítidos de 1px planos */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-active: #2563eb;
  --border-glow: #94a3b8;

  /* Tipografías */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sombras y elevaciones limpias y sutiles */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* --- RESET & BASES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

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

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

button {
  font-family: inherit;
}

/* --- FONDO ESTRUCTURAL SUTIL --- */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, #f1f5f9 1px, transparent 1px),
    linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 40%, transparent 85%);
  pointer-events: none;
  z-index: -2;
}

/* Eliminamos degradados y blobs morados */
.ambient-glow,
.top-glow,
.right-glow {
  display: none !important;
}

/* --- PROGRESS BAR --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-cobalt);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s ease;
}

/* --- HEADER & NAVBAR --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.25s ease;
  background: transparent;
}

.header-active {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.navbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.15rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.logo-icon.small {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-success);
  box-shadow: 0 0 0 2px #ffffff, 0 0 6px rgba(16, 185, 129, 0.6);
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-subtle-link {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  background: var(--bg-secondary);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.nav-subtle-link:hover {
  color: var(--accent-cobalt) !important;
  border-color: var(--border-medium);
  background: var(--bg-tertiary);
}

.btn-nav-primary {
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--accent-primary);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.btn-nav-primary:hover {
  background: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  transition: all 0.2s ease;
}

/* --- BOTONES GLOBALES --- */
.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.55rem;
  border-radius: 8px;
  border: 1px solid var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.55rem;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

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

/* --- HERO SECTION --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cobalt);
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

/* Sin degradados: color sobrio y de alto contraste */
.dynamic-gradient {
  color: var(--accent-cobalt);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: initial;
  display: inline-block;
  min-height: 1.15em;
  font-weight: 800;
}

.dynamic-gradient::after {
  content: '|';
  color: var(--accent-cobalt);
  font-weight: 400;
  margin-left: 2px;
  animation: typewriter-cursor 1s step-end infinite;
}

@keyframes typewriter-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

/* Trust stats bar en Hero */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-item strong {
  font-size: 1.25rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 700;
}

.trust-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-separator {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* --- PANEL DE CAPACIDADES TÉCNICAS (HERO VISUAL) --- */
.capabilities-panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.capabilities-header {
  background: var(--bg-secondary);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.capabilities-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.capabilities-title-wrap h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.capabilities-badge {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--accent-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.capabilities-grid {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.capability-item:hover {
  border-color: var(--border-medium);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.capability-icon {
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  flex-shrink: 0;
}

.capability-info h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.capability-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.capabilities-footer {
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cap-footer-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cap-check {
  color: #059669;
  font-weight: 800;
}

.pill-text {
  display: flex;
  flex-direction: column;
}

.pill-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.pill-subtitle {
  font-size: 0.72rem;
  color: #059669;
  font-weight: 600;
}

/* --- BARRA DE MÉTRICAS / STANDARDS --- */
.metrics-bar {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 2.25rem 2rem;
}

.metrics-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.metric-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.metric-icon {
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.6rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--accent-cobalt);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.metric-data h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.metric-data p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- SECCIONES Y ENCABEZADOS --- */
section {
  padding: 6rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cobalt);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

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

/* --- SECTOR CARDS GRID --- */
.sectores-section {
  background: #ffffff;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.sector-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sector-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

.sector-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.sector-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.sector-icon-wrap {
  font-size: 1.6rem;
  line-height: 1;
}

.sector-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.sector-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.sector-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sector-features li {
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sector-features li svg {
  color: var(--accent-cobalt);
  flex-shrink: 0;
}

.sector-card-footer {
  text-align: left;
}

.sector-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cobalt);
  transition: all 0.2s ease;
}

.sector-link:hover {
  color: var(--accent-cobalt-hover);
  transform: translateX(3px);
}

/* --- BENEFICIOS & TECNOLOGÍA --- */
.beneficios-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}

.features-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-badge {
  width: 44px;
  height: 44px;
  background: var(--accent-cobalt-subtle);
  border: 1px solid #dbeafe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cobalt);
  flex-shrink: 0;
}

.feature-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.feature-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Tarjeta de métricas técnicas */
.tech-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  position: relative;
}

.tech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.tech-pill {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent-cobalt-subtle);
  border: 1px solid #bfdbfe;
  color: var(--accent-cobalt-hover);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.tech-date {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.speed-score-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 5px solid #10b981;
  margin: 0 auto 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.08);
}

.score-number {
  font-size: 3rem;
  font-weight: 800;
  color: #059669;
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.tech-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.tech-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.green-text {
  color: #059669;
  font-weight: 700;
}

/* --- COTIZADOR INTERACTIVO --- */
.cotizador-section {
  background: #ffffff;
}

.calc-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.calc-options {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-right: 1px solid var(--border-subtle);
  background: #ffffff;
}

.calc-option-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.calc-option-item:hover {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

.calc-option-item.active {
  background: var(--accent-cobalt-subtle);
  border-color: var(--accent-cobalt);
}

.calc-option-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calc-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #ffffff;
}

.calc-option-item.active .calc-checkbox {
  background: var(--accent-cobalt);
  border-color: var(--accent-cobalt);
}

.calc-option-item.active .calc-checkbox::after {
  content: '✓';
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.calc-option-text h4 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.calc-option-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calc-tag-included {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-success-subtle);
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Columna de resultado del cotizador */
.calc-result {
  padding: 2.5rem;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.calc-total-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-custom {
  font-size: 0.75rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.calc-selected-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.calc-selected-features li {
  font-size: 0.85rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.calc-selected-features li::before {
  content: '●';
  color: var(--accent-cobalt);
  font-size: 0.6rem;
}

.calc-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-top: 1rem;
}

.calc-notice svg {
  color: var(--accent-cobalt);
  flex-shrink: 0;
  margin-top: 2px;
}

.calc-cta {
  margin-top: 2rem;
}

/* --- SECCIÓN CONTACTO --- */
.contacto-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-intro p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.contact-card:hover {
  background: #ffffff;
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-cobalt-subtle);
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cobalt);
  flex-shrink: 0;
}

.contact-card-details h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.contact-card-details p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--text-faint);
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-card:hover .contact-arrow {
  color: var(--text-main);
  transform: translate(3px, -3px);
}

/* Caja de sistemas internos disponibles */
.system-modules-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
}

.system-modules-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.system-modules-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.module-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--text-body);
  transition: all 0.2s ease;
}

.module-chip:hover {
  background: var(--accent-cobalt-subtle);
  border-color: #bfdbfe;
  color: var(--accent-cobalt-hover);
}

/* Formulario */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.form-card-header {
  margin-bottom: 2rem;
}

.form-card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.form-card-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-body);
}

.form-group input,
.form-group textarea {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cobalt);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

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

/* --- FOOTER CORPORATIVO --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 5rem 2rem 2rem;
  margin-top: 0;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-motto {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a,
.footer-column span {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.footer-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 0 2px #ffffff, 0 0 6px var(--accent-success);
}

/* --- CLASES DE ANIMACIÓN Y REVEAL (Progressive Enhancement) --- */
.js-active .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-active .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-badge {
    margin: 0 auto 1.5rem;
  }

  .hero-desc {
    margin: 0 auto 2rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .features-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .calc-card {
    grid-template-columns: 1fr;
  }

  .calc-options {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .nav-links, .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .metrics-container {
    grid-template-columns: 1fr;
  }

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

  .form-full-width {
    grid-column: span 1;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase-header {
    flex-wrap: wrap;
  }

  .showcase-url-bar {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
}
