/* ============================================
   NBL ACADEMY MADRID — DESIGN SYSTEM
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}body{
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}img, video{ max-width: 100%; height: auto; display: block; }a{ color: inherit; text-decoration: none; }ul, ol{ list-style: none; }button{ font: inherit; cursor: pointer; border: none; background: none; }input, textarea, select{ font: inherit; }/* --- DESIGN TOKENS --- */
:root{
  /* Colors */
  --background: #FAF8F5;
  --surface: #FFFFFF;
  --surface-warm: #F5F0EB;
  --text: #1A1A1A;
  --text-secondary: #5A5A5A;
  --muted: #8A8A8A;
  /* Texto secundario que sí es legible (WCAG AA >= 4.5:1) sin competir con
     --text: 5.3:1 sobre #FFF y 5.0:1 sobre --background. Para metadatos y
     labels pequeños; --muted se mantiene para usos decorativos. */
  --muted-strong: #6B6B6B;
  --border: #E8E4E0;
  --border-light: #F0EDEA;

  /* Brand Palette — identidad principal #00b6bb (luminosa, profesional).
     Rampa diseñada para mantener contraste AA en ambos fondos:
     - fondo claro (#FAF8F5/#FFF): texto con --brand-strong (4.7:1)
     - superficie --brand: texto con --brand-ink (5.9:1)
     - fondo oscuro: --brand / --teal-light (>= 7:1) */
  --brand: #00b6bb;          /* Color principal: fondos, acentos, bordes */
  --brand-strong: #00767B;   /* Texto y hover sobre fondo claro (AA) */
  --brand-dark: #00595D;     /* Hover / estado activo */
  --brand-light: #4FD2D5;    /* Tintes y degradados sobre fondo oscuro */
  --brand-soft: #E4F4F5;     /* Tinte turquesa muy claro: iconos, badges y círculos sobre superficie clara */
  --brand-ink: #052A2D;      /* Texto sobre superficies --brand */
  --teal: #00b6bb;           /* Alias de marca (mantiene usages previos) */
  --teal-light: #5FD9DC;
  --teal-dark: #00767B;
  --navy: #00b6bb;           /* Turquesa de marca para secciones oscuras */
  --white: #FFFFFF;
  --charcoal: #00b6bb;       /* Turquesa de marca para secciones oscuras */

  /* Functional colors */
  --success: #059669;
  --warning: #D97706;
  --error: #DC2626;
  --info: #0891B2;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes — editorial scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4rem;
  --text-7xl: 5rem;

  /* Display sizes for hero stats */
  --display-sm: clamp(2.5rem, 4vw, 3.5rem);
  --display-md: clamp(3.5rem, 6vw, 5rem);
  --display-lg: clamp(5rem, 8vw, 7rem);

  /* Spacing — consistent rhythm */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(4rem, 8vw, 8rem);
  --space-section-sm: clamp(2.5rem, 5vw, 4rem);

  /* Layout */
  --max-width: 1280px;
  --max-width-narrow: 960px;
  --max-width-wide: 1440px;
  --gutter: clamp(1.25rem, 4vw, 2rem);

  /* Borders & Radius — editorial, less rounded */
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Shadows — subtle, contrast over shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.07);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.08);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-slower: 600ms ease;

  /* Z-index */
  --z-header: 100;
  --z-dropdown: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-whatsapp: 250;
}/* --- LOCAL FONTS (@font-face) --- */


/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6{
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}h1{ font-size: clamp(2.5rem, 5vw, var(--text-6xl)); }h2{ font-size: clamp(2rem, 4vw, var(--text-5xl)); }h3{ font-size: clamp(1.5rem, 3vw, var(--text-4xl)); }h4{ font-size: clamp(1.25rem, 2.5vw, var(--text-3xl)); }h5{ font-size: clamp(1.125rem, 2vw, var(--text-2xl)); }h6{ font-size: var(--text-xl); }/* Display sizes for hero stats */
.display-sm{ font-size: var(--display-sm); font-weight: 400; line-height: 1; }.display-md{ font-size: var(--display-md); font-weight: 400; line-height: 1; }p{ margin-bottom: 1em; }p:last-child{ margin-bottom: 0; }.lead{
  font-size: clamp(1.05rem, 1.5vw, var(--text-xl));
  line-height: 1.8;
  color: var(--text-secondary);
}.label{
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
}.section-label{
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--brand);
}
/* Etiqueta sobre fondo oscuro: --brand-strong sólo da 3.3:1 y --brand-light
   2.9:1 sobre un teal profundo. El texto pasa a BLANCO (máx. contraste) y la
   identidad turquesa se mantiene en el subrayado (--brand-light). */
.page-hero .section-label,
.hero .section-label,
.official-strip .section-label,
.cta-banner .section-label,
.section--brand .section-label,
.section--dark .section-label{
  color: var(--white);
  border-color: var(--brand-light);
}
/* Igual para el botón outline sobre fondo oscuro: texto en blanco (máx.
   contraste) y borde turquesa claro que mantiene la identidad de marca. */
.hero .btn--outline,
.page-hero .btn--outline,
.cta-banner .btn--outline,
.official-strip .btn--outline,
.section--dark .btn--outline{
  color: var(--white);
  border-color: var(--brand-light);
}
.hero .btn--outline:hover,
.page-hero .btn--outline:hover,
.cta-banner .btn--outline:hover,
.official-strip .btn--outline:hover,
.section--dark .btn--outline:hover{
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}/* --- LAYOUT --- */
.container{
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}.container--narrow{ max-width: var(--max-width-narrow); }.section{
  padding: var(--space-section) 0;
}.section--surface{ background: var(--surface); }.section--warm{ background: var(--surface-warm); }
/* --brand puro no admite texto blanco (2.5:1): la banda usa un turquesa
   MEDIO de la misma familia (blanco >= 4.5:1) con destellos #00b6bb,
   manteniendo la identidad sin oscurecer hasta casi negro. */
.section--brand{
  background:
    radial-gradient(560px 380px at 88% -12%, rgba(0,182,187,0.9) 0%, transparent 60%),
    linear-gradient(135deg, #04666C 0%, #05777E 50%, #07828A 100%);
  color: var(--white);
}.section--brand h1, .section--brand h2, .section--brand h3,
.section--brand h4, .section--brand h5{ color: var(--white); }.text-center{ text-align: center; }/* --- GRID SYSTEM --- */
.grid{
  display: grid;
  gap: var(--space-xl);
}.grid-2{ grid-template-columns: repeat(2, 1fr); }.grid-3{ grid-template-columns: repeat(3, 1fr); }@media (max-width: 768px){
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9em 2em;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

/* Botón principal: fondo --brand luminoso + texto oscuro (5.9:1).
   Blanco sobre #00b6bb solo daba 2.5:1 (no accesible). */
.btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
  border: 2px solid var(--brand);
}
.btn--primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--primary:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 3px;
}

.btn--outline {
  background: transparent;
  color: var(--brand-strong);
  border: 2px solid var(--brand);
}
.btn--outline:hover {
  background: var(--brand);
  color: var(--brand-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* WhatsApp button — special variant.
   El verde brillante #25D366 con texto blanco daba 1.98:1 (no accesible).
   Se usa el verde-teal oficial de WhatsApp #075E54 —el mismo de su
   cabecera en la app— con texto blanco: 7.7:1, manteniendo la identidad. */
.btn--whatsapp {
  background: #075E54;
  color: var(--white);
  border: 2px solid #075E54;
}
.btn--whatsapp:hover {
  background: #064C45;
  border-color: #064C45;
}
/* Anillo doble: blanco junto al botón (contraste alto) + verde WhatsApp
   en el exterior, visible tanto sobre fondos claros como oscuros. */
.btn--whatsapp:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #25D366;
}

.btn--large {
  font-size: var(--text-base);
  padding: 1.1em 2.5em;
}

.btn--small {
  font-size: var(--text-xs);
  padding: 0.7em 1.5em;
}

@media (max-width: 480px) {
  .btn { white-space: normal; }
  .btn--large { padding: 1em 1.8em; }
}

/* --- CARDS --- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-strong);
}

.card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
}

.card__body {
  padding: var(--space-md);
}

.card__category {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  line-height: 1.25;
}

.card__meta {
  font-size: var(--text-sm);
  color: var(--muted-strong);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.card__price {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand-strong);
}

/* Course card specific — simplified, less info in card */
.course-card {
  position: relative;
}

/* Caja de media uniforme de las course cards (listados, categorías, destacados
   y bloques de Home): el wrapper ocupa el 100% del ancho de la tarjeta y
   define una caja 1:1 estable. Así todas las fotos de card comparten la misma
   altura visual, sin padding, sin fondos blancos y sin "aire" alrededor.
   La imagen va "a sangre" (cover) y solo el badge queda absoluto sobre ella. */
.course-card .card__image-wrapper {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0;
  background: transparent;
}

.course-card .card__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

/* Los designs circulares NBL son PNG 500×500 con el círculo inscrito y
   transparencia exterior: dentro de una caja 1:1 se renderizan a tamaño
   completo (cover = contain en un cuadrado), sin deformar el círculo ni
   recortar el anillo. Esta clase fija la caja 1:1 del propio asset por si
   algún listado aplicara otra proporción. */
.course-card .card__image--ring {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

/* Imágenes de curso que muestran el diseño circular turquesa (academia-masters,
   academia-pestanas, rosy-fundadora, etc.) usadas fuera de las cards de curso:
   contenedor 1:1 con recorte circular que conserva el anillo y no añade borde. */
.media-circle {
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  margin-inline: auto;
  max-width: var(--media-circle-max, 320px);
}

.media-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Fichas interiores con mucho texto: el círculo por defecto (320px) queda
   pequeño frente a la columna de texto y deja demasiado aire alrededor.
   Se amplía solo en esos bloques concretos, sin tocar el resto de usos. */
.media-circle--lg { --media-circle-max: 460px; }
.media-circle--md { --media-circle-max: 380px; }

/* ============================================
   FICHA MÁSTER NIVEL 1 — CÍRCULO DEL HERO
   El PNG 500×500 de esta ficha lleva dos elementos pegados al borde:
   un anillo turquesa de ~11 px (radio interior 239 de 250) y una
   etiqueta "8 horas" en la esquina superior derecha que el recorte
   circular cortaba. Con 1,05 desaparecía solo el anillo y quedaba un
   resto de etiqueta; con 1,20 (uniforme, sin deformar) desaparecen
   ambos y el ojo/las pestañas siguen completos. Solo esta ficha (la
   clase se añade únicamente en master-unas-pestanas.html).
   ============================================ */
.media-circle--fill img {
  transform: scale(1.20);
  transform-origin: center;
}

.course-card:hover .card__image {
  transform: scale(1.02);
}

/* Badge sobre el círculo turquesa — no recortado porque el wrapper es
   overflow:visible y el recorte vive en .card__image. Posicionado en la
   zona superior-derecha, solapándose ligeramente sobre el anillo.
   Margen suficiente para no ser cortado por el border-radius de .card (10px). */
.course-card .card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  pointer-events: none;
}

@media (max-width: 480px) {
  .course-card .card__badge {
    top: 10px;
    left: 10px;
    font-size: 0.6875rem;
    padding: 0.3em 0.8em;
  }
}

/* Simplified card meta — show category + title + meta + price in card */
.course-card .card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: var(--muted-strong);
}
.course-card .card__price {
  font-size: var(--text-xl);
  font-weight: 600;
}

/* --- CATEGORY CARDS (Home) — varied proportions --- */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
}

.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slower);
}

.category-card:hover .category-card__image {
  transform: scale(1.03);
}

/* Promos con diseño circular/transparente (fuentes 1:1): se muestran completas
   dentro de la tarjeta 4:5 sin recortar el ancho con cover ni añadir un fondo
   o marco ajeno a la propia forma de la imagen. */
.category-card__image--contain {
  object-fit: contain;
  object-position: center;
}

/* Promos de categoría cuyo diseño es el círculo turquesa NBL integrado en la
   propia imagen: contenedor cuadrado transparente, imagen con transparencia exterior,
   texto debajo. Unificado con el patrón de course-card. */
.category-card--ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.category-card--ring .category-card__image {
  width: min(100%, 300px);
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  object-position: center;
}

.category-card--ring .category-card__overlay {
  position: static;
  inset: auto;
  background: none;
  padding: 0;
}

.category-card:hover .category-card--ring .category-card__overlay {
  background: none;
}

.category-card--ring .category-card__title {
  color: var(--ink);
}

.category-card--ring .category-card__count {
  color: var(--muted-strong);
}

@media (max-width: 1024px) {
  .category-card--ring .category-card__image { width: min(100%, 260px); }
}

@media (max-width: 768px) {
  .category-card--ring .category-card__image { width: min(100%, 220px); }
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,89,93,0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  transition: background var(--transition-base);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(0,110,116,0.68) 100%);
}

.category-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.category-card__count {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- BREADCRUMBS --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--muted-strong);
  padding: var(--space-md) 0;
}

.breadcrumb a:hover { color: var(--brand-strong); }
.breadcrumb__separator { color: var(--border); }

/* Cuando el breadcrumb es también `.container`, su padding shorthand
   (16px 0) anulaba el gutter horizontal del contenedor y el texto
   quedaba pegado al borde en móvil/tablet. Se restituye solo el eje X. */
.container.breadcrumb {
  padding-inline: var(--gutter);
}

/* --- HERO SECTIONS --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,102,108,0.72) 0%,
    rgba(0,109,114,0.45) 50%,
    rgba(0,182,187,0.22) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: var(--white);
  padding: var(--space-4xl) var(--gutter);
}

.hero__content h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.hero__content .lead {
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-2xl);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-family: var(--font-serif);
  font-size: var(--display-md);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.72);
  margin-top: var(--space-xs);
}

/* Page hero (smaller, more compact) */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  overflow: hidden;
}

@media (max-width: 1024px) {
  .page-hero { min-height: 340px; }
}

@media (max-width: 768px) {
  .page-hero { min-height: 300px; }
}

@media (max-width: 480px) {
  .page-hero { min-height: 280px; }
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,102,108,0.78) 0%, rgba(0,182,187,0.32) 100%);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) var(--gutter) var(--space-2xl);
  color: var(--white);
}

.page-hero__content h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.page-hero__content .lead {
  color: rgba(255,255,255,0.9);
  max-width: 600px;
}

/* Page hero — slim variant (legal pages) */
.page-hero--slim {
  min-height: 360px;
}

@media (max-width: 768px) {
  .page-hero--slim { min-height: 320px; }
}

/* Legal document typography */
.legal-document h2 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document ul {
  margin: var(--space-md) 0 var(--space-lg);
  padding-left: var(--space-xl);
  list-style: disc;
}

.legal-document li {
  margin-bottom: var(--space-xs);
}

.legal-document a {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- ACCORDION --- */
.accordion { border-top: 1px solid var(--border); }

.accordion__item { border-bottom: 1px solid var(--border); }

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--transition-fast);
}

.accordion__trigger:hover { color: var(--brand-strong); }

.accordion__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.accordion__item.active .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion__body {
  padding: 0 0 var(--space-lg);
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- METRICS / STATS --- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

/* --- METRICS / STATS — editorial typographic --- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  text-align: center;
}

.metric {
  padding: 0;
}

.metric__number {
  font-family: var(--font-serif);
  font-size: var(--display-sm);
  font-weight: 400;
  line-height: 1;
  color: var(--brand-strong);
  margin-bottom: var(--space-xs);
}

.metric__label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .metrics { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* --- FORMS --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(0,182,187,0.18);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--brand-strong);
}

/* --- WHATSAPP FLOATING --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-whatsapp);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.whatsapp-float__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp-float__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* El círculo mantiene el verde WhatsApp #25D366; solo se oscurece el
   glifo (blanco a 1.98:1 → 6.2:1) para que se lea con claridad. */
.whatsapp-float__btn svg {
  width: 32px;
  height: 32px;
  fill: #0A3D2E;
}

.whatsapp-float__tooltip {
  background: var(--surface);
  color: var(--text);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .whatsapp-float__tooltip { display: none; }
  .whatsapp-float__btn { width: 54px; height: 54px; }
  .whatsapp-float__btn svg { width: 28px; height: 28px; }
  .whatsapp-float { bottom: 16px; right: 16px; }
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }

.fade-in {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade-in.visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-in { opacity: 1; transform: none; transition: none; }
  .category-card__image,
  .card__image { transition: none; }
}

/* --- UTILITIES --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-in { opacity: 1; transform: none; transition: none; }
  .category-card__image,
  .card__image { transition: none; }
}

/* --- EDITORIAL COMPONENTS --- */

/* Facilities Collage — editorial grid with varied proportions */
.facilities-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--space-md);
  height: 600px;
}

.facilities-collage__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.facilities-collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.facilities-collage__item:hover img {
  transform: scale(1.03);
}

.facilities-collage__label {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  background: linear-gradient(0deg, rgba(0,89,93,0.88) 0%, transparent 100%);
  padding: var(--space-lg);
  color: var(--white);
  border-radius: var(--radius-md);
}

.facilities-collage__label h3 {
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.facilities-collage__label p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.facilities-collage__item--1 { grid-column: 1 / 3; grid-row: 1; }
.facilities-collage__item--2 { grid-column: 3; grid-row: 1 / 3; }
.facilities-collage__item--3 { grid-column: 1; grid-row: 2; }
.facilities-collage__item--4 { grid-column: 2; grid-row: 2; }
.facilities-collage__item--5 { grid-column: 3; grid-row: 2; }
.facilities-collage__item--6 { grid-column: 1 / 3; grid-row: 3; }

@media (max-width: 1024px) {
  .facilities-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .facilities-collage__item--1 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16/9; }
  .facilities-collage__item--2 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 9/16; }
  .facilities-collage__item--3,
  .facilities-collage__item--4,
  .facilities-collage__item--5,
  .facilities-collage__item--6 { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
}

@media (max-width: 640px) {
  .facilities-collage {
    grid-template-columns: 1fr;
  }
  .facilities-collage__item { aspect-ratio: 4/3; }
}

/* Work Preview Grid — editorial image grid */
.work-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.work-preview a {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.work-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
  border-radius: var(--radius-md);
}

.work-preview a:hover img {
  transform: scale(1.04);
}

@media (max-width: 1024px) {
  .work-preview { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .work-preview { grid-template-columns: 1fr; }
}

/* Testimonial Cards — sophisticated editorial style */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.testimonial:hover {
  border-color: var(--brand-strong);
  box-shadow: var(--shadow-md);
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-lg);
}

.testimonial__star { width: 20px; height: 20px; fill: #F59E0B; }

.testimonial__text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.testimonial__author {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

.testimonial__source {
  font-size: var(--text-xs);
  color: var(--muted-strong);
  margin-top: var(--space-xs);
}

/* Rosy Section — editorial 40/60 layout */
.rosy-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: start;
}

.rosy-section__photo {
  position: sticky;
  top: var(--space-3xl);
}

.rosy-section__photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .rosy-section {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .rosy-section__photo {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Course Summary Box — at top of course pages */
.course-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.course-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-lg);
}

.course-summary__item {
  text-align: center;
  padding: var(--space-md);
}

.course-summary__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-strong);
  margin-bottom: var(--space-xs);
}

.course-summary__value {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
}

/* CTA Banner — stronger visual */
.cta-banner {
  background:
    radial-gradient(560px 380px at 88% -20%, rgba(0, 182, 187, 0.4) 0%, transparent 62%),
    linear-gradient(160deg, #045F66 0%, #066D74 55%, #077277 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 90% 110%, rgba(0,182,187,0.5) 0%, transparent 55%);
}
.cta-banner h2 { color: var(--white); margin-bottom: var(--space-md); }
.cta-banner .lead { color: rgba(255,255,255,0.9); margin-bottom: var(--space-2xl); max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-group { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }

/* --- STEP PROCESS --- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-light);
  counter-increment: step;
}
.step:last-child { border-bottom: none; }

.step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--brand-ink);
  font-weight: 500;
}

.step__content h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.step__content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* --- GALLERY MASONRY --- */
.gallery-masonry {
  columns: 3;
  column-gap: var(--space-md);
}

.gallery-masonry__item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-masonry__item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-masonry__item:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .gallery-masonry { columns: 2; }
}

@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
}

/* --- TESTIMONIALS --- */
.testimonial {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--border-light);
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.testimonial__star { width: 18px; height: 18px; fill: #F59E0B; }

.testimonial__text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.testimonial__author {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.testimonial__source {
  font-size: var(--text-xs);
  color: var(--muted-strong);
}

/* --- COURSE DETAIL INFO BOX --- */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.info-box__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-lg);
}

.info-box__grid--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.info-box__grid--centered > .info-box__item {
  flex: 1 1 240px;
  max-width: 280px;
  min-width: 200px;
}

.info-box__item {
  text-align: center;
  padding: var(--space-md);
}

.info-box__icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
  color: var(--brand-strong);
}

/* ICONOS-01 — Normalización puntual de iconos en fichas interiores.
   Los SVG inline de .info-box__icon no llevan width/height y se expandían
   hasta el ancho completo de la columna (592 px en 2 columnas, 384 px en 3).
   Solo se aplica a los bloques marcados con .info-icons--compact; el resto
   de usos de .info-box__icon (listados de categoría, etc.) no cambia. */
.info-icons--compact .info-box__icon svg {
  display: block;
  width: 96px;
  height: 96px;
  margin-inline: 0;
}

.info-icons--compact .info-box__icon {
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .info-icons--compact .info-box__icon svg {
    width: 72px;
    height: 72px;
  }
}

.info-box__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-strong);
  margin-bottom: var(--space-xs);
}

.info-box__value {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

/* --- FILTER PILLS --- */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.filter-pill {
  padding: 0.6em 1.5em;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand-strong);
}

/* --- OFFICIAL vs NBL COMPARISON --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.comparison__col {
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
}

.comparison__col--official {
  background: var(--surface);
  border: 2px solid var(--brand);
}

.comparison__col--nbl {
  background: var(--surface-warm);
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .comparison { grid-template-columns: 1fr; }
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-light) 100%);
}

.timeline__item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: var(--space-xl);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -0.625rem;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px var(--surface);
  z-index: 1;
}

.timeline__content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.timeline__content p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* --- VALUES LIST --- */
.values-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.values-list__item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.values-list__item:hover {
  border-color: var(--brand-strong);
  box-shadow: var(--shadow-md);
}

.values-list__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1;
}

.values-list__content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.values-list__content p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .values-list__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* --- STICKY CTA (mobile) --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: var(--space-md) var(--gutter);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: var(--z-header);
  gap: var(--space-sm);
}

@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
    justify-content: center;
  }
  body { padding-bottom: 80px; }
}

/* --- ROSY EDITORIAL --- */
.page-hero--rosy {
  min-height: 520px;
}

@media (max-width: 768px) {
  .page-hero--rosy { min-height: 420px; }
}

@media (max-width: 480px) {
  .page-hero--rosy { min-height: 360px; }
}

.page-hero--rosy .page-hero__overlay {
  background: rgba(0, 104, 110, 0.82);
}

.page-hero--rosy .page-hero__content {
  max-width: 800px;
  padding: var(--space-4xl) var(--gutter);
}

/* ============================================
   PAGE HERO — CATEGORY (MODERN)
   Reutilizable para /cursos/unas/, /cursos/pestanas/, etc.
   ============================================ */

.page-hero--category {
  min-height: 360px;
  background: var(--charcoal);
}

@media (max-width: 1024px) {
  .page-hero--category { min-height: 320px; }
}

@media (max-width: 768px) {
  .page-hero--category { min-height: 280px; }
}

@media (max-width: 480px) {
  .page-hero--category { min-height: 240px; }
}

/* Degradado medio de marca: profundidad turquesa sin llegar a negro */
.page-hero--category .page-hero__overlay {
  background:
    linear-gradient(180deg,
      rgba(0,104,110,0.8) 0%,
      rgba(0,118,124,0.5) 50%,
      rgba(0,102,108,0.78) 100%
    );
  z-index: 1;
}

/* Elemento gráfico decorativo de fondo */
.page-hero__graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-hero__graphic svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Breadcrumb en el hero */
.page-hero--category .breadcrumb {
  padding: 0;
  margin-bottom: var(--space-md);
}

.page-hero--category .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero--category .breadcrumb a:hover {
  color: var(--teal-light);
}

.page-hero--category .breadcrumb__separator {
  color: rgba(255, 255, 255, 0.3);
}

.page-hero--category .breadcrumb [aria-current="page"] {
  color: var(--white);
}

/* Acento teal cerca del título */
.page-hero__accent {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 1px;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.page-hero--category .page-hero__content {
  padding: var(--space-3xl) var(--gutter) var(--space-2xl);
  position: relative;
  z-index: 2;
}

.page-hero--category .page-hero__content h1 {
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.page-hero--category .page-hero__content .lead {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

/* Borde inferior sutil */
.page-hero--category::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 480px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 182, 187, 0.28) 25%,
    rgba(0, 182, 187, 0.45) 50%,
    rgba(0, 182, 187, 0.28) 75%,
    transparent 100%
  );
  z-index: 2;
}

/* Responsive para gráfico */
@media (max-width: 768px) {
  .page-hero__graphic svg {
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .page-hero__graphic {
    display: none; /* Ocultar en móviles muy pequeños para no competir con texto */
  }
}

.rosy-editorial {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.rosy-editorial__photo {
  position: sticky;
  top: var(--space-xl);
  max-width: 460px;
  margin-inline: auto;
}

.rosy-editorial__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-lg);
}

.rosy-editorial__content {
  padding-top: var(--space-lg);
}

.rosy-editorial__content .section-label {
  margin-bottom: var(--space-md);
}

.rosy-editorial__content h2 {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.rosy-editorial__content .lead {
  font-size: clamp(1.05rem, 1.5vw, var(--text-xl));
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.rosy-editorial__content p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

@media (max-width: 900px) {
  .rosy-editorial {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .rosy-editorial__photo {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* --- METRICS EDITORIAL --- */
.metrics--editorial {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.metrics--editorial .metric {
  padding: 0;
}

.metrics--editorial .metric__number {
  font-family: var(--font-serif);
  font-size: var(--display-sm);
  font-weight: 400;
  line-height: 1;
  color: var(--brand-strong);
  margin-bottom: var(--space-xs);
}

.metrics--editorial .metric__label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .metrics--editorial { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
}

@media (max-width: 480px) {
  .metrics--editorial { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* ============================================
   FASE 10 — FICHAS DE CURSO (ESTILO VISUAL)
   ============================================ */

/* Fondo general de las fichas de curso: crema muy suave en lugar de blanco */
.course-page-bg {
  background-color: var(--surface-warm);
}

/* Sección alternada con color corporativo muy tenue */
.course-section--alt {
  background-color: var(--brand-soft);
}

/* Tarjetas internas mejoradas: borde sutil y sombra ligera */
.card--feature {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-base);
}

.card--feature:hover {
  border-color: var(--brand-strong);
  box-shadow: var(--shadow-sm);
}

/* Hero de cursos: degradado sutil y elementos decorativos */
.page-hero--course {
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(0, 182, 187, 0.15) 0%, transparent 55%),
    linear-gradient(180deg, var(--surface-warm) 0%, var(--white) 40%);
}

.page-hero--course .page-hero__overlay {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.7) 60%,
    rgba(255,255,255,0.4) 100%
  );
}

/* Galería de fotos de cursos: evitar recortes agresivos */
.course-gallery {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.course-gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.course-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--white);
}

.course-gallery__item figcaption {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  margin-top: var(--space-xs);
}

/* Galería 2 columnas en desktop, 1 en móvil */
.course-gallery--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .course-gallery--2 {
    grid-template-columns: 1fr;
  }
}

/* Hero de cursos: contenedor centrado y elegante */
.course-hero-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--gutter) var(--space-2xl);
}

/* Ajuste de métricas de curso para fondos claros */
.course-summary {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.course-summary__item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.course-summary__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* ============================================
   FASE 11 — VÍDEOS INSTITUCIONALES
   ============================================ */

.video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.video-wrapper--vertical {
  aspect-ratio: 3/4;
}

.video-wrapper--horizontal {
  aspect-ratio: 16/9;
}

.video-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
}

.video-wrapper video {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .video-wrapper video {
    display: none;
  }
}

/* Vídeo hero de Sobre NBL */
.video-hero-section {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.video-hero-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .video-hero-section {
    margin-bottom: var(--space-xl);
  }
}

/* Vídeo vertical en cards */
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.video-card__content {
  padding: var(--space-lg);
}

.video-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.video-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* --- VÍDEOS DECORATIVOS: ESTADO ESTÁTICO (prefers-reduced-motion) ---
   El vídeo decorativo se sustituye por su póster (fotograma del propio
   vídeo, mismo encuadre y proporción) para no alterar la altura ni el
   layout de la página. */
.video-static-fallback {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  video.video-decorative {
    display: none;
  }

  .video-static-fallback {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
    object-fit: cover;
  }
}

/* --- MEDIA-SCALE-01: VÍDEOS VERTICALES DE FICHAS DE CURSO ---
   Los MP4 de práctica son verticales (464×848). Con la regla base
   `.video-card video { width:100%; height:100% }` ocupaban todo el
   ancho del contenedor y se ampliaban hasta 1216×2222 px a 1440.
   El wrapper se limita y el vídeo se escala por altura máxima,
   conservando la proporción original y sin recortes. */
.video-card--course {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.video-card--course video,
.video-card--course .video-static-fallback {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 720px;
  margin-inline: auto;
  object-fit: contain;
}
