/* ==========================================================================
   VALHALLA IA - SYSTEM OF DESIGN (CSS) - DRAFT / BORRADOR
   Style Guide: Modern, Minimalist, Elegant, Editorial.
   ========================================================================== */

/* 1. IMPORTS & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Inter:wght@300;400;500;600&family=Outfit:wght@200;300;400;500;600&display=swap');

/* 2. CUSTOM PROPERTIES (VARIABLES) */
:root {
  /* Color Palette - Modo Oscuro Obsidiana */
  --primary: #FFFFFF;
  --primary-rgb: 255, 255, 255;
  --accent: #3A86F0; /* Azul zafiro de alto contraste */
  --accent-light: rgba(58, 134, 240, 0.1);
  --accent-metric: #5294e2; /* Azul para métricas en fondo oscuro */
  --whatsapp: #25C667; /* Verde WhatsApp vibrante */
  
  /* Bases Oscuras Modernas (Gris Carbón Elevado) */
  --bg-primary: #0d1015;   /* Carbón oscuro base */
  --bg-secondary: #161a23; /* Carbón oscuro elevado para tarjetas */
  --bg-tertiary: #1f2430;  /* Gris de contraste profundo */
  
  --text-main: #E5E5EA;    /* Blanco suave */
  --text-muted: #A1A1A6;   /* Gris medio */
  --text-light: #7C7C80;   /* Gris atenuado para leyendas */
  --border-light: #242c3d; /* Bordes carbón refinados */
  --border-dark: #E5E5EA;

  /* Typography */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;

  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary); /* Fondo grafito oscuro base */
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(58, 134, 240, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(58, 134, 240, 0.02) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.005) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' width='100%25' height='100%25'%3E%3Cg fill='none' stroke='%233A86F0' stroke-width='1.2' stroke-opacity='0.05'%3E%3Cpath d='M-100 250c200-50 300 50 500 0s300-50 500 0M-100 220c200-50 300 50 500 0s300-50 500 0M-100 190c200-50 300 50 500 0s300-50 500 0M-100 160c200-50 300 50 500 0s300-50 500 0'/%3E%3Cpath d='M250 200c100-80 200-80 300 0s200 80 300 0M270 180c90-70 180-70 270 0s180 70 270 0M290 160c80-60 160-60 240 0s160 60 240 0'/%3E%3Cpath d='M550 380c100-80 200-80 300 0s200 80 300 0M570 360c90-70 180-70 270 0s180 70 270 0M590 340c80-60 160-60 240 0s160 60 240 0'/%3E%3Cg stroke='%23ffffff' stroke-opacity='0.02'%3E%3Cpath d='M50 400c200-50 300 50 500 0M70 420c200-50 300 50 500 0M90 440c200-50 300 50 500 0'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-main);
  line-height: 1.7; /* Mayor espacio de lectura */
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
  padding-top: 113px; /* 38px top bar + 75px header offset */
}

/* Textura de grano de ruido digital ultra sutil (Estilo Vercel/Linear) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.015; /* Grano casi imperceptible pero que da textura física */
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Topographic Elevation Map Background Pattern (Subtle 5%-10% Opacity) */
.topographic-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' width='100%25' height='100%25'%3E%3Cg fill='none' stroke='%233A86F0' stroke-width='1.2' stroke-opacity='0.07'%3E%3Cpath d='M-100 250c200-50 300 50 500 0s300-50 500 0M-100 220c200-50 300 50 500 0s300-50 500 0M-100 190c200-50 300 50 500 0s300-50 500 0M-100 160c200-50 300 50 500 0s300-50 500 0'/%3E%3Cpath d='M250 200c100-80 200-80 300 0s200 80 300 0M270 180c90-70 180-70 270 0s180 70 270 0M290 160c80-60 160-60 240 0s160 60 240 0'/%3E%3Cpath d='M550 380c100-80 200-80 300 0s200 80 300 0M570 360c90-70 180-70 270 0s180 70 270 0M590 340c80-60 160-60 240 0s160 60 240 0'/%3E%3Cg stroke='%23ffffff' stroke-opacity='0.03'%3E%3Cpath d='M50 400c200-50 300 50 500 0M70 420c200-50 300 50 500 0M90 440c200-50 300 50 500 0'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Helper Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

/* 4. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary);
  font-weight: 300;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.text-uppercase-label {
  font-family: var(--font-title);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1rem;
}

/* 5. HEADER & NAVIGATION - STICKY TOP BAR & BLUR HEADER (SaaS Layout) */
.urgency-top-bar {
  background-color: #FF4A4A;
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(255, 74, 74, 0.12);
  height: 38px;
  display: flex;
  align-items: center;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn-top-bar {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 1rem;
  transition: opacity 0.3s ease;
}

.btn-top-bar:hover {
  opacity: 0.85;
}

.header {
  position: fixed;
  top: 38px; /* Colocado debajo de la barra superior */
  left: 0;
  width: 100%;
  height: 75px;
  z-index: 1000;
  background-color: rgba(10, 11, 13, 0.65); /* Grafito oscuro difuminado */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  transition: background-color 0.4s ease, top 0.4s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 100%;
  padding: 0 4rem; /* Amplio espacio horizontal de la cabecera */
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }
}

/* Fixed Logo Wrapper (Logo Nítido: Ícono + Texto HTML Fino) */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.7rem; /* Espaciado entre isotipo y texto */
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-header-icon {
  height: 38px; /* Altura proporcional y nítida */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(58, 134, 240, 0.12));
  display: block;
}

.logo-header-text {
  font-family: var(--font-title);
  font-size: 1.35rem; /* Un poco más grande para legibilidad */
  font-weight: 200; /* Letras más finas, idénticas al logotipo */
  letter-spacing: 0.18em; /* Tracking amplio elegante */
  color: var(--primary);
  text-transform: uppercase;
  line-height: 1;
}

.logo-header-text .brand-blue {
  color: var(--accent);
  font-weight: 200;
}

.logo:hover .logo-wrapper {
  opacity: 0.85;
}

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

.nav-link {
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--accent);
}

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

.btn-minimal {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--primary);
  background-color: transparent;
  color: var(--primary);
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-minimal:hover {
  background-color: var(--primary);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 1px;
  background-color: var(--primary);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

@keyframes pan-mountains {
  0% { background-position: 50% 50%; }
  50% { background-position: 53% 47%; }
  100% { background-position: 50% 50%; }
}

/* 6. HERO SECTION */
/* 6. HERO SECTION (Fondo Montaña Nevada) */
.hero {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: transparent;
  overflow: hidden;
  padding-top: calc(115px + 2rem);
}

/* Background Snowy Mountains with desaturation & high contrast */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' width='100%25' height='100%25'%3E%3Cg fill='none' stroke='%233A86F0' stroke-width='1.2' stroke-opacity='0.07'%3E%3Cpath d='M-100 250c200-50 300 50 500 0s300-50 500 0M-100 220c200-50 300 50 500 0s300-50 500 0M-100 190c200-50 300 50 500 0s300-50 500 0M-100 160c200-50 300 50 500 0s300-50 500 0'/%3E%3Cpath d='M250 200c100-80 200-80 300 0s200 80 300 0M270 180c90-70 180-70 270 0s180 70 270 0M290 160c80-60 160-60 240 0s160 60 240 0'/%3E%3Cpath d='M550 380c100-80 200-80 300 0s200 80 300 0M570 360c90-70 180-70 270 0s180 70 270 0M590 340c80-60 160-60 240 0s160 60 240 0'/%3E%3Cg stroke='%23ffffff' stroke-opacity='0.03'%3E%3Cpath d='M50 400c200-50 300 50 500 0M70 420c200-50 300 50 500 0M90 440c200-50 300 50 500 0'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    url('assets/snowy_mountains.png');
  background-size: 106% 106%; /* Aumentado levemente para evitar cortes durante la animación de paneo */
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(0.55) contrast(1.25) brightness(0.32) saturate(0.85);
  z-index: 1;
  animation: pan-mountains 40s ease-in-out infinite;
}

/* Premium Dark Overlay Gradient */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 13, 0.4) 0%,
    rgba(10, 11, 13, 0.25) 50%,
    rgba(10, 11, 13, 0.85) 85%,
    #0a0b0d 100%
  );
  z-index: 2;
}

.hero-container-centered {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem; /* Espaciado generoso para lockup */
}

.hero-logo-icon {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(58, 134, 240, 0.25)); /* Sutil glow azul */
}

.hero-brand-title {
  font-family: 'Outfit', 'Montserrat', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.25em; /* tracking amplio */
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  text-align: center;
}

.hero-brand-title .brand-blue {
  color: #0E46A3; /* Color azul oficial */
  font-weight: 300;
}

.hero-declaration {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--primary);
  margin-bottom: 3.5rem; /* Espaciado adicional antes del titular principal */
  letter-spacing: 0.02em;
  text-align: center;
}

.hero-titular-main {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 200;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--primary);
  max-width: 820px;
  text-align: center;
}

.hero-subtitle-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 3.5rem;
  max-width: 660px;
  color: var(--text-muted);
  text-align: center;
}

/* Slogan de marca con mayor legibilidad y contraste debajo de los CTAs */
.hero-slogan-bottom {
  display: flex;
  flex-direction: column; /* Apilado para mejor legibilidad */
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 6rem; /* Mayor separación vertical de los CTAs */
  margin-bottom: 3.5rem;
  font-family: var(--font-title);
  font-size: 1.05rem; /* Aumentado similar al subtítulo */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.hero-slogan-bottom .slogan-line {
  color: #D1D1D6; /* Gris claro de alta legibilidad */
  font-weight: 300;
}

.hero-slogan-bottom .slogan-accent {
  color: #FFFFFF; /* Blanco para destacar la afirmación */
  font-weight: 500; /* Mayor peso */
  text-shadow: 0 0 12px rgba(58, 134, 240, 0.35); /* Glow sutil */
}

.hero-buttons-centered {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.btn-hero-primary {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 1.2rem 2.8rem;
  background-color: var(--accent);
  color: #ffffff !important;
  border: 1px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(58, 134, 240, 0.2);
  transition: var(--transition-smooth), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-hero-primary:hover {
  background-color: #2777e3;
  border-color: #2777e3;
  transform: translateY(-4px) translateZ(10px);
  box-shadow: 0 15px 35px rgba(58, 134, 240, 0.4);
}

.btn-hero-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 5px 15px rgba(58, 134, 240, 0.15);
}

.btn-hero-secondary {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 1.2rem 2.8rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-hero-secondary:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.02);
}

.btn-hero-secondary:active {
  transform: translateY(0);
}

@media (max-width: 576px) {
  .hero-buttons-centered {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding: 0 1rem;
  }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    padding: 1.1rem;
    font-size: 1rem;
  }
  .hero-slogan-bottom {
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.75rem;
  }
}

/* 7. PHILOSOPHY SECTION */
.philosophy {
  padding: 8rem 0;
  border-top: 1px solid var(--border-light);
  background-color: transparent;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
}

.philosophy-title h2 {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
}

.philosophy-content p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.philosophy-author {
  margin-top: 3rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.author-name {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--primary);
}

.author-role {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* 8. PROBLEMS SECTION (Ineficiencias) */
.problems-section {
  padding: 9rem 0;
  background-color: transparent;
  border-top: 1px solid var(--border-light);
}

.problems-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  perspective: 1200px;
}

.problem-card {
  padding: 2.5rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.01);
  border-radius: 4px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  position: relative;
}

.problem-card:hover {
  border-color: rgba(255, 74, 74, 0.25); /* Fuga/Dolor en rojo */
  transform: translateY(-8px) translateZ(12px) rotateX(1.5deg) rotateY(-1deg);
  box-shadow: 0 15px 30px rgba(255, 74, 74, 0.04), 0 8px 16px rgba(0, 0, 0, 0.02);
}

.problem-num {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent); /* Color azul premium en lugar de rojo */
  margin-bottom: 1.2rem;
  transition: transform 0.5s ease;
}

.problem-card:hover .problem-num {
  transform: translateZ(15px);
}

.problem-card h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 9. COMPARATIVE SECTION (Tradicional vs Optimizada) */
.comparative-section {
  padding: 9rem 0;
  background-color: transparent;
  border-top: 1px solid var(--border-light);
}

.comparative-grid-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
}

.comparative-column {
  padding: 3rem 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  will-change: transform, box-shadow;
}

.comparative-column h3 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.column-desc {
  font-family: var(--font-title);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  display: block;
  margin-bottom: 2rem;
}

.column-traditional {
  opacity: 0.75;
}

.column-traditional:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
  opacity: 0.85;
}

.column-optimized {
  border-color: rgba(58, 134, 240, 0.15);
  box-shadow: 0 8px 24px rgba(58, 134, 240, 0.01);
}

.column-optimized:hover {
  transform: translateY(-6px) translateZ(8px);
  box-shadow: 0 20px 40px rgba(58, 134, 240, 0.05), 0 8px 16px rgba(0, 0, 0, 0.01);
  border-color: rgba(58, 134, 240, 0.35);
}

.optimized-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.comparative-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.comparative-list li {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 1rem;
  color: var(--text-main);
}

.list-bullet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.column-traditional .list-bullet {
  background-color: rgba(255, 74, 74, 0.08);
  color: #FF4A4A;
}

.column-optimized .list-bullet {
  background-color: rgba(37, 198, 103, 0.08);
  color: #25C667;
}

/* 10. INDUSTRIES INTERACTIVE SECTION (SaaS Side-by-Side Panel) */
.industries-interactive-section {
  padding: 9rem 0;
  background-color: transparent;
  border-top: 1px solid var(--border-light);
}

.industries-interactive-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

/* Left side navigation */
.industries-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid var(--border-light);
  padding-right: 2.5rem;
}

.ind-nav-item {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
  padding: 0.9rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.65; /* Más transparente por defecto para destacar el activo */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ind-nav-item:hover {
  color: var(--primary);
  background-color: rgba(255, 255, 255, 0.015);
  padding-left: 1.5rem;
  opacity: 1;
}

.ind-nav-item.active {
  color: var(--accent);
  background-color: rgba(58, 134, 240, 0.04);
  border-color: rgba(58, 134, 240, 0.12);
  font-weight: 500;
  padding-left: 1.5rem;
  opacity: 1;
}

.ind-nav-item.pinned {
  border-left: 2px solid var(--accent);
  opacity: 1;
}

.ind-icon {
  font-size: 1rem;
  display: inline-block;
  opacity: 0.85;
}

/* Right side content panel */
.industry-detail-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  height: 420px; /* Altura fija para evitar saltos de layout */
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.ind-detail-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 3rem 2.8rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(15px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ind-detail-content.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ind-detail-content h3 {
  font-size: 1.6rem;
  font-weight: 350;
  color: var(--primary);
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.8rem;
}

.ind-detail-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Micro-animaciones en cascada secuencial para un feeling interactivo premium */
.ind-detail-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ind-detail-content.active .ind-detail-field {
  opacity: 1;
  transform: translateY(0);
}

.ind-detail-content.active .ind-detail-field:nth-child(1) {
  transition-delay: 0.08s;
}

.ind-detail-content.active .ind-detail-field:nth-child(2) {
  transition-delay: 0.16s;
}

.ind-detail-content.active .ind-detail-field:nth-child(3) {
  transition-delay: 0.24s;
}

.ind-detail-field span {
  font-family: var(--font-title);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  width: fit-content;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.ind-detail-field p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* 10b. MARKETING / ADQUISICIÓN DE CLIENTES SECTION */
.marketing-section {
  padding: 9rem 0;
  background-color: transparent;
  border-top: 1px solid var(--border-light);
}

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

.marketing-footer {
  text-align: center;
  margin-top: 3.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.marketing-closing-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 300;
}

.marketing-footer .btn-whatsapp {
  display: inline-flex;
  width: auto;
  padding: 1.1rem 2.2rem;
  margin: 0 auto;
}

/* 11. CASES SECTION (Ejemplos de optimización empresarial) */
.cases-section {
  padding: 9rem 0;
  background-color: transparent;
  border-top: 1px solid var(--border-light);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  perspective: 1200px;
}

.case-card {
  padding: 2.2rem 1.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease;
}

.case-card:hover {
  border-color: rgba(58, 134, 240, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(58, 134, 240, 0.02);
}

.case-badge {
  font-family: var(--font-title);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(58, 134, 240, 0.06);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 1rem;
  font-weight: 500;
}

.case-card h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  color: var(--primary);
  line-height: 1.35;
}

.case-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 12. AUDIT SECTION */
.audit-section {
  padding: 9rem 0;
  background-color: transparent;
  border-top: 1px solid var(--border-light);
}

/* 13. FINAL CTA SECTION */
.final-cta-section {
  padding: 9rem 0;
  background-color: transparent;
  border-top: 1px solid var(--border-light);
}

.final-cta-card {
  padding: 5rem 4rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  perspective: 1200px;
}

.final-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' width='100%25' height='100%25'%3E%3Cg fill='none' stroke='%233A86F0' stroke-width='1.2' stroke-opacity='0.05'%3E%3Cpath d='M-100 250c200-50 300 50 500 0s300-50 500 0M-100 220c200-50 300 50 500 0s300-50 500 0M-100 190c200-50 300 50 500 0s300-50 500 0M-100 160c200-50 300 50 500 0s300-50 500 0'/%3E%3Cpath d='M250 200c100-80 200-80 300 0s200 80 300 0M270 180c90-70 180-70 270 0s180 70 270 0M290 160c80-60 160-60 240 0s160 60 240 0'/%3E%3Cpath d='M550 380c100-80 200-80 300 0s200 80 300 0M570 360c90-70 180-70 270 0s180 70 270 0M590 340c80-60 160-60 240 0s160 60 240 0'/%3E%3Cg stroke='%23ffffff' stroke-opacity='0.02'%3E%3Cpath d='M50 400c200-50 300 50 500 0M70 420c200-50 300 50 500 0M90 440c200-50 300 50 500 0'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 50%, rgba(58, 134, 240, 0.05) 0%, transparent 60%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.final-cta-card h2 {
  font-size: 2.8rem;
  font-weight: 200;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.final-cta-card p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.final-whatsapp-btn {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 1.2rem 2.5rem;
  background-color: var(--whatsapp);
  color: var(--bg-primary) !important;
  border-radius: 4px;
  border: 1px solid var(--whatsapp);
  box-shadow: 0 4px 15px rgba(37, 198, 103, 0.2);
  transition: var(--transition-smooth), transform 0.2s ease;
  cursor: pointer;
}

.final-whatsapp-btn:hover {
  background-color: #1e874e;
  border-color: #1e874e;
  transform: translateY(-4px) translateZ(10px);
  box-shadow: 0 12px 25px rgba(37, 198, 103, 0.35);
}

/* 14. GENERAL SUB-COMPONENTS */
.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.8rem auto 0 auto;
  text-align: center;
}

.badge-required {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: rgba(255, 74, 74, 0.1);
  color: #FF4A4A;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 0.5rem;
  font-weight: 500;
}

.metric-accent-card {
  border-color: rgba(255, 74, 74, 0.15) !important;
}

.metric-accent-card:hover {
  border-color: #FF4A4A !important;
  box-shadow: 0 12px 24px rgba(255, 74, 74, 0.04) !important;
}

.metric-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  display: block;
}

/* Annual Loss Box (Calculadora CRO) */
.annual-loss-box {
  background-color: rgba(255, 74, 74, 0.03);
  border: 1px dashed rgba(255, 74, 74, 0.15);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.annual-loss-box p {
  font-family: var(--font-title);
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-main);
}

.annual-loss-box strong {
  font-size: 1.3rem;
  font-weight: 500;
  margin-left: 0.3rem;
}

.hero-leak-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 3rem;
  padding: 0.8rem 1.2rem;
  background-color: rgba(255, 74, 74, 0.05);
  border: 1px solid rgba(255, 74, 74, 0.12);
  border-radius: 4px;
  color: #FF4A4A;
  font-size: 0.9rem;
  max-width: fit-content;
}

.leak-icon {
  flex-shrink: 0;
}

/* 10. SECTORAL CALCULATOR (id="calculadora") */
.calculator-section {
  padding: 9rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
  align-items: start;
  perspective: 1200px;
}

.calculator-intro h2 {
  font-size: 2.6rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.calculator-intro p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.tools-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: 4px;
}

.tools-box h4 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.6rem;
}

.tools-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tools-list li {
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tools-list li span.bullet {
  color: var(--accent);
  font-size: 0.8rem;
}

.calculator-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 3rem;
  /* Sombra inicial suave multicapa */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02),
              0 1px 3px rgba(0, 0, 0, 0.01),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  position: relative;
  min-height: 480px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  will-change: transform, box-shadow;
}

.calculator-card:hover,
.calculator-card:focus-within {
  border-color: rgba(14, 70, 163, 0.2);
  transform: translateY(-4px) translateZ(10px);
  /* Sombra flotante más profunda */
  box-shadow: 0 30px 60px rgba(14, 70, 163, 0.05),
              0 15px 30px rgba(0, 0, 0, 0.02),
              0 1px 3px rgba(0, 0, 0, 0.01);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-light);
  background-color: var(--bg-primary);
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
  border-radius: 4px;
}

/* select custom styling to fit minimalist form */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1A1A6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.1em;
  padding-right: 2.5rem;
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.form-legend {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}

.dynamic-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: var(--transition-smooth);
}

.dynamic-field.active {
  max-height: 100px;
  opacity: 1;
  margin-bottom: 1.8rem;
}

.btn-submit {
  width: 100%;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.1rem;
  background-color: var(--accent);
  color: var(--bg-primary);
  border: 1px solid var(--accent);
  cursor: pointer;
  border-radius: 4px;
  /* Sombra elegante y soporte 3D */
  box-shadow: 0 4px 10px rgba(14, 70, 163, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.btn-submit:hover {
  background-color: #0b3a82;
  border-color: #0b3a82;
  transform: translateY(-3px) translateZ(5px);
  box-shadow: 0 8px 20px rgba(14, 70, 163, 0.25), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-submit:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(14, 70, 163, 0.15);
}

.loader-container {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
  border-radius: 4px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(14, 70, 163, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.results-container {
  display: none;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.results-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.results-header h3 {
  font-size: 1.6rem;
  font-weight: 350;
  color: var(--primary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01), 0 1px 2px rgba(0, 0, 0, 0.01);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card:hover {
  transform: translateY(-6px) translateZ(5px);
  border-color: var(--accent-metric);
  box-shadow: 0 12px 24px rgba(43, 108, 176, 0.06), 0 4px 8px rgba(0, 0, 0, 0.01);
}

.metric-label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.metric-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent-metric);
  line-height: 1;
}

.insight-box {
  margin-bottom: 3rem;
}

.insight-label {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.insight-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
}

.results-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-whatsapp {
  width: 100%;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 1.1rem;
  background-color: var(--whatsapp);
  color: var(--bg-primary);
  border: 1px solid var(--whatsapp);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 4px 10px rgba(37, 165, 96, 0.15);
  transition: var(--transition-smooth), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.btn-whatsapp:hover {
  background-color: #1e874e;
  border-color: #1e874e;
  transform: translateY(-3px) translateZ(5px);
  box-shadow: 0 8px 20px rgba(37, 165, 96, 0.25), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-whatsapp:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(37, 165, 96, 0.15);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
/* Email Fallback Capture in results actions */
.email-fallback-box {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px dashed var(--border-light);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.fallback-separator {
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.fallback-input-group {
  display: flex;
  width: 100%;
  gap: 0.6rem;
}

.fallback-email-control {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--primary);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: 2px;
  outline: none;
  transition: var(--transition-fast);
}

.fallback-email-control:focus {
  border-color: var(--accent);
}

.btn-fallback-submit {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1.2rem;
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-fallback-submit:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  transform: scale(1.02);
}

.fallback-success-msg {
  display: none;
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: #25C667;
  text-align: center;
  margin-top: 0.2rem;
}

.btn-back {
  width: 100%;
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.9rem;
  background: transparent;
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-back:hover {
  color: var(--primary);
}

/* 11. CONTACT SECTION */
.contact {
  padding: 8rem 0;
  background-color: transparent;
  border-top: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
  perspective: 1200px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info h2 {
  font-size: 2.6rem;
  font-weight: 300;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 3rem 0;
}

.contact-detail-item h5 {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.contact-detail-item p {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 400;
}

.contact-detail-item a:hover {
  color: var(--accent);
}

.contact-whatsapp-btn {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--whatsapp);
  color: var(--bg-primary) !important;
  border: 1px solid var(--whatsapp);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(37, 165, 96, 0.15);
  transition: var(--transition-smooth), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  max-width: fit-content;
  will-change: transform, box-shadow;
}

.contact-whatsapp-btn:hover {
  background-color: #1e874e;
  border-color: #1e874e;
  transform: translateY(-3px) translateZ(5px);
  box-shadow: 0 8px 20px rgba(37, 165, 96, 0.25), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-whatsapp-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(37, 165, 96, 0.15);
}

.contact-whatsapp-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  transition: var(--transition-fast);
}

.social-icon:hover {
  color: var(--bg-primary);
  background-color: var(--primary);
  border-color: var(--primary);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* 11.5. FINAL CTA SECTION */
.final-cta-section {
  padding: 6rem 0;
  background-color: transparent;
  border-top: 1px solid var(--border-light);
}

.final-cta-card {
  padding: 5rem 4rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  perspective: 1200px;
}

.final-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(58, 134, 240, 0.03) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.final-cta-card h2 {
  font-size: 2.8rem;
  font-weight: 200;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.final-cta-card p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.final-whatsapp-btn {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 1.2rem 2.5rem;
  background-color: var(--whatsapp);
  color: var(--bg-primary) !important;
  border-radius: 4px;
  border: 1px solid var(--whatsapp);
  box-shadow: 0 4px 15px rgba(37, 198, 103, 0.2);
  transition: var(--transition-smooth), transform 0.2s ease;
  cursor: pointer;
}

.final-whatsapp-btn:hover {
  background-color: #1e874e;
  border-color: #1e874e;
  transform: translateY(-4px) translateZ(10px);
  box-shadow: 0 12px 25px rgba(37, 198, 103, 0.35);
}

.badge-cta-top {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background-color: rgba(58, 134, 240, 0.1);
  color: var(--accent);
  padding: 0.35rem 1rem;
  border-radius: 2px;
  border: 1px solid rgba(58, 134, 240, 0.15);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* 12. FOOTER */
.footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
  background-color: transparent;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo svg {
  height: 40px;
  width: auto;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* 13. SCROLL-REVEAL SYSTEM */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 13b. STAGGER DELAYS FOR GRID REVEALS */
.problems-grid-compact .problem-card:nth-child(1) { transition-delay: 0.05s; }
.problems-grid-compact .problem-card:nth-child(2) { transition-delay: 0.18s; }
.problems-grid-compact .problem-card:nth-child(3) { transition-delay: 0.31s; }
.problems-grid-compact .problem-card:nth-child(4) { transition-delay: 0.44s; }

.cases-grid .case-card:nth-child(1) { transition-delay: 0.05s; }
.cases-grid .case-card:nth-child(2) { transition-delay: 0.18s; }
.cases-grid .case-card:nth-child(3) { transition-delay: 0.31s; }
.cases-grid .case-card:nth-child(4) { transition-delay: 0.44s; }

.industries-nav .ind-nav-item:nth-child(1) { transition-delay: 0.04s; }
.industries-nav .ind-nav-item:nth-child(2) { transition-delay: 0.08s; }
.industries-nav .ind-nav-item:nth-child(3) { transition-delay: 0.12s; }
.industries-nav .ind-nav-item:nth-child(4) { transition-delay: 0.16s; }
.industries-nav .ind-nav-item:nth-child(5) { transition-delay: 0.20s; }
.industries-nav .ind-nav-item:nth-child(6) { transition-delay: 0.24s; }
.industries-nav .ind-nav-item:nth-child(7) { transition-delay: 0.28s; }
.industries-nav .ind-nav-item:nth-child(8) { transition-delay: 0.32s; }
.industries-nav .ind-nav-item:nth-child(9) { transition-delay: 0.36s; }

/* 13c. PREMIUM HOVER CARD MICRO-INTERACTIONS */
.problem-card, .case-card, .comparative-column, .metric-card {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease, 
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.problem-card:hover, .case-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(58, 134, 240, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 15px rgba(58, 134, 240, 0.03);
}

.btn-submit, .btn-minimal, .contact-whatsapp-btn, .btn-hero-primary {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.35s ease, 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.35s ease;
}

.btn-submit:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.03);
}

.btn-minimal:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.01) translateZ(5px);
}

/* 14. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 113px; /* Posicionado exactamente debajo del header y top bar */
    left: 0;
    width: 100%;
    height: calc(100vh - 113px);
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    align-items: flex-start;
    border-top: 1px solid var(--border-light);
    transform: translateX(100%);
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .hero-grid, .calculator-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(115px + 4rem);
    padding-bottom: 6rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .container {
    padding: 0 1.5rem;
  }

  /* Responsive header positioning */
  .header {
    height: 75px;
  }

  /* Responsive Logo size adjustments */
  .logo-header-text {
    font-size: 1.15rem !important;
    letter-spacing: 0.14em !important;
  }
  .logo-header-icon {
    height: 32px !important;
  }

  /* Responsive Typography */
  .hero-titular-main {
    font-size: 2.3rem !important; /* Ajuste responsive para no romper pantallas */
    line-height: 1.2;
  }

  .hero-subtitle-lead {
    font-size: 1rem !important;
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.8rem !important;
    line-height: 1.25;
  }

  /* Multi-column layout stack */
  .problems-grid-compact,
  .cases-grid,
  .comparative-grid-compact,
  .calculator-grid,
  .contact-grid,
  .marketing-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Industries Horizontal Scroll chips menu */
  .industries-interactive-wrapper {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .industries-nav {
    flex-direction: row !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding-right: 0 !important;
    padding-bottom: 0.8rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important; /* Firefox hide scrollbar */
    gap: 0.8rem !important;
  }

  .industries-nav::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari hide scrollbar */
  }

  .ind-nav-item {
    white-space: nowrap !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    border: 1px solid var(--border-light) !important;
    background-color: rgba(255, 255, 255, 0.01) !important;
  }

  .ind-nav-item:hover,
  .ind-nav-item.active {
    padding-left: 1rem !important; /* Quitar incremento de padding en mobile */
    background-color: rgba(58, 134, 240, 0.08) !important;
    border-color: rgba(58, 134, 240, 0.2) !important;
    opacity: 1 !important;
  }

  .ind-nav-item.pinned {
    border-left: 1px solid var(--border-light) !important; /* Reset border left de pin */
  }

  .industry-detail-panel {
    height: auto !important;
    min-height: 460px !important;
  }

  .ind-detail-content {
    position: relative !important;
    display: none !important;
    padding: 2rem 1.5rem !important;
    height: auto !important;
  }

  .ind-detail-content.active {
    display: flex !important;
  }

  /* Form control safety touch area */
  .form-control,
  .fallback-email-control,
  .btn-fallback-submit {
    min-height: 46px !important;
  }

  .btn-whatsapp, 
  .btn-submit, 
  .btn-hero-primary, 
  .btn-hero-secondary {
    min-height: 48px !important;
  }

  /* Urgency bar auto-wrap offset */
  .urgency-top-bar {
    height: auto !important;
    padding: 0.6rem 0 !important;
  }

  .top-bar-content {
    flex-direction: column !important;
    gap: 0.5rem !important;
    text-align: center !important;
  }

  .btn-top-bar {
    margin-left: 0 !important;
  }

  body {
    padding-top: 140px !important; /* Más espacio para barra en mobile */
  }

  .header {
    top: 65px !important; /* Ajustar header para no solapar barra */
  }

  .nav-menu {
    top: 140px !important;
    height: calc(100vh - 140px) !important;
  }

  .footer-content {
    flex-direction: column !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  .copyright {
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  /* Urgency bar element hiding to fit single/double line cleanly */
  .btn-top-bar {
    display: none !important;
  }

  body {
    padding-top: 113px !important;
  }

  .header {
    top: 38px !important;
  }

  .nav-menu {
    top: 113px !important;
    height: calc(100vh - 113px) !important;
  }
}

/* 13d. RECURSO EDUCATIVO (CURSO IA) */
.education-cta-section {
  padding: 4.5rem 0;
  background-color: transparent;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.education-cta-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background-color: rgba(58, 134, 240, 0.02);
  border: 1px solid rgba(58, 134, 240, 0.08);
  border-radius: 6px;
}

.education-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.education-link {
  font-family: var(--font-title);
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  margin-left: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition-smooth);
  display: inline-block;
}

.education-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.education-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.education-link:hover .arrow {
  transform: translateX(4px);
}

/* Inversión cromática para logotipos JPG con fondo blanco sobre fondo oscuro */
.logo-img-original,
.footer-logo img {
  filter: invert(1) hue-rotate(180deg) !important;
  mix-blend-mode: screen !important;
  opacity: 1 !important;
}
