/* 
  Guayas Aprende - Landing Page Futurista
  ---------------------------------------
  - Estilo futurista, minimalista y tecnológico.
  - Colores: azul eléctrico, morado neón y negro.
  - Enfoque en legibilidad y rendimiento.
*/

:root {
  /* Colores base */
  --ga-color-bg: #050816;              /* fondo principal basado en primario */
  --ga-color-bg-alt: #202b51;          /* primario institucional */
  --ga-color-bg-soft: #101938;         /* variante suave del primario */
  --ga-color-primary: #202b51;         /* primario institucional */
  --ga-color-primary-soft: rgba(32, 43, 81, 0.55);
  --ga-color-secondary: #00afff;       /* secundario institucional */
  --ga-color-secondary-soft: rgba(0, 175, 255, 0.35);
  --ga-color-accent: #00afff;          /* acento azul */
  --ga-color-text: #ffffff;            /* terciario institucional */
  --ga-color-text-soft: rgba(255, 255, 255, 0.72);
  --ga-color-border-soft: rgba(255, 255, 255, 0.18);

  /* Glassmorphism */
  --ga-glass-bg: rgba(8, 11, 39, 0.82);
  --ga-glass-border: rgba(255, 255, 255, 0.12);
  --ga-glass-blur: 16px;

  /* Sombra y glow sutil */
  --ga-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.65);
  --ga-glow-primary: 0 0 22px rgba(0, 229, 255, 0.75);
  --ga-glow-secondary: 0 0 24px rgba(123, 44, 255, 0.85);

  /* Tipografía y tamaños */
  --ga-font-sans: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ga-font-display: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ga-font-android: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ga-font-hero: "Audiowide", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ga-radius-lg: 24px;
  --ga-radius-md: 16px;
  --ga-radius-pill: 999px;

  --ga-transition-fast: 160ms ease-out;
  --ga-transition-med: 220ms ease-out;
  --ga-transition-slow: 320ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: #01020b;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--ga-font-sans);
  color: var(--ga-color-text);
  background: radial-gradient(circle at top, #202b51 0, #050816 55%, #01020b 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Página de inicio: sin fondo en body para que se vea img/fondo.png en el hero */
body.ga-page-index {
  background: transparent;
}

/* En index el hero no ocupa toda la pantalla para que el footer se vea al cargar */
body.ga-page-index .ga-hero {
  min-height: 65vh;
}

/* Footer en index: fondo bien visible y contenido siempre mostrado */
body.ga-page-index .ga-footer {
  background-color: #01020b;
  min-height: 200px;
}

body.ga-page-index .ga-footer-inner,
body.ga-page-index .ga-footer-grid {
  visibility: visible !important;
  opacity: 1 !important;
}

body.ga-page-index .ga-footer-grid {
  display: flex !important;
  flex-wrap: wrap;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

main {
  position: relative;
  z-index: 1;
  display: block;
  flex: 1 0 auto;
  margin-left: 300px;
  transition: margin-left 280ms ease-out;
}

/* HEADER -------------------------------------------------------------- */

.ga-header-wrap {
  position: relative;
}

/* Botón para abrir/cerrar el menú (siempre visible) */
.ga-nav-toggle {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 60;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: var(--ga-radius-md);
  background: rgba(32, 43, 81, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: background var(--ga-transition-med), border-color var(--ga-transition-med), transform var(--ga-transition-med);
}
.ga-nav-toggle:hover {
  background: rgba(0, 175, 255, 0.25);
  border-color: rgba(0, 229, 255, 0.7);
}
.ga-nav-toggle-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.ga-nav-toggle-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ga-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  width: 300px;
  padding: 1.6rem 1.4rem 1.8rem;
  background: radial-gradient(circle at top, rgba(0, 175, 255, 0.25), rgba(32, 43, 81, 0.98) 55%, #02000b);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.9);
  transition: transform 280ms ease-out, background var(--ga-transition-med), padding var(--ga-transition-med), border-color var(--ga-transition-med), box-shadow var(--ga-transition-med);
}

/* Menú cerrado: sidebar oculto y contenido a ancho completo */
body.ga-nav-closed .ga-header {
  transform: translateX(-100%);
}
body.ga-nav-closed main,
body.ga-nav-closed .ga-footer {
  margin-left: 0;
}

.ga-header-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  min-height: 0;
  padding-top: 5rem;
}

.ga-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ga-logo img {
  display: block;
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.6));
}

.ga-nav {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
}

.ga-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0 0 1rem;
  min-height: 200px;
}

.ga-nav-link {
  position: relative;
  font-family: var(--ga-font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ffffff;
  font-weight: 600;
  padding: 0.35rem 0;
  overflow: hidden;
}

.ga-nav-item {
  width: 100%;
}

.ga-nav-item--has-submenu > .ga-nav-submenu {
  margin-top: 0.25rem;
  margin-left: 0.25rem;
  list-style: none;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.ga-nav-submenu li + li {
  margin-top: 0.15rem;
}

.ga-nav-sublink {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.1rem 0;
}

.ga-nav-sublink:hover {
  color: var(--ga-color-secondary);
}

.ga-nav-link::before,
.ga-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--ga-color-primary), var(--ga-color-secondary), transparent);
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}

.ga-nav-link::after {
  height: 2px;
  filter: blur(4px);
  opacity: 0;
}

.ga-nav-link::marker {
  content: none;
}

.ga-nav-link::selection {
  background: rgba(0, 229, 255, 0.3);
}

/* Animación futurista al pasar el cursor (subrayado y glow, con "scan" diagonal) */
.ga-nav-link:hover::before,
.ga-nav-link:focus-visible::before {
  transform: translateX(0);
  opacity: 1;
}

.ga-nav-link:hover::after,
.ga-nav-link:focus-visible::after {
  transform: translateX(0);
  opacity: 0.9;
}

.ga-nav-link:hover,
.ga-nav-link:focus-visible {
  color: var(--ga-color-text);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.6);
}

.ga-nav-link::selection {
  background: rgba(0, 229, 255, 0.2);
}

/* Brillo extra para el botón de Campus Virtual */
.ga-nav-link--primary {
  padding-inline: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: radial-gradient(circle at 0 0, rgba(0, 229, 255, 0.35), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(123, 44, 255, 0.3), transparent 55%),
    rgba(3, 4, 20, 0.9);
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
  white-space: nowrap;
  transition: box-shadow var(--ga-transition-med), background var(--ga-transition-med), border-color var(--ga-transition-med), transform var(--ga-transition-med), color var(--ga-transition-med);
}

.ga-nav-link--primary::before,
.ga-nav-link--primary::after {
  display: none; /* ya tiene estilo de botón, no subrayado */
}

.ga-nav-link--primary:hover,
.ga-nav-link--primary:focus-visible {
  border-color: rgba(0, 229, 255, 0.8);
  box-shadow: var(--ga-glow-primary);
  transform: translateY(-1px);
}

.ga-header--scrolled {
  padding-block: 0.6rem;
  background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.18) 0, rgba(0, 3, 10, 0.96) 35%, rgba(0, 0, 0, 0.98) 100%);
  border-bottom-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.75);
}

/* Engranaje oculto: acceso al sistema de gestión (esquina superior derecha) */
.ga-admin-gear {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ga-color-text);
  opacity: 0.28;
  transition: opacity var(--ga-transition-med), transform var(--ga-transition-med), color var(--ga-transition-med);
}

.ga-admin-gear:hover,
.ga-admin-gear:focus-visible {
  opacity: 1;
  color: var(--ga-color-secondary);
  transform: rotate(90deg);
  outline: none;
}

.ga-admin-gear-icon {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

/* Botón flotante WhatsApp (fijo respecto a la ventana al hacer scroll) */
.ga-whatsapp-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px) + 0.5rem);
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px) + 0.75rem);
  /* Sobre el contenido y el panel del menú (50); debajo del pop-up (9999) y del toggle/engranaje (60) */
  z-index: 8888;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ga-whatsapp-fab:hover,
.ga-whatsapp-fab:focus-visible {
  background: #20bd5a;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  outline: none;
}

.ga-whatsapp-fab-icon {
  width: 30px;
  height: 30px;
  display: block;
}

/* HERO --------------------------------------------------------------- */

/* Hero index: capa de fondo fija con img/fondo.png (z-index 0 para quedar sobre body transparente) */
.ga-hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ga-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) contrast(1.05) brightness(0.9);
}
.ga-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(123, 44, 255, 0.25), transparent 50%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.ga-hero-video-wrapper {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ga-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) contrast(1.05) brightness(0.9);
}

.ga-hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(123, 44, 255, 0.25), transparent 50%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.6));
  mix-blend-mode: normal;
}

.ga-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2.5rem 4rem;
  overflow: hidden;
}

.ga-hero-main {
  flex: 1 0 auto;
}

.ga-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ga-hero-text {
  max-width: 52rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ga-hero-slogan {
  margin: 1.5rem 0 0;
  padding: 0 0.5rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  text-align: justify;
  color: #ffffff;
  font-weight: 500;
  text-shadow:
    0 0 20px rgba(0, 229, 255, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

.ga-hero-core {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: none;
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ga-hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ga-color-text-soft);
  margin: 0 0 0.75rem;
}

.ga-hero-title {
  font-family: var(--ga-font-hero);
  font-size: clamp(4rem, 7vw + 1rem, 6.8rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 0.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  /* Cada 5 s se dispara el cambio de frase (sin delay inicial para que la primera transición sea a los 5 s) */
  animation: ga-hero-sheen-sync 5s ease-out 0s infinite;
  perspective: 1200px;
}

.ga-hero-title--center {
  display: block;
  width: 100%;
  text-align: center;
}

.ga-hero-phrases {
  display: block;
  position: relative;
  width: 100%;
  min-height: 2.6em;
}

/* Frases alternas: apiladas para el flip 3D, centradas con left/right */
.ga-hero-phrase {
  display: block;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  transform: rotateY(0deg);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.ga-hero-phrase--guayas {
  opacity: 1;
  visibility: visible;
  transform: rotateY(0deg);
}

/* Campus: contenedor interno centrado como un solo bloque (como Guayas Aprende) */
.ga-hero-phrase--campus {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: rotateY(-90deg);
  text-align: center !important;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
}

.ga-hero-phrase--campus .ga-hero-phrase-inner {
  display: inline-block;
  text-align: center;
}

.ga-hero-phrase--campus .ga-hero-word {
  display: inline-block;
  font-size: 0.75em;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ga-hero-title--campus .ga-hero-phrase--guayas {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: rotateY(90deg);
}

.ga-hero-title--campus .ga-hero-phrase--campus {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: rotateY(0deg);
}

/* Volteo: misma animación para ambas frases para que no se quede en blanco */
.ga-hero-title--flip-out:not(.ga-hero-title--campus) .ga-hero-phrase--guayas,
.ga-hero-title--flip-out.ga-hero-title--campus .ga-hero-phrase--campus {
  animation: ga-flip-out 0.5s ease-in-out forwards;
}

.ga-hero-phrase--flip-in {
  animation: ga-flip-in 0.5s ease-in-out forwards;
}

.ga-hero-word {
  position: relative;
  display: inline-block;
  padding-inline: 0.4rem;
  z-index: 1;
  color: #ffffff;
  font-weight: 400;
  text-shadow:
    0 0 16px rgba(0, 229, 255, 0.9),
    0 0 32px rgba(0, 229, 255, 0.95);
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.9));
  transform-origin: center;
  animation:
    ga-title-pop 900ms cubic-bezier(0.16, 0.9, 0.3, 1.1) 150ms forwards,
    ga-title-breathe 6s ease-in-out 1.2s infinite;
}

.ga-hero-word--bottom {
  animation-delay: 260ms, 1.35s; /* misma animación, pero empieza un poco después */
}

.ga-hero-word::before {
  /* halo sutil detrás del texto */
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 40% / 55%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.45), transparent 65%);
  opacity: 0.8;
  filter: blur(12px);
  z-index: -1;
}

/* Luz que pasa una vez por encima de cada palabra cuando ya está al frente */
.ga-hero-word::after {
  content: "";
  position: absolute;
  inset: -15%;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 35%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.25) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-160%);
  pointer-events: none;
  /* 5s de ciclo: reflejo acompasado con el cambio de frase (sin delay para que la primera vez también coincida) */
  animation: ga-word-sheen 5s ease-out 0s infinite;
}

.ga-hero-word--bottom::after {
  animation-delay: 1.9s;
}

.ga-link-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.2rem;
  border-radius: var(--ga-radius-pill);
  border: 1px solid rgba(0, 229, 255, 0.7);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: rgba(1, 5, 24, 0.96);
  color: #e6f9ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
  transition: background var(--ga-transition-med), color var(--ga-transition-med), box-shadow var(--ga-transition-med), transform var(--ga-transition-med), border-color var(--ga-transition-med);
}

.ga-link-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 60%);
  opacity: 0;
  transform: translateX(-130%);
  mix-blend-mode: screen;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.ga-link-chip:hover::after,
.ga-link-chip:focus-visible::after {
  opacity: 0.9;
  transform: translateX(130%);
}

.ga-link-chip:hover,
.ga-link-chip:focus-visible {
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.2), rgba(123, 44, 255, 0.25));
  box-shadow: var(--ga-glow-primary);
  transform: translateY(-1px);
}

.ga-link-chip--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
}

.ga-link-chip--ghost:hover,
.ga-link-chip--ghost:focus-visible {
  border-color: rgba(0, 229, 255, 0.85);
}

/* BOTONES ------------------------------------------------------------- */

.ga-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.7rem;
  border-radius: var(--ga-radius-pill);
  border: 1px solid transparent;
  font-size: 0.87rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background var(--ga-transition-med), color var(--ga-transition-med), border-color var(--ga-transition-med), box-shadow var(--ga-transition-med), transform var(--ga-transition-med), filter var(--ga-transition-med);
  overflow: hidden;
}

.ga-btn--primary {
  background: linear-gradient(135deg, var(--ga-color-primary), var(--ga-color-secondary));
  color: #020312;
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6);
}

.ga-btn--primary:hover,
.ga-btn--primary:focus-visible {
  box-shadow: var(--ga-glow-primary);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.ga-btn--ghost {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(3, 5, 24, 0.85);
  color: var(--ga-color-text);
}

.ga-btn--ghost:hover,
.ga-btn--ghost:focus-visible {
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
  transform: translateY(-1px);
}

.ga-btn--full {
  width: 100%;
}

.ga-btn--compact {
  padding-inline: 1.3rem;
}

.ga-btn--inscribirse {
  align-self: flex-start;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
  color: #fff;
  border: none;
  border-radius: var(--ga-radius-pill);
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.45);
  transition: transform var(--ga-transition-fast), box-shadow var(--ga-transition-med), filter var(--ga-transition-fast);
}

.ga-btn--inscribirse:hover,
.ga-btn--inscribirse:focus-visible {
  filter: brightness(1.12);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.55);
  transform: translateY(-2px);
}

.ga-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.ga-card-qr-wrap {
  position: relative;
  flex-shrink: 0;
  flex-basis: 80px;
  max-width: 80px;
}

.ga-card-qr {
  width: 80px;
  height: 80px;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease-out;
  flex-shrink: 0;
}

.ga-card-qr-wrap:hover .ga-card-qr {
  transform: scale(2.2);
  transform-origin: bottom right;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ga-card-qr-wrap {
  z-index: 1;
}

.ga-card-qr-wrap:hover {
  z-index: 20;
}

.ga-btn-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-120%);
  animation: ga-btn-sheen 5s ease-in-out 1.8s infinite;
  pointer-events: none;
}

/* SECCIONES GENERALES ------------------------------------------------- */

.ga-section {
  padding: 4.5rem 1.5rem;
}

.ga-section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.ga-section--light {
  background: #ffffff;
}

.ga-section--dark {
  background: radial-gradient(circle at top right, rgba(123, 44, 255, 0.5), #01010b 52%, #000000);
}

.ga-section--contact {
  background: #ffffff;
}

.ga-section-header {
  max-width: 720px;
  margin: 0 auto 2.6rem;
  text-align: left;
}

.ga-section-kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ga-color-text-soft);
  margin-bottom: 0.3rem;
}

.ga-section-title {
  font-family: var(--ga-font-display);
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 0.8rem;
}

.ga-section-subtitle {
  margin: 0;
  color: var(--ga-color-text-soft);
  font-size: 0.98rem;
}

.ga-section--light .ga-section-title,
.ga-section--contact .ga-section-title {
  color: var(--ga-color-primary);
}

.ga-section--light .ga-section-subtitle,
.ga-section--contact .ga-section-subtitle {
  color: rgba(32, 43, 81, 0.8);
}

.ga-section--dark .ga-section-title {
  color: #ffffff;
}

.ga-section--dark .ga-section-subtitle {
  color: rgba(222, 226, 255, 0.9);
}

.ga-section-inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

.ga-section-block--visual {
  display: flex;
  justify-content: center;
}

.ga-section-note {
  font-size: 0.75rem;
  color: rgba(220, 224, 252, 0.8);
  margin-top: 0.8rem;
}

/* Página Cursos: encabezado profesional y texto intro ----------------- */
.ga-page-cursos .ga-page-brand {
  font-family: var(--ga-font-display);
  font-size: clamp(2.1rem, 4vw + 0.5rem, 2.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0 0 0.35rem;
  padding: 0.5rem 0.75rem 0.6rem;
  display: inline-block;
  background: linear-gradient(135deg, var(--ga-color-primary) 0%, #2d3a6b 50%, var(--ga-color-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 175, 255, 0.35));
}

.ga-page-cursos .ga-page-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ga-color-secondary), var(--ga-color-primary));
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 175, 255, 0.5);
}

.ga-page-cursos .ga-page-section-title {
  font-family: var(--ga-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ga-color-primary);
  margin: 0 0 1.5rem;
}

.ga-page-intro {
  width: 100%;
  max-width: none;
  margin-bottom: 2.5rem;
}

.ga-page-intro p {
  margin: 0 0 1rem;
  color: rgba(32, 43, 81, 0.9);
  font-size: 1rem;
  line-height: 1.75;
  text-align: justify;
}

.ga-page-intro p:last-child {
  margin-bottom: 0;
}

.ga-page-intro p:last-child {
  margin-bottom: 0;
}

.ga-page-cursos .ga-section-note {
  color: rgba(32, 43, 81, 0.7);
}

/* GRID TARJETAS ------------------------------------------------------- */

.ga-grid {
  display: grid;
  gap: 1.6rem;
}

.ga-grid--cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ga-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--ga-radius-md);
  background: radial-gradient(circle at top left, var(--ga-color-primary-soft), transparent 60%),
    radial-gradient(circle at bottom right, var(--ga-color-secondary-soft), transparent 55%),
    var(--ga-color-bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.65);
  /* Proporción como en diseño: alto ≈ 1.7 × ancho (tarjetas altas) */
  aspect-ratio: 1 / 1.7;
  min-height: 0;
  transition: transform var(--ga-transition-med), box-shadow var(--ga-transition-med), border-color var(--ga-transition-med), background var(--ga-transition-med);
  overflow: hidden;
}

.ga-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 26px 40px rgba(0, 0, 0, 0.75), var(--ga-glow-primary);
}

/* Zona de imagen grande (≈60% de la tarjeta).
   Imagen recomendada: 720×440 px (2x) o 360×220 px (1x). Relación ~16:10. */
.ga-card-image-wrap {
  flex: 1 1 60%;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: var(--ga-radius-md) var(--ga-radius-md) 0 0;
}

.ga-card-image-wrap--empty {
  min-height: 180px;
  background: linear-gradient(135deg, var(--ga-color-primary-soft) 0%, var(--ga-color-secondary-soft) 100%);
}

.ga-card-image-wrap .ga-card-icon {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  margin: 0;
}

.ga-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.6rem 1.6rem;
  flex-shrink: 0;
  min-width: 0;
}

.ga-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.ga-card-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Nombres largos: letra más pequeña para mantener proporción de la imagen */
.ga-card-title--long {
  font-size: 0.88rem;
  line-height: 1.3;
}

.ga-card-text {
  margin: 0;
  color: var(--ga-color-text-soft);
  font-size: 0.95rem;
}

.ga-card--hidden {
  display: none;
}

/* Efecto flip: al pasar el mouse la tarjeta voltea y muestra nombre + descripción */
.ga-card-flip {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  perspective: 1000px;
  width: 100%;
}

.ga-card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.ga-card:hover .ga-card-flip-inner,
.ga-card-flip--show-back .ga-card-flip-inner {
  transform: rotateY(180deg);
}

/* Al voltear, ocultar por completo el frente para que no se vea su QR a la izquierda */
.ga-card:hover .ga-card-flip-front,
.ga-card-flip--show-back .ga-card-flip-front {
  visibility: hidden;
  pointer-events: none;
}

.ga-card-flip-front,
.ga-card-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--ga-radius-md);
  overflow: hidden;
}

.ga-card-flip-front {
  display: flex;
  flex-direction: column;
}

/* Mismas proporciones que la tarjeta original: imagen ~60%, footer abajo */
.ga-card-flip-front .ga-card-image-wrap {
  flex: 1 1 60%;
  border-radius: var(--ga-radius-md) var(--ga-radius-md) 0 0;
}

.ga-card-flip-front .ga-card-footer {
  flex-shrink: 0;
}

.ga-card-flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top left, var(--ga-color-primary-soft), transparent 60%),
    radial-gradient(circle at bottom right, var(--ga-color-secondary-soft), transparent 55%),
    var(--ga-color-bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ga-card-flip-back-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  min-height: 0;
}

.ga-card-flip-back-title {
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ga-color-text);
}

.ga-card-flip-back-desc {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ga-color-text-soft);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.ga-card-flip-back-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
  min-width: 0;
}

.ga-card-flip-back-actions .ga-btn {
  flex-shrink: 0;
  min-width: 8rem;
  order: 1;
}

/* QR del reverso siempre a la derecha, sin montarse sobre el botón */
.ga-card-flip-back-actions .ga-card-qr-wrap {
  flex-shrink: 0;
  flex-basis: 64px;
  max-width: 64px;
  order: 2;
  margin-left: auto;
}

.ga-card-flip-back-actions .ga-card-qr-wrap .ga-card-qr {
  width: 64px;
  height: 64px;
}

.ga-course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}

.ga-filter-chip {
  border-radius: 999px;
  border: 1px solid var(--ga-color-border-soft);
  background: rgba(8, 11, 39, 0.7);
  color: var(--ga-color-text-soft);
  padding: 0.25rem 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background var(--ga-transition-fast), color var(--ga-transition-fast), border-color var(--ga-transition-fast), box-shadow var(--ga-transition-fast);
}

.ga-filter-chip:hover {
  border-color: var(--ga-color-secondary);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 175, 255, 0.5);
}

.ga-filter-chip.is-active {
  background: var(--ga-color-secondary);
  border-color: var(--ga-color-secondary);
  color: #02000b;
  box-shadow: 0 0 18px rgba(0, 175, 255, 0.8);
}

/* Descripción de la categoría seleccionada (a quién va dirigido) */
.ga-course-category-desc {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 175, 255, 0.08);
  border: 1px solid rgba(0, 175, 255, 0.25);
  border-radius: var(--ga-radius-md);
}

.ga-course-category-desc-text {
  margin: 0;
  color: #1a1a2e;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ga-carousel-controls {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ga-carousel-info {
  font-size: 0.8rem;
  color: #000000;
}

.ga-carousel-controls button[disabled] {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

/* Contenedor del slider de cursos (móvil/tablet) */
.ga-courses-slider {
  position: relative;
}

/* En móvil/tablet: carrusel horizontal con scroll lateral */
@media (max-width: 960px) {
  .ga-courses-slider .ga-grid--cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 0 1rem;
    margin: 0 -0.5rem;
    scrollbar-width: thin;
  }

  .ga-courses-slider .ga-grid--cards::-webkit-scrollbar {
    height: 6px;
  }

  .ga-courses-slider .ga-grid--cards::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.4);
    border-radius: 3px;
  }

  .ga-courses-slider .ga-card {
    flex: 0 0 85%;
    min-width: 280px;
    max-width: 320px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  /* En móvil mostramos todas las tarjetas (scroll horizontal, no paginación) */
  .ga-courses-slider .ga-card--hidden {
    display: flex !important;
  }

  .ga-courses-slider .ga-carousel-controls {
    display: none;
  }

  .ga-slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.25);
    color: var(--ga-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }

  .ga-slider-arrow:hover {
    background: rgba(0, 229, 255, 0.45);
    transform: translateY(-50%) scale(1.05);
  }

  .ga-slider-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
  }

  .ga-slider-arrow--prev {
    left: 0;
  }

  .ga-slider-arrow--next {
    right: 0;
  }

  .ga-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .ga-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }

  .ga-slider-dot:hover {
    background: rgba(0, 229, 255, 0.6);
  }

  .ga-slider-dot.is-active {
    background: var(--ga-color-primary);
    transform: scale(1.2);
  }
}

/* Escritorio: flechas e indicadores ocultos */
@media (min-width: 961px) {
  .ga-slider-arrow,
  .ga-slider-dots {
    display: none !important;
  }
}

/* Iconos futuristas básicos con puro CSS */
.ga-icon-chip,
.ga-icon-network,
.ga-icon-hologram {
  display: inline-block;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: radial-gradient(circle at 0 0, rgba(0, 229, 255, 0.9), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(123, 44, 255, 0.9), transparent 55%),
    #05071d;
  box-shadow: var(--ga-glow-secondary);
}

.ga-icon-chip::before,
.ga-icon-chip::after,
.ga-icon-network::before,
.ga-icon-network::after,
.ga-icon-hologram::before,
.ga-icon-hologram::after {
  content: "";
  position: absolute;
}

.ga-icon-chip::before {
  inset: 20%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.ga-icon-chip::after {
  inset: 35%;
  border-radius: 8px;
  border: 1px dashed rgba(0, 229, 255, 0.9);
}

.ga-icon-network::before {
  inset: 24%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.ga-icon-network::after {
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, rgba(255, 255, 255, 0.1));
}

.ga-icon-hologram::before {
  inset: 18%;
  border-radius: 50%;
  border: 2px solid rgba(25, 255, 185, 0.9);
  filter: blur(1px);
}

.ga-icon-hologram::after {
  left: 18%;
  right: 18%;
  bottom: 10%;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 255, 185, 0.7), transparent);
  opacity: 0.9;
}

/* HOLOGRAMA CAMPUS VIRTUAL ------------------------------------------- */

.ga-holo-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  border: 1px solid rgba(0, 229, 255, 0.55);
  background: radial-gradient(circle at top, rgba(0, 229, 255, 0.26), transparent 60%),
    radial-gradient(circle at bottom, rgba(123, 44, 255, 0.3), transparent 60%),
    rgba(2, 4, 24, 0.96);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.7);
  overflow: hidden;
}

.ga-holo-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.14) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.14) 1px,
      transparent 1px
    );
  background-size: 20px 20px;
  opacity: 0.35;
  transform-origin: center;
  animation: ga-holo-grid 16s linear infinite;
}

.ga-holo-orbit {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.9);
  filter: blur(0.6px);
}

.ga-holo-orbit--two {
  inset: 30%;
  border-color: rgba(123, 44, 255, 0.95);
  animation: ga-holo-orbit-rotate 12s linear infinite;
}

.ga-holo-pulse {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.9), transparent 60%);
  filter: blur(1px);
  animation: ga-holo-pulse 2.8s ease-in-out infinite;
}

.ga-holo-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(3, 6, 26, 0.92);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.ga-holo-label span {
  color: var(--ga-color-accent);
}

/* FORMULARIO ---------------------------------------------------------- */

.ga-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.8rem 1.7rem;
  border-radius: var(--ga-radius-md);
  background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.14), transparent 60%),
    rgba(6, 8, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.ga-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
  margin-bottom: 1.2rem;
}

.ga-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ga-form-field--full {
  grid-column: 1 / -1;
}

.ga-form label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ga-color-text-soft);
}

.ga-form input,
.ga-form select,
.ga-form textarea {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 6, 26, 0.95);
  color: var(--ga-color-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--ga-transition-med), box-shadow var(--ga-transition-med), background var(--ga-transition-med);
}

.ga-form input::placeholder,
.ga-form textarea::placeholder {
  color: rgba(167, 177, 211, 0.75);
}

.ga-form input:focus-visible,
.ga-form select:focus-visible,
.ga-form textarea:focus-visible {
  border-color: rgba(0, 229, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.85);
  background: rgba(2, 5, 32, 0.96);
}

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

/* FOOTER -------------------------------------------------------------- */

.ga-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 2.8rem 1.5rem 3.2rem;
  margin-left: 300px;
  background: #01020b url("img/pie.png") center/cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
  transition: margin-left 280ms ease-out;
}

.ga-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  font-size: 0.85rem;
  color: #ffffff;
}

.ga-footer-meta {
  opacity: 0.8;
}

.ga-footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

.ga-footer-col {
  flex: 1 1 220px;
  min-width: 0;
}

.ga-footer-title {
  font-family: var(--ga-font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 0.6rem;
}

.ga-footer-text {
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ga-footer-col--logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.ga-footer-logo {
  max-height: 42px;
  width: auto;
}

.ga-footer-logo--main {
  max-height: 90px;
}

.ga-footer-badge {
  margin-top: 0.8rem;
  max-height: 46px;
  width: auto;
}

.ga-footer-col--social {
  align-items: flex-start;
}

.ga-footer-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  flex-shrink: 0;
}

.ga-footer-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.ga-footer-copy {
  margin: 0;
  font-size: 0.78rem;
  text-align: center;
  opacity: 0.85;
}

/* Páginas con imagen de fondo (Cursos, Guías Virtual, Contacto) ------ */
body.ga-page-fondo {
  background: #050816 url("img/fondo1.png") center center / cover no-repeat !important;
}

body.ga-page-fondo .ga-section--light,
body.ga-page-fondo .ga-section--contact {
  background: transparent;
}

/* Menú igual en todas las páginas: mismo fondo aunque el body tenga otra imagen */
body.ga-page-fondo .ga-header {
  background: radial-gradient(circle at top, rgba(0, 175, 255, 0.25), rgba(32, 43, 81, 0.98) 55%, #02000b) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ANIMACIONES GENERALES ---------------------------------------------- */

@keyframes ga-title-pop {
  0% {
    opacity: 0;
    transform: scale(0.55) translateZ(-260px);
    letter-spacing: 0.5em;
    filter: blur(18px);
  }
  45% {
    opacity: 1;
    transform: scale(1.08) translateZ(0);
    letter-spacing: 0.26em;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateZ(0);
    letter-spacing: 0.24em;
  }
}

@keyframes ga-title-breathe {
  0% {
    transform: scale(1);
    text-shadow:
      0 0 10px rgba(0, 229, 255, 0.6),
      0 0 18px rgba(123, 44, 255, 0.5);
  }
  50% {
    transform: scale(1.02);
    text-shadow:
      0 0 16px rgba(0, 229, 255, 0.9),
      0 0 26px rgba(123, 44, 255, 0.9);
  }
  100% {
    transform: scale(1);
    text-shadow:
      0 0 10px rgba(0, 229, 255, 0.6),
      0 0 18px rgba(123, 44, 255, 0.5);
  }
}

/* Animación vacía solo para disparar animationiteration cuando pasa el reflejo */
@keyframes ga-hero-sheen-sync {
  0%, 100% { }
}

@keyframes ga-word-sheen {
  0% {
    opacity: 0;
    transform: translateX(-160%);
  }
  18% {
    opacity: 0.9;
  }
  55% {
    opacity: 0;
    transform: translateX(160%);
  }
  100% {
    opacity: 0;
    transform: translateX(160%);
  }
}

/* Volteo 3D al cambiar de frase en el hero */
@keyframes ga-flip-out {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(90deg);
  }
}

@keyframes ga-flip-in {
  0% {
    transform: rotateY(-90deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes ga-btn-sheen {
  0% {
    opacity: 0;
    transform: translateX(-140%);
  }
  10% {
    opacity: 0.7;
  }
  30% {
    opacity: 0;
    transform: translateX(140%);
  }
  100% {
    opacity: 0;
    transform: translateX(140%);
  }
}

@keyframes ga-holo-grid {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-20px, -20px, 0);
  }
}

@keyframes ga-holo-orbit-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes ga-holo-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.07);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.92);
    opacity: 0.4;
  }
}


/* ANIMACIONES ON-SCROLL (JS añade .is-visible) ------------------------ */

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

[data-animate][data-animate="slide-left"] {
  transform: translateX(24px);
}

[data-animate][data-animate="slide-right"] {
  transform: translateX(-24px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* RESPONSIVE ---------------------------------------------------------- */

/* Tablet y móvil: menú hamburguesa (oculto por defecto, se abre con el botón) */
@media (max-width: 960px) {
  /* Área segura para iPhone con notch y Android con gestos */
  .ga-nav-toggle {
    top: max(1rem, env(safe-area-inset-top, 0px) + 0.5rem);
    left: max(1rem, env(safe-area-inset-left, 0px) + 0.5rem);
  }

  /* Evitar scroll de la página cuando el menú está abierto */
  body:not(.ga-nav-closed) {
    overflow: hidden;
  }

  /* Menú oculto por defecto: se desliza hacia arriba */
  body.ga-nav-closed .ga-header {
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 280ms ease-out, visibility 0s linear 280ms;
  }

  /* Cuando está abierto: panel completo a pantalla completa */
  .ga-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: max(5rem, env(safe-area-inset-top, 0px) + 3rem) max(1.5rem, env(safe-area-inset-right, 0px)) max(2rem, env(safe-area-inset-bottom, 0px)) max(1.5rem, env(safe-area-inset-left, 0px));
    border-right: none;
    border-bottom: none;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
    overflow-y: auto;
    transition: transform 280ms ease-out, visibility 0s linear 0s;
  }

  body:not(.ga-nav-closed) .ga-header {
    visibility: visible;
  }

  .ga-header-inner {
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
    gap: 2rem;
  }

  .ga-logo {
    flex-shrink: 0;
  }

  .ga-logo img {
    height: 64px;
  }

  .ga-nav {
    flex: none;
    width: 100%;
    max-width: 320px;
    overflow: visible;
  }

  /* Enlaces en columna para buena lectura y toques */
  .ga-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    min-height: 0;
  }

  .ga-nav-link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--ga-radius-md);
    text-align: center;
    font-size: 0.95rem;
  }

  .ga-nav-link:hover,
  .ga-nav-link:focus-visible {
    background: rgba(0, 229, 255, 0.12);
  }

  .ga-nav-link--primary {
    margin-top: 0.5rem;
    padding: 1rem 1.25rem;
  }

  main {
    margin-left: 0;
  }

  .ga-footer {
    margin-left: 0;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px) + 0.5rem);
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px) + 0.5rem);
    padding-bottom: max(3.2rem, env(safe-area-inset-bottom, 0px) + 1.5rem);
  }

  /* Index: hero un poco más bajo en móvil para que no tape tanto en pantallas cortas */
  body.ga-page-index .ga-hero {
    min-height: min(65vh, 520px);
  }

  .ga-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ga-section-inner--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .ga-header {
    padding: 4.5rem 1.1rem 1.5rem;
  }

  .ga-logo img {
    height: 56px;
  }

  .ga-nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .ga-hero {
    padding: 5rem 1.1rem 3rem;
    padding-top: max(5rem, env(safe-area-inset-top, 0px) + 3.5rem);
    padding-left: max(1.1rem, env(safe-area-inset-left, 0px) + 0.5rem);
    padding-right: max(1.1rem, env(safe-area-inset-right, 0px) + 0.5rem);
  }

  /* Título del hero más pequeño en tablet/móvil para que quepa bien */
  .ga-hero-title {
    font-size: clamp(2rem, 8vw + 0.5rem, 4rem);
    letter-spacing: 0.1em;
  }

  .ga-hero-phrases {
    min-height: 2.2em;
  }

  .ga-hero-phrase--campus .ga-hero-word {
    letter-spacing: 0.06em;
  }

  .ga-section {
    padding-inline: 1.1rem;
  }

  .ga-grid--cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .ga-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .ga-nav {
    max-width: none;
  }

  .ga-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ga-meta-pill {
    margin-bottom: 0.3rem;
  }

  .ga-footer-inner {
    text-align: center;
    align-items: center;
  }
}

/* Celulares pequeños (Android / iPhone SE): hero y footer más compactos */
@media (max-width: 420px) {
  .ga-hero {
    padding: 4rem 0.75rem 2.5rem;
    padding-top: max(4rem, env(safe-area-inset-top, 0px) + 3rem);
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px) + 0.5rem);
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px) + 0.5rem);
  }

  .ga-hero-title {
    font-size: clamp(1.6rem, 10vw, 2.8rem);
    letter-spacing: 0.06em;
  }

  .ga-hero-phrases {
    min-height: 1.8em;
  }

  .ga-hero-phrase--campus .ga-hero-word {
    white-space: normal;
    letter-spacing: 0.04em;
  }

  body.ga-page-index .ga-hero {
    min-height: min(60vh, 420px);
  }

  .ga-footer {
    padding: 2rem 0.75rem;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px) + 0.5rem);
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px) + 0.5rem);
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px) + 1rem);
  }

  .ga-footer-grid {
    gap: 1.2rem;
  }

  .ga-footer-col {
    flex: 1 1 100%;
    min-width: 0;
  }

  .ga-footer-logo--main {
    max-height: 70px;
  }

  .ga-nav-toggle {
    width: 44px;
    height: 44px;
    left: max(0.75rem, env(safe-area-inset-left, 0px) + 0.25rem);
  }
}

/* PREFIERE REDUCIR MOVIMIENTO ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ga-hero-video {
    transform: none;
  }
}

/* POP-UP (ventana emergente desde el panel) -------------------------- */

.ga-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.ga-popup-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.ga-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ga-popup-close:hover {
  background: rgba(0, 0, 0, 0.15);
}

.ga-popup-title {
  margin: 0;
  padding: 1.25rem 1.5rem 0.5rem;
  font-size: 1.25rem;
  color: #202b51;
}

.ga-popup-body {
  padding: 1rem 1.5rem 1.5rem;
}

.ga-popup-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.ga-popup-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.ga-popup-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ga-popup-video-el {
  width: 100%;
  max-height: 70vh;
  display: block;
  border-radius: 8px;
}

.ga-popup-html {
  max-width: 560px;
  line-height: 1.6;
  color: #333;
}

.ga-popup-html img {
  max-width: 100%;
  height: auto;
}

.ga-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem;
}

.ga-popup-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #00afff;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.ga-popup-btn:hover {
  background: #0099e6;
  color: #fff;
}

.ga-popup-btn-salir {
  background: transparent;
  color: #555;
  border: 2px solid #ccc;
}

.ga-popup-btn-salir:hover {
  background: #f0f0f0;
  color: #333;
  border-color: #999;
}

.ga-popup-video-done {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}