/* ==========================================================================
   FIDE13 Formación — hoja de estilos única
   --------------------------------------------------------------------------
   Proyecto HTML estático: no hay compilación ni dependencias. Para cambiar
   los colores de marca basta con editar las variables de :root.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tipografías autoalojadas (variables: un fichero cubre todos los pesos)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Variables de marca
   -------------------------------------------------------------------------- */
:root {
  --brand-950: #061a2f;
  --brand-900: #0a2544;
  --brand-800: #0f3b68;
  --brand-700: #164e87;
  --brand-100: #e3edf8;
  --brand-50: #f2f7fc;

  --accent-700: #b4161b;
  --accent-600: #d32027;
  --accent-500: #e8434a;
  --accent-50: #fef2f2;

  --whatsapp: #128c4a;
  --whatsapp-dark: #0f7a40;

  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --emerald-600: #059669;
  --emerald-400: #34d399;

  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-alt2: #f1f5f9;

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow: 0 4px 12px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 12px 32px rgb(15 23 42 / 0.16);

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;

  --header-h: 6.5rem;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  /* La cabecera es fija: las secciones ancladas deben pararse debajo de ella. */
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface-alt);
  /* Plus Jakarta Sans y Outfit traen un espacio muy estrecho (0,17 em):
     las palabras se pegaban entre sí, sobre todo en textos pequeños. */
  word-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  /* Hueco para la barra fija de contacto en móvil, que antes tapaba el pie. */
  padding-bottom: 4.5rem;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  word-spacing: 0.08em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* <picture> sólo sirve para ofrecer WebP con JPEG de respaldo: no debe crear
   una caja propia, así las reglas escritas para el <img> siguen valiendo. */
picture {
  display: contents;
}

::selection {
  background: var(--brand-800);
  color: #fff;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
[role="button"],
a[href],
select,
label,
input[type="checkbox"] {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

/* El foco debe verse siempre: es la única guía de quien navega con teclado. */
:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respeta la preferencia del sistema de reducir el movimiento. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 100;
  background: var(--brand-900);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transform: translateY(-250%);
  transition: transform 0.15s ease-in-out;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 4rem;
  scroll-margin-top: var(--header-h);
}

.section--tight {
  padding-block: 2rem;
}

.section-intro {
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  text-align: center;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--ink);
}

.lede {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  background: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn--accent {
  background: var(--accent-600);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--accent:hover {
  background: var(--accent-700);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn--brand {
  background: var(--brand-800);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--brand:hover {
  background: var(--brand-900);
}

.btn--ghost {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.2);
  color: #fff;
}
.btn--ghost:hover {
  background: rgb(255 255 255 / 0.2);
}

.btn--outline {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-soft);
}
.btn--outline:hover {
  background: var(--surface-alt2);
}

.btn--amber {
  background: var(--amber-400);
  color: #0f172a;
  font-weight: 900;
  box-shadow: var(--shadow-lg);
}
.btn--amber:hover {
  background: var(--amber-300);
}

.btn--lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Cabecera
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.topbar {
  /* Opaco y sin desenfoque: con un 97 % de opacidad el blur no se apreciaba
     y obligaba a recomponer la cabecera fija en cada fotograma de scroll. */
  background: var(--brand-900);
  color: #fff;
  font-size: 0.8rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.5rem;
}

.topbar__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgb(52 211 153 / 0.3);
  background: rgb(6 78 59 / 0.7);
  color: #6ee7b7;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  font-weight: 500;
}

.pill-live__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--emerald-400);
}

@media (prefers-reduced-motion: no-preference) {
  .pill-live__dot {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

.topbar__cred {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

@media (min-width: 768px) {
  .topbar__cred {
    display: inline-flex;
  }
}

.topbar__cred svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--amber-400);
}

.topbar__actions {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

/* Por debajo de 1024 px la barra fija inferior ya ofrece llamar y WhatsApp:
   repetirlos arriba partía la franja en dos líneas y la cabecera fija
   ocupaba casi un cuarto de la pantalla del móvil. */
@media (min-width: 1024px) {
  .topbar__actions {
    display: flex;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.chip svg {
  width: 0.9rem;
  height: 0.9rem;
}

.chip--phone {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}
.chip--phone:hover {
  background: rgb(255 255 255 / 0.2);
}
.chip--phone svg {
  color: var(--accent-500);
}

.chip--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.chip--whatsapp:hover {
  background: var(--whatsapp-dark);
}

.navbar {
  background: var(--brand-800);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: #fff;
  /* La barra va justa de ancho en portátiles: sin el espaciado extra del
     cuerpo para no empujar el botón de presupuesto fuera del contenedor. */
  word-spacing: normal;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

/* El logotipo lleva tipografía azul marino, que desaparecería sobre el fondo
   oscuro de la cabecera: se apoya sobre una pastilla blanca. */
.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  padding: 0.25rem;
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.18s ease;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: no-preference) {
  .brand:hover .brand__mark {
    transform: scale(1.05);
  }
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand__name em {
  font-style: normal;
  color: var(--accent-500);
}

.brand__sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
}

@media (min-width: 1360px) {
  .brand__name,
  .brand__sub {
    white-space: nowrap;
  }
}

@media (min-width: 1360px) and (max-width: 1599px) {
  .brand__sub {
    letter-spacing: 0.04em;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  /* El rótulo del curso de instructor lleva su nombre oficial, así que hasta
     los 1600 px la barra va apretada para no empujar el botón de presupuesto
     fuera de la pantalla en portátiles de 1366 y 1440. */
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (min-width: 1760px) {
  .nav-desktop {
    gap: 1.5rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 1360px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-desktop a:hover {
  color: var(--accent-500);
}

.nav-desktop a.is-featured {
  color: var(--amber-300);
  font-weight: 600;
}

.nav-desktop a.is-featured:hover {
  color: var(--amber-400);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.nav-toggle:hover {
  background: rgb(255 255 255 / 0.2);
}

.nav-toggle svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
}

/* `svg { display: block }` anula el atributo hidden: sin esto se veían a la
   vez los iconos de abrir y cerrar, encogidos hasta desaparecer. */
.nav-toggle svg[hidden] {
  display: none;
}

@media (min-width: 1360px) {
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  background: var(--brand-900);
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.nav-mobile[hidden] {
  display: none;
}

@media (min-width: 1360px) {
  .nav-mobile {
    display: none;
  }
}

.nav-mobile ul {
  padding-block: 0.5rem;
}

.nav-mobile a {
  display: block;
  padding-block: 0.75rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-mobile a:hover {
  color: var(--accent-500);
}

.nav-mobile a.is-featured {
  color: var(--amber-300);
}

.nav-mobile .btn {
  margin-block: 1rem;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--brand-900),
    var(--brand-800) 55%,
    var(--brand-700)
  );
  color: #fff;
  padding-block: 3rem 5rem;
  scroll-margin-top: var(--header-h);
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero__glow--a {
  top: -8rem;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  background: rgb(211 32 39 / 0.2);
  filter: blur(64px);
}

.hero__glow--b {
  bottom: 0;
  left: -5rem;
  width: 20rem;
  height: 20rem;
  background: rgb(59 130 246 / 0.1);
  filter: blur(40px);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 7fr 5fr;
  }
}

.hero__copy > * + * {
  margin-top: 1.5rem;
}

.badge-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.badge-line svg {
  width: 1rem;
  height: 1rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
}

.hero h1 .grad {
  background: linear-gradient(
    90deg,
    var(--accent-500),
    #fda4af 45%,
    var(--amber-300)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  max-width: 42rem;
  color: #e2e8f0;
  font-size: 1.05rem;
}

.hero__text strong {
  color: #fff;
}

.hero__usp {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
}

.hero__usp-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--accent-600);
  color: #fff;
}

.hero__usp-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Sólo el primer <strong> hace de titulillo; los demás van dentro del texto
   corrido y deben seguir siendo elementos en línea. */
.hero__usp p > strong:first-child {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.hero__usp span {
  color: #e2e8f0;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #e2e8f0;
}

@media (min-width: 640px) {
  .trust-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-list svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: var(--emerald-400);
}

.hero__media {
  position: relative;
  border: 4px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-950);
  box-shadow: var(--shadow-lg);
}

.hero__media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(2 6 23 / 0.9),
    rgb(2 6 23 / 0.3) 45%,
    transparent
  );
  pointer-events: none;
}

.hero__media-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgb(10 37 68 / 0.9);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero__media-badge svg {
  width: 1rem;
  height: 1rem;
  color: var(--amber-400);
}

.hero__card {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgb(255 255 255 / 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.hero__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.hero__card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-700);
}

.hero__card-tag svg {
  width: 0.85rem;
  height: 0.85rem;
}

.hero__card-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand-800);
}

.hero__card h2 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.hero__card p {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.hero__card a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-700);
  text-decoration: none;
}

.hero__card a:hover {
  text-decoration: underline;
}

.hero__card a svg {
  width: 0.8rem;
  height: 0.8rem;
}

/* Marcador de posición cuando una fotografía no carga: evita el icono de
   imagen rota y el texto alternativo desbordando la caja. */
.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgb(255 255 255 / 0.12),
      transparent 60%
    ),
    var(--brand-800);
}

.img-fallback svg {
  width: 4rem;
  height: 4rem;
  opacity: 0.7;
  color: #fff;
}

/* --------------------------------------------------------------------------
   7. Bloques genéricos
   -------------------------------------------------------------------------- */
.band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .audience-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.audience-card {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: border-color 0.18s ease;
}

.audience-card:hover {
  border-color: var(--brand-800);
}

.audience-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.5rem;
  border-radius: 0.5rem;
}

.audience-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.audience-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
}

.audience-card p {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.tone-brand {
  background: var(--brand-100);
  color: var(--brand-800);
}
.tone-emerald {
  background: #d1fae5;
  color: #065f46;
}
.tone-amber {
  background: #fef3c7;
  color: #78350f;
}
.tone-rose {
  background: #ffe4e6;
  color: #9f1239;
}
.tone-purple {
  background: #f3e8ff;
  color: #6b21a8;
}

/* --------------------------------------------------------------------------
   8. Curso destacado
   -------------------------------------------------------------------------- */
.featured {
  background: linear-gradient(
    to bottom,
    #0f172a,
    var(--brand-900) 50%,
    #0f172a
  );
  color: #fff;
  padding-block: 4rem;
  scroll-margin-top: var(--header-h);
}

.featured__panel {
  position: relative;
  overflow: hidden;
  max-width: 56rem;
  margin-inline: auto;
  border: 2px solid rgb(211 32 39 / 0.5);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    90deg,
    rgb(69 10 10 / 0.4),
    rgb(23 37 84 / 0.5) 55%,
    rgb(15 23 42 / 0.6)
  );
  padding: 2.5rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .featured__panel {
    padding: 2.5rem;
  }
}

.featured__flag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-bottom-left-radius: var(--radius);
}

.featured__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tag-amber {
  background: var(--amber-400);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.tag-place {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
}

.tag-place svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--accent-500);
}

.featured h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}

.spec-grid {
  display: grid;
  gap: 1.5rem;
  margin-block: 1.5rem;
}

@media (min-width: 768px) {
  .spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.spec {
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  padding: 1rem;
}

.spec dt {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.spec__big {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--amber-400);
  font-family: var(--font-display);
}

.spec__mid {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

.spec__note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.featured__body {
  color: #e2e8f0;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.featured__learn {
  background: rgb(0 0 0 / 0.4);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 2rem;
}

.featured__learn h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.featured__learn h3 svg {
  width: 1rem;
  height: 1rem;
  color: var(--emerald-400);
}

.featured__learn ul {
  display: grid;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

@media (min-width: 640px) {
  .featured__learn ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.featured__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   9. Catálogo de cursos
   -------------------------------------------------------------------------- */
.catalog {
  background: var(--surface-alt2);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.filter {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.filter:hover {
  background: var(--surface-alt);
}

.filter[aria-pressed="true"] {
  background: var(--brand-800);
  border-color: var(--brand-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.course-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.course {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: var(--header-h);
  transition:
    box-shadow 0.25s ease,
    border-color 0.18s ease;
}

.course:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-800);
}

.course[hidden] {
  display: none;
}

.course--highlight {
  border-color: var(--accent-600);
  box-shadow: 0 0 0 2px rgb(211 32 39 / 0.2);
}

.course__body {
  flex: 1;
  padding: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.course__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.course__cat {
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 0.35rem;
}

.course__flag {
  background: var(--accent-600);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
}

.course h3 {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.course__accred {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.course__accred svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
  color: #d97706;
}

.course__desc {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.course__modules {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.5rem;
}

.course__modules h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.course__modules li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.course__modules svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--emerald-600);
}

.course__foot {
  background: var(--surface-alt);
  border-top: 1px solid #f1f5f9;
  padding: 1rem 1.25rem 1.25rem;
}

.course__facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.course__when {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.course__when span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.course__when svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--ink-mute);
}

.course__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-800);
  line-height: 1;
  white-space: nowrap;
}

.course__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.course__actions .btn {
  padding: 0.6rem 0.5rem;
  font-size: 0.75rem;
}

.inline-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .inline-cta {
    flex-direction: row;
  }
}

.inline-cta__text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inline-cta__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--brand-800);
  color: #fff;
}

.inline-cta__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.inline-cta h3 {
  font-size: 0.95rem;
  font-weight: 800;
}

.inline-cta p {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   10. Cardioprotección
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.split__copy > * + * {
  margin-top: 1.25rem;
}

.split__copy h2 {
  text-align: left;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-list svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--emerald-600);
}

.feature-list h3 {
  font-size: 0.875rem;
  font-weight: 700;
}

.feature-list p {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.photo-pair figure {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.photo-pair img,
.photo-pair .img-fallback {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.photo-pair figcaption {
  padding: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   11. FUNDAE
   -------------------------------------------------------------------------- */
.fundae {
  background: linear-gradient(90deg, var(--brand-800), var(--brand-900));
  color: #fff;
  padding-block: 4rem;
  scroll-margin-top: var(--header-h);
}

.fundae .section-intro h2 {
  color: #fff;
}

.fundae .lede {
  color: #e2e8f0;
}

.tag-bonif {
  display: inline-block;
  border: 1px solid rgb(251 191 36 / 0.3);
  background: rgb(69 26 3 / 0.6);
  color: var(--amber-300);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.steps {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--amber-400);
  color: #0f172a;
  font-family: var(--font-display);
  font-weight: 900;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.85rem;
  color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.faq__list {
  max-width: 48rem;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq__list details + details {
  border-top: 1px solid var(--line);
}

.faq__list details[open] {
  background: var(--surface-alt);
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  list-style: none;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary h3 {
  font-size: inherit;
  font-weight: inherit;
  font-family: var(--font-sans);
  letter-spacing: normal;
}

.faq__list summary svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: var(--brand-800);
  transition: transform 0.2s ease;
}

.faq__list details[open] summary svg {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   13. Opiniones
   -------------------------------------------------------------------------- */
.reviews {
  background: var(--surface-alt);
}

.reviews__head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .reviews__head {
    flex-direction: row;
    align-items: flex-end;
  }
}

.reviews__head h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  font-weight: 900;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: #f59e0b;
}

.stars svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.stars--sm svg {
  width: 1rem;
  height: 1rem;
}

.stars__score {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ink);
}

.review-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .review-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.review blockquote {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0.75rem 0 1rem;
}

.review figcaption {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.review__name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
}

.review__role {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.review__date {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   14. Contacto
   -------------------------------------------------------------------------- */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 5fr 7fr;
  }
}

.contact__aside > * + * {
  margin-top: 1.5rem;
}

.contact__aside h2 {
  text-align: left;
  font-size: clamp(1.6rem, 3.5vw, 1.875rem);
}

.nap {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.nap__row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.nap__row + .nap__row {
  margin-top: 1rem;
}

.nap__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
}

.nap__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nap__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nap strong {
  display: block;
  font-size: 0.875rem;
}

.nap__note {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.nap__tel {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent-700);
  text-decoration: none;
}

.nap__tel:hover {
  text-decoration: underline;
}

.contact__quick {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .contact__quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Formulario */
.form-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .form-card {
    padding: 2rem;
  }
}

.form-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.form-card__lede {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.field + .field,
.field-row + .field,
.field + .field-row,
.field-row + .field-row {
  margin-top: 1rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

/* Dentro de una fila el hueco lo pone la rejilla: el margen de
   «.field + .field» bajaba la segunda columna respecto a la primera. */
.field-row > .field + .field {
  margin-top: 0;
}

.field-row > .field:only-child {
  grid-column: 1 / -1;
}

.field + .btn {
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.req {
  color: var(--accent-700);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: var(--surface);
  font-size: 0.875rem;
  transition: border-color 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-800);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--accent-600);
}

.field__error {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-700);
}

.field__error:empty {
  display: none;
}

.field .consent {
  display: flex;
  margin-bottom: 0;
  font-weight: 500;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.consent input {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin-top: 0.2rem;
  accent-color: var(--brand-800);
}

.consent a {
  font-weight: 700;
  color: var(--brand-800);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-legal {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--ink-mute);
}

.form-status {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status[data-tone="ok"] {
  background: #d1fae5;
  color: #065f46;
}

.form-status[data-tone="error"] {
  background: var(--accent-50);
  color: var(--accent-700);
}

/* --------------------------------------------------------------------------
   15. Pie
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-900);
  color: #fff;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-block: 3rem 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-grid h2 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
}

.footer-grid li {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.footer-grid li a {
  text-decoration: none;
}

.footer-grid li a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-brand__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  padding: 0.2rem;
  border-radius: 0.4rem;
  background: #fff;
}

.footer-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-text {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.footer-muted {
  font-size: 0.75rem;
  color: #94a3b8;
}

.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f9a8d4;
  text-decoration: none;
}

.footer-ig:hover {
  text-decoration: underline;
}

.footer-ig svg {
  width: 0.75rem;
  height: 0.75rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-contact .chip {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
}

.footer-area {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-block: 1.5rem 1rem;
}

.footer-area h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.footer-area p {
  font-size: 0.75rem;
  color: #94a3b8;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   16. Diálogo de temario
   -------------------------------------------------------------------------- */
.course-dialog {
  /* El reset `* { margin: 0 }` anula el `margin: auto` que el navegador aplica
     a <dialog>, así que el diálogo quedaba pegado a la esquina superior
     izquierda en lugar de centrado. */
  margin: auto;
  width: min(36rem, calc(100% - 2rem));
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  background: var(--surface);
}

.course-dialog::backdrop {
  background: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(4px);
}

.course-dialog__inner {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 90vh;
}

.course-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.course-dialog__cat {
  display: inline-block;
  background: var(--accent-50);
  color: var(--accent-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 0.3rem;
}

.course-dialog h2 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-top: 0.5rem;
}

.course-dialog__accred {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.dialog-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: var(--surface-alt2);
  color: var(--ink-soft);
}

.dialog-close:hover {
  background: #e2e8f0;
}

.dialog-close svg {
  width: 1rem;
  height: 1rem;
}

.course-dialog__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
  border-block: 1px solid #f1f5f9;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.course-dialog__facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.course-dialog__facts svg {
  width: 1rem;
  height: 1rem;
}

.course-dialog section + section {
  margin-top: 1rem;
}

.course-dialog section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.course-dialog section p,
.course-dialog section li {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.course-dialog section li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.course-dialog section li svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin-top: 0.2rem;
  color: var(--emerald-600);
}

.course-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.course-dialog__actions .btn:first-child {
  flex: 1;
}

/* --------------------------------------------------------------------------
   17. Barra fija de contacto (móvil)
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem;
  background: rgb(255 255 255 / 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgb(15 23 42 / 0.12);
  backdrop-filter: blur(8px);
}

@media (min-width: 1024px) {
  .action-bar {
    display: none;
  }
}

.action-bar .btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   18. Páginas legales y 404
   -------------------------------------------------------------------------- */
.legal-header {
  background: var(--brand-900);
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  padding-block: 1.25rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #e2e8f0;
  text-decoration: none;
}

.legal-back:hover {
  color: #fff;
}

.legal-back svg {
  width: 1rem;
  height: 1rem;
}

.legal {
  background: var(--surface);
  padding-block: 3rem;
}

.legal article {
  max-width: 48rem;
  margin-inline: auto;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  font-weight: 900;
}

.legal__updated {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-mute);
}

.legal__body {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.legal__body > * + * {
  margin-top: 1.5rem;
}

.legal__body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2rem;
}

.legal__body ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal__body li {
  margin-bottom: 0.5rem;
}

.legal__body a {
  font-weight: 600;
  color: var(--brand-800);
}

.notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--surface-alt), var(--surface-alt2));
}

.notfound__card {
  width: 100%;
  max-width: 32rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.notfound__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: var(--accent-50);
}

.notfound__icon svg {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent-600);
}

.notfound__code {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
}

.notfound h1 {
  margin: 0.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.notfound p {
  margin-bottom: 2rem;
  color: var(--ink-soft);
}

.notfound__links {
  text-align: left;
  margin-bottom: 2rem;
}

.notfound__links li + li {
  margin-top: 0.5rem;
}

.notfound__links a {
  display: block;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-800);
  text-decoration: none;
}

.notfound__links a:hover {
  background: var(--surface-alt);
}

.notfound__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .notfound__actions {
    flex-direction: row;
  }
}


/* --------------------------------------------------------------------------
   19. Conócenos
   -------------------------------------------------------------------------- */
.equipo {
  background: var(--surface-alt);
}

.equipo__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 60rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .equipo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.persona {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: var(--header-h);
}

.persona__foto {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  object-position: center 25%;
  background: var(--surface-alt2);
}

.persona__cuerpo {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.persona__cabecera {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.persona h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.persona__cargo {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-700);
}

.persona__linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 0.5rem;
  background: #0a66c2;
  color: #fff;
  transition: background-color 0.18s ease;
}

.persona__linkedin:hover {
  background: #084d92;
}

.persona__linkedin svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  stroke: none;
}

.persona__cv {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.persona__cv summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-800);
  list-style: none;
}

.persona__cv summary::-webkit-details-marker {
  display: none;
}

.persona__cv summary svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  transition: transform 0.2s ease;
}

.persona__cv[open] summary svg {
  transform: rotate(180deg);
}

.persona__cv-cuerpo {
  padding-top: 0.75rem;
}

.persona__cv-cuerpo h4 {
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.persona__cv-cuerpo h4:first-child {
  margin-top: 0;
}

.persona__cv-cuerpo li {
  position: relative;
  padding-left: 0.9rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.persona__cv-cuerpo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-600);
}

.persona__exp {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.reviews__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-self: flex-start;
}


/* --------------------------------------------------------------------------
   20. Galería
   -------------------------------------------------------------------------- */
.galeria {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.galeria__bloque + .galeria__bloque {
  margin-top: 3rem;
}

.galeria__bloque h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.galeria__pie {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.galeria__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .galeria__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .galeria__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .galeria__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.galeria__mas {
  margin-top: 0.85rem;
}

.galeria__mas-btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.galeria__foto {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt2);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.galeria__foto img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .galeria__foto:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }

  .galeria__foto:hover img {
    transform: scale(1.04);
  }
}

/* --------------------------------------------------------------------------
   21. Visor de fotografías
   -------------------------------------------------------------------------- */
.visor {
  margin: auto;
  max-width: min(60rem, calc(100vw - 2rem));
  max-height: 90vh;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.visor::backdrop {
  background: rgb(2 6 23 / 0.88);
}

.visor img {
  display: block;
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #000;
}

.visor__cerrar,
.visor__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.visor__cerrar:hover,
.visor__nav:hover {
  background: #fff;
}

.visor__cerrar svg,
.visor__nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.visor__cerrar {
  top: -1rem;
  right: -1rem;
}

.visor__nav {
  top: 50%;
  transform: translateY(-50%);
}

.visor__nav--prev {
  left: -1rem;
  rotate: 180deg;
}

.visor__nav--next {
  right: -1rem;
}

@media (max-width: 640px) {
  .visor__cerrar { top: 0.5rem; right: 0.5rem; }
  .visor__nav--prev { left: 0.25rem; }
  .visor__nav--next { right: 0.25rem; }
}

/* --------------------------------------------------------------------------
   22. Carrusel de opiniones
   -------------------------------------------------------------------------- */
/* `position: relative` hace que los textos .sr-only (absolutos) de las
   opiniones queden recortados aquí; sin él escapaban del carrusel y creaban
   desplazamiento horizontal en toda la página en móvil. */
.carrusel {
  position: relative;
  overflow: hidden;
}

.carrusel__pista {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.carrusel__pista::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .carrusel__pista {
    grid-auto-columns: calc(50% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  .carrusel__pista {
    grid-auto-columns: calc(33.333% - 1rem);
  }
}

.carrusel__pista > .review {
  scroll-snap-align: start;
}

.carrusel__controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carrusel__flecha {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-800);
  transition: background-color 0.18s ease;
}

.carrusel__flecha:hover {
  background: var(--surface-alt2);
}

.carrusel__flecha svg {
  width: 1.1rem;
  height: 1.1rem;
}

.carrusel__flecha[data-carrusel-prev] svg {
  rotate: 180deg;
}

.carrusel__puntos {
  display: flex;
  gap: 0.4rem;
}

.carrusel__punto {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #cbd5e1;
  transition:
    background-color 0.18s ease,
    width 0.18s ease;
}

.carrusel__punto[aria-selected="true"] {
  width: 1.4rem;
  background: var(--brand-800);
}

.course-dialog__notas {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
}

.course-dialog__notas p {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.course-dialog__notas p + p {
  margin-top: 0.35rem;
}
