/* ===== RESET & TOKENS ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --docker-sky: #0DB7ED;
  --docker-deep: #1D63ED;
  --midnight: #0F172A;
  --ice: #F0F9FF;
  --white: #FFFFFF;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --border: #E2E8F0;
  --font-display: 'JetBrains Mono', monospace;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--midnight);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.accent {
  color: var(--docker-sky);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  height: 60px;
  width: auto;
  border-radius: 3px;
}

.nav-institution {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
  line-height: 1.3;
}

.navbar.scrolled .nav-institution {
  color: var(--midnight);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar.scrolled .nav-links a {
  color: var(--slate);
}

.nav-links a:hover {
  color: var(--docker-sky);
}

.btn-inscribirse {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, #00e0ff 0%, var(--docker-sky) 40%, var(--docker-deep) 100%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.8rem 1.9rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(13, 183, 237, 0.25), 0 6px 24px rgba(13, 183, 237, 0.45);
  transition: box-shadow 0.2s, transform 0.2s, opacity 0.2s;
  animation: btn-pulse 2.2s ease-in-out infinite;
}

.btn-inscribirse:hover {
  box-shadow: 0 0 0 4px rgba(13, 183, 237, 0.4), 0 10px 32px rgba(13, 183, 237, 0.65);
  transform: translateY(-2px) scale(1.04);
  opacity: 1;
  animation: none;
}

@keyframes btn-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(13, 183, 237, 0.25), 0 6px 24px rgba(13, 183, 237, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(13, 183, 237, 0.35), 0 8px 32px rgba(13, 183, 237, 0.6);
  }
}

.btn-inscribirse:focus-visible {
  outline: 3px solid var(--docker-sky);
  outline-offset: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 10rem 2rem 6rem;
  background: linear-gradient(135deg, var(--midnight) 0%, #162554 50%, var(--docker-deep) 100%);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.layer {
  position: absolute;
  border-radius: 20px;
  border: 1px solid rgba(13, 183, 237, 0.15);
  background: rgba(13, 183, 237, 0.03);
}

.layer--1 {
  width: 600px;
  height: 400px;
  top: 10%;
  right: -5%;
  transform: rotate(-6deg);
  animation: layerFloat 8s ease-in-out infinite;
}

.layer--2 {
  width: 500px;
  height: 350px;
  top: 25%;
  right: 5%;
  transform: rotate(-3deg);
  animation: layerFloat 8s ease-in-out infinite 1s;
}

.layer--3 {
  width: 400px;
  height: 300px;
  top: 40%;
  right: 12%;
  transform: rotate(0deg);
  animation: layerFloat 8s ease-in-out infinite 2s;
}

@keyframes layerFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, -6deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, -6deg)); }
}

.layer--1 { --r: -6deg; }
.layer--2 { --r: -3deg; }
.layer--3 { --r: 0deg; }

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--docker-sky);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.3s;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  max-width: 440px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.hero-tagline::after {
  content: '▌';
  color: var(--docker-sky);
  margin-left: 3px;
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-stats {
  display: flex;
  gap: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.5s;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--docker-sky);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--slate-light);
  margin-top: 0.25rem;
}

.hero-terminal {
  background: var(--midnight);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.82rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(13, 183, 237, 0.1);
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.5s;
}

.terminal-bar {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #FF5F56; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #27C93F; }

.terminal-title {
  color: var(--slate);
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem;
  color: #CBD5E1;
  line-height: 2;
}

.terminal-prompt {
  color: var(--docker-sky);
  margin-right: 0.5rem;
}

.terminal-highlight {
  color: var(--docker-sky);
}

.terminal-output {
  color: var(--slate);
}

.terminal-success {
  color: #27C93F;
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 2rem;
}

.section--ice {
  background: var(--ice);
}

.section--cta {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--docker-deep) 100%);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--docker-sky);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--slate);
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* ===== OBJECTIVE ===== */
.objective-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.objective-header .section-title {
  font-size: 1.8rem;
}

.objective-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.objective-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.objective-card:hover {
  border-color: var(--docker-sky);
  box-shadow: 0 0 0 3px rgba(13, 183, 237, 0.08);
}

.objective-icon {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--docker-sky);
  display: block;
  margin-bottom: 0.5rem;
}

.objective-card p {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.5;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 4rem;
}

.timeline-line {
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-marker {
  position: absolute;
  left: -4rem;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--slate);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  z-index: 1;
}

.timeline-item:hover .timeline-marker {
  border-color: var(--docker-sky);
  color: var(--docker-sky);
}

.timeline-item--final .timeline-marker {
  background: var(--docker-sky);
  border-color: var(--docker-sky);
  color: var(--white);
}

.timeline-content {
  background: var(--white);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.timeline-content:hover {
  border-color: var(--docker-sky);
  box-shadow: 0 4px 12px rgba(13, 183, 237, 0.08);
}

.timeline-item--final .timeline-content {
  border-color: var(--docker-sky);
  background: linear-gradient(135deg, rgba(13, 183, 237, 0.04) 0%, rgba(29, 99, 237, 0.04) 100%);
}

.timeline-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.module-hours {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--docker-sky);
  font-weight: 500;
}

.module-objectives {
  list-style: none;
  margin-top: 0.75rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.timeline-content.active .module-objectives {
  max-height: 200px;
  opacity: 1;
}

.module-objectives li {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.module-objectives li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--docker-sky);
}

/* ===== SCHEDULE ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.schedule-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.schedule-card:hover {
  border-color: var(--docker-sky);
  box-shadow: 0 4px 12px rgba(13, 183, 237, 0.06);
}

.schedule-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--docker-sky);
  min-width: 1.5rem;
  padding-top: 0.1rem;
}

.schedule-card p {
  font-size: 0.9rem;
  color: var(--midnight);
  line-height: 1.5;
}

/* ===== DOCENTE ===== */
.docente-card {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
}

.docente-name {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--midnight);
  margin-bottom: 0.35rem;
}

.docente-role {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--docker-sky);
  margin-bottom: 1.25rem;
}

.docente-bio {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.docente-bio:last-child {
  margin-bottom: 0;
}

.docente-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.docente-tags li {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--docker-deep);
  background: var(--ice);
  border: 1px solid rgba(13, 183, 237, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* ===== RESOURCES ===== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
  border-color: var(--docker-sky);
  box-shadow: 0 4px 12px rgba(13, 183, 237, 0.06);
}

.resource-icon {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.75rem;
}

.resource-card h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.resource-card a {
  color: var(--docker-sky);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.resource-card a:hover {
  color: var(--docker-deep);
}

.resource-card p {
  font-size: 0.85rem;
  color: var(--slate);
}

/* ===== CTA ===== */
.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--slate-light);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 2rem;
  background: var(--midnight);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  border-radius: 3px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
}

.footer-copy {
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: var(--slate);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero {
    min-height: auto;
    padding: 8rem 2rem 4rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .layer--1,
  .layer--2,
  .layer--3 {
    display: none;
  }

  .objective-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .objective-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .btn-inscribirse {
    font-size: 0.7rem;
    padding: 0.55rem 1.1rem;
  }

  .nav-logo-img {
    height: 60px;
  }

  .nav-institution {
    font-size: 0.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
  font-size: 0.9rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .timeline {
    padding-left: 3rem;
  }

  .timeline-marker {
    left: -3rem;
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.6rem;
  }

  .objective-cards {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
  }

  .docente-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
