/* ===================================================== */
/* EXABYTE ACADEMY · CODE / PRO TECH THEME               */
/* Este archivo pisa visualmente style.css y pro.css      */
/* sin romper la estructura existente                     */
/* ===================================================== */

:root {
  --font-title: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-code: "JetBrains Mono", monospace;

  --bg-main: #05070c;
  --bg-soft: #07111d;
  --bg-panel: rgba(12, 18, 30, .72);

  --text-main: #f4f7fb;
  --text-soft: #9fb0c8;
  --text-muted: #6f7f99;

  --accent-cyan: #00e5ff;
  --accent-blue: #008cff;
  --accent-green: #39ff88;
  --accent-lime: #c6ff3d;
  --accent-purple: #7c5cff;

  --border-soft: rgba(255,255,255,.10);
  --border-code: rgba(57,255,136,.24);

  --shadow-cyan: 0 0 38px rgba(0,229,255,.18);
  --shadow-green: 0 0 38px rgba(57,255,136,.16);
}

/* BASE */

body {
  background:
    radial-gradient(circle at 78% 18%, rgba(0, 229, 255, .13), transparent 28%),
    radial-gradient(circle at 14% 78%, rgba(57, 255, 136, .08), transparent 34%),
    linear-gradient(180deg, #05070c 0%, #07101d 48%, #05070c 100%);
  color: var(--text-main);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(57,255,136,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

/* NAV */

.navbar {
  background: rgba(5, 7, 12, .72);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 18px 70px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(22px);
}

.logo {
  font-family: var(--font-code);
  letter-spacing: -1px;
  text-transform: lowercase;
}

.logo::before {
  content: "<";
  color: var(--accent-green);
}

.logo::after {
  content: "/>";
  color: var(--accent-green);
  margin-left: 2px;
}

.logo span {
  color: var(--accent-cyan);
}

.navbar nav a {
  font-family: var(--font-code);
  font-size: 13px;
  color: var(--text-soft);
}

.navbar nav a:hover,
.navbar nav a.active {
  color: var(--accent-green);
}

.btn-primary,
.pro-course-level a,
.price-card a {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)) !important;
  color: #031014 !important;
  font-family: var(--font-code);
  font-weight: 800;
  border: 0;
  box-shadow:
    0 0 24px rgba(57,255,136,.25),
    0 0 48px rgba(0,229,255,.16);
}

.btn-secondary {
  font-family: var(--font-code);
  border: 1px solid rgba(57,255,136,.22) !important;
  background: rgba(57,255,136,.045) !important;
  color: var(--text-main) !important;
}

/* HERO */

.hero {
  background:
    radial-gradient(circle at 72% 42%, rgba(0,229,255,.15), transparent 34%),
    radial-gradient(circle at 20% 76%, rgba(57,255,136,.09), transparent 32%);
}

.hero-content::before {
  content: "const academy = 'ExabyteAcademy';";
  font-family: var(--font-code);
  color: var(--accent-green);
  background: rgba(57,255,136,.055);
  border: 1px solid var(--border-code);
  box-shadow: var(--shadow-green);
  letter-spacing: 0;
  text-transform: none;
}

.hero-content h1,
.pro-page-hero h1,
.pro-section-head h2,
.feature-copy h2,
.pro-info-split h2,
.price-card h2 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -5px;
  text-transform: none;
}

.hero-content h1 span,
.pro-page-hero h1 span {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p,
.feature-copy p,
.pro-section-head p,
.pro-copy-block p,
.pro-detail-grid p,
.pro-course-level p,
.tech-pill p,
.premium-card p,
.pro-faq details p,
.price-card p {
  color: var(--text-soft);
  line-height: 1.75;
}

/* ROBOT PANEL */

.robot-stage {
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018)),
    radial-gradient(circle at 50% 42%, rgba(57,255,136,.11), transparent 38%),
    radial-gradient(circle at 70% 65%, rgba(0,229,255,.12), transparent 42%);
  border: 1px solid rgba(57,255,136,.16);
  box-shadow:
    0 0 80px rgba(0,229,255,.12),
    0 0 80px rgba(57,255,136,.08),
    inset 0 0 80px rgba(255,255,255,.025);
}

.robot-stage::before {
  background:
    linear-gradient(120deg, transparent 20%, rgba(57,255,136,.16), transparent 80%);
}

.robot-data div {
  border: 1px solid rgba(57,255,136,.18);
  background: rgba(5, 7, 12, .66);
}

.robot-data strong {
  font-family: var(--font-code);
  color: var(--accent-green);
}

.robot-data span {
  color: var(--text-soft);
}

/* PILLS Y CARDS */

.tech-pill,
.premium-card,
.pro-course-level,
.schedule-card,
.price-card,
.pro-detail-grid article,
.pro-faq details {
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 26px 90px rgba(0,0,0,.22);
}

.tech-pill h3,
.premium-card h3,
.pro-course-level h3,
.schedule-card h3,
.pro-detail-grid h3,
.pro-faq summary {
  font-family: var(--font-title);
  letter-spacing: -1.2px;
}

.tech-pill h3::before,
.premium-card h3::before,
.pro-detail-grid h3::before {
  content: "./ ";
  color: var(--accent-green);
  font-family: var(--font-code);
  font-weight: 700;
}

/* EYEBROWS */

.eyebrow,
.level-badge {
  font-family: var(--font-code);
  color: var(--accent-green);
  border-color: rgba(57,255,136,.24);
  background: rgba(57,255,136,.055);
  box-shadow: var(--shadow-green);
  letter-spacing: 0;
  text-transform: lowercase;
}

/* CURSOS */

.level-number {
  font-family: var(--font-code);
  color: rgba(57,255,136,.24);
}

.pro-course-level.featured {
  background:
    radial-gradient(circle at 74% 18%, rgba(57,255,136,.12), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.022));
  border-color: rgba(57,255,136,.18);
}

.pro-course-level li::before {
  background: var(--accent-green);
  box-shadow: 0 0 14px rgba(57,255,136,.7);
}

/* HORARIOS */

.schedule-row {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.schedule-row strong {
  font-family: var(--font-code);
  color: var(--accent-cyan);
}

.schedule-row span {
  color: var(--text-soft);
}

.schedule-row.available em {
  font-family: var(--font-code);
  color: #031014;
  background: var(--accent-green);
}

.schedule-row.full em {
  font-family: var(--font-code);
  background: rgba(255,255,255,.12);
  color: var(--text-soft);
}

/* SECCIONES CON IMAGEN */

.feature-media {
  border: 1px solid rgba(57,255,136,.14);
  box-shadow:
    0 45px 130px rgba(0,0,0,.45),
    0 0 50px rgba(0,229,255,.08);
}

.feature-copy {
  position: relative;
}

.feature-copy::before {
  content: "function learnByDoing() {";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--accent-green);
  border: 1px solid rgba(57,255,136,.22);
  background: rgba(57,255,136,.045);
}

.feature-copy::after {
  content: "}";
  display: block;
  margin-top: 18px;
  font-family: var(--font-code);
  color: rgba(57,255,136,.55);
}

/* FAQ */

.pro-faq summary {
  color: var(--text-main);
}

.pro-faq summary::before {
  content: "+ ";
  color: var(--accent-green);
  font-family: var(--font-code);
}

/* FOOTER */

footer {
  border-top: 1px solid rgba(57,255,136,.12);
  background: rgba(5,7,12,.92);
  color: var(--text-muted);
  font-family: var(--font-code);
}

/* SELECCIÓN */

::selection {
  background: rgba(57,255,136,.28);
  color: white;
}

/* MOBILE */

@media (max-width: 900px) {
  .hero-content h1,
  .pro-page-hero h1,
  .pro-section-head h2,
  .feature-copy h2,
  .pro-info-split h2 {
    letter-spacing: -2.4px;
  }

  .hero-content::before {
    font-size: 11px;
  }

  .feature-copy::before,
  .feature-copy::after {
    display: none;
  }
}
/* ===================================================== */
/* SYNTAX HIGHLIGHT COLOR SYSTEM                         */
/* ===================================================== */

:root {
  --code-keyword: #c084fc;
  --code-function: #39ff88;
  --code-string: #facc15;
  --code-number: #38bdf8;
  --code-tag: #ff4fd8;
  --code-comment: #7c8aa5;
  --code-cyan: #00e5ff;
}

/* Gradientes animados en textos importantes */
.hero-content h1 span,
.pro-page-hero h1 span,
.price-card h2 {
  background: linear-gradient(
    90deg,
    var(--code-function),
    var(--code-cyan),
    var(--code-keyword),
    var(--code-tag),
    var(--code-function)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: codeGradient 7s ease infinite;
}

@keyframes codeGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Etiquetas tipo código */
.eyebrow,
.level-badge {
  color: var(--code-function) !important;
  border-color: rgba(57,255,136,.28) !important;
  background:
    linear-gradient(90deg, rgba(57,255,136,.08), rgba(0,229,255,.055)) !important;
}

/* Alternar colores por secciones como si fueran tokens */
.tech-pill:nth-child(1) h3::before,
.premium-card:nth-child(1) h3::before,
.pro-detail-grid article:nth-child(1) h3::before {
  content: "function ";
  color: var(--code-function);
}

.tech-pill:nth-child(2) h3::before,
.premium-card:nth-child(2) h3::before,
.pro-detail-grid article:nth-child(2) h3::before {
  content: "const ";
  color: var(--code-keyword);
}

.tech-pill:nth-child(3) h3::before,
.premium-card:nth-child(3) h3::before,
.pro-detail-grid article:nth-child(3) h3::before {
  content: "return ";
  color: var(--code-string);
}

.tech-pill:nth-child(4) h3::before {
  content: "class ";
  color: var(--code-tag);
}

/* Cards con borde de color alternado */
.tech-pill:nth-child(1),
.pro-course-level:nth-child(1),
.pro-detail-grid article:nth-child(1),
.schedule-card:nth-child(1) {
  border-color: rgba(57,255,136,.22);
}

.tech-pill:nth-child(2),
.pro-course-level:nth-child(2),
.pro-detail-grid article:nth-child(2),
.schedule-card:nth-child(2) {
  border-color: rgba(0,229,255,.22);
}

.tech-pill:nth-child(3),
.pro-detail-grid article:nth-child(3),
.schedule-card:nth-child(3) {
  border-color: rgba(192,132,252,.22);
}

.tech-pill:nth-child(4),
.schedule-card:nth-child(4) {
  border-color: rgba(255,79,216,.22);
}

/* Números tipo variables */
.level-number {
  background: linear-gradient(
    180deg,
    var(--code-cyan),
    var(--code-keyword)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .75;
}

/* Horarios con colores más de programación */
.schedule-row strong {
  color: var(--code-number) !important;
}

.schedule-row span {
  color: #cbd5e1 !important;
}

.schedule-row span::before {
  content: "{ ";
  color: var(--code-comment);
}

.schedule-row span::after {
  content: " }";
  color: var(--code-comment);
}

.schedule-row.available em {
  background: linear-gradient(135deg, var(--code-function), var(--code-cyan)) !important;
  color: #031014 !important;
}

/* FAQ estilo consola */
.pro-faq summary::before {
  content: "$ ";
  color: var(--code-function);
  font-family: var(--font-code);
}

.pro-faq details[open] summary {
  color: var(--code-cyan);
}

/* Botones con efecto de comando */
.btn-primary::before,
.pro-course-level a::before,
.price-card a::before {
  content: "> ";
  color: #031014;
}

/* Pequeño efecto glow vivo */
.btn-primary,
.pro-course-level a,
.price-card a {
  animation: buttonPulse 4s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow:
      0 0 24px rgba(57,255,136,.22),
      0 0 48px rgba(0,229,255,.12);
  }

  50% {
    box-shadow:
      0 0 34px rgba(57,255,136,.36),
      0 0 70px rgba(0,229,255,.22);
  }
}
/* ===================================================== */
/* MOBILE FIX · EXABYTE ACADEMY                          */
/* Corrige header, hero, botones, 3D y secciones en cel   */
/* ===================================================== */

@media (max-width: 768px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background:
      radial-gradient(circle at 50% 12%, rgba(57,255,136,.13), transparent 32%),
      radial-gradient(circle at 60% 45%, rgba(0,229,255,.10), transparent 34%),
      linear-gradient(180deg, #05070c 0%, #07101d 55%, #05070c 100%);
  }

  /* NAVBAR MOBILE */
  .navbar {
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    border-radius: 0;
    padding: 18px 22px;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    font-size: 24px;
    white-space: nowrap;
    letter-spacing: -1.4px;
  }

  .logo span {
    font-size: inherit;
  }

  /*
    En mobile saco el botón del header porque rompe el espacio.
    Ya queda el botón grande dentro del hero.
  */
  .navbar > .btn-primary {
    display: none !important;
  }

  .navbar nav {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 24px;
    background: rgba(5, 7, 12, .96);
    border-bottom: 1px solid rgba(57,255,136,.18);
    backdrop-filter: blur(22px);
    display: none;
    flex-direction: column;
    gap: 18px;
    z-index: 999;
  }

  .navbar nav.active,
  .navbar nav.open,
  .navbar.active nav {
    display: flex;
  }

  .navbar nav a {
    font-size: 18px;
    padding: 12px 0;
  }

  .menu-toggle,
  .hamburger {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  /* HERO MOBILE */
  .hero {
    min-height: auto;
    padding: 135px 22px 50px;
    display: block;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    text-align: center;
    transform: none !important;
  }

  .hero-content::before {
    margin: 0 auto 28px;
    max-width: 92%;
    font-size: 12px;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: clamp(54px, 17vw, 78px);
    line-height: .92;
    letter-spacing: -3.8px;
    margin-bottom: 28px;
  }

  .hero-content p {
    font-size: 20px;
    line-height: 1.65;
    max-width: 100%;
    margin: 0 auto 34px;
  }

  .hero-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .hero-buttons a,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-height: 70px;
    padding: 16px 14px !important;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
  }

  /* PANEL 3D */
  .robot-stage {
    display: none !important;
  }

  /*
    Lo oculto en celular porque en la captura queda como un bloque vacío gigante.
    En escritorio sigue funcionando normal.
  */

  /* TIRAS Y CARDS */
  .tech-strip {
    padding: 45px 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tech-pill,
  .premium-card,
  .pro-course-level,
  .schedule-card,
  .price-card,
  .pro-detail-grid article,
  .pro-faq details {
    border-radius: 24px;
    padding: 28px 24px;
  }

  .tech-pill h3,
  .premium-card h3,
  .pro-course-level h3,
  .schedule-card h3,
  .pro-detail-grid h3 {
    font-size: 25px;
    line-height: 1.15;
  }

  .tech-pill p,
  .premium-card p,
  .pro-course-level p,
  .schedule-card p,
  .pro-detail-grid p {
    font-size: 18px;
    line-height: 1.65;
  }

  /* SECCIONES GENERALES */
  .pro-page-hero,
  .pro-courses-home,
  .pro-schedule-section,
  .pro-price-section,
  .pro-faq,
  .feature-split,
  .pro-info-split,
  .premium-grid,
  .pro-detail-grid {
    padding-left: 22px;
    padding-right: 22px;
  }

  .pro-page-hero {
    padding-top: 135px;
    padding-bottom: 60px;
    text-align: center;
  }

  .pro-page-hero h1 {
    font-size: clamp(48px, 15vw, 72px);
    line-height: .95;
    letter-spacing: -3px;
  }

  .pro-page-hero p {
    font-size: 19px;
    line-height: 1.65;
  }

  .pro-info-split,
  .feature-split {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .feature-split {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .feature-media {
    width: 100%;
    min-height: 300px;
    height: 300px;
    border-radius: 26px;
    background-size: cover;
    background-position: center;
  }

  .feature-copy h2,
  .pro-info-split h2,
  .pro-section-head h2 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: .95;
    letter-spacing: -2.5px;
  }

  .feature-copy p,
  .pro-copy-block p,
  .pro-section-head p {
    font-size: 18px;
    line-height: 1.65;
  }

  .pro-detail-grid,
  .premium-grid,
  .pro-course-levels,
  .pro-schedule-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  /* HORARIOS / EVENTOS */
  .schedule-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .schedule-row strong {
    font-size: 18px;
  }

  .schedule-row span {
    font-size: 16px;
    line-height: 1.45;
  }

  .schedule-row span::before,
  .schedule-row span::after {
    display: none;
  }

  .schedule-row em {
    width: fit-content;
    padding: 7px 12px;
    font-size: 12px;
  }

  /* PRECIO / CTA */
  .price-card {
    width: 100%;
    max-width: 100%;
  }

  .price-card h2 {
    font-size: clamp(42px, 13vw, 62px);
    line-height: 1;
  }

  .price-note {
    font-size: 15px;
    line-height: 1.45;
  }

  footer {
    padding: 35px 22px;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
  }
}

@media (max-width: 420px) {

  .logo {
    font-size: 21px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-content h1 {
    font-size: clamp(48px, 16vw, 64px);
  }

  .hero-content p {
    font-size: 18px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .hero-buttons a,
  .btn-primary,
  .btn-secondary {
    min-height: 64px;
    font-size: 14px;
    border-radius: 17px;
  }

  .pro-page-hero,
  .pro-courses-home,
  .pro-schedule-section,
  .pro-price-section,
  .pro-faq,
  .feature-split,
  .pro-info-split,
  .premium-grid,
  .pro-detail-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .feature-media {
    height: 260px;
    min-height: 260px;
  }
}
/* ===================================================== */
/* HEADER MOBILE FIX                                     */
/* ===================================================== */

.menu-toggle {
  display: none;
}

.logo {
  text-decoration: none;
}

@media (max-width: 768px) {

  .navbar {
    width: 100%;
    height: 86px;
    min-height: 86px;
    padding: 0 22px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar .logo {
    font-size: 25px;
    line-height: 1;
    white-space: nowrap;
    flex: 1;
  }

  .navbar .header-inscripcion {
    display: none !important;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    padding: 0;
    margin-left: 14px;
    z-index: 1002;
  }

  .menu-toggle span {
    display: block;
    width: 34px;
    height: 3px;
    border-radius: 99px;
    background: #f4f7fb;
    box-shadow: 0 0 12px rgba(0, 229, 255, .45);
  }

  .navbar nav {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 24px 22px 30px;
    background: rgba(5, 7, 12, .97);
    border-top: 1px solid rgba(57,255,136,.12);
    border-bottom: 1px solid rgba(57,255,136,.18);
    backdrop-filter: blur(22px);
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
  }

  .navbar nav.active {
    display: flex;
  }

  .navbar nav a {
    width: 100%;
    padding: 15px 0;
    font-size: 17px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  .navbar nav a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 420px) {

  .navbar {
    padding: 0 18px;
  }

  .navbar .logo {
    font-size: 22px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .menu-toggle span {
    width: 31px;
  }
}