/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

a {
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: auto;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.9);
  transition: 0.3s ease;
}

.header.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 35px rgba(15,23,42,0.08);
}

.header .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: -0.7px;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header nav a {
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  position: relative;
}

.header nav a::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 0;
  left: 0;
  bottom: -7px;
  background: #2563eb;
  transition: 0.3s;
}

.header nav a:hover {
  color: #2563eb;
}

.header nav a:hover::after {
  width: 100%;
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, #10b981, #22c55e);
  color: white;
  padding: 13px 24px;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 12px 28px rgba(16,185,129,0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(16,185,129,0.36);
}

.btn-secondary {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  color: white;
  font-weight: 800;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  color: white;
  padding: 105px 0 95px;
  background:
    radial-gradient(circle at 80% 20%, rgba(16,185,129,0.35), transparent 28%),
    radial-gradient(circle at 15% 80%, rgba(124,58,237,0.45), transparent 30%),
    linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.18;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255,255,255,0.13);
  right: -180px;
  top: -190px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero h2 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.03;
  letter-spacing: -2.5px;
  margin-bottom: 22px;
  font-weight: 800;
}

.hero p {
  font-size: 19px;
  max-width: 620px;
  color: #e0f2fe;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* SECTIONS */
.section {
  padding: 82px 0;
}

.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 42px;
  color: #0f172a;
}

/* STATS */
.stats {
  background: #0f172a;
  color: white;
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: center;
}

.stats-grid div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 26px;
  border-radius: 20px;
}

.stats h3 {
  color: #10b981;
  font-size: 34px;
  margin-bottom: 5px;
}

.stats p {
  color: #cbd5e1;
  font-weight: 700;
}

/* COURSE */
.curso-destacado {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  background: white;
  padding: 34px;
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(15,23,42,0.08);
  border: 1px solid #e2e8f0;
  transition: 0.4s ease;
}

.curso-destacado:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(15,23,42,0.13);
}

.curso-info h3 {
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  color: #0f172a;
}

.curso-info p {
  color: #475569;
  font-size: 16px;
  margin-bottom: 20px;
}

.curso-detalles {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.curso-detalles li {
  background: #f1f5f9;
  padding: 13px 15px;
  border-radius: 14px;
  color: #334155;
  font-weight: 700;
  border-left: 4px solid #10b981;
}

.curso-img img {
  width: 100%;
  display: block;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(15,23,42,0.16);
}

/* BENEFITS */
.beneficios {
  background: #eef2ff;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.beneficio-card {
  position: relative;
  background: rgba(255,255,255,0.88);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 45px rgba(15,23,42,0.06);
  transition: 0.35s;
  overflow: hidden;
}

.beneficio-card::before {
  content: "";
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: block;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 12px 28px rgba(37,99,235,0.25);
}

.beneficio-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -50px;
  top: -50px;
  background: rgba(16,185,129,0.12);
  border-radius: 50%;
}

.beneficio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(15,23,42,0.12);
}

.beneficio-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
  color: #0f172a;
}

.beneficio-card p {
  color: #475569;
}

/* REQUIREMENTS */
.requisitos-card {
  background:
    radial-gradient(circle at top right, rgba(16,185,129,0.35), transparent 25%),
    linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  padding: 48px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 24px 65px rgba(37,99,235,0.22);
}

.requisitos-card h2 {
  font-size: 34px;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.requisitos-items {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.req-box {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 17px 22px;
  border-radius: 16px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

/* CTA */
.cta {
  text-align: center;
  background: white;
}

.cta h2 {
  font-size: 36px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.cta p {
  color: #475569;
  margin-bottom: 24px;
}

/* FOOTER */
.footer {
  background: #020617;
  color: #94a3b8;
  padding: 56px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer h3,
.footer h4 {
  color: white;
  margin-bottom: 14px;
}

.footer p {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 34px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 5000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  width: min(540px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  transform: scale(0.94);
  opacity: 0;
  transition: 0.25s ease;
}

.modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 28px;
  color: #64748b;
}

.modal-content h2 {
  margin-bottom: 22px;
  color: #0f172a;
}

form {
  clear: both;
}

form label {
  display: block;
  font-weight: 800;
  color: #334155;
  margin: 12px 0 7px;
}

form input,
form button {
  width: 100%;
  margin-bottom: 13px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font: inherit;
}

form input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.14);
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .header nav a {
    display: none;
  }

  .curso-destacado,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .beneficios-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 82px 0 72px;
  }

  .hero h2 {
    font-size: 38px;
  }
}

@media (max-width: 520px) {
  .header .container {
    min-height: 68px;
  }

  .logo {
    font-size: 18px;
  }

  .header .btn-primary {
    padding: 10px 14px;
    font-size: 13px;
  }

  .section {
    padding: 62px 0;
  }

  .curso-destacado {
    padding: 22px;
  }

  .curso-info h3 {
    font-size: 28px;
  }

  .requisitos-card {
    padding: 30px 20px;
  }
}

.optional {
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
}

.logo img {
  height: 65px;
  width: auto;
  display: block;
}

.mensaje-form {
  margin-top: 12px;
  font-weight: 800;
  text-align: center;
}