:root {
  --primary: #b30000;   /* rojo FUNDEC */
  --elite: #0a1f44;     /* azul elite */
  --accent: #f0ad4e;    /* dorado acento */
  --dark: #0a0a0a;
  --gray: #bfbfbf;
  --light: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #07080e;
  color: var(--light);
  min-height: 100vh;
  line-height: 1.6;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSoft {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(-12px) translateX(6px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

section, .site-header, footer {
  opacity: 0;
  animation: fadeUp 0.75s ease forwards;
}

.site-header {
  animation-delay: 0.1s;
}
section:nth-of-type(1) {
  animation-delay: 0.18s;
}
section:nth-of-type(2) {
  animation-delay: 0.26s;
}
section:nth-of-type(3) {
  animation-delay: 0.34s;
}
section:nth-of-type(4) {
  animation-delay: 0.42s;
}
section:nth-of-type(5) {
  animation-delay: 0.5s;
}
section:nth-of-type(6) {
  animation-delay: 0.58s;
}
section:nth-of-type(7) {
  animation-delay: 0.66s;
}
section:nth-of-type(8) {
  animation-delay: 0.74s;
}
footer {
  animation-delay: 0.84s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  section, .site-header, footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  min-height: 62px;
  background: rgba(220, 16, 16, 0.36);
  backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 80, 80, 0.18);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.20);
}
[id]:not(#top) {
  scroll-margin-top: 60px;
}
#inscripcion {
  scroll-margin-top: 110px;
}
.site-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-shrink: 0;
}
.brand-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  flex-shrink: 0;
}
.site-header .brand-logo {
  width: auto;
  max-width: 600px;
  max-height: 110px;
  height: auto;
  filter: brightness(1.1) drop-shadow(0 0 16px rgba(240,173,78,0.24));
}
.hero-logo {
  margin: 0 auto 12px;
  max-width: 520px;
}
.hero-logo .brand-logo {
  width: auto;
  max-width: 520px;
  max-height: 110px;
  height: auto;
  filter: brightness(1.1) drop-shadow(0 0 16px rgba(240,173,78,0.24));
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: center;
  text-align: center;
}
.brand-name {
  color: var(--light);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  display: none;
}
.brand-tag {
  color: rgba(255,255,255,0.78);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 500;
  line-height: 1.5;
}
.brand-tag {
  display: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.site-nav a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.25s ease, color 0.25s ease;
}
.site-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}
.site-nav a.nav-cta {
  padding: 10px 18px;
  background: var(--accent);
  border-radius: 999px;
  color: var(--dark);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 16px 26px rgba(240,173,78,0.16);
}
.site-nav a.nav-cta:hover {
  transform: translateY(-2px);
}
.site-nav a.nav-portal {
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--light);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s;
}
.site-nav a.nav-portal:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* MENÚ HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
  min-height: 48vh;
  background: linear-gradient(180deg, rgba(179, 0, 0, 0.08) 0%, rgba(10,31,68,0.92) 35%, rgba(7, 8, 14, 0.98) 100%),
    url('assets/fondo.png') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 48px 40px 72px;
  overflow: hidden;
}
.hero-logo {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 760px;
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
}
.hero-logo .brand-logo {
  width: auto;
  max-width: 760px;
  max-height: 160px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 1;
}
.hero::before {
  top: 10%;
  left: 4%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(240,173,78,0.25) 0%, transparent 72%);
  animation: floatSoft 18s ease-in-out infinite alternate;
}
.hero::after {
  bottom: 12%;
  right: 6%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 68%);
  animation: floatSoft 22s ease-in-out infinite alternate-reverse;
}
.overlay {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy {
  text-align: left;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px 30px;
  border-radius: 999px;
  background: rgba(179, 0, 0, 0.36);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 28px 68px rgba(179, 0, 0, 0.25);
  animation: glowPulse 5.5s ease-in-out infinite;
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}
.hero-tagline {
  margin-bottom: 16px;
  color: #f7f0c4;
  font-size: 1.05rem;
  max-width: 740px;
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1.7;
}
.hero h1 {
  font-size: clamp(3rem, 4vw, 5rem);
  font-weight: 800;
  margin-bottom: 24px;
  margin-top: -12px;
  max-width: 720px;
  text-align: center;
}
.hero p {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(240,173,78,0.65);
  outline-offset: 4px;
}
.btn-primary {
  background: var(--accent);
  color: var(--dark);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--light);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-stats {
  display: grid;
  gap: 18px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 26px;
  color: var(--light);
}
.stat-card strong {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.stat-card span {
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

/* BLOQUES */
.block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  align-items: center;
}
.block.reverse { grid-template-areas: "img text"; }
.block.reverse .block-img { grid-area: img; }
.block.reverse .block-text { grid-area: text; }
.block-text {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.block-text h2 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: clamp(2rem, 2.6vw, 3rem);
}
.block-text p {
  color: var(--gray);
  margin-bottom: 15px;
  line-height: 1.9;
  max-width: 620px;
}
.block-img {
  min-height: 420px;
  position: relative;
}
.block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.35);
}

.block-img img.aula {
  filter: brightness(0.9) saturate(1.05);
  transition: transform 0.6s ease-in-out, filter 0.6s ease-in-out;
}
.block-img img.aula:hover {
  transform: scale(1.03);
  filter: brightness(1);
}

/* SECCIONES */
.content {
  padding: 100px 60px;
  max-width: 1140px;
  margin: auto;
}
.content h2 {
  color: var(--accent);
  margin-bottom: 30px;
  font-size: clamp(2rem, 2.8vw, 3rem);
}
.content p {
  color: var(--gray);
  margin-bottom: 15px;
}

.content.dark {
  background: #07080e;
  border-radius: 28px;
  padding: 80px 60px;
}

/* VALORES */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.value-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(240,173,78,0.18);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,173,78,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.value-card h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 700;
}
.value-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

/* IMAGEN FULL */
.image-full {
  height: 60vh;
  background: url('assets/estudiantes.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  border-radius: 24px;
  overflow: hidden;
  margin: 60px 0;
}
.image-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,8,14,0.15), rgba(7,8,14,0.75));
}
.image-full.small { height: 45vh; }
.image-full h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 3vw, 3.5rem);
  color: var(--light);
  max-width: 800px;
}

/* CONTACTO INSTITUCIONAL en blanco */
.content.contacto-horizontal {
  background: rgba(255,255,255,0.05);
  color: var(--light);
  border-radius: 24px;
  padding: 60px;
  border: 1px solid rgba(255,255,255,0.08);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card {
  padding: 34px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.contact-card-highlight {
  background: linear-gradient(180deg, rgba(240,173,78,0.16), rgba(179,0,0,0.12));
}
.contact-card h3,
.contact-card h2 {
  margin-bottom: 18px;
}
.contact-card p {
  color: rgba(255,255,255,0.76);
}
.highlight-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.highlight-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.contact-note {
  margin-top: 24px;
  color: rgba(255,255,255,0.7);
}

/* FORMULARIO en blanco */
.form-header {
  max-width: 760px;
  margin-bottom: 30px;
}
.form-header p {
  color: var(--gray);
  font-size: 1rem;
  max-width: 720px;
}
.formulario {
  background: rgba(255,255,255,0.06);
  color: var(--light);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.formulario label {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.formulario input,
.formulario select,
.formulario textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  color: var(--light);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
}
.formulario option {
  background: rgba(8, 16, 34, 0.98);
  color: var(--light);
}
.formulario textarea {
  min-height: 140px;
}
.formulario button {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 16px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  width: fit-content;
}
.formulario button:hover {
  background: #ffc16c;
}

/* FOOTER en rojo FUNDEC */
footer {
  text-align: center;
  padding: 50px 30px;
  background: linear-gradient(180deg, #1b0505 0%, var(--primary) 100%);
  color: var(--light);
  border-top: 6px solid var(--accent);
}
footer .direccion {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}
.social img {
  max-height: 38px;
  width: auto;
  margin: 0 10px;
  vertical-align: middle;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.social img:hover {
  transform: scale(1.18);
  filter: drop-shadow(0 0 8px var(--accent));
}

/* SECCIÓN CURSOS */
.cursos-section {
  padding: 100px 60px;
  background: #02030b;
}
.cursos-section h2 {
  color: var(--accent);
  margin-bottom: 18px;
  text-align: center;
}
.cursos-intro {
  color: rgba(255,255,255,0.72);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 42px;
  line-height: 1.8;
  font-size: 1rem;
}

/* Toggle oculto en desktop — el detalle se muestra siempre */
.curso-toggle {
  display: none;
}

.filtros-cursos {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.filtro-btn {
  padding: 12px 22px;
  border: 2px solid rgba(240,173,78,0.28);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.3s ease;
}
.filtro-btn.activo {
  background: var(--accent);
  color: var(--dark);
  border-color: rgba(255,255,255,0.1);
}
.filtro-btn:hover {
  background: rgba(240,173,78,0.2);
  color: var(--light);
}

.grid-cursos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1400px;
  margin: auto;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.curso-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08));
  border-left: 5px solid var(--primary);
  border-radius: 24px;
  padding: 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: cardEntrance 0.55s cubic-bezier(0.25, 0.85, 0.35, 1.05) forwards;
  animation-delay: var(--card-delay, 0ms);
}
.curso-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
}

.curso-card.trayecto-ia { border-left-color: #0a1f44; }
.curso-card.trayecto-marketing { border-left-color: #16a085; }
.curso-card.trayecto-cultura { border-left-color: #8e44ad; }
.curso-card.trayecto-emprendimiento { border-left-color: #d4a574; }

.curso-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 34px 90px rgba(0,0,0,0.32);
}
.curso-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.curso-card:hover::after {
  opacity: 1;
}
.curso-card:hover .curso-btn {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(240,173,78,0.18);
}
.curso-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.curso-header-text {
  flex: 1;
  min-width: 0;
}
.curso-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex: 0 0 64px;
  object-fit: contain;
  background: rgba(255,255,255,0.03);
  padding: 8px;
}
.curso-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.curso-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.curso-download:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.16);
  border-color: rgba(240,173,78,0.3);
}
.curso-btn {
  background: #ffffff;
  color: var(--dark);
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.curso-btn:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(240,173,78,0.18);
}

.curso-numero {
  font-size: 12px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.curso-trayecto {
  font-size: 11px;
  color: #a2a2a2;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.curso-card h3 {
  font-size: 1.3rem;
  color: var(--light);
  margin-bottom: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.curso-info {
  display: flex;
  gap: 15px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.curso-info-item {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.curso-info-item strong {
  color: var(--accent);
}

.curso-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 18px;
  min-height: 72px;
}

.curso-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.skill-tag {
  background: rgba(240,173,78,0.12);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(240,173,78,0.2);
}

/* Detalle siempre visible en desktop */
.curso-detalle {
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.curso-btn {
  background: #ffffff;
  color: var(--dark);
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}
.curso-btn:hover {
  background: var(--accent);
  color: var(--dark);
}

.oculto { display: none; }

/* RESPONSIVE */
@media(max-width: 900px){
  .block {
    grid-template-columns: 1fr;
  }
  .block-text, .block-img { width: 100%; }
  .block-text { padding: 40px; }
  .values { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cursos-section { padding: 60px 20px; }
  .filtros-cursos { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .content { padding: 60px 30px; }
  .content.dark { padding: 60px 30px; }
  .content.contacto-horizontal { padding: 40px 30px; }

  .curso-card:hover {
    transform: none;
    box-shadow: 0 24px 70px rgba(0,0,0,0.18);
  }

  /* Toggle visible en mobile — detalle oculto por defecto */
  .curso-toggle {
    display: block;
    width: 100%;
    background: rgba(255,255,255,0.07);
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    transition: background 0.25s ease;
  }
  .curso-toggle:hover {
    background: rgba(255,255,255,0.12);
  }
  .curso-detalle {
    max-height: 0;
  }
  .curso-card.expanded .curso-detalle {
    max-height: 2000px;
  }

  /* Menú hamburguesa mobile */
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(8, 16, 34, 0.98);
    backdrop-filter: blur(24px) saturate(1.6);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 36px;
    gap: 20px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
    z-index: 49;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-left: 0;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    font-size: 16px;
  }
}

@media(max-width: 540px){
  .content { padding: 50px 18px; }
  .content.dark { padding: 50px 18px; }
  .content.contacto-horizontal { padding: 32px 18px; }
  .cursos-section { padding: 50px 14px; }
  .block-text { padding: 32px 20px; }
  .hero { padding: 40px 20px 60px; }
  .hero-badge {
    font-size: 0.78rem;
    padding: 12px 16px;
    letter-spacing: 0.06em;
    text-align: center;
  }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .hero-stats { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .filtros-cursos { gap: 8px; }
  .filtro-btn { padding: 10px 14px; font-size: 13px; }
  .formulario { padding: 24px 18px; }
  footer { padding: 36px 18px; }
  .contact-card { padding: 22px 18px; }
  .grid-cursos { grid-template-columns: 1fr; gap: 18px; }
}

