:root {
  --primary-color: #0a192f;
  --secondary-color: #64ffda;
  --accent-color: #8892b0;
  --light-accent: #ccd6f6;
  --dark-color: #020c1b;
  --light-color: #f5f7fa;
  --gradient-primary: linear-gradient(135deg, #0a192f 0%, #112240 100%);
  --gradient-secondary: linear-gradient(135deg, #64ffda 0%, #a8ff78 100%);
  --gradient-dark: linear-gradient(135deg, #020c1b 0%, #0a192f 100%);
  --gradient-light: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f7ef8a 100%);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
  --border-radius: 16px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);

  /* --particle-color-primary: rgba(100, 255, 219, 0.678);
  --particle-color-secondary: rgba(255, 100, 219, 0.452);
  --particle-color-accent: rgba(100, 218, 255, 0.9);
  --particle-glow: rgba(100, 255, 219, 0.342);
  --particle-line: rgba(100, 255, 218, 0.15); */

  --gradient-start: rgba(10, 15, 30, 0.95);
  --gradient-end: rgba(5, 10, 20, 0.9);

  --particle-count: 80; /* número de partículas */
  --particle-speed: 0.2; /* velocidad base */
  --particle-color-primary: #64ffda;
  --particle-color-secondary: #8892b0;
  --particle-color-accent: #d4af3794;
  --particle-line: rgba(100, 255, 218, 0.15);
  --particle-glow: rgba(100, 255, 218, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--light-accent);
  overflow-x: hidden;
  background-color: var(--dark-color);
  background-image: radial-gradient(
      circle at 15% 50%,
      rgba(100, 255, 165, 0.05) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(212, 175, 55, 0.11) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(136, 146, 176, 0.137) 0%,
      transparent 30%
    );
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--light-accent);
}
/* 
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
} */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--accent-color);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 4rem;
}


/* Header y Navegación */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.header.scrolled {
  background: rgba(10, 25, 47, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.nav__logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light-accent);
  text-decoration: none;
}

.nav__logo span {
  color: var(--secondary-color);
}

.nav__menu {
  display: flex;
  list-style: none;
}

.nav__item {
  margin-left: 2rem;
  position: relative;
}

.nav__link {
  text-decoration: none;
  color: var(--light-accent);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.nav__link:hover {
  color: var(--secondary-color);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-secondary);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light-accent);
  z-index: 1001;
}

.header {
  transition: transform 0.3s ease;
}

.header.hidden {
  transform: translateY(-100%);
}

/* --- Hero SOLO de texto (primer bloque) --- */
.hero:first-of-type .hero__content {
  display: flex;
  flex-direction: column;
  align-items: center; /* centra horizontal */
  justify-content: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto; /* centra dentro del contenedor */
}

/* --- Hero SOLO de texto (primer bloque) --- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video de fondo */
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0; /* fondo */

  /* Aquí el truco: aplicar máscara SOLO al pseudo-elemento */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.938) 10%,
    #000 10%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.9) 10%,
    #000 70%,
    transparent 100%
  );
  mask-repeat: no-repeat;
  mask-size: cover;

  z-index: 0; /* se mantiene debajo del contenido */
}

/* Canvas de partículas */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* encima del video, debajo del overlay */
  pointer-events: none;
}

/* Overlay degradado / máscara */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0; /* encima del video y partículas, debajo del contenido */
  background: linear-gradient(rgba(11, 17, 32, 0.897), rgba(11, 17, 32, 0.938));
  /* Se puede mantener la máscara si quieres efecto suave en top/bottom */

  /* Aquí el truco: aplicar máscara SOLO al pseudo-elemento */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.9) 10%,
    #000 70%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.9) 10%,
    #000 70%,
    transparent 100%
  );
  mask-repeat: no-repeat;
  mask-size: cover;

  z-index: 0; /* se mantiene debajo del contenido */
}
/* 🔹 Capa para el desvanecimiento */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11, 17, 32, 0.85), rgba(11, 17, 32, 0.95)),
    url("fondo.jpg") center/cover no-repeat;

  /* Aquí el truco: aplicar máscara SOLO al pseudo-elemento */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.9) 10%,
    #000 70%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.9) 10%,
    #000 70%,
    transparent 100%
  );
  mask-repeat: no-repeat;
  mask-size: cover;

  z-index: 0; /* se mantiene debajo del contenido */
}

/* 🔹 Aseguramos que el texto y botones sigan por encima */
.hero__content,
.hero__buttons,
.cta,
.cta-inicio {
  position: relative;
  z-index: 1;
}

.hero__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 100px);
}
.hero__content {
  /* display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center; */

  display: grid;
  grid-template-columns: 1fr 1fr; /* mantiene dos columnas en desktop */
  gap: 4rem;
  align-items: center;
  max-width: 1100px; /* evita que la grid ocupe todo el ancho de la pantalla */
  margin: 0 auto; /* centra la grid dentro del .hero */
  justify-content: center; /* si las columnas no llenan todo, las centra horizontalmente */
}

/* Texto */
.hero:first-of-type .hero__text {
  max-width: 700px;
  margin: 0 auto;
}

.hero__title-main {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s ease;
  line-height: 1.1;
  font-weight: 800;

  /* NUEVO: permite saltos de línea naturales */
  white-space: normal;
  word-break: break-word;

  /* Para efecto escritura */
  overflow: hidden;
  position: relative;
  min-height: 3.9rem; /* previene salto vertical al inicio */
  text-align: center;
}
/* Logo con ícono y texto */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}

/* Imagen del logo */
.logo-img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
  animation: premiumColorShift 8s ease-in-out infinite;
  
}



.logo-img img {
  width: 250px; /* ajusta según tamaño */
  height: auto;
  display: block;

  /* Para aplicar gradiente animado dentro */
  /* filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0)); */
  animation: premiumColorShift 8s ease-in-out infinite;
  
  z-index: 2; /* Imagen por encima del blur */
}

/* Animación premium (cambio fluido de tonos) */
@keyframes premiumColorShift {
  0% {
    filter: drop-shadow(0 0 12px #ff6ec76c) hue-rotate(0deg);
  }
  25% {
    filter: drop-shadow(0 0 16px #845ec2) hue-rotate(90deg);
  }
  50% {
    filter: drop-shadow(0 0 20px #00c9326e) hue-rotate(180deg);
  }
  75% {
    filter: drop-shadow(0 0 16px #f9f97179) hue-rotate(270deg);
  }
  100% {
    filter: drop-shadow(0 0 12px #b7c4e767) hue-rotate(360deg);
  }
}



/* Ícono */
.nav__logo i {
  margin-right: 0.3rem;
  color: #0077ff; /* azul moderno */
  font-size: 1.3rem;
}
.hero__title-sub {
  font-size: 2rem;
  display: block;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;

  /* NUEVO: permite saltos de línea naturales */
  white-space: normal;
  word-break: break-word;

  /* Para efecto escritura */
  overflow: hidden;
  position: relative;
  min-height: 2.7rem; /* previene salto vertical al inicio */
}

.hero__description {
  font-size: 1.2rem;
  margin: 1.5rem 0 2.5rem;
  /* color: var(--accent-color); */
  color: #00ffeae8;
  animation: fadeInUp 1s ease 0.4s both;
  line-height: 1.7;
}

/* Botones en desktop centrados */
.hero:first-of-type .hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.element__visual {
  position: relative;
  animation: fadeInRight 1s ease 0.8s both;
  max-width: 600px; /* limita ancho máximo en desktop */
  margin: 0 auto; /* centra el bloque */
}

.element__image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: var(--transition);
}

.element__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Floating elements */
.element__floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 40px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: float 3s ease-in-out infinite;
  z-index: 10;
  border: 1px solid rgba(100, 255, 218, 0.2);
  color: var(--light-accent);
}

.floating-element i {
  color: var(--secondary-color);
  font-size: 1rem;
}

/* Posiciones en desktop */
.element-1 {
  top: 10%;
  left: -5%;
}
.element-2 {
  top: 50%;
  right: -5%;
}
.element-3 {
  bottom: 20%;
  left: 15%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* --- Responsividad --- */

.hero__scroll-indicator {
  position: absolute;
  bottom: -90px; /* antes 30px → ahora más arriba */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--accent-color);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
  z-index: 10;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}
@media (max-width: 768px) {
  .element__visual {
    max-width: 100%;
  }

  .floating-element {
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 30px;
    margin-left: 20px;
    gap: 6px;
  }

  .floating-element i {
    font-size: 0.9rem;
  }

  /* Posiciones en desktop */
  .element-1 {
    top: 10%;
    left: -5%;
  }
  .element-2 {
    top: 42%;
    right: 1%;
  }
  .element-3 {
    bottom: 20%;
    left: 15%;
  }

  /* Recolocar los elementos para que no se salgan en móvil */
  /* .element-1,
  .element-2,
  .element-3 {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 10px;
    display: inline-block;
  }
  } */
}
@media (max-width: 480px) {
  .floating-element {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 25px;
  }

  .floating-element i {
    font-size: 0.85rem;
  }
}

/* Secciones */
section {
  padding: 5rem 0;
  position: relative;
}

/* About Section */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(100, 255, 218, 0.05) 0%,
    transparent 70%
  );
  z-index: 0;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about__image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(5deg);
  transition: var(--transition);
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.about__image:hover {
  transform: perspective(1000px) rotateY(0);
}

.about__image img {
  width: 100%;
  height: auto;
  display: block;
}

.about__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
}

.about__stats {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.about__text-text {
  max-width: 700px; /* controla el ancho del bloque */
  margin: 0 auto; /* centra en su contenedor */
  text-align: center; /* centra el texto */
  padding: 2rem 1rem; /* aire alrededor */
}

.about__text-text h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--title-color, #16e082);
  margin-bottom: 1rem;
}

.about__text-text p {
  position: relative;
  padding-left: 1.2rem;
  color: var(--accent-color, #0077cc);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about__highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 4px;
  border-radius: 2px;
  background-color: var(--particle-color-accent, #00ffc6);
}



.stat {
  text-align: center;
  padding: 1.2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 255, 218, 0.1);
  backdrop-filter: blur(10px);
  flex: 1;
  min-width: 120px;
}

.stat:hover {
  background: rgba(100, 255, 218, 0.05);
  transform: translateY(-5px);
  border-color: rgba(100, 255, 218, 0.3);
}

.stat__number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--accent-color);
}

.about__features {
  margin-top: 2rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  padding: 1.2rem;
  border-radius: 12px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 255, 218, 0.05);
}

.feature:hover {
  background: rgba(100, 255, 218, 0.05);
  padding-left: 1.5rem;
  border-color: rgba(100, 255, 218, 0.2);
}

.feature i {
  color: var(--secondary-color);
  margin-right: 12px;
  font-size: 1.5rem;
  margin-top: 5px;
}

.feature__text h4 {
  margin-bottom: 0.5rem;
  color: var(--light-accent);
}

.feature__text p {
  color: var(--accent-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ////////////////PROGRAMAS////////////// */

/* Sección de Programas */
.programas-seccion {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.programas-seccion::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.03;
  z-index: 0;
}

.programas-seccion::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.04;
  z-index: 0;
}

.seccion-header {
  margin-bottom: 5rem;
  position: relative;
  z-index: 2;
}

.seccion-titulo {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.seccion-titulo::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: var(--gradient-secondary);
  border-radius: 3px;
  opacity: 0.8;
}

.seccion-subtitulo {
  font-size: 1.3rem;
  color: var(--accent-color);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
}

.texto-gradient {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.programas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

/* Tarjeta interactiva */

/* Tarjeta cerrada: altura fija */
.programa-tarjeta {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  max-height: 450px; /* 👈 altura fija */
  box-shadow: var(--shadow);
  transition: max-height 0.5s ease, box-shadow 0.3s ease;
}

/* Tarjeta abierta: expansión dinámica */
.programa-tarjeta.activa {
  max-height: 2000px; /* 👈 suficientemente grande para cualquier contenido */
}

/* El efecto hover/click va al inner */
.tarjeta-inner {
  height: 100%;
  width: 100%;
  transition: var(--transition);
}

.programa-tarjeta:hover .tarjeta-inner,
.programa-tarjeta.activa .tarjeta-inner {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
}

/* Imagen de fondo */
.tarjeta-imagen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
  z-index: 1;
  will-change: transform;
}

.programa-tarjeta:nth-child(1) .tarjeta-imagen {
  background-image: url("/biblioteca/fondo-02.jpg");
}

.programa-tarjeta:nth-child(2) .tarjeta-imagen {
  background-image: url("/biblioteca/Desarollo+personal.JPG");
}

.programa-tarjeta:nth-child(3) .tarjeta-imagen {
  background-image: url("/biblioteca/G-h.jpg");
}

.programa-tarjeta:nth-child(4) .tarjeta-imagen {
  background-image: url("/biblioteca/Marketig.JPG");
}

/* Título sobre la imagen */
.tarjeta-titulo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem;
  z-index: 2;
  transition: var(--transition);
}

.tarjeta-titulo-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 25, 47, 0.7) 0%,
    rgba(10, 25, 47, 0.5) 50%,
    rgba(10, 25, 47, 0.3) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
}

.programa-tarjeta:hover .tarjeta-titulo-overlay,
.programa-tarjeta.activa .tarjeta-titulo-overlay {
  opacity: 0;
  transform: translateY(-20px);
}

.tarjeta-titulo-principal {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.418);
  line-height: 1.2;
  letter-spacing: -0.4px;
}

/* ICONOS CORREGIDOS - SIN DISTORSIÓN */
.tarjeta-icono-principal {
  width: 80px;
  height: 80px;
  background: rgba(100, 255, 218, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(100, 255, 218, 0.4);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: visible; /* Cambiado de hidden a visible */
}

.tarjeta-icono-principal i {
  font-size: 2rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Contenido adaptable (sin scroll interno) */
.tarjeta-contenido {
  position: relative;
  width: 100%;
  padding: 2.5rem;
  background: linear-gradient(
    to top,
    rgba(10, 25, 47, 0.95) 0%,
    rgba(10, 25, 47, 0.85) 30%,
    rgba(10, 25, 47, 0.5) 60%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 3;

  overflow: visible; /* 👈 no scroll interno */
  max-height: none;
}

.programa-tarjeta.activa .tarjeta-contenido {
  opacity: 1;
  transform: translateY(0);
}

.programa-tarjeta:hover .tarjeta-imagen,
.programa-tarjeta.activa .tarjeta-imagen {
  filter: brightness(0.6) blur(3px);
  transform: scale(1.08);
}

/* Animación pestaña */
.programa-tarjeta .pestaña-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-size: 300% 300%;
  animation: animacion-bg 8s ease-in-out infinite;
  z-index: 4;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.programa-tarjeta:nth-child(1) .pestaña-color {
  background-image: linear-gradient(135deg, #8a8ae7, #13a535, #3cd8ff, #8a8ae7);
}

.programa-tarjeta:nth-child(2) .pestaña-color {
  background-image: linear-gradient(135deg, #203a2a, #55d1cb, #1a73e8, #203a2a);
}

.programa-tarjeta:nth-child(3) .pestaña-color {
  background-image: linear-gradient(135deg, #ff8a00, #7d3cdb, #ff4081, #ff8a00);
}

@keyframes animacion-bg {
  0% {
    background-position: 0% 50%;
    transform: scaleX(1);
  }
  25% {
    background-position: 50% 50%;
    transform: scaleX(1.02);
  }
  50% {
    background-position: 100% 50%;
    transform: scaleX(1);
  }
  75% {
    background-position: 50% 50%;
    transform: scaleX(0.98);
  }
  100% {
    background-position: 0% 50%;
    transform: scaleX(1);
  }
}

.programa-tarjeta:hover .pestaña-color,
.programa-tarjeta.activa .pestaña-color {
  height: 8px;
  animation-duration: 4s;
  filter: brightness(1.2) saturate(1.5);
}

/* Iconos */
.tarjeta-icono {
  width: 70px;
  height: 70px;
  background: rgba(100, 255, 218, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  border: 2px solid rgba(100, 255, 218, 0.3);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.tarjeta-icono::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: var(--transition);
  border-radius: 50%;
}

.tarjeta-icono i {
  font-size: 1.8rem;
  color: var(--secondary-color);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.programa-tarjeta:hover .tarjeta-icono,
.programa-tarjeta.activa .tarjeta-icono {
  /* transform: rotate(8deg); */
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.4);
}

.programa-tarjeta:hover .tarjeta-icono::before,
.programa-tarjeta.activa .tarjeta-icono::before {
  opacity: 1;
}

.programa-tarjeta:hover .tarjeta-icono i,
.programa-tarjeta.activa .tarjeta-icono i {
  color: var(--dark-color);
}

/* Texto */
.tarjeta-titulo {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.3px;
}

.tarjeta-descripcion {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.05rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.tarjeta-caracteristicas {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.tarjeta-caracteristicas li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.tarjeta-caracteristicas i {
  color: var(--secondary-color);
  margin-right: 10px;
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA */
.tarjeta-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  background: rgba(100, 255, 218, 0.15);
  color: var(--secondary-color);
  border: 1px solid rgba(100, 255, 218, 0.3);
  gap: 8px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  width: fit-content;
}

.tarjeta-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 255, 218, 0.2),
    transparent
  );
  transition: var(--transition);
}

.tarjeta-cta:hover {
  background: var(--gradient-secondary);
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

.tarjeta-cta:hover::before {
  left: 100%;
}

.tarjeta-cta i {
  font-size: 1.1rem;
  transition: var(--transition);
}

.tarjeta-cta:hover i {
  transform: translateX(5px);
}
/* Indicador */
.tarjeta-indicador {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: 3;
  opacity: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  background: rgba(10, 25, 47, 0.7);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  font-weight: 500;
}

.indicador-icono {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.indicador-icono i {
  font-size: 0.9rem;
  color: var(--secondary-color);
  animation: tap 1.2s infinite ease-in-out; /* 👈 animación agregada */
}

/* Animación de "tap" (toque invitando al usuario) */
@keyframes tap {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  30% {
    transform: translateY(3px) scale(0.95);
    opacity: 0.9;
  }
  60% {
    transform: translateY(-2px) scale(1.05);
    opacity: 1;
  }
}

.programa-tarjeta:hover .tarjeta-indicador,
.programa-tarjeta.activa .tarjeta-indicador {
  opacity: 0;
  transform: translateX(-50%) scale(0.8);
  pointer-events: none;
}



/* CTA section */
.programas-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(100, 255, 218, 0.15);
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

.programas-cta:hover {
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.programas-cta a {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.programas-cta a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.programas-cta a:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
  .seccion-titulo {
    font-size: 2.8rem;
  }

  .programas-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .seccion-titulo {
    font-size: 2.4rem;
  }

  .seccion-subtitulo {
    font-size: 1.1rem;
  }

  .programas-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .programa-tarjeta {
    max-height: 420px; /* más compacto en móvil */
  }

  .tarjeta-titulo-principal {
    font-size: 1.8rem;
  }

  .tarjeta-icono-principal {
    width: 70px;
    height: 70px;
  }

  .tarjeta-icono-principal i {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .seccion-titulo {
    font-size: 2rem;
  }

  .programa-tarjeta {
    max-height: 380px; /* más compacto */
  }

  .tarjeta-titulo-principal {
    font-size: 1.6rem;
  }

  .tarjeta-icono-principal {
    width: 60px;
    height: 60px;
  }

  .tarjeta-icono-principal i {
    font-size: 1.6rem;
  }

  .tarjeta-icono {
    width: 60px;
    height: 60px;
  }

  .tarjeta-icono i {
    font-size: 1.5rem;
  }

  .programas-cta {
    padding: 2rem 1.5rem;
  }

  .tarjeta-indicador {
    font-size: 0.8rem;
    padding: 10px 16px;
  }
}

/* Benefits Section */
.benefits-section {
  position: relative;
  overflow: hidden;
}

.benefits-section::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(100, 255, 218, 0.05) 0%,
    transparent 70%
  );
  z-index: 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: var(--transition);
  z-index: 0;
}

.benefit-card:hover::before {
  left: 0;
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: rgba(100, 255, 218, 0.3);
}

.benefit-card__icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  border: 2px solid rgba(100, 255, 218, 0.3);
}

.benefit-card:hover .benefit-card__icon {
  transform: rotateY(180deg);
  background: var(--gradient-secondary);
}

.benefit-card__icon i {
  font-size: 1.8rem;
  color: var(--secondary-color);
  transition: var(--transition);
}

.benefit-card:hover .benefit-card__icon i {
  color: var(--dark-color);
}

.benefit-card__title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  color: var(--light-accent);
}

.benefit-card__description {
  color: var(--accent-color);
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
  background: var(--gradient-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: cover;
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
  color: white;
  position: relative;
  z-index: 1;
}

.testimonials__slider {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin: 0 1rem;
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.testimonial__text {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  position: relative;
  line-height: 1.7;
  color: var(--light-accent);
}

.testimonial__text::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -25px;
  left: -10px;
  opacity: 0.3;
  font-family: serif;
  color: var(--secondary-color);
}

.testimonial__author {
  display: flex;
  align-items: center;
}

.testimonial__author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.2rem;
  border: 3px solid rgba(100, 255, 218, 0.3);
}

.testimonial__info h4 {
  margin-bottom: 0.3rem;
  color: var(--light-accent);
}

.testimonial__info span {
  font-size: 0.9rem;
  opacity: 0.8;
  color: var(--accent-color);
}

.testimonials__controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-control {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.testimonial-control:hover {
  background: rgba(100, 255, 218, 0.3);
  transform: scale(1.1);
}

/* FAQ Section */
.faq-section {
  position: relative;
}

.faq__accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(100, 255, 218, 0.1);
  backdrop-filter: blur(10px);
}

.accordion-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(100, 255, 218, 0.2);
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover {
  background: rgba(100, 255, 218, 0.05);
}

.accordion-header h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--light-accent);
}

.accordion-header i {
  transition: var(--transition);
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active .accordion-content {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.accordion-content p {
  margin: 0;
  color: var(--accent-color);
  line-height: 1.7;
}

.faq__cta {
  text-align: center;
  margin-top: 3rem;
}

.faq__cta a {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}

.faq__cta a:hover {
  text-decoration: underline;
}

/* Final CTA */
.final-cta {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.final-cta::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.final-cta__container {
  position: relative;
  z-index: 1;
}

.final-cta__title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.final-cta__description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.final-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--gradient-dark);
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  color: var(--light-accent);
}

.footer__title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-secondary);
}

.footer__description {
  margin-bottom: 1.5rem;
  opacity: 0.8;
  line-height: 1.7;
  color: var(--accent-color);
}

.footer__social {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  color: var(--dark-color);
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 0.8rem;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer__list a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.contact-item i {
  margin-right: 12px;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.footer__newsletter h4 {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: var(--light-accent);
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 50px 0 0 50px;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.95rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}


.footer__newsletter .link-newsletter {
  /* margin-left: 0.5rem; */
  color: #00ff55; /* dorado/amarillo para resaltar */
  text-decoration: none;
  font-weight: 500;
}

.footer__newsletter .link-newsletter:hover {
  color: #45e495;
  text-decoration: none;
}


/* 
////////////////////////////////////// */

.subtitle {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 2rem;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.subtitle::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: var(--gradient-secondary);
  border-radius: 3px;
  opacity: 0.8;
}

/* About Section */
.about {
  padding: 8rem 0;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.05;
  z-index: 0;
}

.about__paragraph {
  font-size: 1.3rem;
  color: var(--accent-color);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 5rem;
  line-height: 1.8;
  font-weight: 400;
  position: relative;
  z-index: 1;
}
.about__main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.about__icons {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: var(--border-radius);
  padding: 3rem 2.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.15);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-shadow: var(--shadow);
}

.about__icons::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 255, 218, 0.05),
    transparent
  );
  transition: var(--transition);
  z-index: 0;
  animation: glowShift 10s ease-in-out infinite;
}

/* 🔹 Movimiento sutil del brillo */
@keyframes glowShift {
  0% {
    filter: blur(18px) brightness(1);
  }
  50% {
    filter: blur(22px) brightness(1.3);
  }
  100% {
    filter: blur(18px) brightness(1);
  }
}

.about__icons:hover::before {
  left: 100%;
}

.about__icons:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(100, 255, 218, 0.3);
}

.about__icon-container {
  width: 100px;
  height: 100px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  border: 2px solid rgba(100, 255, 218, 0.2);
  animation: pulseGlow 4s ease-in-out infinite;
}

/* 🔹 Pulsación suave */
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(100, 255, 183, 0.096),
      0 0 25px rgba(100, 255, 219, 0.11);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 0, 21, 0.192),
      0 0 35px rgba(0, 255, 106, 0.103);
  }
}

.about__icons:hover .about__icon-container {
  background: rgba(100, 255, 218, 0.15);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-light);
}

.about__icon {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.about__icons:hover .about__icon {
  filter: brightness(0) invert(0.8) sepia(1) saturate(5) hue-rotate(130deg);
  transform: scale(1.1);
}

.about__title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--light-accent);
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.about__paragrah {
  color: var(--accent-color);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
}

/* Knowledge Section */
.knowledge {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.knowledge::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: var(--gradient-gold);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.03;
  z-index: 0;
}

.knowledge::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.04;
  z-index: 0;
}

.knowledge__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.knowledege__texts {
  padding-right: 3rem;
}

.knowledege__texts .cta {
  display: block; /* lo hace un bloque */
  width: fit-content; /* se ajusta al tamaño del contenido */
  margin: 1.5rem auto 0; /* arriba 1.5rem, centrado horizontal */
  text-align: center; /* centra el texto del botón */
}

.knowledge__paragraph {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 3rem;
  line-height: 1.8;
  font-weight: 400;
}

.knowledge__picture {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
  transition: var(--transition);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  padding: 25px;
  border: 1px solid rgba(100, 255, 218, 0.15);
  backdrop-filter: blur(20px);
}

.knowledge__picture:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.02);
  border-color: rgba(100, 255, 218, 0.3);
}

.knowledge__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: var(--transition);
  filter: brightness(0.95) contrast(1.1);
}

.knowledge__picture:hover .knowledge__img {
  transform: scale(1.03);
  filter: brightness(1) contrast(1.2);
}

/* Efectos de partículas para el fondo */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(100, 255, 218, 0.4);
  border-radius: 50%;
  animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) translateX(20px) rotate(120deg);
  }
  66% {
    transform: translateY(20px) translateX(-15px) rotate(240deg);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .subtitle {
    font-size: 2.8rem;
  }

  .knowledge__container {
    gap: 4rem;
  }
}

@media (max-width: 968px) {
  .knowledge__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }

  .knowledege__texts {
    padding-right: 0;
    order: 2;
  }

  .knowledge__picture {
    order: 1;
    max-width: 600px;
    margin: 0 auto;
  }

  .about__main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .subtitle {
    font-size: 2.4rem;
  }

  .about__paragraph,
  .knowledge__paragraph {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .subtitle {
    font-size: 2rem;
  }

  .about__icons {
    padding: 2.5rem 2rem;
  }

  .about__icon-container {
    width: 80px;
    height: 80px;
  }

  .about__icon {
    width: 40px;
    height: 40px;
  }

  .cta {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .knowledge__picture {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .subtitle {
    font-size: 1.8rem;
  }

  .about {
    padding: 5rem 0;
  }

  .knowledge {
    padding: 5rem 0;
  }

  .about__paragraph,
  .knowledge__paragraph {
    font-size: 1rem;
  }

  .about__main {
    grid-template-columns: 1fr;
  }
}

/* ////////////////// */

.newsletter-form button:hover {
  background: var(--secondary-color);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer__legal a:hover {
  color: var(--secondary-color);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Efectos de partículas para el fondo */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(100, 255, 218, 0.3);
  border-radius: 50%;
  animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
  0% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-40px) translateX(0);
  }
  75% {
    transform: translateY(-20px) translateX(-10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr 460px; /* ajusta según el tamaño de tu imagen/visual */
  }
  .hero__title-main {
    font-size: 2.5rem;
  }

  .hero__title-sub {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .hero__content {
    gap: 3rem;
  }

  .about__content {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr; /* 1 columna */
    gap: 2.2rem;
    text-align: center;
    padding: 0 12px; /* respiración lateral */
  }
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 25, 47, 0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 100px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__item {
    margin: 0;
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  }

  .nav__toggle {
    display: block;
  }

  .hero__scroll-indicator {
    position: absolute;
    bottom: -90px; /* antes 30px → ahora más arriba */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent-color);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    z-index: 10;
  }

  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .about__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero:first-of-type .hero__buttons {
    flex-direction: column;
    width: 90%;
    margin: 20px auto 0;
    gap: 2rem;
  }

  .hero:first-of-type .hero__buttons a {
    width: 100%;
    text-align: center;
  }

  .about__stats {
    flex-direction: row;
    justify-content: space-around;
  }

  .stat {
    min-width: 100px;
  }

  .final-cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  .hero__title-main {
    font-size: 2.2rem;
  }

  .hero__title-sub {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 4rem 0;
  }

  .hero__floating-elements {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .hero__title-main {
    font-size: 1.8rem;
  }

  .hero__title-sub {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .cta {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .program-card,
  .benefit-card {
    padding: 1.5rem;
  }

  .testimonial {
    padding: 1.5rem;
  }

  .about__stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat {
    min-width: 100%;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: 50px;
    margin-bottom: 10px;
  }

  .newsletter-form button {
    border-radius: 50px;
    padding: 12px;
  }
}

@media (max-width: 400px) {
  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .cta {
    width: 100%;
    max-width: 250px;
    margin-bottom: 10px;
  }

  .programs__grid {
    grid-template-columns: 1fr;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }
}

.hero__content {
  position: relative;
  z-index: 1; /* asegura que el texto quede encima del fondo */
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Canvas encima del fondo, pero debajo del texto */

/* Texto y botones siempre visibles */
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* .hero__content {
          position: relative;
          z-index: 1; 
        }
         */

/* Contenido con efecto de cristal mejorado */
/* .hero__content {
          position: relative;
          z-index: 2;
          max-width: 900px;
          padding: 3rem;
          text-align: center;
          color: #fff;
          background: rgba(255, 255, 255, 0.07);
          backdrop-filter: blur(15px) saturate(180%);
          border-radius: 16px;
          border: 1px solid rgba(255, 255, 255, 0.12);
          box-shadow: 
              0 20px 40px rgba(0, 0, 0, 0.3),
              0 0 80px rgba(100, 255, 218, 0.1);
          animation: contentFloat 6s ease-in-out infinite;
      } */

/* Modo de alto contraste para accesibilidad */
@media (prefers-contrast: high) {
  :root {
    --particle-color-primary: rgba(100, 255, 218, 1);
    --particle-color-secondary: rgba(255, 100, 218, 1);
    --particle-color-accent: rgba(100, 218, 255, 1);
    --particle-line: rgba(100, 255, 218, 0.4);
  }
}

/* Modo de movimiento reducido para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  :root {
    --particle-speed: 0.2;
  }

  .hero__content {
    animation: none;
  }

  .hero__button:hover {
    transform: none;
  }
}

.hero__buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* Estilo base */
            
/* Botones */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  gap: 8px;
}

.cta {
  border-radius: 50px;

  transition: var(--transition);
  background: var(--gradient-secondary);
  color: var(--dark-color);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  gap: 10px;
  /* font-size: 1.1rem; */
  border: none;
  cursor: pointer;
}

.cta:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: var(--transition);
}

.cta:hover::before {
  left: 100%;
}

.cta i {
  /* font-size: 1.2rem; */
  transition: var(--transition);
}

.cta:hover i {
  transform: translateX(5px);
}

.cta--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.cta--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(100, 255, 218, 0.5);
}

.cta--secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.cta--secondary:hover {
  background: rgba(100, 255, 218, 0.1);
  color: white;
}
.about__features + .cta--accent {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
}

.cta--accent {
  background: var(--gradient-secondary);
  color: var(--dark-color);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.cta--accent:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cta--outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.cta--glow {
  background: var(--gradient-secondary);
  color: var(--dark-color);
  box-shadow: 0 0 25px rgba(100, 255, 218, 0.4);
  font-weight: 700;
}

.cta--glow:hover {
  box-shadow: 0 0 35px rgba(100, 255, 218, 0.6);
  transform: translateY(-2px);
}


            .cta {
              position: relative;
              display: inline-flex;
              align-items: center;
              gap: 0.7rem;
              padding: 1rem 2.2rem;
              font-size: 1.1rem;
              font-weight: 600;
              border-radius: 50px;
              text-decoration: none;
              cursor: pointer;
              overflow: hidden;
              transition: all 0.35s ease;
              z-index: 0;
            }
            
            .cta i {
              font-size: 1.15rem;
              transition: transform 0.3s ease;
            }
            
            .cta:hover i {
              transform: translateX(6px) rotate(8deg);
            }
            
            /* 🔹 Botón primario líquido */
            .cta--primary {
              color: #0b1120;
              background: linear-gradient(270deg, #00ffc8c2, #00ff9d, #00c3ff);
              background-size: 600% 600%;
              animation: gradientFlow 6s ease infinite;
              box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
            }
            
            .cta--primary:hover {
              transform: translateY(-3px) scale(1.05);
              box-shadow: 0 0 30px rgba(0, 255, 204, 0.6);
            }
            
            /* 🔹 Botón outline con líquido */
            .cta--outline {
              color: #00ffea;
              border: 2px solid #00ffc6;
              background: linear-gradient(
                270deg,
                transparent,
                rgba(0, 255, 200, 0.048),
                transparent
              );
              background-size: 400% 400%;
              animation: gradientWave 3s ease infinite;
            }
            
            .cta--outline:hover {
              background: rgba(0, 255, 200, 0.15);
              box-shadow: 0 0 20px rgba(0, 255, 200, 0.4);
              transform: translateY(-3px) scale(1.05);
            }
            
            /* 🔹 Halo de luz difusa alrededor del botón */
            .cta::after {
              content: "";
              position: absolute;
              inset: -6px; /* se expande más allá del borde */
              border-radius: inherit;
              background: radial-gradient(
                circle,
                rgba(18, 94, 194, 0.25) 0%,
                rgba(255, 255, 255, 0.08) 40%,
                transparent 70%
              );
              opacity: 0.4;
              animation: glowPulse 12s infinite ease-in-out; /* más lento y elegante */
              z-index: -1; /* detrás del botón */
            }
            
            /* 🔹 Animación del halo */
            @keyframes glowPulse {
              0% {
                transform: scale(0.95);
                opacity: 0.25;
                filter: blur(6px);
              }
              50% {
                transform: scale(1.1);
                opacity: 0.6;
                filter: blur(12px);
              }
              100% {
                transform: scale(0.95);
                opacity: 0.25;
                filter: blur(6px);
              }
            }
            
            /* 🔹 Pulso exterior */
            .cta::before {
              content: "";
              position: absolute;
              inset: 0;
              border-radius: inherit;
              background: inherit;
              filter: blur(20px);
              opacity: 0.5;
              animation: pulseWave 4s infinite;
              z-index: -1;
            }

            /* Pulso + gradiente líquido funcionando juntos */
.cta--primary.cta--pulse {
  animation: gradientFlow 6s ease infinite, pulseScale 2s infinite ease-in-out;
}

/* Gradiente líquido */
@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulso (latido de escala) */
@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

            
            /* 🔹 Animaciones */
            @keyframes gradientFlow {
              0% {
                background-position: 0% 50%;
              }
              50% {
                background-position: 100% 50%;
              }
              100% {
                background-position: 0% 50%;
              }
            }
            
            @keyframes gradientWave {
              0% {
                background-position: 0% 50%;
              }
              50% {
                background-position: 100% 50%;
              }
              100% {
                background-position: 0% 50%;
              }
            }
            
            @keyframes shine {
              0% {
                transform: translateX(-200%) rotate(25deg);
              }
              50% {
                transform: translateX(200%) rotate(25deg);
              }
              100% {
                transform: translateX(-200%) rotate(25deg);
              }
            }
            
            @keyframes pulseWave {
              0% {
                transform: scale(0.98);
                opacity: 0.5;
              }
              50% {
                transform: scale(1.05);
                opacity: 0.2;
              }
              100% {
                transform: scale(0.98);
                opacity: 0.5;
              }
            }


            
/* Estilos generales (desktop) */

/* 
          //////////////////////////////////////////// */
:root {
  --accent: #a2ff5e;
  --gradient: linear-gradient(
    180deg,
    rgba(162, 255, 94, 1) 0%,
    rgba(74, 207, 255, 1) 100%
  );
  --shadow-l: 0 8px 20px rgba(0, 0, 0, 0.25);

  /* Ajustes finos */
  --timeline-left: 22px; /* posición de la línea vertical */
  --icon-lg: 46px; /* tamaño de los íconos */
  --icon-offset: 14px; /* centra ícono sobre la barra */
  --icon-bg: #0f172a; /* base sólida bajo el ícono */
  --card-bg: rgba(255, 255, 255, 0.06);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(85, 201, 255, 0.062);
  color: var(--color-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.section__head {
  text-align: center;
  margin-bottom: 48px;
}
.section__kicker {
  color: #c5f4a3;
  font: 600 0.95rem var(--ff-h);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}
/* === Contenedor principal === */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 10px;
  z-index: 0;
}

.timeline-content ul {
  list-style: none;       /* sin viñetas por defecto */
  margin-left: -1rem;     /* empuja todo el bloque hacia la izquierda */
  margin-top: 0.5rem;
  padding: 0;
}

.timeline-content li {
  margin-bottom: 0.5rem;
}



/* Línea base (siempre debajo) */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--timeline-left);
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  z-index: 0;
}

/* Barra de progreso (debajo) */
.timeline-progress {
  position: absolute;
  top: 0;
  left: var(--timeline-left);
  width: 3px;
  height: 0;
  background: var(--gradient);
  border-radius: 4px;
  transition: height 0.65s cubic-bezier(0.25, 0.9, 0.3, 1);
  z-index: 0;
}

/* === Ítems === */
.timeline-item {
  position: relative;
  padding: 30px 0; /* Espacio vertical igual arriba y abajo */
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: all 0.65s cubic-bezier(0.25, 0.9, 0.3, 1);
  z-index: 1;
  display: flex;
  align-items: center; /* Centra verticalmente el contenido */
  min-height: 100px; /* Altura mínima consistente */
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* === Íconos (centrados verticalmente con el contenido) === */
.timeline-icon {
  font-size: 1.2rem;
  width: var(--icon-lg);
  height: var(--icon-lg);
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: 50%;
  background: radial-gradient(
      120% 120% at 30% 20%,
      rgba(162, 255, 94, 0.24),
      rgba(74, 207, 255, 0.16)
    ),
    var(--icon-bg);
  border: 1px solid rgba(162, 255, 94, 0.35);
  box-shadow: inset 0 0 14px rgba(162, 255, 94, 0.18),
    0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.55s cubic-bezier(0.25, 0.9, 0.3, 1), filter 0.55s ease,
    color 0.55s ease, box-shadow 0.55s ease;
  position: absolute;
  left: calc(var(--timeline-left) - var(--icon-offset));
  top: 50%; /* Centrado vertical perfecto */
  transform: translateY(-50%);
  z-index: 3;
  /* Animación de flotación suave */
  animation: floatIcon 12s ease-in-out infinite;
  margin-top: 25px;
  margin-left: -12px;
}

/* Animación de flotación para los iconos */
@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(-50%) translateY(0);
  }
  50% {
    transform: translateY(-50%) translateY(-5px);
  }
}

/* Hover manual o automático - mantiene los estilos originales pero con animación mejorada */
.timeline-icon.hovered,
.timeline-icon:hover {
  animation: hoverFloat 1.2s ease-in-out infinite;
  color: #fff;
  filter: drop-shadow(0 0 18px rgba(161, 255, 94, 0.301));
  box-shadow: 0 0 26px rgba(161, 255, 94, 0.178),
    inset 0 0 20px rgba(161, 255, 94, 0.171);
}

.timeline-content li {
  margin: 0.5rem 0; /* espacio entre ítems */
  padding-left: 1.5rem; /* sangría */
  list-style: none; /* quita viñeta estándar */
  position: relative;
  font-size: 1.05rem;
  color: #e2e8f0; /* color texto */
  font-weight: 500;
}

/* Agregar ícono personalizado antes de cada li */
.timeline-content li::before {
  position: absolute;
  left: 0;
  color: #38bdf8; /* azul suave */
  font-weight: bold;
}

@keyframes hoverFloat {
  0%,
  100% {
    transform: translateY(-50%) translateY(-3px) scale(1.1);
  }
  50% {
    transform: translateY(-50%) translateY(2px) scale(1.05);
  }
}

/* Estado completado opcional con animación */
.timeline-item.completed .timeline-icon {
  background: linear-gradient(
    135deg,
    rgba(162, 255, 94, 1),
    rgba(74, 207, 255, 1)
  );
  color: #06121a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(74, 207, 255, 0.25),
    inset 0 0 14px rgba(0, 0, 0, 0.12);
  animation: completedPulse 12s ease-in-out infinite;
}

@keyframes completedPulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 8px 20px rgba(74, 207, 255, 0.25),
      inset 0 0 14px rgba(0, 0, 0, 0.12);
  }
  50% {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 12px 28px rgba(74, 207, 255, 0.4),
      inset 0 0 18px rgba(0, 0, 0, 0.18);
  }
}

/* Diferentes delays para crear efecto de onda */
.timeline-item:nth-child(1) .timeline-icon {
  animation-delay: 0s;
}

.timeline-item:nth-child(2) .timeline-icon {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(3) .timeline-icon {
  animation-delay: 0.6s;
}

.timeline-item:nth-child(4) .timeline-icon {
  animation-delay: 0.9s;
}

.timeline-item:nth-child(5) .timeline-icon {
  animation-delay: 1.2s;
}

/* === Tarjetas (contenido) === */
.timeline-content {
  margin-left: calc(var(--timeline-left) + var(--icon-lg) + 20px);
  padding: 20px 24px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.089),
    rgba(255, 255, 255, 0.055)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  min-height: 100px; /* Altura mínima consistente */
  display: flex;
  flex-direction: column;

  justify-content: center; /* Centra el contenido verticalmente */
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.65);
}

.timeline-content h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
}

.timeline-content p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #cbd5e1;
}
/* === Responsive === */
@media (max-width: 640px) {
  :root {
    --timeline-left: 16px;
    --icon-lg: 38px;
    --icon-offset: 11px;
  }

  .timeline-item {
    margin-bottom: 26px;
    padding-top: 22px;
  }
  .timeline-icon {
    top: -12px;
  }
  .timeline-content {
    margin-left: 60px;
    padding: 14px 16px;
  }
}

@media (max-width: 900px) {
  .differential {
    grid-template-columns: 1fr;
  }
}

/*         
          ////////////////////////////NUEVO////////////////////// */
/* ==========================
             Partners Slider - CSS
             ========================== */

/* Animación scroll infinito */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Contenedor principal */
.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: transparent; /* 🔹 Mantener fondo transparente */
  padding: 20px 0;
}

/* Pista de logos */
.logo-track {
  display: flex;
  gap: 60px;
  animation: scroll 45s linear infinite; /* 🔹 Velocidad más lenta en desktop */
  width: max-content;
  will-change: transform;
}

/* Logos */
.logo-track img {
  height: 80px;
  width: auto;
  object-fit: contain;
  /* filter: grayscale(100%) brightness(0) invert(1);  */
  /* filter: grayscale(100%) sepia(100%) hue-rotate(90deg) saturate(200%) brightness(50%); */
  filter: grayscale(100%) contrast(50%) brightness(120%);

  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Hover: vuelve al color original */
.logo-track img:hover {
  filter: none; /* 🔹 Quita el filtro y se ve el color natural */
  transform: scale(1.1);
}

/* ==========================
             Responsive
             ========================== */

/* Tablets */
@media (max-width: 768px) {
  .logo-track {
    gap: 50px;
    animation-duration: 60s; /* 🔹 Más lento */
  }
  .logo-track img {
    height: 100px; /* 🔹 Logos más grandes */
  }
}

/* Móviles */
@media (max-width: 480px) {
  .logo-track {
    gap: 40px;
    animation-duration: 70s; /* 🔹 Mucho más lento */
  }
  .logo-track img {
    height: 85px; /* 🔹 Aún más grandes en móvil */
  }
}
