/* ============================================================
   GLOBAL ACADEMY - DOCENTE INDEPENDIENTE
   Estilos modernos, efectos fluidos y barras animadas.
   ============================================================ */

:root {
  --b: #0865c9; /* Azul principal */
  --c: #0799c8; /* Celeste */
  --t: #00a6a6; /* Turquesa */
  --n: #082b5d; /* Azul oscuro (Textos) */
  --m: #607793; /* Gris azulado */
  --p: #eff8ff; /* Fondo suave */
  --o: #ff9b27; /* Naranja acento */
  --line: #e1edf8;
  --shadow: 0 14px 40px rgba(14, 67, 125, .12);
  --max: 1200px;
}

#ga-site, #ga-site * { box-sizing: border-box; }
#ga-site {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--n);
  line-height: 1.55;
  background: #fff;
  overflow-x: hidden;
}
#ga-site img { display: block; max-width: 100%; }
#ga-site a { color: inherit; text-decoration: none; }
#ga-site .wrap { width: min(var(--max), calc(100% - 42px)); margin: auto; }

/* -------- Navegación -------- */
#ga-site .nav {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
#ga-site .nav.scrolled { box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
#ga-site .navin { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#ga-site .logo { display: flex; align-items: center; gap: 9px; font-weight: 950; color: var(--b); font-size: 1.25rem; line-height: 1; }
#ga-site .logo svg { width: 43px; height: 43px; transition: transform 0.4s ease; }
#ga-site .logo:hover svg { transform: rotate(15deg) scale(1.05); }
#ga-site .logo small { display: block; font-size: .55rem; letter-spacing: .2em; color: var(--n); margin-top: 5px; }
#ga-site .links { display: flex; gap: 27px; font-size: .88rem; font-weight: 750; color: #314b6d; }
#ga-site .links a { position: relative; transition: color 0.3s; }
#ga-site .links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--b); transition: width 0.3s ease; }
#ga-site .links a:hover { color: var(--b); }
#ga-site .links a:hover::after { width: 100%; }

/* -------- Botones -------- */
#ga-site .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 99px; font-size: .9rem; font-weight: 850;
  border: 1px solid transparent; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative; overflow: hidden; cursor: pointer;
}
#ga-site .btn::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.5s ease;
}
#ga-site .btn:hover::after { left: 100%; }
#ga-site .btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 25px rgba(8, 101, 201, 0.25); }
#ga-site .primary { background: linear-gradient(110deg, var(--b), var(--c)); color: #fff; }
#ga-site .outline { border-color: var(--b); background: #fff; color: var(--n); }
#ga-site .white { background: #fff; color: var(--b); }

/* -------- Hero -------- */
#ga-site .hero {
  position: relative; isolation: isolate; padding: 85px 0 75px;
  background: linear-gradient(110deg, #f8fcff, #fff 48%, #e8f7ff);
  overflow: hidden;
}
#ga-site .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; position: relative; z-index: 1; }
#ga-site .eyebrow { display: inline-block; padding: 8px 15px; border-radius: 30px; background: #dff3ff; color: var(--b); font-size: .78rem; font-weight: 900; }
#ga-site h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.05; letter-spacing: -.045em; margin: 20px 0; color: var(--n); }
#ga-site h1 span { color: var(--c); background: linear-gradient(120deg, var(--b), var(--t)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
#ga-site .lead { font-size: 1.08rem; color: var(--m); max-width: 540px; }
#ga-site .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0; }
#ga-site .trust { display: flex; flex-wrap: wrap; gap: 25px; font-size: .85rem; font-weight: 850; color: var(--m); }
#ga-site .trust b { color: var(--b); font-size: 1.1rem; margin-right: 5px; }

/* Contenedor de la imagen y elementos flotantes */
#ga-site .hero-art { position: relative; min-height: 420px; display: grid; place-items: center; width: 100%; }
#ga-site .photo {
  width: min(100%, 480px); height: 410px; overflow: hidden;
  border-radius: 48% 48% 42% 42%; background: linear-gradient(135deg, #bceaff, #087ec2);
  box-shadow: var(--shadow); position: relative; transition: transform 0.5s ease;
  z-index: 1;
}
#ga-site .photo:hover { transform: translateY(-5px) scale(1.02); }
#ga-site .photo:after { content: ""; position: absolute; inset: 13px; border: 2px solid #ffffffaa; border-radius: inherit; pointer-events: none; }
#ga-site .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* -------- Línea Punteada de Fondo (bgsvg) -------- */
#ga-site .bgsvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
#ga-site .bgsvg path {
  stroke-dasharray: 10 13;
  animation: dash 30s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -460; }
}

/* -------- Círculos Flotantes (orb) -------- */
#ga-site .orb { 
  position: absolute; 
  border-radius: 50%; 
  animation: float 7s ease-in-out infinite alternate; 
  z-index: 1; /* Detrás de la foto */
}

/* Círculo Celeste Grande (Arriba a la izquierda de la foto) */
#ga-site .orb.a { 
  width: 75px; 
  height: 75px; 
  background: linear-gradient(135deg,#37d6db,#078bc8); 
  left: -15%; 
  top: 10%; 
}

/* Círculo Naranja (A la derecha, alineado con la tarjeta de progreso) */
#ga-site .orb.b { 
  width: 32px; 
  height: 32px; 
  background: var(--o); 
  right: -5%; 
  top: 28%; 
  animation-delay: -2s; 
}

/* Círculo Verde Pequeño (Abajo a la izquierda) */
#ga-site .orb.c { 
  width: 20px; 
  height: 20px; 
  background: #27c7b7; 
  left: 5%; 
  bottom: 13%; 
  animation-delay: -4s; 
}

@keyframes float { 
  to { transform: translate(14px,-18px) scale(1.08); } 
}

/* -------- Tarjeta de Progreso Flotante -------- */
#ga-site .progress-card {
  position: absolute; right: 0px; top: 60px; width: 215px; padding: 18px;
  background: #ffffffed; backdrop-filter: blur(10px); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); font-size: .76rem; z-index: 2;
  animation: float-card 5s ease-in-out infinite alternate;
}
#ga-site .progress-head { display: flex; justify-content: space-between; font-weight: 900; }
#ga-site .progress-head strong { color: var(--b); font-size: 1.1rem; }
#ga-site .track { height: 8px; background: #dcebf7; border-radius: 10px; margin: 12px 0; overflow: hidden; }
#ga-site .track i { display: block; width: 0%; height: 100%; background: linear-gradient(90deg, var(--b), var(--t)); border-radius: 10px; transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
#ga-site .progress-list { display: grid; gap: 6px; color: #159a70; font-size: .7rem; font-weight: 600; }
@keyframes float-card { 0% { transform: translateY(0); } 100% { transform: translateY(-12px); } }

/* -------- Nota Flotante Inferior -------- */
#ga-site .note {
  position: absolute; left: -10px; bottom: 20px; background: #fff;
  padding: 13px 17px; border-radius: 14px; box-shadow: var(--shadow);
  font-size: .8rem; font-weight: 850; z-index: 3;
}

/* -------- Secciones Generales -------- */
#ga-site .section { padding: 85px 0; position: relative; isolation: isolate; }
#ga-site .soft { background: linear-gradient(120deg, #f1f9ff, #fff 55%, #f0f8ff); }
#ga-site .head { text-align: center; max-width: 700px; margin: 0 auto 45px; }
#ga-site .kicker { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 950; color: var(--b); }
#ga-site h2 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); line-height: 1.15; letter-spacing: -.035em; margin: 12px 0 15px; color: var(--n); }
#ga-site h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 8px; color: var(--n); }
#ga-site .sub { color: var(--m); margin: 0; font-size: 1.05rem; }

/* -------- Cursos -------- */
#ga-site .course-layout { display: grid; grid-template-columns: .85fr 2.15fr; gap: 35px; align-items: center; }
#ga-site .courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
#ga-site .course {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: 0 8px 25px rgba(20, 75, 130, 0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#ga-site .course:hover { transform: translateY(-12px); box-shadow: var(--shadow); border-color: #cbe3f7; }
#ga-site .course-img { height: 160px; position: relative; overflow: hidden; background: #d9efff; }
#ga-site .course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
#ga-site .course:hover .course-img img { transform: scale(1.1); }
#ga-site .tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 30px; background: var(--b); color: white; font-size: .7rem; font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
#ga-site .course-body { padding: 20px; }
#ga-site .course-body p { font-size: .85rem; color: var(--m); margin: 8px 0 12px; }
#ga-site .meta { display: flex; gap: 12px; flex-wrap: wrap; color: #71849c; font-size: .75rem; font-weight: 600; }
#ga-site .rating { color: #f39a20; font-size: .85rem; margin: 12px 0; font-weight: bold; }
#ga-site .rating small { color: #71839a; font-size: .72rem; font-weight: normal; margin-left: 4px; }
#ga-site .course-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; border-top: 1px solid var(--line); padding-top: 15px; }
#ga-site .price { font-weight: 950; color: var(--n); font-size: 1.1rem; }
#ga-site .course-bottom .btn { padding: 9px 15px; font-size: .75rem; }

/* -------- Beneficios / Sobre mí -------- */
#ga-site .benefit-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
#ga-site .benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-top: 30px; }
#ga-site .benefit { display: flex; gap: 15px; align-items: flex-start; transition: transform 0.3s ease; }
#ga-site .benefit:hover { transform: translateX(5px); }
#ga-site .benefit-icon {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  color: white; font-weight: 950; font-size: 1.2rem; background: linear-gradient(135deg, #09a9a0, #0878d1);
  box-shadow: 0 6px 15px rgba(8, 120, 209, 0.2);
}
#ga-site .benefit:nth-child(2) .benefit-icon { background: linear-gradient(135deg, #6754d9, #9582f4); box-shadow: 0 6px 15px rgba(103, 84, 217, 0.2); }
#ga-site .benefit:nth-child(3) .benefit-icon { background: linear-gradient(135deg, #ff9b24, #ffbf50); box-shadow: 0 6px 15px rgba(255, 155, 36, 0.2); }
#ga-site .benefit:nth-child(4) .benefit-icon { background: linear-gradient(135deg, #0785d9, #31b6ed); box-shadow: 0 6px 15px rgba(7, 133, 217, 0.2); }
#ga-site .benefit p { font-size: .85rem; color: var(--m); margin: 4px 0; }

/* Panel Dashboard */
#ga-site .dashboard { padding: 25px; background: #ffffffed; backdrop-filter: blur(10px); border: 1px solid #dcecf9; border-radius: 24px; box-shadow: var(--shadow); position: relative; }
#ga-site .dash-top { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--line); font-weight: 900; font-size: 1.05rem; }
#ga-site .cap { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #05b5b1, #0876d0); color: #fff; font-size: 1.2rem; }
#ga-site .lesson { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf3f9; font-size: .85rem; font-weight: 600; transition: background 0.3s; }
#ga-site .lesson:hover { background: #f8fbff; border-radius: 8px; padding-left: 8px; }
#ga-site .lesson b { margin-left: auto; color: #14996d; font-size: .75rem; background: #e6f7f0; padding: 4px 8px; border-radius: 6px; }
#ga-site .dash-foot { margin-top: 18px; padding: 15px; border-radius: 14px; background: #edf7ff; font-size: .85rem; font-weight: 850; }

/* -------- Testimonios -------- */
#ga-site .testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
#ga-site .testimonial {
  padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: white;
  box-shadow: 0 8px 25px rgba(20, 75, 130, 0.06); transition: all 0.4s ease;
}
#ga-site .testimonial:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
#ga-site .quote { font-size: 3rem; line-height: .8; color: var(--t); font-weight: 950; margin-bottom: 10px; opacity: 0.5; }
#ga-site .testimonial p { font-size: .9rem; color: #536b89; min-height: 70px; font-style: italic; }
#ga-site .student { display: flex; align-items: center; gap: 12px; margin-top: 15px; }
#ga-site .avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
#ga-site .student strong { display: block; font-size: .85rem; }
#ga-site .student small { font-size: .75rem; color: var(--m); }
#ga-site .stars { color: #f4a126; font-size: .8rem; letter-spacing: 2px; }

/* -------- CTA -------- */
#ga-site .cta {
  position: relative; overflow: hidden; padding: 60px 0;
  background: linear-gradient(105deg, #08b9c0, #0876d6 48%, #0a43a5); color: #fff;
}
#ga-site .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; z-index: 1; }
#ga-site .cta h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
#ga-site .cta p { margin: 0; color: #e0f4ff; font-size: 1.05rem; }
#ga-site .cta:before { content: ""; position: absolute; width: 300px; height: 300px; border: 40px solid #ffffff15; border-radius: 50%; left: -60px; top: -120px; animation: rotate-bg 20s linear infinite; }
@keyframes rotate-bg { 100% { transform: rotate(360deg); } }

/* -------- Footer -------- */
#ga-site .footer { background: #061e43; color: #d6e6f8; padding: 55px 0 25px; }
#ga-site .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 35px; }
#ga-site .footer h3 { color: #fff; font-size: .95rem; margin-bottom: 15px; }
#ga-site .footer p, #ga-site .footer a { color: #a9c0dc; font-size: .82rem; }
#ga-site .footer a { display: block; margin: 10px 0; transition: color 0.3s; }
#ga-site .footer a:hover { color: white; transform: translateX(3px); }
#ga-site .social { display: flex; gap: 10px; margin-top: 18px; }
#ga-site .social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ffffff1c; color: white; transition: all 0.3s; }
#ga-site .social a:hover { background: var(--b); transform: translateY(-3px); }
#ga-site .copy { border-top: 1px solid #ffffff24; padding-top: 20px; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; color: #8fa9c9; font-size: .75rem; }

/* -------- WhatsApp -------- */
#ga-site .wa-container { 
  position: fixed; 
  right: 20px; 
  bottom: 150px; /* Ajustado para no chocar con el chat de Moodle */
  z-index: 99999; 
  display: flex; 
  align-items: center; 
  gap: 15px; 
}

#ga-site .wa {
  width: 65px; 
  height: 65px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center;
  justify-content: center;
  background: #20c66b; 
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  transition: all 0.3s; 
  animation: pulse-wa 2s infinite;
}

#ga-site .wa:hover { 
  transform: translateY(-5px) scale(1.05); 
  animation-play-state: paused; 
}

/* Regla para la imagen del ícono */
#ga-site .wa img { 
  width: 35px; 
  height: 35px; 
  display: block;
}

/* Regla para el SVG del ícono (por si acaso) */
#ga-site .wa svg { 
  width: 32px; 
  height: 32px; 
  fill: currentColor; 
  display: block;
}

#ga-site .wa-tip {
  background: white; 
  color: #17375f; 
  padding: 12px 16px; 
  border-radius: 12px;
  font-size: .8rem; 
  font-weight: 850; 
  box-shadow: var(--shadow);
  opacity: 0; 
  visibility: hidden; 
  transform: translateX(15px); 
  transition: all 0.4s;
}

#ga-site .wa-tip.show { 
  opacity: 1; 
  visibility: visible; 
  transform: translateX(0); 
}

@keyframes pulse-wa { 
  0% { box-shadow: 0 0 0 0 rgba(32, 198, 107, 0.5); } 
  70% { box-shadow: 0 0 0 15px rgba(32, 198, 107, 0); } 
  100% { box-shadow: 0 0 0 0 rgba(32, 198, 107, 0); } 
}

/* -------- Animaciones Reveal -------- */
#ga-site .reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1); will-change: opacity, transform; }
#ga-site .reveal.in { opacity: 1; transform: translateY(0) scale(1); }

/* -------- Responsive -------- */
@media (max-width: 980px) {
  #ga-site .course-layout { grid-template-columns: 1fr; }
  #ga-site .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 720px) {
  #ga-site .wrap { width: calc(100% - 30px); }
  #ga-site .navin { height: 68px; }
  #ga-site .links { display: none; }
  #ga-site .hero { padding: 50px 0; }
  #ga-site .hero-grid { grid-template-columns: 1fr; text-align: center; }
  
  /* Solución para móviles: apilamos la foto y la tarjeta */
  #ga-site .hero-art { 
    min-height: auto; 
    margin-top: 30px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
  }
  #ga-site .photo { 
    height: 320px; 
    width: min(100%, 320px); 
    margin-bottom: 20px; 
  }
  #ga-site .progress-card { 
    position: relative; 
    right: auto; 
    top: auto; 
    width: 100%; 
    max-width: 320px; 
    margin: 0 auto; 
    animation: none; 
  }
  #ga-site .note {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 15px;
  }

  #ga-site .actions { justify-content: center; }
  #ga-site .trust { justify-content: center; }
  #ga-site .section { padding: 60px 0; }
  #ga-site .benefit-layout { grid-template-columns: 1fr; }
  #ga-site .testimonials { grid-template-columns: 1fr; }
  #ga-site .cta-inner { align-items: flex-start; flex-direction: column; text-align: center; }
  #ga-site .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  #ga-site h1 { font-size: 2.5rem; }
  #ga-site .courses { grid-template-columns: 1fr; }
  #ga-site .benefit-grid { grid-template-columns: 1fr; }
  #ga-site .actions .btn { width: 100%; }
  #ga-site .footer-grid { grid-template-columns: 1fr; }
  #ga-site .wa { width: 60px; height: 60px; right: 15px; bottom: 15px; }
  #ga-site .wa-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #ga-site * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  #ga-site .reveal { opacity: 1; transform: none; }
}