/* ============================================
   MALLA TECH 2.0 - IDENTIDAD CORPORATIVA
   Manual de Marca · Dirección A · CLOSE 02
   ============================================ */

/* --- VARIABLES CROMÁTICAS --- */
:root {
  /* Paleta oficial Manual de Marca 2.0 */
  --negro-base: #0D0F10;
  --grafito: #292929;
  --naranja-principal: #EE8935;
  --naranja-profundo: #D26027;
  --gris-titanio: #A8ADB4;
  --gris-claro: #F4F4F4;
  --blanco: #FFFFFF;

  /* Tipografía */
  --fuente-principal: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaciado modular */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Transiciones */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

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

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

body {
  font-family: var(--fuente-principal);
  background-color: var(--negro-base);
  color: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-normal) var(--ease-smooth);
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- TIPOGRAFÍA JERÁRQUICA --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--blanco);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--gris-titanio);
}

/* --- LAYOUT CONTAINERS --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-2xl) 0;
}

/* --- TOP BAR --- */
.top-bar {
  background-color: var(--grafito);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(238, 137, 53, 0.1);
}

.top-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-md);
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gris-titanio);
  font-size: 0.875rem;
  transition: color var(--duration-normal) var(--ease-smooth);
}

.top-bar-item:hover {
  color: var(--naranja-principal);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(13, 15, 16, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(238, 137, 53, 0.1);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.navbar.scrolled {
  background-color: rgba(13, 15, 16, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: all var(--duration-normal) var(--ease-smooth);
  border: 1px solid rgba(238, 137, 53, 0.1);
}

.logo-container:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(238, 137, 53, 0.3);
  transform: translateY(-2px);
}

.logo {
  height: 55px;
  width: auto;
  transition: all var(--duration-normal) var(--ease-smooth);
  filter: drop-shadow(0 4px 12px rgba(238, 137, 53, 0.4));
}

.logo:hover {
  filter: drop-shadow(0 6px 16px rgba(238, 137, 53, 0.6));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  position: relative;
  color: var(--blanco);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--duration-normal) var(--ease-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--naranja-principal);
  transform: translateX(-50%);
  transition: width var(--duration-normal) var(--ease-smooth);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link.active {
  color: var(--naranja-principal);
}

/* --- BOTONES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--duration-normal) var(--ease-smooth);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--naranja-principal), var(--naranja-profundo));
  color: var(--blanco);
  box-shadow: 0 8px 20px rgba(238, 137, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(238, 137, 53, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--blanco);
  border: 2px solid var(--blanco);
}

.btn-secondary:hover {
  background-color: var(--blanco);
  color: var(--negro-base);
}

.btn-ghost {
  background-color: transparent;
  color: var(--naranja-principal);
  border: 2px solid var(--naranja-principal);
}

.btn-ghost:hover {
  background-color: var(--naranja-principal);
  color: var(--blanco);
}

/* --- CINTA ANIMADA --- */
.ticker-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--naranja-principal) 0%, var(--naranja-profundo) 100%);
  overflow: hidden;
  z-index: 998;
  padding: 0.75rem 0;
  box-shadow: 0 2px 8px rgba(238, 137, 53, 0.3);
}

.ticker {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  animation: scroll-ticker 40s linear infinite;
  white-space: nowrap;
}

.ticker-text {
  color: var(--blanco);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0 3rem;
  display: inline-block;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Ajustar navbar debajo de la cinta */
.navbar {
  top: 50px;
  z-index: 999;
}

/* --- BOTÓN VOLVER ARRIBA --- */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--naranja-principal), var(--naranja-profundo));
  border: none;
  border-radius: 50%;
  color: var(--blanco);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(238, 137, 53, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(238, 137, 53, 0.6);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  position: relative;
  background-color: var(--negro-base);
  background-image: url('../images/hero-portada.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 120px;
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

/* Overlay oscuro elegante para legibilidad */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(13, 15, 16, 0.85) 0%,
    rgba(13, 15, 16, 0.75) 50%,
    rgba(238, 137, 53, 0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Gradiente adicional desde abajo */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top,
    rgba(13, 15, 16, 0.95) 0%,
    transparent 100%);
  z-index: 1;
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.7;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.6;
  }
}

/* --- ANIMACIONES DE FONDO --- */
/* Cuadrícula animada sutil */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(90deg, rgba(238, 137, 53, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(238, 137, 53, 0.1) 1px, transparent 1px);
  background-size: 100px 100px;
  animation: grid-move 30s linear infinite;
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(100px, 100px);
  }
}

/* Partículas flotantes */
@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
}

/* Animación de pulso sutil para elementos */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero-subtitle {
  display: inline-block;
  color: var(--naranja-principal);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.hero h1 {
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero h1 .highlight {
  color: var(--naranja-principal);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gris-titanio);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- SECCIONES --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  display: inline-block;
  color: var(--naranja-principal);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: 1.125rem;
  color: var(--gris-titanio);
  line-height: 1.8;
}

/* --- METODOLOGÍA SIMPLIFICADA --- */
.methodology-section {
  padding: var(--space-2xl) 0;
}

.methodology-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.method-step {
  text-align: center;
  padding: var(--space-xl);
}

.step-visual {
  margin-bottom: var(--space-lg);
}

.step-diagram {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  color: var(--naranja-principal);
}

.method-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--space-sm);
}

.method-step p {
  font-size: 0.9rem;
  color: var(--gris-titanio);
  line-height: 1.6;
}

/* --- LO QUE CONSTRUIMOS --- */
.solutions-section {
  padding: var(--space-2xl) 0;
  background-color: var(--grafito);
}

.solutions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.solution-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(238, 137, 53, 0.05), rgba(238, 137, 53, 0.02));
  border-radius: 16px;
  border: 2px solid rgba(238, 137, 53, 0.15);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.solution-item:hover {
  transform: translateX(8px);
  border-color: var(--naranja-principal);
  box-shadow: 0 8px 24px rgba(238, 137, 53, 0.2);
}

.solution-visual {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--negro-base), var(--grafito));
  border-radius: 12px;
  border: 2px solid rgba(238, 137, 53, 0.2);
}

.visual-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 60%;
}

.visual-lines .line {
  height: 4px;
  background: linear-gradient(90deg, var(--naranja-principal), transparent);
  border-radius: 2px;
}

.visual-lines .line:nth-child(2) {
  width: 80%;
}

.visual-lines .line:nth-child(3) {
  width: 60%;
}

.visual-connections {
  position: relative;
  width: 60px;
  height: 60px;
}

.visual-connections .node {
  width: 12px;
  height: 12px;
  background-color: var(--naranja-principal);
  border-radius: 50%;
  position: absolute;
}

.visual-connections .node:nth-child(1) {
  top: 0;
  left: 0;
}

.visual-connections .node:nth-child(2) {
  top: 0;
  right: 0;
}

.visual-connections .node:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.visual-connections .connector {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 2px solid rgba(238, 137, 53, 0.3);
  border-radius: 50%;
}

.visual-automation {
  display: flex;
  gap: 8px;
  align-items: center;
}

.visual-automation .gear {
  width: 24px;
  height: 24px;
  border: 3px solid var(--naranja-principal);
  border-radius: 4px;
  position: relative;
}

.visual-automation .gear::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--naranja-principal);
  border-radius: 50%;
}

.visual-analytics {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 40px;
}

.visual-analytics .bar {
  width: 12px;
  background: linear-gradient(180deg, var(--naranja-principal), var(--naranja-profundo));
  border-radius: 2px;
}

.visual-analytics .bar:nth-child(1) {
  height: 60%;
}

.visual-analytics .bar:nth-child(2) {
  height: 100%;
}

.visual-analytics .bar:nth-child(3) {
  height: 80%;
}

.solution-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--space-sm);
}

.solution-content p {
  font-size: 1rem;
  color: var(--gris-titanio);
  line-height: 1.7;
}

/* --- DIAGNÓSTICO INTERACTIVO --- */
.diagnostic-section {
  padding: var(--space-2xl) 0;
}

.transformation-image-container {
  width: 100%;
  max-width: 1200px;
  margin: var(--space-2xl) auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(238, 137, 53, 0.3);
  border: 2px solid rgba(238, 137, 53, 0.2);
}

.transformation-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.problem-card {
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(238, 137, 53, 0.05), rgba(238, 137, 53, 0.02));
  border: 2px solid rgba(238, 137, 53, 0.2);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  text-align: center;
}

.problem-card:hover {
  transform: translateY(-8px);
  border-color: var(--naranja-principal);
  box-shadow: 0 16px 40px rgba(238, 137, 53, 0.3);
  background: linear-gradient(135deg, rgba(238, 137, 53, 0.1), rgba(238, 137, 53, 0.05));
}

.problem-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--naranja-principal);
}

.problem-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--naranja-principal);
}

.problem-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

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

/* --- TRANSFORMACIÓN VISUAL --- */
.transformation-section {
  padding: var(--space-2xl) 0;
  background-color: var(--grafito);
}

.section-note {
  font-size: 0.875rem;
  color: var(--gris-titanio);
  font-style: italic;
  margin-top: var(--space-sm);
}

.transformation-display {
  margin-top: var(--space-2xl);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.scenario {
  padding: var(--space-xl);
  border-radius: 16px;
  border: 2px solid rgba(238, 137, 53, 0.2);
}

.scenario.before {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), rgba(255, 0, 0, 0.02));
  border-color: rgba(255, 100, 100, 0.3);
}

.scenario.after {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.05), rgba(0, 255, 0, 0.02));
  border-color: rgba(100, 255, 100, 0.3);
}

.scenario .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--naranja-principal);
  background-color: rgba(238, 137, 53, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: var(--space-md);
}

.scenario h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--space-lg);
}

.scenario-visual {
  margin-top: var(--space-md);
}

.chaos-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.chaos-item {
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  color: var(--gris-titanio);
  font-size: 0.9rem;
  border-left: 3px solid rgba(255, 100, 100, 0.5);
}

.solution-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.flow-item {
  padding: 0.75rem 1rem;
  background-color: rgba(238, 137, 53, 0.05);
  border-radius: 8px;
  color: var(--blanco);
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 3px solid var(--naranja-principal);
}

.arrow-transform {
  font-size: 3rem;
  color: var(--naranja-principal);
  font-weight: 700;
  text-align: center;
}

.cta-transform {
  text-align: center;
}

/* --- SECCIÓN ESTADÍSTICAS - INFOGRAFÍA --- */
.stats-section {
  padding: var(--space-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(238, 137, 53, 0.05), rgba(238, 137, 53, 0.02));
  border-radius: 16px;
  border: 1px solid rgba(238, 137, 53, 0.2);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(238, 137, 53, 0.4);
  box-shadow: 0 12px 30px rgba(238, 137, 53, 0.2);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  filter: grayscale(0);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--naranja-principal);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 1rem;
  color: var(--gris-titanio);
  font-weight: 500;
}

/* --- SOLUCIONES VISUALES --- */
.solutions-visual {
  padding: var(--space-2xl) 0;
  background-color: var(--grafito);
}

.solutions-grid-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.solution-card-visual {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, var(--negro-base), var(--grafito));
  border-radius: 20px;
  border: 2px solid rgba(238, 137, 53, 0.2);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.solution-card-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, rgba(238, 137, 53, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.solution-card-visual:hover::before {
  opacity: 1;
}

.solution-card-visual:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--naranja-principal);
  box-shadow: 0 16px 40px rgba(238, 137, 53, 0.3);
}

.solution-icon-large {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.solution-card-visual h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.solution-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background-color: rgba(238, 137, 53, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(238, 137, 53, 0.2);
  position: relative;
  z-index: 1;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--naranja-principal);
  line-height: 1;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--gris-titanio);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- PROCESO VISUAL --- */
.process-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.process-step {
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(238, 137, 53, 0.08), rgba(238, 137, 53, 0.02));
  border-radius: 20px;
  border: 2px solid rgba(238, 137, 53, 0.2);
  min-width: 180px;
  position: relative;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: var(--naranja-principal);
  box-shadow: 0 12px 30px rgba(238, 137, 53, 0.3);
}

.process-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--naranja-principal), var(--naranja-profundo));
  color: var(--blanco);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(238, 137, 53, 0.4);
}

.process-icon {
  width: 48px;
  height: 48px;
  margin: var(--space-md) auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--naranja-principal);
}

.process-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--naranja-principal);
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--space-sm);
}

.process-step p {
  font-size: 0.875rem;
  color: var(--gris-titanio);
}

.process-arrow {
  font-size: 2rem;
  color: var(--naranja-principal);
  font-weight: 700;
}

/* --- BENEFICIOS GRID --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.benefit-card {
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--negro-base), var(--grafito));
  border-radius: 16px;
  border: 2px solid rgba(238, 137, 53, 0.15);
  transition: all var(--duration-normal) var(--ease-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: var(--naranja-principal);
  box-shadow: 0 12px 30px rgba(238, 137, 53, 0.3);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--naranja-principal);
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--naranja-principal);
}

/* Iconos de diferencias */
.difference-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.difference-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--naranja-principal);
}

/* Iconos de expectativas */
.expectation-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--naranja-principal);
  font-size: 1.5rem;
  font-weight: 700;
}
  color: var(--blanco);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(238, 137, 53, 0.3);
}

.benefit-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--space-sm);
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--gris-titanio);
  line-height: 1.5;
}

/* --- FORMULARIO SIMPLIFICADO --- */
.contact-form-wrapper {
  max-width: 700px;
  margin: var(--space-2xl) auto 0;
}

.contact-form-clean {
  background-color: var(--grafito);
  padding: var(--space-2xl);
  border-radius: 16px;
  border: 2px solid rgba(238, 137, 53, 0.15);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--blanco);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(168, 173, 180, 0.2);
  border-radius: 8px;
  background-color: var(--negro-base);
  color: var(--blanco);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--naranja-principal);
  box-shadow: 0 0 0 3px rgba(238, 137, 53, 0.1);
}

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

.btn-full {
  width: 100%;
  margin-top: var(--space-md);
}

.contact-direct {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(238, 137, 53, 0.1);
}

.contact-direct p {
  color: var(--gris-titanio);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.contact-email {
  color: var(--naranja-principal);
  font-size: 1.25rem;
  font-weight: 700;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.contact-email:hover {
  color: var(--blanco);
}

/* --- FOOTER SIMPLIFICADO --- */
.footer {
  background-color: var(--negro-base);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid rgba(238, 137, 53, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 350px;
}

.footer-logo-container {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.footer-logo {
  height: 45px;
  filter: drop-shadow(0 2px 8px rgba(238, 137, 53, 0.3));
}

.footer-tagline {
  color: var(--gris-titanio);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links-section h4,
.footer-contact-section h4 {
  color: var(--blanco);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-section a {
  display: block;
  color: var(--gris-titanio);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.footer-links-section a:hover {
  color: var(--naranja-principal);
  transform: translateX(5px);
}

.footer-email {
  color: var(--naranja-principal);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-sm);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.footer-email:hover {
  color: var(--blanco);
}

.footer-location {
  color: var(--gris-titanio);
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(238, 137, 53, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: var(--gris-titanio);
  font-size: 0.875rem;
}

/* --- ALTERNAR FONDOS --- */
.section-dark {
  background-color: var(--negro-base);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(238, 137, 53, 0.5) 40px, rgba(238, 137, 53, 0.5) 41px),
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(238, 137, 53, 0.5) 40px, rgba(238, 137, 53, 0.5) 41px);
  pointer-events: none;
  z-index: 0;
}

.section-darker {
  background-color: var(--grafito);
  position: relative;
}

.section-darker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image:
    radial-gradient(circle, rgba(238, 137, 53, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Asegurar que el contenido esté por encima del patrón */
.section-dark > *,
.section-darker > * {
  position: relative;
  z-index: 1;
}

/* --- TARJETAS --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.card {
  background-color: var(--grafito);
  border-radius: 16px;
  padding: var(--space-lg);
  border: 1px solid rgba(238, 137, 53, 0.1);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--naranja-principal), var(--naranja-profundo));
  transition: height var(--duration-normal) var(--ease-smooth);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--naranja-principal);
  box-shadow: 0 20px 40px rgba(238, 137, 53, 0.15);
}

.card:hover::before {
  height: 100%;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(238, 137, 53, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--naranja-principal);
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 1.5rem;
  color: var(--blanco);
  margin-bottom: var(--space-sm);
}

.card-description {
  color: var(--gris-titanio);
  line-height: 1.7;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--grafito);
  border-top: 1px solid rgba(238, 137, 53, 0.1);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: var(--naranja-principal);
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
  color: var(--gris-titanio);
  line-height: 1.8;
  transition: color var(--duration-normal) var(--ease-smooth);
}

.footer-section a:hover {
  color: var(--naranja-principal);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--gris-titanio);
  font-size: 0.875rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  section {
    padding: var(--space-xl) 0;
  }
}

/* --- POPUP DE BIENVENIDA --- */
.welcome-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 15, 16, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.welcome-popup {
  background: linear-gradient(135deg, var(--grafito) 0%, var(--negro-base) 100%);
  border-radius: 24px;
  padding: var(--space-xl);
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(238, 137, 53, 0.2);
  transform: scale(0.8) translateY(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.welcome-popup::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(238, 137, 53, 0.1) 0%, transparent 70%);
  animation: pulse-subtle 3s ease-in-out infinite;
}

.welcome-popup-overlay.active .welcome-popup {
  transform: scale(1) translateY(0);
}

.welcome-popup-logo {
  width: 120px;
  height: auto;
  margin: 0 auto var(--space-lg);
  filter: drop-shadow(0 4px 16px rgba(238, 137, 53, 0.4));
  animation: float-logo 3s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.welcome-popup-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.welcome-popup-subtitle {
  font-size: 0.875rem;
  color: var(--naranja-principal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.welcome-popup-message {
  font-size: 1.125rem;
  color: var(--gris-titanio);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.welcome-popup-button {
  background: linear-gradient(135deg, var(--naranja-principal), var(--naranja-profundo));
  color: var(--blanco);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 8px 20px rgba(238, 137, 53, 0.3);
  position: relative;
  z-index: 1;
}

.welcome-popup-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(238, 137, 53, 0.5);
}

.welcome-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gris-titanio);
  font-size: 1.5rem;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--duration-fast) var(--ease-smooth);
  z-index: 2;
}

.welcome-popup-close:hover {
  background-color: rgba(238, 137, 53, 0.1);
  color: var(--naranja-principal);
  transform: rotate(90deg);
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.whatsapp-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  animation: pulse 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
  }
}

.whatsapp-chat {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background-color: var(--grafito);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-smooth);
  border: 1px solid rgba(238, 137, 53, 0.1);
}

.whatsapp-chat.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-chat-header {
  background: linear-gradient(135deg, #25D366, #128C7E);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whatsapp-chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--blanco);
  padding: 4px;
}

.whatsapp-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.whatsapp-chat-details h4 {
  color: var(--blanco);
  font-size: 1rem;
  margin: 0;
}

.whatsapp-chat-status {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
}

.whatsapp-chat-close {
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.whatsapp-chat-close:hover {
  transform: scale(1.2);
}

.whatsapp-chat-body {
  padding: 1.5rem;
  background-color: var(--negro-base);
  min-height: 150px;
}

.whatsapp-message {
  background-color: var(--grafito);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(238, 137, 53, 0.1);
}

.whatsapp-message-text {
  color: var(--blanco);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.whatsapp-message-time {
  color: var(--gris-titanio);
  font-size: 0.75rem;
  text-align: right;
}

.whatsapp-chat-footer {
  padding: 1rem;
  background-color: var(--grafito);
  border-top: 1px solid rgba(238, 137, 53, 0.1);
}

.whatsapp-chat-button {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--blanco);
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.whatsapp-chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* --- UTILIDADES --- */
.text-center {
  text-align: center;
}

.text-naranja {
  color: var(--naranja-principal);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

/* --- MENU HAMBURGUESA --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--naranja-principal);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
  background-color: var(--blanco);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -9px);
  background-color: var(--blanco);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  /* Mostrar menu hamburguesa */
  .menu-toggle {
    display: flex;
  }

  /* Menu móvil - Diseño lateral corregido */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--negro-base) 0%, var(--grafito) 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 100px var(--space-lg) var(--space-xl);
    gap: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid rgba(238, 137, 53, 0.3);
    overflow-y: auto;
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
  }

  .nav-menu.active {
    right: 0;
  }

  /* Overlay oscuro detrás del menú */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  /* Enlaces del menú móvil */
  .nav-link {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: left;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: transparent;
    margin-bottom: 0.5rem;
    color: var(--blanco);
    border-left: 3px solid transparent;
  }

  .nav-link:hover {
    background-color: rgba(238, 137, 53, 0.1);
    border-left-color: var(--naranja-principal);
    transform: translateX(5px);
  }

  .nav-link.active {
    background-color: rgba(238, 137, 53, 0.2);
    border-left-color: var(--naranja-principal);
    color: var(--naranja-principal);
  }

  .nav-link::after {
    display: none;
  }

  /* Botón de contacto en el menú */
  .nav-menu .btn-primary {
    width: 100%;
    margin-top: var(--space-lg);
    padding: 1rem;
    justify-content: center;
  }

  .logo {
    height: 40px;
  }

  .logo-container {
    padding: 0.5rem 0.75rem;
  }

  /* WhatsApp flotante - Asegurar que siempre esté visible */
  .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100 !important;
  }

  .whatsapp-button {
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }

  .whatsapp-chat {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: calc(100vw - 40px);
    max-width: 340px;
    z-index: 1100 !important;
  }

  /* Hero responsive */
  .hero {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: var(--space-2xl);
    background-position: center;
  }

  .hero-content {
    padding: 0 var(--space-md);
    text-align: center;
  }

  h1 {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Navbar y cinta responsive */
  .ticker-wrapper {
    position: fixed;
    top: 0;
    padding: 0.5rem 0;
    z-index: 998;
  }

  .navbar {
    position: fixed;
    top: 42px;
    z-index: 1000;
  }

  .ticker-text {
    font-size: 0.75rem;
    padding: 0 1.5rem;
  }

  /* Hero ajustado */
  .hero {
    padding-top: 130px;
  }

  /* Menu hamburguesa sobre todo */
  .menu-toggle {
    z-index: 1002;
    position: relative;
  }

  /* Contenedores responsive */
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 0.95rem;
  }

  /* Imagen transformación */
  .transformation-image-container {
    margin: 2rem 0;
    border-radius: 8px;
  }

  /* Secciones responsive */
  section {
    padding: var(--space-xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 1rem;
  }

  /* Tarjetas responsive */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .card {
    padding: var(--space-md);
  }

  .card-title {
    font-size: 1.25rem;
  }

  /* Footer responsive */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  /* Diagnóstico responsive */
  .problems-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .problem-card {
    padding: var(--space-lg);
  }

  /* Transformación responsive */
  .before-after {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .arrow-transform {
    transform: rotate(90deg);
    margin: var(--space-md) 0;
  }

  .scenario {
    padding: var(--space-lg);
  }

  /* Metodología responsive */
  .methodology-flow {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .method-step {
    padding: var(--space-lg);
  }

  /* Soluciones responsive */
  .solutions-list {
    gap: var(--space-lg);
  }

  .solution-item {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
    padding: var(--space-lg);
  }

  .solution-visual {
    margin: 0 auto;
  }

  /* Proceso visual responsive */
  .process-visual {
    flex-direction: column;
    gap: var(--space-md);
  }

  .process-arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }

  .process-step {
    min-width: auto;
    width: 100%;
  }

  /* Beneficios responsive */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Formulario responsive */
  .contact-form-clean {
    padding: var(--space-lg);
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* Evita zoom en iOS */
  }

  /* Cinta animada responsive */
  .ticker-wrapper {
    top: 60px;
    padding: 0.5rem 0;
  }

  .ticker-text {
    font-size: 0.85rem;
    padding: 0 2rem;
  }

  .ticker-content {
    animation: scroll-ticker 30s linear infinite;
  }

  .hero {
    padding-top: 110px;
  }

  /* Footer grid responsive */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    max-width: 100%;
  }

  /* Popup responsive */
  .welcome-popup {
    width: 95%;
    padding: var(--space-lg);
    margin: 0 1rem;
  }

  .welcome-popup-logo {
    width: 80px;
  }

  .welcome-popup-title {
    font-size: 1.5rem;
  }

  .welcome-popup-message {
    font-size: 1rem;
  }

  /* WhatsApp flotante responsive */
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
  }

  .whatsapp-chat {
    width: 90%;
    max-width: 300px;
    bottom: 70px;
    right: 5%;
  }

  /* Formulario responsive */
  .contact-form {
    padding: var(--space-md);
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Evita zoom automático en iOS */
  }

  /* Top bar responsive */
  .top-bar-container {
    justify-content: center;
    font-size: 0.75rem;
  }

  .top-bar-item {
    font-size: 0.75rem;
  }
}

/* Tablets y pantallas medianas */
@media (min-width: 769px) and (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    background-position: center;
  }

  .nav-menu {
    gap: var(--space-md);
  }

  h1 {
    font-size: 3rem;
  }

  .logo {
    height: 50px;
  }
}

/* Pantallas grandes */
@media (min-width: 1400px) {
  .container,
  .container-wide {
    max-width: 1600px;
  }

  h1 {
    font-size: 5rem;
  }
}

/* ============================================
   BOTÓN FLOTANTE DE IDIOMA
   ============================================ */

.language-selector {
  position: fixed;
  bottom: 100px;
  left: 30px;
  z-index: 998;
}

.language-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--naranja-principal), var(--naranja-profundo));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 20px rgba(238, 137, 53, 0.4);
  transition: all 0.3s ease;
  color: var(--blanco);
}

.language-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 30px rgba(238, 137, 53, 0.6);
}

.language-button svg {
  width: 20px;
  height: 20px;
}

.language-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.language-dropdown {
  position: absolute;
  bottom: 70px;
  left: 0;
  background: var(--grafito);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(238, 137, 53, 0.2);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blanco);
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.language-option:hover {
  background: rgba(238, 137, 53, 0.1);
}

.language-option.active {
  background: rgba(238, 137, 53, 0.2);
}

.language-option .flag {
  font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .language-selector {
    bottom: 80px;
    right: 20px;
  }

  .language-button {
    width: 50px;
    height: 50px;
  }
}

/* ============================================
   ESTILOS ADICIONALES PARA PÁGINAS SECUNDARIAS
   ============================================ */

/* Página de Nosotros - Grids */
.differences-grid,
.thinking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  width: 100%;
  max-width: 100%;
}

.difference-item,
.thinking-item {
  background: linear-gradient(135deg, rgba(27, 30, 33, 0.6), rgba(27, 30, 33, 0.4));
  padding: var(--space-xl);
  border-radius: 12px;
  border: 1px solid rgba(238, 137, 53, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.difference-item:hover,
.thinking-item:hover {
  border-color: var(--naranja-principal);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(238, 137, 53, 0.2);
}

.difference-title,
.thinking-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--space-md);
  text-align: center;
  word-wrap: break-word;
  width: 100%;
}

.difference-description,
.thinking-description {
  color: var(--gris-titanio);
  line-height: 1.6;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
}

/* Página de Nosotros - Filosofía */
.philosophy-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.philosophy-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gris-titanio);
  margin-bottom: var(--space-lg);
}

.philosophy-text p strong {
  color: var(--naranja-principal);
  font-weight: 600;
}

/* Página de Nosotros - Target */
.target-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.target-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gris-titanio);
  margin-bottom: var(--space-lg);
}

.target-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0;
}

.target-list li {
  padding: var(--space-md);
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, rgba(27, 30, 33, 0.6), rgba(27, 30, 33, 0.4));
  border-left: 3px solid var(--naranja-principal);
  border-radius: 8px;
  color: var(--gris-titanio);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Página de Proceso - Expectations Grid */
.expectations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.expectation-item {
  background: linear-gradient(135deg, rgba(27, 30, 33, 0.6), rgba(27, 30, 33, 0.4));
  padding: var(--space-xl);
  border-radius: 12px;
  border: 1px solid rgba(238, 137, 53, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.expectation-item:hover {
  border-color: var(--naranja-principal);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(238, 137, 53, 0.2);
}

.expectation-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--space-md);
}

.expectation-description {
  color: var(--gris-titanio);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Page Header */
.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--negro-base) 0%, var(--grafito) 100%);
  border-bottom: 1px solid rgba(238, 137, 53, 0.1);
}

/* Responsive para páginas adicionales */
@media (max-width: 768px) {
  .differences-grid,
  .thinking-grid,
  .expectations-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
  }

  .difference-item,
  .thinking-item,
  .expectation-item {
    padding: var(--space-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .difference-title,
  .thinking-title,
  .expectation-title {
    font-size: 1.125rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .difference-description,
  .thinking-description,
  .expectation-description {
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
  }

  .philosophy-text p,
  .target-text {
    font-size: 1rem;
    padding: 0 var(--space-md);
  }

  .target-list {
    padding: 0 var(--space-sm);
  }

  .target-list li {
    font-size: 0.95rem;
    padding: var(--space-sm) var(--space-md);
    word-break: break-word;
  }

  .page-header {
    padding: 6rem var(--space-md) 3rem;
  }

  .philosophy-content,
  .target-content {
    padding: 0 var(--space-md);
  }

  /* Asegurar que los iconos se mantengan centrados */
  .difference-icon,
  .thinking-icon,
  .expectation-icon {
    margin: 0 auto var(--space-md);
  }
}
