/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

/* BODY */
body {
  background: #000 url("#") center/cover no-repeat;
  color: #ffffff;
  overflow-x: hidden;
}

/* ===== HEADER CONTENEDOR ===== */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 25px 60px;
  background: #000;
  position: relative;
}

/* ===== LINKS GENERALES (MISMO ESTILO QUE CTA) ===== */
.nav-link,
.nav-cta {
  text-decoration: none;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(0, 234, 255, 0.08);
  border: 1px solid rgba(0, 234, 255, 0.3);
}

/* Hover efecto glow */
.nav-link:hover,
.nav-cta:hover {
  background: linear-gradient(135deg, #00eaff, #00bcd4);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.8);
  transform: translateY(-2px);
}

/* ===== MENU ITEM ===== */
.menu-item {
  position: relative;
}

.menu-item {
  position: relative;
}

/* =========================
   SUBMENU PROFESIONAL
========================= */

.menu-item {
  position: relative;
}

/* Estado base */
.submenu {
  display: none;
  flex-direction: column;
  gap: 12px;
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 992px) {
  .submenu {
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;

    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);

    padding: 18px;
    border-radius: 16px;

    border: 1px solid rgba(0, 234, 255, 0.3);

    box-shadow:
      0 15px 35px rgba(0, 0, 0, 0.8),
      0 0 20px rgba(0, 234, 255, 0.2);

    animation: fadeDropdown 0.25s ease forwards;
  }

  .submenu a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;

    /* 👇 Esto corrige el problema */
    color: #00eaff; /* mismo color que desktop */
    text-decoration: none; /* quita la línea */
    font-weight: 500;
    transition: 0.3s ease;
  }

  .submenu a:hover {
    background: rgba(0, 234, 255, 0.15);
    color: #ffffff;
  }

  .menu-item:hover .submenu {
    display: flex;
  }
}

/* Animación suave */
@keyframes fadeDropdown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
/* ============================= */
/* ===== MOBILE AJUSTE FINO ===== */
/* ============================= */
@media (max-width: 991px) {
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 25px 20px;
  }

  .nav-link,
  .nav-cta {
    width: 90%;
    max-width: 420px;
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 12px;
    text-align: center;
  }

  .menu-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .submenu {
    position: relative;
    width: 90%;
    max-width: 420px;
    margin-top: 12px;
    padding: 18px;
    border-radius: 14px;
    background: #111;
    border: 1px solid rgba(0, 234, 255, 0.2);
  }

  /* 🔥 SOLO AJUSTÉ ESTO */
  .submenu a,
  .submenu a:visited,
  .submenu a:active {
    text-decoration: none !important;
    color: #ffffff !important;
    padding: 12px 22px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .submenu a:hover {
    background: rgba(0, 234, 255, 0.2);
    box-shadow: 0 0 12px rgba(0, 234, 255, 0.6);
  }

  /* Mantener funcionalidad de click */
  .menu-item.active .submenu {
    display: flex;
    flex-direction: column;
  }
}

/* HERO */
.hero {
  padding: 40px 60px 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-text h1 {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 25px;
}

.bullets {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 35px;
}

.bullets span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #7cff00;
  margin-right: 10px;
  transform: skew(-20deg);
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  gap: 25px;
}

.btn {
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: 0.25s;
}

.btn-cyan {
  background: #00e5ff;
  box-shadow: 0 0 20px #00e5ff;
}

.btn-pink {
  background: #ff2f92;
  box-shadow: 0 0 20px #ff2f92;
}

.btn:hover {
  transform: translateY(-3px);
}

/* HERO IMAGE */
.hero-image img {
  width: 100%;
  max-width: 560px;
  /* filter: drop-shadow(0 0 35px rgba(0, 255, 255, 0.25)); */
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, 200px);
  justify-content: center; /* 👈 CENTRA TODO EL BLOQUE */
  gap: 30px;
  padding: 60px;
}

.card {
  width: 200px;
  height: 320px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.03);
  padding: 30px 20px;

  display: flex;
  flex-direction: column;
  justify-content: center; /* centra vertical */
  align-items: center; /* centra horizontal */

  text-align: center;
  font-weight: 700;

  clip-path: polygon(0 -20px, 0% 0, 500% 100%, 0 100%);
}

.card span {
  opacity: 0.85;
}

/* ICON PLACEHOLDER */
.icon {
  width: 50px;
  height: 30px;
  margin: 0 auto 20px;
  /*  border: 2px solid currentColor; */
  border-radius: 6px;
}

/* TILT */
.tilt-left {
  transform: skewY(0deg);
}

.tilt-right {
  transform: skewY(0deg);
}

/* COLORS */
.blue {
  color: #00cfff;
}
.cyan {
  color: #00ffd5;
}
.green {
  color: #4cff4c;
}
.pink {
  color: #ff2f92;
}
.purple {
  color: #b84cff;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 60px;
  font-size: 14px;
  opacity: 0.85;
}

.footer-links a {
  color: #cfcfcf;
  text-decoration: none;
  margin: 0 15px;
}

.social span {
  width: 18px;
  height: 18px;
  border: 2px solid #00cfff;
  display: inline-block;
  margin-left: 10px;
  border-radius: 4px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 44px;
  }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/*  */

.btn-neon {
  position: relative;
  display: inline-block;
  padding: 14px 40px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: transparent;
  border: 2px solid #00eaff;
  text-transform: none;
  letter-spacing: 0.5px;
  box-shadow:
    0 0 10px rgba(0, 234, 255, 0.8),
    inset 0 0 10px rgba(0, 234, 255, 0.4);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.3s ease;
}

/* Detalles diagonales */
.btn-neon::before,
.btn-neon::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 4px;
  background: #00eaff;
  box-shadow: 0 0 10px #00eaff;
}

/* Esquina superior derecha */
.btn-neon::before {
  top: -6px;
  right: 20px;
  transform: skewX(-30deg);
}

/* Esquina inferior izquierda */
.btn-neon::after {
  bottom: -6px;
  left: 20px;
  transform: skewX(-30deg);
}

/* Hover */
.btn-neon:hover {
  color: #000;
  background: #00eaff;
  box-shadow:
    0 0 20px rgba(0, 234, 255, 1),
    inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.btn-futurista {
  position: relative;
  display: inline-block;
  padding: 14px 42px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: transparent;
  border: 2px solid #00eaff;
  box-shadow:
    0 0 12px rgba(0, 234, 255, 0.9),
    inset 0 0 10px rgba(0, 234, 255, 0.4);
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  transition: all 0.3s ease;
}

.btn-futurista2 {
  position: relative;
  display: inline-block;
  padding: 14px 42px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: transparent;
  border: 2px solid rgb(255, 47, 146);
  box-shadow:
    0 0 12px rgba(0, 234, 255, 0.9),
    inset 0 0 10px rgba(0, 234, 255, 0.4);
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  transition: all 0.3s ease;
}

/* === ADORNOS EXTERNOS === */
.btn-futurista .line {
  position: absolute;
  background: #00eaff;
  box-shadow: 0 0 12px #00eaff;
}

/* Superior izquierda */
.btn-futurista .top-left {
  top: -10px;
  left: 10px;
  width: 26px;
  height: 3px;
}

/* Superior derecha */
.btn-futurista .top-right {
  top: -10px;
  right: 14px;
  width: 16px;
  height: 3px;
}

/* Inferior izquierda */
.btn-futurista .bottom-left {
  bottom: -10px;
  left: 16px;
  width: 16px;
  height: 3px;
}

/* Inferior derecha */
.btn-futurista .bottom-right {
  bottom: -10px;
  right: 10px;
  width: 26px;
  height: 3px;
}

/* Hover */
.btn-futurista:hover {
  background: #00eaff;
  color: #000;
  box-shadow:
    0 0 22px rgba(0, 234, 255, 1),
    inset 0 0 18px rgba(0, 0, 0, 0.4);
}

/* Hover */
.btn-futurista2:hover {
  background: rgb(255, 47, 146);
  color: #000;
  box-shadow:
    0 0 22px rgba(0, 234, 255, 1),
    inset 0 0 18px rgba(0, 0, 0, 0.4);
}

.btn-wrapper {
  position: relative;
  display: inline-block;
}

/* Asegura que el botón no las tape */
.btn-futurista,
.btn-futurista2 {
  position: relative;
  z-index: 2;
}
/* --------------------------- */

.hero-buttons {
  flex-wrap: wrap;
}

.btn-wrapper {
  max-width: 100%;
}

@media (max-width: 768px) {
  .btn-futurista,
  .btn-futurista2 {
    font-size: 16px;
    padding: 12px 32px;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  }
}

@media (max-width: 768px) {
  .wing {
    width: 16px;
    height: 10px;
  }

  .wing.left {
    left: -16px;
    top: 6px;
  }

  .wing.right {
    right: -16px;
    bottom: 6px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    gap: 16px;
  }

  .btn-futurista,
  .btn-futurista2 {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 15px;
  }

  .wing {
    display: none;
  }
}

/* MOBILE S — 320px (teléfonos pequeños) */

@media (max-width: 320px) {
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .btn-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 12px;
  }

  .btn-futurista,
  .btn-futurista2 {
    width: 100%;
    font-size: 14px;
    padding: 12px 20px;
    text-align: center;
    display: block;
  }

  /* En móviles pequeños NO adornos */
  .wing,
  .line {
    display: none;
  }
}

/* MOBILE M — 375px (estándar) */

@media (min-width: 321px) and (max-width: 375px) {
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .btn-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 12px;
  }

  .btn-futurista,
  .btn-futurista2 {
    width: 100%;
    font-size: 15px;
    padding: 12px 26px;
    text-align: center;
    display: block;
  }

  .wing {
    width: 14px;
    height: 9px;
  }

  .wing.left {
    left: -12px;
    top: 6px;
  }

  .wing.right {
    right: -12px;
    bottom: 6px;
  }

  .line {
    height: 2px;
  }

  .top-left,
  .bottom-right {
    width: 16px;
  }

  .top-right,
  .bottom-left {
    width: 12px;
  }
}

/* MOBILE L — 425px (grande) */
@media (min-width: 376px) and (max-width: 425px) {
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .btn-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 12px;
  }

  .btn-futurista,
  .btn-futurista2 {
    width: 100%;
    font-size: 16px;
    padding: 14px 32px;
    text-align: center;
    display: block;
  }

  .wing {
    width: 18px;
    height: 12px;
  }

  .wing.left {
    left: -16px;
    top: 8px;
  }

  .wing.right {
    right: -16px;
    bottom: 8px;
  }
}

.card::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 2px; /* 👈 línea fina */
  background: currentColor;

  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 80%);

  pointer-events: none;
}

/* ===== MOBILE CENTER FIX ===== */
@media (max-width: 768px) {
  /* HERO */
  .hero {
    padding: 40px 20px 60px;
    text-align: center;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .bullets {
    text-align: left; /* opcional: si quieres los puntos alineados bonito */
    display: inline-block;
  }

  /* BOTONES */
  .hero-buttons {
    justify-content: center;
    align-items: center;
  }

  /* NAV */
  .nav {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  /* CARDS */
  .cards {
    padding: 40px 20px;
  }

  /* FOOTER */
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .card {
    width: 90%;
    max-width: 300px;
  }
}

/* ===== ANIMACIÓN ICONOS  1 ===== */

.icon svg {
  animation: bounceIcon 1.5s infinite;
}

@keyframes bounceIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ===== TARJETA SEDE RESPONSIVE PREMIUM ===== */

/* ===============================
   CONTENEDOR GENERAL
=================================*/

.sede-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* ===============================
   TARJETA BASE
=================================*/

.sede-card {
  width: 100%;
  max-width: 300px;
  padding: 22px 20px;
  border-radius: 18px;
  background: #0f0f0f;
  color: #ffffff;
  font-family: "Segoe UI", sans-serif;
  border: 2px solid;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.sede-card:hover {
  transform: translateY(-6px);
}

/* ===============================
   TITULO
=================================*/

.sede-card .sede-title {
  text-align: center;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Línea decorativa elegante */
.sede-card .sede-title::after {
  content: "";
  display: block;
  width: 35px;
  height: 2px;
  margin: 8px auto 0;
  background: currentColor;
  opacity: 0.4;
}

/* ===============================
   CONTENIDO INTERNO
=================================*/

.sede-card .sede-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===============================
   ITEMS
=================================*/

.sede-card .sede-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #ffffff;
}

.sede-card .sede-icon {
  font-size: 14px;
  margin-top: 2px;
  min-width: 16px;
  opacity: 0.85;
}

/* ===============================
   LINKS
=================================*/

.sede-card .sede-item a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
  transition: all 0.2s ease;
  word-break: break-word;
}

.sede-card .sede-item a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ===============================
   COLORES (Solo borde + glow)
=================================*/

.sede-card.naranja {
  border-color: #ff6b3d;
  box-shadow: 0 0 18px rgba(255, 107, 61, 0.35);
}

.sede-card.azul {
  border-color: #00bfff;
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.35);
}

.sede-card.verde {
  border-color: #00ff99;
  box-shadow: 0 0 18px rgba(0, 255, 153, 0.35);
}

.sede-card.morado {
  border-color: #a855f7;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.sede-card.rojo {
  border-color: #ff3d3d;
  box-shadow: 0 0 18px rgba(255, 61, 61, 0.35);
}

/* ===============================
   RESPONSIVE
=================================*/

@media (max-width: 480px) {
  .sede-card {
    max-width: 100%;
    padding: 18px;
  }

  .sede-card .sede-title {
    font-size: 14px;
  }

  .sede-card .sede-item {
    font-size: 12px;
  }
}

/* ===============================
   ANIMACIÓN SUAVE DE ENTRADA
=================================*/

.sede-card {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(25px);
}

.sede-card:nth-child(1) {
  animation-delay: 0.1s;
}
.sede-card:nth-child(2) {
  animation-delay: 0.2s;
}
.sede-card:nth-child(3) {
  animation-delay: 0.3s;
}
.sede-card:nth-child(4) {
  animation-delay: 0.4s;
}
.sede-card:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* corfeditos */

/* ===== CONTENEDOR FLOTANTE ===== */
.floating-container {
  position: fixed;
  bottom: clamp(15px, 3vw, 30px);
  right: clamp(15px, 3vw, 30px);
  z-index: 9999;
  transition:
    top 0.4s ease,
    left 0.4s ease; /* solo lo que realmente usamos */
}

/* ===== IMAGEN ===== */
.floating-image {
  width: clamp(60px, 8vw, 95px);
  height: auto;
  cursor: pointer;
  animation: floatSmooth 3s ease-in-out infinite;
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* ===== ANIMACIÓN FLOTANTE SUAVE ===== */
@keyframes floatSmooth {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ===== HOVER PC (sin romper animación) ===== */
.floating-image:hover {
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .floating-container {
    bottom: 15px;
    right: 15px;
  }
}

@media (max-width: 400px) {
  .floating-image {
    width: 60px;
  }
}

/* texto imagen flotante  */

.proyecto-asesoria {
  background-color: #000;
  min-height: 60vh; /* 🔥 clave */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative; /* 🔥 necesario para el scanner */
}

.proyecto-asesoria p {
  color: white;
  font-family: "Arial", sans-serif;
  font-weight: 300;

  /* Tamaño adaptable */
  font-size: clamp(16px, 3vw, 28px);

  /* Espaciado adaptable */
  letter-spacing: clamp(2px, 0.8vw, 6px);

  line-height: 1.6;
  max-width: 90%;
}

/* Movimiento suave */
@keyframes flotar {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* seccion linea de neon */
.career-hero-section {
  position: relative;
  background: radial-gradient(circle at top, #0f1a2b 0%, #000000 65%);
  padding: 50px 20px 50px 20px; /* 👈 más espacio arriba */
  text-align: center;
  overflow: visible;
}

/* 🔥 Línea superior */
.career-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;

  background: linear-gradient(90deg, #00ff88, #00f5ff, #a855f7, #ff00ff);

  box-shadow:
    0 -12px 25px rgba(168, 85, 247, 0.6),
    /* 👆 luz hacia arriba */ 0 12px 25px rgba(168, 85, 247, 0.6); /* 👇 luz hacia abajo */

  z-index: 5;
}

/* Halo superior */
.career-hero-section .glow-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: radial-gradient(
    ellipse at top,
    rgba(0, 255, 200, 0.25) 0%,
    rgba(168, 85, 247, 0.15) 40%,
    rgba(0, 0, 0, 0) 80%
  );
  pointer-events: none;
  z-index: 0;
}

/* Línea inferior */
.career-hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;

  background: linear-gradient(90deg, #00ff88, #00f5ff, #a855f7, #ff00ff);

  box-shadow:
    0 0 8px rgba(0, 255, 200, 0.8),
    0 0 15px rgba(255, 0, 255, 0.6);

  z-index: 1;
}

/* 👇 esto asegura que el texto quede arriba */
.career-hero-section .career-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .career-hero-section {
    padding: 90px 15px 80px 15px;
  }
}

/* ===== INTRO FUTURISTA PRO ===== */
#intro-future {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at center, #0a0f14, #05080c);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 9999;
  transition:
    opacity 1s ease,
    visibility 1s ease;
}

/* Grid digital */
.grid-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(#00c3ff22 1px, transparent 1px),
    linear-gradient(90deg, #00c3ff22 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 40px 40px;
  }
}

/* Canvas partículas */
#particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Contenido */
.future-content {
  text-align: center;
  color: #00eaff;
  z-index: 2;
}

.future-title {
  font-size: 2.6rem;
  letter-spacing: 3px;
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow:
      0 0 10px #00eaff,
      0 0 20px #008cff;
  }
  to {
    text-shadow:
      0 0 20px #00eaff,
      0 0 40px #008cff;
  }
}

.future-subtitle {
  margin-top: 15px;
  color: #9be7ff;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}

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

/* Barra de carga */
.loading-bar {
  width: 250px;
  height: 4px;
  background: #003b50;
  margin: 25px auto 0;
  overflow: hidden;
}

.loading-progress {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #00eaff, #008cff);
  animation: loading 3s linear forwards;
}

@keyframes loading {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.hide-intro {
  opacity: 0;
  visibility: hidden;
}

/* .page-content {
    opacity: 0;
    transition: opacity 1.2s ease;
} */

.page-visible {
  opacity: 1;
}

/* juego  */

.hero-game {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 234, 255, 0.3);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.game-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #00eaff;
}

.game-question {
  margin-bottom: 25px;
  font-size: 18px;
}

.game-options button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #00eaff;
  background: transparent;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.game-options button:hover {
  background: #00eaff;
  color: black;
  box-shadow: 0 0 15px #00eaff;
}

#game-result {
  margin-top: 20px;
  font-weight: 600;
  opacity: 0;
  transition: 0.4s ease;
}

#game-result.show {
  opacity: 1;
}

.proyecto-asesoria {
  position: relative;
  font-size: 28px;
  font-weight: 700;
  text-align: left;
  margin-top: 40px;
}

.reveal-text p {
  position: relative;
  color: white;
  overflow: visible;

}

.reveal-text p::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 234, 255, 0.8),
    rgba(0, 234, 255, 0.2),
    transparent
  );
  transition: top 2s ease;
}

.reveal-text.active p::after {
  top: 100%;
}

/* Animación expansión */
@keyframes spreadLight {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  70% {
    width: 400px;
    height: 400px;
    opacity: 0.8;
  }
  100% {
    width: 600px;
    height: 600px;
    opacity: 0;
  }
}

.hero-game {
  position: relative;
  overflow: hidden;
}

.hero-game::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(0, 234, 255, 0.15) 0%,
    transparent 60%
  );
  animation: pulseGame 4s infinite;
  top: -25%;
  left: -25%;
}

@keyframes pulseGame {
  0% {
    transform: scale(0.8);
    opacity: 0.4;
  }
  50% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.4;
  }
}

.hero-game {
  position: relative;
  z-index: 10;
}
.proyecto-asesoria {
  position: relative;
  z-index: 1;
}

.hero-game::before {
  pointer-events: none;
}
.hero-game {
  position: relative;
  z-index: 5;
}

.game-options button {
  position: relative;
  z-index: 10;
}

/* juego de texto  */

/* ===== REVEAL DIGITAL PRO ===== */

#textoVocacional span {
  display: inline-block;
  opacity: 0;
  transform: translateY(80px); /* baja más -> más dramático */
  filter: blur(12px); /* más cine */
  transition: 
    transform 1.4s cubic-bezier(.16,1,.3,1),
    opacity 1.4s ease,
    filter 1.6s ease;
}

/* Activación */
.reveal-text.active #textoVocacional span {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* Activación */
.reveal-text.active #textoVocacional span {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-text.active #textoVocacional span{
  text-shadow:
    0 0 12px rgba(0,234,255,.9),
    0 0 28px rgba(0,234,255,.7),
    0 0 45px rgba(0,234,255,.4);
}


/* Delay progresivo por línea */
#textoVocacional span:nth-of-type(1) {
  transition-delay: 0.2s;
}
#textoVocacional span:nth-of-type(2) {
  transition-delay: 0.4s;
}
#textoVocacional span:nth-of-type(3) {
  transition-delay: 0.6s;
}
#textoVocacional span:nth-of-type(4) {
  transition-delay: 0.8s;
}
#textoVocacional span:nth-of-type(5) {
  transition-delay: 1s;
}
#textoVocacional span:nth-of-type(6) {
  transition-delay: 1.2s;
}
#textoVocacional span:nth-of-type(7) {
  transition-delay: 1.4s;
}F
#textoVocacional span:nth-of-type(8) {
  transition-delay: 1.6s;
}
#textoVocacional span:nth-of-type(9) {
  transition-delay: 1.8s;
}

/* Glow futurista cuando aparece */
.reveal-text.active #textoVocacional span {
  text-shadow:
    0 0 8px rgba(0, 234, 255, 0.7),
    0 0 18px rgba(0, 234, 255, 0.5);
}

/* Línea escáner */
.reveal-text::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 234, 255, 0.6),
    transparent
  );
  pointer-events: none;
  opacity: 0;
}

.reveal-text.active::after {
  animation: scanLine 2s ease forwards;
  opacity: 1;
}

.reveal-text {
  position: relative;
  overflow: hidden;
}

@keyframes scanLine {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}



