/* ========================= */
/* EXABYTE ACADEMY V2 PRO   */
/* ========================= */

body {
  background:
    radial-gradient(circle at 70% 20%, rgba(0,168,255,.18), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(110,68,255,.12), transparent 35%),
    #030712;
}

/* HERO HOME MÁS CINEMÁTICO */
.hero {
  min-height: 100vh;
  padding: 140px 6vw 80px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 60px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
}

.hero-content::before {
  content: "ROBOTICS · ELECTRONICS · 3D PRINTING";
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(0,229,255,.25);
  border-radius: 999px;
  color: #00e5ff;
  font-size: 12px;
  letter-spacing: 2px;
  background: rgba(0,229,255,.06);
  backdrop-filter: blur(14px);
}

.hero-content h1 {
  font-size: clamp(48px, 7vw, 104px);
  line-height: .88;
  letter-spacing: -4px;
}

.hero-content h1 span {
  display: block;
  background: linear-gradient(90deg, #00a8ff, #00e5ff, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  margin-top: 26px;
  max-width: 580px;
  font-size: 19px;
  color: #a8b7d8;
}

.hero-buttons {
  margin-top: 36px;
}

/* ESCENA ROBOT */
.robot-stage {
  position: relative;
  height: 620px;
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    radial-gradient(circle at center, rgba(0,168,255,.18), transparent 55%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 0 80px rgba(0,168,255,.16),
    inset 0 0 80px rgba(255,255,255,.03);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.robot-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 20%, rgba(0,229,255,.18), transparent 80%);
  transform: translateX(-100%);
  animation: scan 5s infinite;
}

@keyframes scan {
  to { transform: translateX(100%); }
}

#robot-3d {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.robot-data {
  position: absolute;
  left: 28px;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.robot-data div {
  padding: 16px;
  border: 1px solid rgba(0,229,255,.18);
  border-radius: 18px;
  background: rgba(3,7,18,.55);
  backdrop-filter: blur(14px);
}

.robot-data strong {
  display: block;
  font-family: var(--font-title);
  color: #00e5ff;
  font-size: 22px;
}

.robot-data span {
  font-size: 12px;
  color: #8ea3c1;
}

/* SECCIONES MÁS EMPRESA TECH */
.tech-strip {
  padding: 40px 6vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tech-pill {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
}

.tech-pill h3 {
  color: #fff;
  margin-bottom: 8px;
}

.feature-split {
  padding: 120px 6vw;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.feature-media {
  min-height: 520px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.55)),
    url("../img/lab1.jpg") center/cover;
  box-shadow: 0 40px 120px rgba(0,0,0,.45);
}

.feature-copy h2 {
  font-size: clamp(38px, 5vw, 74px);
  line-height: .95;
  letter-spacing: -3px;
}

.feature-copy p {
  margin-top: 22px;
  font-size: 18px;
}

.premium-grid {
  padding: 100px 6vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.premium-card {
  min-height: 320px;
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}

.premium-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% -30%;
  height: 180px;
  background: radial-gradient(circle, rgba(0,229,255,.25), transparent 65%);
}

.premium-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

/* MOBILE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .robot-stage {
    height: 460px;
  }

  .tech-strip,
  .premium-grid,
  .feature-split {
    grid-template-columns: 1fr;
  }
}
.pro-robot-panel {
  height: 620px;
  overflow: hidden;
}

#robot-3d {
  position: absolute;
  inset: 0;
  z-index: 3;
}

#robot-3d canvas {
  width: 100% !important;
  height: 100% !important;
}

.robot-data,
.hud {
  z-index: 8;
}
/* ========================= */
/* MOBILE 3D ROBOT FIX       */
/* ========================= */

@media (max-width: 900px) {
  .pro-hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 40px;
    gap: 38px;
  }

  .pro-robot-panel {
    width: 100%;
    height: 460px;
    min-height: 460px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden;
  }

  #robot-3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5;
  }

  #robot-3d canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hud {
    font-size: 10px;
    padding: 9px 11px;
  }
}

@media (max-width: 520px) {
  .pro-robot-panel {
    height: 380px;
    min-height: 380px;
    border-radius: 28px;
  }

  .hud-1 {
    top: 18px;
    left: 18px;
  }

  .hud-2 {
    top: 18px;
    right: 18px;
  }

  .hud-3 {
    bottom: 18px;
    left: 18px;
  }
}
/* ========================= */
/* REAL CONTENT INTEGRATION  */
/* ========================= */

.pro-courses-home {
  padding: 120px 6vw;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,217,255,.12), transparent 35%),
    #020617;
}

.pro-section-head {
  max-width: 900px;
  margin-bottom: 55px;
}

.pro-section-head h2 {
  font-family: Orbitron, sans-serif;
  font-size: clamp(38px, 5vw, 78px);
  line-height: .92;
  letter-spacing: -3px;
}

.pro-section-head p {
  margin-top: 22px;
  color: #aab6d3;
  font-size: 19px;
  line-height: 1.7;
}

.pro-course-levels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.pro-course-level {
  position: relative;
  min-height: 520px;
  padding: 36px;
  border-radius: 38px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}

.pro-course-level.featured {
  background:
    radial-gradient(circle at 70% 20%, rgba(0,217,255,.16), transparent 38%),
    linear-gradient(150deg, rgba(255,255,255,.11), rgba(255,255,255,.03));
}

.level-number {
  font-family: Orbitron, sans-serif;
  color: rgba(0,217,255,.25);
  font-size: 86px;
  line-height: 1;
}

.level-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(0,217,255,.28);
  color: #00d9ff;
  font-size: 12px;
  letter-spacing: 2px;
}

.pro-course-level h3 {
  margin-top: 28px;
  font-size: 38px;
}

.pro-course-level p {
  margin-top: 18px;
  color: #aab6d3;
  line-height: 1.7;
}

.pro-course-level ul {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  color: #dbeafe;
}

.pro-course-level li {
  list-style: none;
  padding-left: 22px;
  position: relative;
}

.pro-course-level li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d9ff;
  box-shadow: 0 0 14px rgba(0,217,255,.7);
}

.pro-course-level a {
  display: inline-block;
  margin-top: 32px;
  padding: 15px 24px;
  border-radius: 16px;
  background: #00d9ff;
  color: #001018;
  font-weight: 900;
}

.pro-page-hero {
  min-height: 78vh;
  padding: 170px 6vw 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 70% 40%, rgba(0,217,255,.16), transparent 38%),
    radial-gradient(circle at 20% 80%, rgba(124,58,237,.16), transparent 35%),
    #020617;
}

.pro-page-hero h1 {
  max-width: 1000px;
  font-family: Orbitron, sans-serif;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .88;
  letter-spacing: -5px;
}

.pro-page-hero p {
  max-width: 720px;
  margin-top: 28px;
  color: #aab6d3;
  font-size: 20px;
  line-height: 1.7;
}

.pro-info-split {
  padding: 110px 6vw;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  background: #030712;
}

.pro-info-split h2 {
  font-family: Orbitron, sans-serif;
  font-size: clamp(38px, 5vw, 78px);
  line-height: .92;
  letter-spacing: -3px;
}

.pro-copy-block {
  display: grid;
  gap: 22px;
}

.pro-copy-block p {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.pro-detail-grid {
  padding: 100px 6vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: #020617;
}

.pro-detail-grid article {
  min-height: 310px;
  padding: 30px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}

.pro-detail-grid span {
  color: #00d9ff;
  font-family: Orbitron, sans-serif;
}

.pro-detail-grid h3 {
  margin-top: 90px;
  font-size: 30px;
}

.pro-detail-grid p {
  margin-top: 16px;
  color: #aab6d3;
  line-height: 1.7;
}

.pro-schedule-section {
  padding: 110px 6vw;
  background:
    radial-gradient(circle at 80% 20%, rgba(0,217,255,.1), transparent 35%),
    #030712;
}

.pro-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.schedule-card {
  padding: 32px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(18px);
}

.schedule-card h3 {
  font-size: 32px;
  margin-bottom: 24px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.schedule-row strong {
  color: #fff;
}

.schedule-row span {
  color: #aab6d3;
}

.schedule-row em {
  font-style: normal;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
}

.schedule-row.available em {
  color: #001018;
  background: #00d9ff;
}

.schedule-row.full em {
  color: #fff;
  background: rgba(255,255,255,.14);
}

.pro-price-section {
  padding: 110px 6vw;
  background: #020617;
}

.price-card {
  max-width: 720px;
  padding: 44px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 70% 20%, rgba(0,217,255,.16), transparent 40%),
    linear-gradient(150deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
}

.price-card h2 {
  margin-top: 18px;
  font-family: Orbitron, sans-serif;
  font-size: clamp(58px, 7vw, 110px);
  color: #00d9ff;
}

.price-card p {
  color: #cbd5e1;
  font-size: 20px;
}

.price-note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,.28);
  color: #aab6d3;
}

.price-note strong {
  color: #fff;
}

.price-card a {
  display: inline-block;
  margin-top: 28px;
  padding: 16px 26px;
  border-radius: 16px;
  background: #00d9ff;
  color: #001018;
  font-weight: 900;
}

.pro-faq {
  padding: 110px 6vw;
  background: #030712;
}

.pro-faq details {
  max-width: 980px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.pro-faq summary {
  cursor: pointer;
  font-size: 22px;
  color: #fff;
  font-weight: 800;
}

.pro-faq details p {
  margin-top: 18px;
  color: #aab6d3;
  line-height: 1.8;
  max-width: 820px;
}

.pro-nav nav a.active {
  color: #00d9ff;
}

@media (max-width: 900px) {
  .pro-course-levels,
  .pro-info-split,
  .pro-detail-grid,
  .pro-schedule-grid {
    grid-template-columns: 1fr;
  }

  .pro-page-hero {
    min-height: auto;
    padding-top: 150px;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .pro-course-level {
    min-height: auto;
  }
}
/* ========================= */
/* AJUSTE FINAL HERO + MOBILE */
/* ========================= */

/* Sube el contenido del hero en desktop */
.hero-content,
.robot-stage {
  transform: translateY(-70px);
}

/* Ajusta el alto general para que no quede tanto aire arriba */
.hero {
  padding-top: 105px;
}

/* Mobile: volver a posición normal */
@media (max-width: 900px) {
  .hero {
    padding-top: 115px;
    padding-bottom: 40px;
  }

  .hero-content,
  .robot-stage {
    transform: none;
  }

  .robot-stage {
    width: 100%;
    height: 430px;
    min-height: 430px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #robot-3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5;
  }

  #robot-3d canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .robot-data {
    left: 14px;
    right: 14px;
    bottom: 14px;
    gap: 8px;
  }

  .robot-data div {
    padding: 10px;
  }

  .robot-data strong {
    font-size: 16px;
  }

  .robot-data span {
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 100px;
  }

  .robot-stage {
    height: 360px;
    min-height: 360px;
    border-radius: 24px;
  }

  .robot-data {
    grid-template-columns: repeat(3, 1fr);
  }
}