/* ========================= */
/* IMPORT BASES             */
/* ========================= */

@import url('./variables.css');
@import url('./reset.css');

/* ========================= */
/* LAYOUT GLOBAL            */
/* ========================= */

body {
  background: radial-gradient(circle at top, #0b1120 0%, #050816 60%);
  overflow-x: hidden;
}

/* CONTENEDOR GENERAL */
section {
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

/* ========================= */
/* TEXTO BASE               */
/* ========================= */

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--text);
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================= */
/* BOTONES PREMIUM          */
/* ========================= */

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 12px 24px;
  border-radius: var(--radius-md);
  color: #000;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,168,255,0.6);
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  color: var(--text);
  backdrop-filter: blur(10px);
  background: var(--glass);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* ========================= */
/* NAVBAR                  */
/* ========================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;

  background: transparent;
  transition: var(--transition);
}

/* navbar scrolled */
.navbar.scrolled {
  background: rgba(5, 8, 22, 0.7);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 2px;
}

.logo span {
  color: var(--primary);
}

.navbar nav {
  display: flex;
  gap: 25px;
}

.navbar nav a {
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition-fast);
}

.navbar nav a:hover {
  color: var(--primary);
}

/* ========================= */
/* HERO                     */
/* ========================= */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-top: 80px;
}

/* THREE JS BACKGROUND */
#three-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 60px;
  line-height: 1.1;
}

.hero-content h1 span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  margin-top: 15px;
  font-size: 16px;
}

/* HERO BUTTONS */
.hero-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

/* GLOW BACKGROUND */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,168,255,0.2), transparent 70%);
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  filter: blur(40px);
  z-index: 0;
}

/* ========================= */
/* SECCIONES BASE          */
/* ========================= */

.section-title {
  font-size: 32px;
  margin-bottom: var(--space-lg);
}

/* ========================= */
/* STATS                   */
/* ========================= */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat h2 {
  font-size: 40px;
  color: var(--primary);
}

/* ========================= */
/* COURSES GRID            */
/* ========================= */

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.course-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
/* ========================= */
/* LNR SECTION              */
/* ========================= */

.lnr {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,168,255,0.05), transparent);
}

.lnr p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
}

/* ========================= */
/* LABORATORIO             */
/* ========================= */

.lab {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lab p {
  max-width: 800px;
  margin-top: 10px;
}

/* ========================= */
/* CONTACTO                */
/* ========================= */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input,
.contact textarea {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 14px;
  border-radius: var(--radius-md);
  color: var(--text);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* botón form */
.contact button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
}

.contact button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ========================= */
/* FOOTER                  */
/* ========================= */

footer {
  text-align: center;
  padding: var(--space-lg);
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

/* ========================= */
/* MICRO ANIMACIONES BASE  */
/* ========================= */

/* aparición suave general */
section {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= */
/* HOVER GLOBAL CARDS      */
/* ========================= */

.course-card,
.stat,
.contact form,
.lab {
  will-change: transform;
}

/* ========================= */
/* EFECTO GLASS GLOBAL     */
/* ========================= */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
}

/* ========================= */
/* RESPONSIVE BASE (inicio) */
/* ========================= */

@media (max-width: 1024px) {

  .hero-content h1 {
    font-size: 45px;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .navbar nav {
    display: none;
  }

  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
.navbar nav a.active {
  color: var(--primary);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .navbar nav {
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--bg-2);
    flex-direction: column;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    display: none;
  }

  .navbar nav.open {
    display: flex;
  }
}

/* ========================= */
/* LOADER VISUAL           */
/* ========================= */

.loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0B1120, #050816);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.loader-logo {
  font-family: var(--font-title);
  font-size: 28px;
  letter-spacing: 4px;
  margin-bottom: 20px;
  color: var(--text);
}

.loader-bar {
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-glow);
  transition: width 0.2s ease;
}

.loader.hide {
  opacity: 0;
  pointer-events: none;
}

/* asegurar capas correctas */
body {
  position: relative;
}

/* canvas partículas detrás de todo */
canvas {
  opacity: 0.8;
  mix-blend-mode: screen;
}

/* canvas three.js */
#three-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(0,168,255,0.3));
}

/* ========================= */
/* GALLERY GRID             */
/* ========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  transform: scale(0.95);
}

.gallery-item.show {
  opacity: 1;
  transform: scale(1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ========================= */
/* FILTER BUTTONS           */
/* ========================= */

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
}

/* ========================= */
/* LIGHTBOX                 */
/* ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.lightbox img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 30px;
  color: white;
  cursor: pointer;
}
body {
  overflow-x: hidden;
  background: #050816;
}

#three-container,
canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.hero,
.navbar,
section {
  position: relative;
  z-index: 2;
}

.loader {
  z-index: 99999;
}

.cursor,
.cursor-follower {
  z-index: 99999;
}
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/components.css">
<link rel="stylesheet" href="assets/css/animations.css">
<link rel="stylesheet" href="assets/css/responsive.css">
.gallery-item {
  opacity: 1;
  transform: scale(1);
}
/* HERO PARA PÁGINAS INTERNAS */

.small-hero{
    min-height: 320px;
    height: 320px;

    display:flex;
    align-items:flex-end;

    padding-bottom:60px;
}

.small-hero .hero-content{
    max-width:700px;
}

.small-hero h1{
    font-size:72px;
    margin-bottom:15px;
}

.small-hero p{
    font-size:20px;
}