/* ================================================== */
/* Variables y Utilidades */
/* ================================================== */
:root {
  --raising-black: #1b1e28;
  --dim-gray: #6c6e7b;
  --white: #fff;
  --prussian-blue: #192C44;
  --mint: #5ABF92;
  --light-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --medium-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition-base: 0.3s ease;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --radius-md: 0.5rem;
}

/* Optimiza animaciones con will-change */
.problem-image-wrapper, .solution-image-wrapper {
  will-change: transform, opacity;
}

/* Mejora el contraste para accesibilidad */
.text-gray-300 {
  color: rgba(209, 213, 219, 0.9); /* Más legible */
}

/* Reduce repetición de código */
.btn, .solution-button, .btn-submit {
  transition: var(--transition-base);
  /* Propiedades comunes */
}

@font-face {
  font-family: 'Coolvetica';
  src: url('../fonts/coolvetica.woff2') format('woff2'),
       url('../fonts/coolvetica.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Reglas generales */
body {
  font-family: 'Helvetica', sans-serif;
  font-weight: 300; /* Helvetica Light para cuerpo de texto */
}

/* Headlines (ej: h1, h2, h3...) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica', sans-serif;
  font-weight: 800; /* Helvetica Medium (o usa 700 si solo está disponible Bold) */
}

/* Si necesitas más control, puedes diferenciar entre Medium y Bold así: */
h1 {
  font-weight: 700; /* Helvetica Bold */
}

h2, h3 {
  font-weight: 500; /* Helvetica Medium */
}

p, span, li, a, div {
  font-weight: 450; /* Helvetica Light */
}


/* ================================================== */
/* Base & Reset */
/* ================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: text;
  user-select: text;
}

html {
  scroll-behavior: smooth;
}

/* Añade al inicio de tu CSS */
@viewport {
  width: device-width;
  zoom: 1.0;
}

body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  background-color: var(--raising-black); /* Para evitar bordes blancos */
}

/* ================================================== */
/* Tipografía */
/* ================================================== */

h1 {
  font-family: 'helvetica', sans-serif; /* Para el logo y titulares principales */
  font-size: 5rem;  
  line-height: 2.5;
  color: var(--white);
}

h2 {
  font-family: 'helvetica', sans-serif;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
}

h2 strong{
color: var(--mint);
}

h3, h4, h5, h6 {
  color: var(--white);
  line-height: 1.3;
}


/* ================================================== */
/* Componentes Generales */
/* ================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  background-color: var(--mint);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--light-shadow);
}

/* ================================================== */
/* Header & Navegación */
/* ================================================== */
/* HEADER STYLES */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 4.5rem;
  padding: 1rem 1.5rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: var(--raising-black);
  backdrop-filter: blur(6px); /* Más pronunciado para claridad */
  -webkit-backdrop-filter: blur(6px); /* Safari support */
  box-shadow: var(--light-shadow);

  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* LOGO */
.logo img {
  height: 3rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}



/* ================================================== */
/* Language switcher */
/* ================================================== */

  #lang-es.active, #lang-en.active {
    background-color: var(--mint);
    color: var(--white);
    border-color: transparent;
  }

.language-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 2.5rem;
}

.language-switcher button {
  background: transparent;
  border: none;
  color: var(--dim-gray);
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.language-switcher button.active {
  background: var(--raising-black);
  color: var(--white);
}


#menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--dim-gray);
  cursor: pointer;
}


/* ================================================== */
/* Hero Section - Enhanced & Optimized */
/* ================================================== */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(90, 191, 146, 0.3);

}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 2rem;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left; /* texto alineado a la izquierda */
  gap: 2rem;
}

/* Logo a la izquierda */
.logo-container {
  flex: 0 0 40%; /* ancho fijo del logo (40% del contenedor) */
  display: flex;
  justify-content: center; /* centra el svg dentro */
  align-items: center;
  border-right: 3px solid #5ABF92; /* línea vertical color menta */
  padding-right: 2rem;
}

/* SVG logo más pequeño */
.logo-container svg {
  width: 100%;
  height: auto;
  max-width: 300px; /* tamaño máximo para el logo */
}

/* Texto a la derecha */
.hero-text-content {
  flex: 1; /* ocupa el espacio restante */
  opacity: 0;
  transform: translateY(2rem);
  animation: heroTextReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

/* Ajustes para pantallas pequeñas: poner en columna */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .logo-container {
    border-right: none;
    border-bottom: 3px solid #5ABF92;
    padding-right: 0;
    padding-bottom: 1.5rem;
    width: 80%;
  }

  .logo-container svg {
    max-width: 200px;
  }

  .hero-text-content {
    flex: none;
  }
}

.logo-part {
  opacity: 0;
  transform: translateY(20px);
  animation-name: fadeUp;
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Animaciones del Logo - Namespaced */
.hero-logo-letter {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: heroLetterReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-logo-dot {
  transform: scale(0);
  transform-origin: center;
  animation: 
    heroPointGrow 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards,
    heroPointPulse 1.5s 1s infinite;
}

@keyframes heroPointGrow {
  0% { transform: scale(0) rotate(-180deg); }
  80% { transform: scale(1.2) rotate(15deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes heroPointPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes heroLetterReveal {
  from { 
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  to { 
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* Contenido de Texto - Mejorado */
.hero-text-content {
  opacity: 0;
  transform: translateY(2rem);
  animation: heroTextReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes heroTextReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 strong {
  color: var(--mint, #5ABF92);
  font-weight: 600;
}

/* Botón CTA - Optimizado */
.hero-cta-button {
  background: var(--raising-black);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(90, 191, 146, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}



@keyframes heroButtonReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta-button:hover {
  background-color: var(--prussian-blue);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px var(--dim-gray);
}

/* Retrasos de Animación - Organizados */
.hero-logo-dot {
  animation-delay: 0s;
}

.hero-logo-letter:nth-child(1) { animation-delay: 0.3s; }
.hero-logo-letter:nth-child(2) { animation-delay: 0.4s; }
.hero-logo-letter:nth-child(3) { animation-delay: 0.5s; }
.hero-logo-letter:nth-child(4) { animation-delay: 0.6s; }

/* Responsive - Mejorado */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-cta-button {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
  }
  
  .hero-logo-container {
    width: 90%;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-cta-button {
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
  }
}



/* ================================================== */
/* Statistics Section */
/* ================================================== */
/* Estilos para la sección de estadísticas */
#statistics {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
  background-color: none
}

.statistics-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  max-width: 1280px;
}

.statistics-heading {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.3;
  position: relative;
  padding-bottom: 1.5rem;
}
.statistics-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--mint);
  border-radius: 2px;
}

.statistics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .statistics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Estilos actualizados para las estadísticas */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

/* Número destacado */
.stat-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

/* Texto descriptivo */
.stat-label {
  font-family: 'Helvetica', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  margin: 0;
  max-width: 20ch;
}

/* ================================================== */
/* Hud Section */
/* ================================================== */

@font-face {
  font-family: 'HUD';
  src: url('https://fonts.cdnfonts.com/css/segment14') format('woff2');
}

.hud-section {
  position: relative;
  padding: 5rem 1.5rem;
  overflow: hidden;
  font-family: 'Helvetica', sans-serif;
  z-index: 10;
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hud-card {
  position: relative;
  background: transparent; /* Fondo eliminado */
  border: 1px solid rgba(90, 191, 146, 0.2); /* Color mint con opacidad */
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(5deg);
}

.hud-card:hover {
  transform: perspective(800px) rotateX(0deg) translateY(-10px);
  box-shadow: 
    0 10px 25px rgba(90, 191, 146, 0.3), /* Color mint */
    inset 0 0 20px rgba(90, 191, 146, 0.1); /* Color mint */
  border-color: rgba(90, 191, 146, 0.5); /* Color mint */
}


.hud-card:hover .hud-glow {
  opacity: 0.8;
  animation: scan 4s linear infinite;
}

.hud-icon {
  height: 100px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.hud-icon svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 5px var(--mint));
}

/* Elementos animados */
.circuit-path, .pulse-wave, .wave-path, .signal-line {
  stroke: var(--mint);
  stroke-width: 1.5;
}

.data-node, .pulse-core, .hub-node {
  fill: var(--mint);
}

/* Textos */
.hud-title {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--white);
  letter-spacing: normal;
  text-shadow: none;
  text-transform: none;
}

.hud-title::after {
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
}

.hud-cta {
  font-family: 'Helvetica', sans-serif;
  font-size: 1.125rem;
  color: var(--white);
  letter-spacing: normal;
  margin-top: 1.5rem;
}

/* Animaciones */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes corePulse {
  0%, 100% { fill: var(--mint); }
  50% { fill: color-mix(in srgb, var(--mint), white 20%); }
}

/* Responsive */
@media (max-width: 768px) {
  .hud-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hud-card {
    transform: perspective(800px) rotateX(0deg);
    padding: 2rem 1rem;
  }
  
  .hud-title {
    font-size: 1.3rem;
  }
}

/* ======================================= */
/* Value Proposition Section */
/* ======================================= */
#value-proposition {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  z-index: 1;
}

.vp-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 2;
}

/* Main Heading */
.vp-heading {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.3;
  position: relative;
  padding-bottom: 1.5rem;
}

.vp-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--mint);
  border-radius: 2px;
}


/* CTA Button */
.vp-cta {
  background: var(--raising-black);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(90, 191, 146, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.vp-cta:hover {
  background-color: var(--prussian-blue);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px var(--dim-gray);
}

/* Responsive Design */
@media (max-width: 992px) {
  .vp-heading {
    font-size: 2.25rem;
  }
  
  .vp-description {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  #value-proposition {
    padding: 4rem 0;
  }
  
  .vp-heading {
    font-size: 1.8rem;
    padding-bottom: 1rem;
  }
  
  .vp-heading::after {
    width: 80px;
    height: 3px;
  }
  
  .vp-cta {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* ================================================== */
/* Problem-Solution Section - Enhanced Version */
/* ================================================== */

:root {
  --animation-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Main Container */
.problem-solution-wrapper {
  width: 100%;
  padding: 6rem 0;
}

/* Content Wrapper */
.problem-solution-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Problem/Solution Boxes */
.problem-box,
.solution-box {
  flex: 1 1 calc(50% - 1.25rem);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 2.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(90, 191, 146, 0.15);
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.2),
    0 0 15px rgba(90, 191, 146, 0.1);
  transition: 
    transform 0.6s var(--animation-timing),
    opacity 0.6s var(--animation-timing),
    box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
  min-width: min(100%, 350px);
}

/* Animation States */
.problem-box.visible,
.solution-box.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Box Hover Effects */
.problem-box:hover,
.solution-box:hover {
  box-shadow: 
    0 15px 30px -5px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(90, 191, 146, 0.15);
}

/* Header Styles */
.problem-header,
.solution-header {
  margin-bottom: 2rem;
  text-align: center;
}

.problem-title,
.solution-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.problem-badge,
.solution-badge {
  display: inline-block;
  color: var(--mint);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  background: rgba(90, 191, 146, 0.1);
  border-radius: 2rem;
}

/* Content Items */
.problem-item,
.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  transition: transform 0.3s ease;
}

.problem-item:hover,
.solution-item:hover {
  transform: translateX(5px);
}

.problem-icon i,
.solution-icon i {
  font-size: 1.85rem;
  color: var(--mint);
  margin-top: 0.15rem;
  min-width: 2.25rem;
  text-align: center;
}

.problem-item-title,
.solution-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.problem-item-desc,
.solution-item-description {
  color: var(--dim-gray);
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* Image Containers */
.problem-image-container,
.solution-image-container {
  margin-top: 2.5rem;
  transition: transform 0.4s ease;
}

.problem-image-container:hover,
.solution-image-container:hover {
  transform: translateY(-5px);
}

.problem-image,
.solution-image {
  max-width: 100%;
  border-radius: 0.85rem;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Solution Image with Overlay Button */
.solution-image-container {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
}

.solution-image-wrapper {
  position: relative;
  display: block;
}

.solution-image {
  display: block;
  width: 100%;
  transform-origin: center;
}

.solution-image:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

/* Overlay and CTA Button */
.solution-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  z-index: 1;
  border-radius: 0 0 0.85rem 0.85rem;
  transition: height 0.4s ease;
}

.solution-image-container:hover .solution-image-wrapper::after {
  height: 50%;
}

.solution-cta-overlay {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  transition: all 0.4s ease;
}

.solution-image-container:hover .solution-cta-overlay {
  bottom: 2.5rem;
}

.solution-button {
  background: var(--raising-black);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(90, 191, 146, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.solution-button:hover {
  background: var(--prussian-blue);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(90, 191, 146, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .problem-solution-container {
    gap: 2rem;
    padding: 0 1.5rem;
  }
  
  .problem-box,
  .solution-box {
    padding: 2rem;
  }
  
  .solution-button {
    padding: 0.75rem 1.75rem;
  }
}

@media (max-width: 768px) {
  .problem-solution-wrapper {
    padding: 4rem 0;
  }
  
  .problem-box,
  .solution-box {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .problem-title,
  .solution-title {
    font-size: 2rem;
  }
  
  .solution-cta-overlay {
    bottom: 1.5rem;
    padding: 0 1.5rem;
  }
  
  .solution-image-wrapper::after {
    height: 40%;
  }
  
  .solution-button {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .problem-solution-container {
    padding: 0 1.25rem;
    gap: 1.5rem;
  }
  
  .problem-box,
  .solution-box {
    padding: 1.75rem;
  }
  
  .solution-cta-overlay {
    bottom: 1.25rem;
  }
  
  .solution-button {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================== */
/* Growth Partner - Estilo tecnológico animado */
/* ================================================== */
#growth-partner-heading {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.3;
  position: relative;
  padding-bottom: 1.5rem;
}
#growth-partner-heading::after {
  content: '';
  position: absolute;
  bottom: 1.5rem; /* Ajuste para coincidir con el pb-12 */
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: theme('colors.mint'); /* o usa tu variable CSS */
  border-radius: 2px;
}

.zigzag-path {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

#zigzag {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2s ease;
}

/* Contenedor de pasos */
.growth-steps {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  position: relative;
  z-index: 10;
}



/* CONTENEDOR GENERAL */
.growth-steps {
  position: relative;
  min-height: auto;
  z-index: 2;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ESTILOS BASE PARA PASOS */
.growth-step {
  position: relative;
  width: 100%;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: rgba(27, 30, 40, 0.95);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

.growth-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile First Styles */
.growth-icon-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.growth-connector {
  height: 2px;
  background: #5ABF92;
  flex-grow: 1;
  margin: 0 1rem;
}

/* Desktop Styles */
@media (min-width: 768px) {
  .growth-steps {
    min-height: 900px;
    gap: 0;
  }

  .growth-step {
    position: absolute;
    max-width: 280px;
    padding: 1.5rem;
    margin-bottom: 0;
    transform: translateY(40px);
  }

  /* PASO IZQUIERDO */
  .left-step {
    left: 0;
    text-align: left;
  }

  .left-step .growth-icon {
    margin-right: auto;
    margin-left: 0;
  }

  /* PASO DERECHO */
  .right-step {
    right: 0;
    text-align: right;
  }

  .right-step .growth-icon {
    margin-left: auto;
    margin-right: 0;
  }

  /* POSICIONAMIENTO VERTICAL */
  .growth-step:nth-child(1) { top: 0; }
  .growth-step:nth-child(2) { top: 240px; }
  .growth-step:nth-child(3) { top: 480px; }
  .growth-step:nth-child(4) { top: 720px; }

  /* CONECTORES DESKTOP */
  .left-step::before,
  .right-step::before {
    content: '';
    position: absolute;
    top: 30px;
    height: 2px;
    background: #5ABF92;
  }

  .left-step::before {
    right: -80px;
    width: 80px;
  }

  .right-step::before {
    left: -80px;
    width: 80px;
  }

  .growth-connector {
    display: none;
  }
}

/* ICONO */
.growth-icon {
  background: #5ABF92;
  color: white;
  padding: 0.75rem;
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: 0 0 10px rgba(90, 191, 146, 0.4);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .growth-icon {
    padding: 1rem;
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
}

/* EFECTOS HOVER */
.growth-content {
  transition: transform 0.3s ease;
}

.growth-step:hover .growth-content {
  transform: scale(1.02);
}

/* Pequeños dispositivos */
@media (max-width: 400px) {
  .growth-step {
    padding: 1rem;
  }
  
  .growth-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}


/* ================================================== */
/* Success Cases - Estilo en columna + animación */
/* ================================================== */
#cases-heading {
  font-size: 2.25rem; /* Un poco más pequeño que el h1 (2.75rem) */
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.3;
  position: relative;
  padding-bottom: 1.5rem;
  text-align: center; /* Opcional, si quieres centrado como el ejemplo anterior */
}

#cases-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px; /* Más estrecho que el h1 (100px) */
  height: 3px; /* Un poco más delgado */
  background: var(--mint);
  border-radius: 2px;
}



.success-cases {
  padding: 5rem 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
  gap: 2rem;
  padding: 0 2rem;
  
}


.case {
  position: relative;
  height: 22rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--light-shadow);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.case.visible {
  opacity: 1;
  transform: translateY(0);
}

.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--medium-shadow);
}

.case-image,
.case-image-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.case-image-hover {
  opacity: 0;
}

.case:hover .case-image {
  opacity: 0;
}

.case:hover .case-image-hover {
  opacity: 1;
}

.case-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 1;
}

.case-content {
  position: absolute;
  z-index: 2;
  bottom: 0;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.case-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
  background-color: rgba(0, 0, 0, 0.6); /* Caja oscura semitransparente */
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  display: inline-block;
  max-width: 90%;
}


.case-content p {
  opacity: 0;
  font-size: 1rem;
  color: #000000;
  margin-top: 0.5rem;
  transition: opacity 0.4s ease;
}

.case:hover .case-content p {
  opacity: 1;
}

@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}

@media (max-width: 640px) {
  .cases-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }
}


/* ================================================== */
/* Contact Section - Estilos mejorados                */
/* ================================================== */

/* Sección principal */
#contact {
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
}

#contact-heading {
  font-size: 2.25rem; /* Equivalente a text-4xl (Tailwind) */
  font-weight: 700; /* font-bold */
  color: var(--white);
  margin-bottom: 1.5rem; /* mb-6 */
  line-height: 1.3; /* Opcional: si quieres igualar .vp-heading */
  position: relative;
  padding-bottom: 1.5rem; /* Espacio para el subrayado */
  text-align: center; /* Si lo prefieres centrado */
}

.contact-heading-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0; /* Inicia en 0 */
  height: 4px;
  background: var(--mint);
  border-radius: 2px;
  opacity: 0; /* Opcional: efecto de fade-in */
  transition: width 0.6s ease-out, opacity 0.4s ease-out;
}
#contact-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--mint);
  border-radius: 2px;
}

/* Responsive (md:text-5xl) */
@media (min-width: 768px) {
  #contact-heading {
    font-size: 3rem; /* Equivalente a md:text-5xl */
  }
}
/* Contenedor del formulario */
.form-container {
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    background-color: var(--prussian-blue);
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Campos del formulario */
.form-input {
    transition: all 0.3s ease;
    background-color: var(--raising-black);
    color: var(--white);
    border: 1px solid var(--dim-gray);
}

.form-input:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.5);
    outline: none;
    border-color: var(--blue-400);
}

/* Botón de enviar */
.btn-submit {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, var(--mint), var(--blue-400));
    color: var(--white);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(90, 191, 146, 0.3);
}

.btn-submit:hover {
    opacity: 0.9;
    box-shadow: 0 8px 25px rgba(90, 191, 146, 0.4);
}



/* Estados del formulario */
.form-loading {
    position: relative;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 0.5rem;
}

.form-loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--mint);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    z-index: 21;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
}

/* Iframe de Microsoft Forms */
#ms-forms-iframe {
    transition: opacity 0.3s ease;
    border: none;
}

/* Mensajes de estado */
#form-error {
    transition: all 0.3s ease;
    background-color: rgba(254, 226, 226, 0.9);
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
}

#form-fallback {
    background-color: var(--raising-black);
    color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
}

/* Animaciones */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}


/* ================================================== */
/* Footer */
/* ================================================== */
footer {
  background-color: rgba(25, 44, 68, 0.9); /* Fallback para --prussian-blue */
  padding: 3rem 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

@supports (backdrop-filter: blur(6px)) {
  footer {
    background-color: rgba(25, 44, 68, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--mint);
}

/* ================================================== */
/* Estilos Base del Menú (compartidos) */
/* ================================================== */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease-out;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}


/* ================================================== */
/* Responsive Design */
/* ================================================== */
@media (min-width: 769px) {
  .nav-menu {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    padding: 0 1.5rem;
  }

  .nav-menu a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0.75rem 0;
  }

   /* Subrayado menta pegado al texto */
  .nav-menu a {
    position: relative;
    color: var(--white);
    text-decoration: none;
    padding-bottom: 0.15rem; /* Espacio mínimo para el subrayado */
    transition: color 0.3s ease;
  }

  .nav-menu a:hover {
    color: var(--mint);
  }

  .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0.05rem; /* Casi pegado al texto */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mint);
    transition: width 0.3s ease-out;
  }

  .nav-menu a:hover::after {
    width: 100%;
  }
  /* Separador visual mejorado */
  .nav-menu a:not(:last-child)::before {
    content: '';
    position: absolute;
    right: -1rem;
    height: 1.5rem;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    top: 50%;
    transform: translateY(-50%);
  }

  #menu-toggle {
    display: none;
  }
}

/* ================================================== */
/* Versión Mobile (hasta 768px) */
/* ================================================== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--dark-gray);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
  }

  .no-scroll {
    overflow: hidden;
  }

  #menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
  }

  #menu-toggle i {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
  }
}



html.no-scroll {
  overflow: hidden;
}

/* Loader styles */
.loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: white;
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
transition: opacity 0.5s ease;
}

/* Form states */
.form-loading {
position: relative;
pointer-events: none;
}

.form-loading::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(55, 65, 81, 0.5);
display: flex;
justify-content: center;
align-items: center;
}

.hidden {
display: none;
}

#form-fallback, #form-error {
padding: 1.5rem;
background: var(--gray-700);
border-radius: 0.5rem;
margin-top: 1rem;
text-align: center;
}

#form-error {
background: #fef2f2;
color: #b91c1c;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animations */
.visible {
  opacity: 1 !important;
}


 

.tech-bg-particle {
  position: relative;
  width: 100%;
  background: #0f172a;
  overflow: hidden;
}

#networkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  background-color: transparent;
}

/* Asegura que las animaciones no afecten el formulario */
#contact {
animation: none !important;
transition: none !important;
}

/* Estilos específicos para el estado de carga */
.form-loading {
pointer-events: none;
}
.form-loading * {
animation-play-state: paused !important;
}
/* Estilos para fallbacks y mensajes */
.hidden { display: none; }

#form-fallback, #form-error {
padding: 1.5rem;
background: var(--gray-700);
border-radius: 0.5rem;
margin-top: 1rem;
text-align: center;
}

#form-error {
background: #fef2f2;
color: #b91c1c;
}

/* Estilos del banner de cookies */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1b1e28; /* --raising-black */
  color: #fff; /* --white */
  padding: 1rem;
  z-index: 50;
  border-top: 1px solid #6c6e7b; /* --dim-gray */
  display: none; /* Oculto por defecto */
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.cookie-link {
  color: #5ABF92; /* --mint */
  font-weight: 500;
  text-decoration: underline;
}

.cookie-link:hover {
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

.cookie-button {
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.reject-btn {
  background-color: #6c6e7b; /* --dim-gray */
  color: #fff;
}

.accept-btn {
  background-color: #5ABF92; /* --mint */
  color: #fff;
}

.reject-btn:hover,
.accept-btn:hover {
  background-color: #192C44; /* --prussian-blue */
}

/* Responsive para pantallas medianas/grandes */
@media (min-width: 768px) {
  .cookie-container {
      flex-direction: row;
  }
  .cookie-text {
      margin-bottom: 0;
      text-align: left;
      font-size: 1rem;
  }
}

