/* ═══════════════════════════════════════════════════════════
   MEDIO CAMPO — styles.css
   Paleta: #0D141A (fondo/nav/footer) · #FFFFFF (acento/texto)
   Stack: HTML5 + CSS3 Vanilla · Mobile-first
═══════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --navy:        #0D141A;
  --navy-light:  #14202A;
  --navy-card:   #111920;
  --white:       #FFFFFF;
  --gray:        #8A97A6;
  --gray-light:  #C4CDD6;
  --border:      rgba(255, 255, 255, 0.10);
  --border-hover:rgba(255, 255, 255, 0.30);
  --radius:      0.75rem;
  --radius-lg:   1.25rem;
  --shadow:      0 8px 32px rgba(0, 0, 0, 0.45);
  --transition:  0.25s ease;
  --nav-h:       72px;
  --font:        'Inter', sans-serif;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TIPOGRAFÍA BASE ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
}

p { line-height: 1.75; }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--navy-light);
}

/* ── COMPONENTE: SECTION HEADER ─────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.3rem 1rem;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ── COMPONENTE: BOTONES ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-primary:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-light);
  padding: 0.4rem 0.85rem;
  border-radius: 0.4rem;
  transition: color var(--transition), background var(--transition);
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.5rem 1rem 1rem;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
}

.navbar__mobile-menu.open {
  display: flex;
}

.navbar__mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-light);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.navbar__mobile-menu a:last-child {
  border-bottom: none;
}

.navbar__mobile-menu a:hover,
.navbar__mobile-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

/* ── HERO (index.html) ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,20,26,0.82) 0%,
    rgba(13,20,26,0.65) 50%,
    rgba(13,20,26,0.92) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 1.5rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.3rem 1.1rem;
  margin-bottom: 1.75rem;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero__title span {
  color: var(--gray-light);
}

.hero__tagline {
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 600;
  color: var(--gray-light);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards de niveles en home */
.levels-section {
  padding: 6rem 0;
  background: var(--navy-light);
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.level-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
  display: block;
}

.level-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.level-card__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.level-card:hover .level-card__img {
  transform: scale(1.04);
}

.level-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(13,20,26,0.97) 0%, rgba(13,20,26,0.6) 70%, transparent 100%);
}

.level-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 0.4rem;
}

.level-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.level-card__desc {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.level-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid var(--border-hover);
  padding-bottom: 1px;
  transition: border-color var(--transition);
}

.level-card:hover .level-card__link {
  border-color: var(--white);
}

/* ── PÁGINA DE CURSOS (iniciacion.html, etc.) ───────────────── */
.page-hero {
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 540px;
  margin: 0 auto;
}

/* Grid de cursos */
.courses-section {
  padding: 5rem 0 6rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

@media (min-width: 961px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.course-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.course-card:hover .course-card__img {
  transform: scale(1.04);
}

.course-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card__category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.6rem;
}

.course-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.course-card__desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.course-card__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.course-card__cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition);
}

.course-card:hover .course-card__cta {
  color: var(--white);
}

/* ── MODAL DE CURSO ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  position: relative;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.35s ease;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--gray);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  line-height: 1;
}

.modal__close:hover {
  border-color: var(--white);
  color: var(--white);
}

.modal__category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.6rem;
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.modal__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.modal__desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.modal__learn-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 0.75rem;
}

.modal__learn-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.modal__learn-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.55;
}

.modal__learn-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--white);
  border-radius: 50%;
  margin-top: 0.5rem;
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.modal__price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

.modal__price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray);
  display: block;
  margin-bottom: 0.15rem;
}

/* ── TRAYECTORIA ────────────────────────────────────────────── */
.trayectoria-intro {
  padding: 5rem 0 2rem;
}

.trayectoria-intro p {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

.profile-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0;
}

.profile-block__photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.profile-block__photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.profile-block__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
}

.profile-block__role {
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
}

/* Bloques de contenido trayectoria */
.tray-block {
  margin-bottom: 3.5rem;
}

.tray-block__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  border-left: 2px solid var(--border-hover);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

.tray-block h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.tray-block p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* Lista de certificaciones / logros */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.55;
}

.cert-item__dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--white);
  border-radius: 50%;
  margin-top: 0.5rem;
}

/* Experiencia clubes */
.club-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.club-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: var(--navy-card);
}

.club-item__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.club-item__desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Videos trayectoria */
.videos-section {
  padding: 4rem 0 6rem;
  border-top: 1px solid var(--border);
}

.videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.video-featured {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.video-secondary {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.video-featured iframe,
.video-secondary iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* ── PRÓXIMAMENTE (páginas vacías) ──────────────────────────── */
.coming-soon {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.coming-soon__inner {
  max-width: 480px;
}

.coming-soon__icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.coming-soon h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.coming-soon p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
}

.footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer__slogan {
  font-size: 0.85rem;
  color: var(--gray);
  max-width: 220px;
  line-height: 1.6;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.footer__contact a {
  font-size: 0.875rem;
  color: var(--gray-light);
  transition: color var(--transition);
}

.footer__contact a:hover {
  color: var(--white);
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer__social-link:hover {
  border-color: var(--border-hover);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: var(--gray);
}

.footer__bottom a {
  color: var(--gray-light);
  font-weight: 500;
  transition: color var(--transition);
}

.footer__bottom a:hover {
  color: var(--white);
}

/* ── BOTÓN FLOTANTE WHATSAPP ────────────────────────────────── */
.wpp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wpp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

.wpp-float svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

/* ── FADE-IN ─────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet — 960px */
@media (max-width: 960px) {
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }

  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-block {
    grid-template-columns: 1fr;
  }

  .profile-block__photo-wrap {
    position: static;
    margin: 0 auto;
  }

  .footer__main {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Mobile — 640px */
@media (max-width: 640px) {

  /* ── Espaciado global ── */
  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2rem; }

  /* ── Hero ── */
  .hero__inner { padding: 3rem 1.25rem; }
  .hero__eyebrow { margin-bottom: 1rem; }
  .hero__title { margin-bottom: 0.75rem; }
  .hero__tagline { margin-bottom: 1rem; }
  .hero__subtitle { margin-bottom: 1.75rem; }
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  /* ── Page hero (cursos / trayectoria) ── */
  .page-hero {
    padding: 2.5rem 0 2rem;
  }
  .page-hero h1 { margin-bottom: 0.5rem; }

  /* ── Niveles home ── */
  .levels-section { padding: 3rem 0; }
  .levels-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    gap: 1rem;
  }

  /* ── Grid de cursos ── */
  .courses-section { padding: 2.5rem 0 3rem; }
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .courses-grid > .course-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
    margin-inline: 0;
  }
  .course-card__body { padding: 1.25rem; }
  .course-card__desc {
    font-size: 0.95rem;
    font-weight: 500;
  }

  /* ── Modal de curso ── */
  .modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 10px;
  }
  .modal {
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem 2rem;
    max-height: calc(100vh - 20px);
    width: calc(100% - 20px);
    max-width: 100%;
  }
  .modal__img { aspect-ratio: 16 / 7; }
  .modal__title { font-size: 1.2rem; }
  .modal__desc { font-size: 0.9rem; }
  .modal__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ── Footer ── */
  .footer__main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2.5rem 0 1.75rem;
  }
  .footer__brand { align-items: center; }
  .footer__slogan { max-width: 100%; }
  .footer__contact { align-items: center; }
  .footer__socials { justify-content: center; }

  /* ── Trayectoria ── */
  .trayectoria-intro { padding: 2rem 0 1rem; }
  .trayectoria-intro p {
    font-size: 0.95rem;
    text-align: left;
  }
  .profile-block { gap: 2rem; padding: 2rem 0; }
  .profile-block__photo { width: 160px; height: 160px; }
  .tray-block { margin-bottom: 2rem; }
  .tray-block h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  .tray-block p {
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: left;
  }
  .cert-item {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .club-item { padding: 1rem; }
  .club-item__name { font-size: 0.9rem; }
  .club-item__desc { font-size: 0.82rem; }
  .videos-section { padding: 2.5rem 0 3rem; }
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .video-featured { grid-column: auto; }
}
