/* ========== RESET ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Saira Condensed', sans-serif;
  background: #0b0d1a;
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== FONDO ========== */
.bg-gradient {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(245,184,27,0.05) 0%, rgba(11,13,26,0.95) 70%),
              radial-gradient(ellipse at 80% 80%, rgba(255,127,42,0.03) 0%, rgba(11,13,26,0.95) 60%),
              #0b0d1a;
  pointer-events: none;
}

/* ========== CONTAINER ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

/* ========== HEADER ========== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(11,13,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245,184,27,0.06);
  padding: 0.6rem 0;
}
.header-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 0.6rem; }
.logo { width: 50px; height: 50px; object-fit: contain; }
.logo-text { font-weight: 100; font-size: 1.3rem; letter-spacing: 2px; color: #fff; }
.logo-text span { color: #f5b81b; font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 200;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0%; height: 1px; background: #f5b81b; transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #f5b81b; }

.menu-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.6rem; cursor: pointer; padding: 0.3rem; z-index: 20;
}
.menu-toggle .fa-times { display: none; }
.menu-toggle.active .fa-bars { display: none; }
.menu-toggle.active .fa-times { display: block; }

.mobile-menu {
  display: none; flex-direction: column; align-items: center; gap: 1rem;
  padding: 1.5rem; background: rgba(11,13,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,184,27,0.06);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #fff; text-decoration: none; font-weight: 200; font-size: 1.1rem;
  padding: 0.4rem 0; width: 100%; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu a:hover { color: #f5b81b; }

/* ========== HERO CON IMAGEN ========== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 1.5rem 60px;
  z-index: 1;
  text-align: center;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background-image: url('courseimg.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at 30% 50%, rgba(11,13,26,0.7) 0%, rgba(11,13,26,0.92) 100%);
  background: linear-gradient(135deg, rgba(11,13,26,0.85) 0%, rgba(11,13,26,0.75) 50%, rgba(11,13,26,0.9) 100%);
}
.hero-badge {
  display: inline-block;
  background: rgba(245,184,27,0.12);
  border: 1px solid rgba(245,184,27,0.15);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  color: #f5b81b;
  letter-spacing: 0.5px;
}
.hero h1 { font-size: 3.8rem; font-weight: 100; line-height: 1.05; letter-spacing: -1px; }
.hero h1 .highlight {
  font-weight: 400;
  background: linear-gradient(145deg, #f5b81b, #ff8c2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem; font-weight: 200; line-height: 1.6;
  color: rgba(255,255,255,0.75); max-width: 700px; margin: 0 auto;
}
.hero-stats {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem;
}
.stat {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem; color: rgba(255,255,255,0.7);
}
.stat i { color: #f5b81b; font-size: 1.1rem; }
.stat strong { color: #fff; font-weight: 400; }

/* ========== SECCIONES GENERALES ========== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px;
  color: #f5b81b; background: rgba(245,184,27,0.08);
  padding: 0.2rem 1.2rem; border-radius: 40px; margin-bottom: 0.6rem;
}
.section-title {
  font-size: 2.6rem; font-weight: 100; letter-spacing: 1px; color: #fff;
}
.section-title .highlight {
  font-weight: 400;
  background: linear-gradient(145deg, #f5b81b, #ff8c2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 1.05rem; font-weight: 200;
  color: rgba(255,255,255,0.6); max-width: 700px; margin: 0.4rem auto 0; line-height: 1.6;
}

/* ========== CURSOS ========== */
.section-cursos, .section-diagnostico, .section-informe {
  padding: 4rem 0;
  background: rgba(8,10,26,0.5);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(245,184,27,0.04);
  border-bottom: 1px solid rgba(245,184,27,0.04);
}
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.curso-check {
  display: flex; align-items: center; gap: 0.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(245,184,27,0.08);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  transition: 0.3s;
  cursor: pointer;
}
.curso-check:hover { border-color: rgba(245,184,27,0.2); background: rgba(245,184,27,0.05); }
.curso-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #f5b81b;
  cursor: pointer;
  flex-shrink: 0;
}
.curso-check label {
  font-weight: 200; font-size: 0.95rem; color: rgba(255,255,255,0.8);
  cursor: pointer; width: 100%;
}

/* ========== PREGUNTAS ========== */
.pregunta-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(245,184,27,0.06);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.pregunta-item h4 {
  font-weight: 300; font-size: 1.05rem; color: #fff; margin-bottom: 0.8rem;
}
.pregunta-item .opciones {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
}
.pregunta-item .opciones label {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 200; font-size: 0.9rem; color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}
.pregunta-item .opciones label:hover { border-color: rgba(245,184,27,0.3); }
.pregunta-item .opciones input[type="radio"] {
  accent-color: #f5b81b;
  cursor: pointer;
}

/* ========== BOTONES ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #f5b81b; color: #0b0d1a;
  padding: 0.8rem 2.2rem; border-radius: 60px;
  font-weight: 400; font-size: 1.05rem;
  border: none; cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 30px rgba(245,184,27,0.25);
  text-decoration: none;
}
.btn-primary:hover { background: #ff9f1c; transform: translateY(-3px); box-shadow: 0 12px 45px rgba(245,184,27,0.4); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; color: #fff;
  padding: 0.8rem 2rem; border-radius: 60px;
  font-weight: 200; font-size: 1.05rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  cursor: pointer; transition: 0.3s;
  text-decoration: none;
}
.btn-outline:hover { border-color: #f5b81b; background: rgba(245,184,27,0.05); transform: translateY(-3px); }

/* ========== INFORME ========== */
.informe-resumen {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(245,184,27,0.1);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.informe-resumen .porcentaje {
  font-size: 4rem; font-weight: 700; color: #f5b81b;
}
.informe-resumen .label { font-size: 1.2rem; font-weight: 200; color: rgba(255,255,255,0.6); }
.informe-resumen .analisis { font-size: 1rem; font-weight: 200; color: rgba(255,255,255,0.7); margin-top: 0.5rem; }

.informe-chart {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(245,184,27,0.08);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
#radarChart { width: 100% !important; height: auto !important; max-height: 400px; }

.informe-detalle {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.informe-detalle .habilidad-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(245,184,27,0.06);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}
.informe-detalle .habilidad-item .nombre { font-weight: 300; color: #fff; }
.informe-detalle .habilidad-item .puntaje { font-size: 1.8rem; font-weight: 700; color: #f5b81b; }
.informe-detalle .habilidad-item .barra {
  height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-top: 0.5rem; overflow: hidden;
}
.informe-detalle .habilidad-item .barra .fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #f5b81b, #ff8c2e);
  transition: width 1s ease;
}

.informe-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ========== FOOTER (sin span, centrado) ========== */
.footer {
  position: relative; z-index: 10;
  background: #0a0c1a;
  border-top: 2px solid rgba(245,184,27,0.15);
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}
.footer-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.8rem;
  justify-content: center;
}
.logo-footer { width: 50px; height: 50px; object-fit: contain; }
.footer-brand p {
  font-weight: 100; font-size: 0.8rem; color: rgba(255,255,255,0.5); letter-spacing: 1px;
}
.footer-social a {
  color: rgba(255,255,255,0.4); font-size: 1.3rem; margin: 0 0.6rem; transition: 0.3s; display: inline-block;
}
.footer-social a:hover { color: #f5b81b; transform: translateY(-2px); }
.footer-contact {
  display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center;
  font-weight: 200; font-size: 0.85rem; color: rgba(255,255,255,0.4); letter-spacing: 0.5px;
}
.footer-contact i { color: #f5b81b; margin-right: 4px; }
.footer-bottom {
  max-width: 1200px; margin: 1.5rem auto 0; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05); text-align: center;
}
.footer-bottom p {
  font-weight: 100; font-size: 0.7rem; color: rgba(255,255,255,0.2); letter-spacing: 1.5px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: none; }
  .mobile-menu.open { display: flex; }

  .hero { min-height: 50vh; padding: 100px 1rem 40px; }
  .hero-bg-image { background-position: center 20%; }
  .hero-overlay { background: radial-gradient(ellipse at 30% 40%, rgba(11,13,26,0.75) 0%, rgba(11,13,26,0.92) 100%); }
  .hero h1 { font-size: 2.4rem; }
  .hero-stats { gap: 1rem; }
  .section-title { font-size: 2rem; }
  .cursos-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .informe-detalle { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .footer-container { flex-direction: column; gap: 1rem; }
}
@media (max-width: 480px) {
  .hero { padding-top: 90px; }
  .hero-bg-image { background-position: center 15%; }
  .hero-overlay { background: radial-gradient(ellipse at 30% 30%, rgba(11,13,26,0.8) 0%, rgba(11,13,26,0.95) 100%); }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .cursos-grid { grid-template-columns: 1fr; }
  .informe-detalle { grid-template-columns: 1fr; }
  .pregunta-item .opciones { flex-direction: column; }
}