/* ============================================================
   EXÁMENES NOROESTE — Design System CSS
   Convertido desde el estático (inline → clases)
   Bootstrap grid convive con estas clases; no se usan componentes Bootstrap.
   ============================================================ */

/* ── TOKENS ── */
:root {
  --blue:        #004C97;
  --blue-50:     #EAF1F8;
  --blue-700:    #003A73;
  --blue-900:    #002B55;
  --red:         #DA291C;
  --red-600:     #BF2117;
  --cyan:        #59CBE8;
  --ink:         #222221;
  --ink-50:      #6f6f6c;
  --ink-70:      #4a4a48;
  --paper:       #ffffff;
  --ivory:       #F5F4F0;
  --line:        #E3E1DA;
  --line-strong: #cfccc2;
  --is-bg:       #e7eef6;

  --font-main:   'Source Sans Pro', sans-serif;
  --max-w:       1280px;
  --max-w-header:1340px;
  --px:          clamp(1.25rem, 5vw, 3rem);
  --header-h:    78px;
}

/* ── RESET + BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { list-style: none; }

/* ── EDITOR: neutralize reveal/parallax ── */
.editor-styles-wrapper [data-reveal]       { opacity: 1 !important; transform: none !important; transition: none !important; }
.editor-styles-wrapper [data-parallax]     { transform: none !important; }

/* ── SCROLL REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ──────────────────────────────────────────
   LAYOUT CONTAINERS
   ──────────────────────────────────────────*/
.en-container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.en-container--wide {
  max-width: var(--max-w-header);
}

/* ──────────────────────────────────────────
   HEADER
   ──────────────────────────────────────────*/
/* El wrapper que WordPress genera para el template part ("header.wp-block-
   template-part") tiene la misma altura que .site-header, así que su
   "containing block" no tiene margen para quedar pegado al hacer scroll.
   Al quitarlo de la caja (display:contents) .site-header queda pegado
   respecto a .wp-site-blocks, que sí ocupa toda la página. */
header.wp-block-template-part { display: contents; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: border-color .35s ease, background .35s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255,255,255,.92);
}
.site-header__inner {
  width: 100%;
  max-width: var(--max-w-header);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.site-header__logo img {
  height: 80px;
  width: auto;
}
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0; /* puede encogerse en móvil… */
}
.custom-logo-link .custom-logo,
.custom-logo-link img {
  /* …y el logo se reduce entero, sin deformarse: 80 px de alto como máximo */
  height: auto;
  width: auto;
  max-height: 80px;
  max-width: 100%;
  display: block;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 2vw, 1.2rem);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .15rem;
  font-size: .85rem;
  font-weight: 600;
}
.lang-switcher a {
  padding: .25rem .35rem;
  border-radius: 4px;
  color: var(--ink-50);
  transition: color .2s ease;
}
.lang-switcher a[aria-current="true"],
.lang-switcher a.current {
  color: var(--blue);
}
.lang-switcher__sep { color: var(--line-strong); }

/* Hamburger button — 3 líneas que rotan suavemente hacia una X */
.menu-toggle {
  display: inline-flex;
  position: relative;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle__bar {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: top .3s ease-in-out, transform .3s ease-in-out, opacity .25s ease-in-out;
  transform-origin: center;
}
.menu-toggle__bar:nth-child(1) { top: 15px; }
.menu-toggle__bar:nth-child(2) { top: 22px; }
.menu-toggle__bar:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* ──────────────────────────────────────────
   FULL-SCREEN MENU OVERLAY
   ──────────────────────────────────────────*/
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Fila superior del overlay — igual que el header del estático */
.nav-overlay__topbar {
  flex-shrink: 0;
  width: 100%;
  max-width: var(--max-w-header);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Navegación central */
.nav-overlay__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .18rem;
  text-align: center;
  padding: 1.5rem var(--px) 3.5rem;
}
/* El menú va dentro de <ul> (accesibilidad); la lista no cambia la maqueta */
.nav-overlay__nav > ul.nav-overlay__list { display: contents; }
.nav-overlay__nav > ul,
.nav-overlay__nav > ul > li,
.nav-overlay__nav > li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-overlay__main-link,
.nav-overlay__nav > ul > li > a,
.nav-overlay__nav > li > a {
  display: block;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--blue);
  font-size: clamp(1.7rem, 1.05rem + 2.7vw, 2.9rem);
  transition: color .2s ease;
}
.nav-overlay__main-link:hover,
.nav-overlay__nav > ul > li > a:hover,
.nav-overlay__nav > li > a:hover { color: var(--red); }

.nav-overlay__sub-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem 1.5rem;
  max-width: 760px;
  margin: .55rem 0 1rem;
}
.nav-overlay__sub-link {
  font-weight: 600;
  font-size: clamp(.98rem, .9rem + .4vw, 1.18rem);
  color: var(--red);
  transition: color .2s ease;
  line-height: 1.3;
}
.nav-overlay__sub-link:hover { color: var(--blue); }

/* Sub-menú generado por wp_nav_menu dentro del overlay */
.nav-overlay__nav .sub-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem 1.5rem;
  max-width: 760px;
  margin: .55rem 0 1rem;
  padding: 0;
  list-style: none;
}
.nav-overlay__nav .sub-menu > li > a {
  font-weight: 600;
  font-size: clamp(.98rem, .9rem + .4vw, 1.18rem);
  color: var(--red);
  transition: color .2s ease;
  line-height: 1.3;
}
.nav-overlay__nav .sub-menu > li > a:hover { color: var(--blue); }

/* Botón cerrar — sin borde, sólo el carácter ✕ */
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 0;
  color: var(--blue);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .35s ease, color .25s ease;
}
.menu-close:hover { transform: rotate(90deg); color: var(--blue-700); }

/* ──────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────────*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
  line-height: 1;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.btn.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn.btn--primary:hover { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.btn.btn--secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn.btn--secondary:hover { background: var(--blue); color: #fff; }
.btn.btn--blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn.btn--blue:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.btn.btn--large { padding: .9rem 2rem; font-size: 1.05rem; }
.btn.btn--sm    { padding: .5rem 1rem; font-size: .875rem; }

/* ──────────────────────────────────────────
   SECTIONS — background variants
   ──────────────────────────────────────────*/
.section {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}
.section--paper,
.section-paper  { background: var(--paper); }
.section--light { background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%); }
.section--blue  { background: var(--blue); color: #fff; }
.section--blue-50 { background: var(--blue-50); }
.section--compact { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--hero  { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* ──────────────────────────────────────────
   TYPOGRAPHY
   ──────────────────────────────────────────*/
.heading-xl {
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.heading-lg {
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.heading-md {
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
}
.heading-sm {
  font-size: clamp(1.1rem, .9rem + 1vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
}
.eyebrow {
  font-size: clamp(.7rem, .65rem + .25vw, .85rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.lead {
  font-size: clamp(1rem, .9rem + .5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-50);
}
.text-blue  { color: var(--blue); }
.text-red   { color: var(--red); }
.text-ink   { color: var(--ink); }
.text-ink50 { color: var(--ink-50); }
.text-white { color: #fff; }

/* ──────────────────────────────────────────
   BREADCRUMB BAR
   ──────────────────────────────────────────*/
.breadcrumb-bar {
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
  padding-block: .65rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-50);
}
.breadcrumb-bar__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.breadcrumb-bar a { color: var(--blue); }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar .breadcrumb_last { color: var(--ink); }
.breadcrumb-bar > div > span { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }

/* ──────────────────────────────────────────
   PAGE HERO BLOCK
   ──────────────────────────────────────────*/
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--paper);
}
.page-hero__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.page-hero__text {
  flex: 1.1 1 440px;
  min-width: min(100%, 400px);
}
.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0;
}
.page-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.page-hero__title {  
  font-size: clamp(2.9rem, 1.7rem + 3.8vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .97;
  color: var(--ink);
  margin: 1.2rem 0 0;
  max-width: 800px;
}
.page-hero__subtitle {
  font-size: clamp(1.18rem, 1rem + .7vw, 1.2rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 62ch;
  margin-top: 1.5rem;
}
.page-hero__subtitle + .page-hero__subtitle { margin-top: .9rem; }
.page-hero__text a:not(.wp-block-button__link) {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .15em;
}
.page-hero__text a:not(.wp-block-button__link):hover { color: var(--blue-700); text-decoration-color: currentColor; }
.page-hero__text .wp-block-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
/* Logo de certificación junto a los botones (opcional), igual que en el hero de la portada */
.page-hero__text.has-cert-logo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem;
}
.page-hero__text.has-cert-logo > * { grid-column: 1 / -1; }
.page-hero__text.has-cert-logo > .wp-block-buttons { grid-column: 1; align-self: center; }
.page-hero__text.has-cert-logo > .page-hero__cert-logo { grid-column: 2; align-self: center; margin-top: 2rem; }
.page-hero__cert-logo-img { height: 60px !important; width: auto !important; max-width: none; display: block; }
@media (max-width: 991.98px) {
  .page-hero__text.has-cert-logo { grid-template-columns: minmax(0, 1fr); }
  .page-hero__text.has-cert-logo > .page-hero__cert-logo { grid-column: 1; justify-self: start; order: 1; }
  .page-hero__text.has-cert-logo > .wp-block-buttons { order: 2; margin-top: 1.25rem; }
  .page-hero__text.has-cert-logo > .wp-block-buttons ~ :not(.page-hero__cert-logo) { order: 3; }
}
.page-hero__visual {
  position: relative;
  flex: 1 1 400px;
  min-width: min(100%, 320px);
  aspect-ratio: 4 / 3.2;
  max-width: 540px;
  margin-inline: auto;
}
.page-hero__blob {
  position: absolute;
  border-radius: 58% 42% 47% 53% / 55% 48% 52% 45%;
  pointer-events: none;
  z-index: 0;
}
.page-hero__blob--a {
  top: -6%;
  right: -3%;
  width: 52%;
  aspect-ratio: 1 / 1;
  background: var(--cyan);
  opacity: .8;
}
.page-hero__blob--b {
  bottom: -7%;
  left: -3%;
  width: 44%;
  aspect-ratio: 1 / 1;
  background: var(--blue-50);
}
.page-hero__image {
  position: absolute;
  top: 4%;
  left: 5%;
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 18px;
  z-index: 2;
  box-shadow: 0 34px 72px -34px rgba(0,43,85,.5);
}
/* Logo encima de la foto (opcional): capa aparte, a la izquierda, sobre la pared */
.page-hero__image-logo {
  position: absolute;
  top: 30%;
  left: 15%;
  width: 21%;
  height: auto;
  z-index: 3;
  pointer-events: none;
}
.hero-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.4);
  transition: transform .2s ease, background .2s ease;
}
.hero-play-btn i { margin-left: 3px; }
.hero-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
/*
.page-hero:not(.page-hero--has-image)::before,
.page-hero:not(.page-hero--has-image)::after {
  content: '';
  position: absolute; 
  border-radius: 58% 42% 47% 53% / 55% 48% 52% 45%;
  pointer-events: none;
  z-index: 0;
}
.page-hero:not(.page-hero--has-image)::before {
  top: -8%;
  right: -6%;
  width: clamp(220px, 26vw, 360px);
  aspect-ratio: 1 / 1;
  background: var(--cyan);
  opacity: .35;
}
.page-hero:not(.page-hero--has-image)::after {
  bottom: -12%;
  right: 8%;
  width: clamp(160px, 18vw, 260px);
  aspect-ratio: 1 / 1;
  background: var(--blue-50);
}
  */

@media (max-width: 768px) {
  .page-hero__visual { display: none; }
}

/* ──────────────────────────────────────────
   EXAM HERO BLOCK (solo fichas de examen)
   ──────────────────────────────────────────*/
.exam-hero {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--paper);
}
.exam-hero__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.exam-hero__text {
  flex: 1.1 1 440px;
  min-width: min(100%, 400px);
}
.exam-hero__text .page-hero__title { margin-top: 1.2rem; }
.exam-hero__text a:not(.wp-block-button__link) {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .15em;
}
.exam-hero__text a:not(.wp-block-button__link):hover { color: var(--blue-700); text-decoration-color: currentColor; }
.exam-hero__text .wp-block-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.exam-hero__side {
  flex: 1 1 420px;
  min-width: min(100%, 360px);
}
.exam-hero__badge-wrap { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.exam-hero__badge-img { display: block; height: 58px; width: auto; max-width: 220px; object-fit: contain; }
.exam-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 32px -8px rgba(0,43,85,.12);
}
.exam-hero__cell {
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exam-hero__cell:nth-child(2n) { border-right: none; }
.exam-hero__cell:nth-last-child(-n+2) { border-bottom: none; }
.exam-hero__cell-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-50);
  margin-bottom: .5rem;
}
.exam-hero__cell-value {
  display: block;
  font-size: clamp(.95rem, .9rem + .3vw, 1.1rem);
  font-weight: 700; color: var(--ink); line-height: 1.3;
}
.exam-hero__cell-value ~ .exam-hero__cell-value { margin-top: .55rem; }
.exam-hero__cell-note {
  display: block;
  color: var(--ink-50);
  font-size: .8rem;
  margin-top: .15rem;
}
@media (max-width: 600px) {
  .exam-hero__grid { grid-template-columns: 1fr; }
  .exam-hero__cell { border-right: none !important; }
  .exam-hero__cell:not(:last-child) { border-bottom: 1px solid var(--line) !important; }
}

/* ──────────────────────────────────────────
   HERO HOME BLOCK (inicio.html)
   ──────────────────────────────────────────*/
.hero-home {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
  background: var(--paper);
}
.hero-home__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.hero-home__content { flex: 1; min-width: 0; }
.hero-home__media   { flex: 0 0 45%; display: flex; align-items: center; justify-content: center; }
.hero-home__eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.hero-home__title {
  font-size: clamp(2.25rem, 1rem + 3.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .9;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-home__subtitle {
  font-size: clamp(1.18rem, 1rem + .7vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-home__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-home__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .08;
}

@media (max-width: 768px) {
  .hero-home__inner { flex-direction: column; }
  .hero-home__media { display: none; }
}

/* ──────────────────────────────────────────
   LOGO MARQUEE BLOCK
   ──────────────────────────────────────────*/
.logo-marquee {
  overflow: hidden;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  animation: marquee-scroll 84s linear infinite;
  width: max-content;
}
.logo-marquee__track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-marquee__item {
  flex-shrink: 0;
  font-weight: 700;
  font-size: clamp(.8rem, .75rem + .25vw, 1rem);
  color: var(--ink-50);
  white-space: nowrap;
  opacity: .7;
}
.logo-marquee__item img { height: 32px; width: auto; }

/* ──────────────────────────────────────────
   EXAM FAMILY GRID (antes "exam row sticky" — ahora grid de tarjetas)
   ──────────────────────────────────────────*/
.exam-family-grid {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.exam-family-grid:not(.has-background) {
  background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%);
}
.exam-family-grid__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.exam-family-grid__intro { max-width: 58ch; }
.exam-family-grid__eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0;
}
.exam-family-grid__eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.exam-family-grid__title {
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.07;
  color: var(--ink);
  margin: .9rem 0 0;
}
.exam-family-grid__text {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-70);
  margin: 1rem 0 0;
}
.exam-family-grid__cards {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  margin-top: clamp(2rem, 4vw, 3rem);
}
.exam-family-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.exam-family-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -28px rgba(0,43,85,.4);
  border-color: var(--blue);
}
.exam-family-card__badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.exam-family-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.exam-family-card__dot--cyan { background: var(--cyan); }
.exam-family-card__dot--blue { background: var(--blue); }
.exam-family-card__dot--red  { background: var(--red); }
.exam-family-card__title {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: .8rem 0 .6rem;
}
.exam-family-card__desc {
  color: var(--ink-70);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.exam-family-card__levels {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.exam-family-card__level-pill {
  display: inline-flex;
  padding: .2rem .55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--blue);
}
.exam-family-card__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.4rem;
  font-weight: 700;
  color: var(--blue);
}

/* ──────────────────────────────────────────
   STEPS SECTION BLOCK
   ──────────────────────────────────────────*/
.steps-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.steps-section:not(.has-background) {
  background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%);
}
.steps-section__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.steps-section__header { text-align: center; margin-bottom: clamp(2rem, 5vw, 4rem); }
.steps-section__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}
.steps-section__title {
  font-size: clamp(1.6rem, 1rem + 3vw, 2.8rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
}
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.step {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.step__number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--blue);
  opacity: .15;
  line-height: 1;
}
.step__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}
.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
}
.step__text {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-50);
}

/* ──────────────────────────────────────────
   CTA BAND BLOCK
   ──────────────────────────────────────────*/
.cta-band-section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background: var(--paper);
}
.cta-band-section__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
/* Sin padding lateral ni superior cuando la banda va dentro de una entrada
   de blog, donde ya lo aporta el ancho máximo del contenido
   (.wp-block-post-content) y el espaciado entre bloques del post. */
.blog-post-body .wp-block-post-content .cta-band-section {
  padding-top: 0;
  padding-bottom: 0;
}
.blog-post-body .wp-block-post-content .cta-band-section__inner {
  padding: 0;
}
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--blue) 0%, var(--blue-700) 55%, var(--blue-900) 100%);
  border-radius: 18px;
  padding: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(0,43,85,.55);
}
/*
.cta-band__deco {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 58% 42% 38% 62% / 46% 56% 44% 54%;
  background: rgba(89,203,232,.18);
  pointer-events: none;
}
  */
.cta-band__content {
  position: relative;
  z-index: 1;
  max-width: 60ch;
}
.cta-band .cta-band__content .cta-band__eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0;
}
.cta-band__eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.cta-band .cta-band__content .cta-band__title {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: #fff;
  margin: .9rem 0 0;
}
.cta-band .cta-band__content .cta-band__subtitle {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.28rem);
  line-height: 1.55;
  color: #fff;
  opacity: 1;
  margin: 1.1rem 0 0;
}
.cta-band__action,
.cta-band__content .wp-block-buttons { margin-top: 1.8rem; }
.cta-band .btn--white {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.cta-band .btn--white:hover { background: var(--blue-50); border-color: var(--blue-50); color: var(--blue); }
.cta-band__action .btn::after,
.cta-band .wp-block-button__link::after {
  content: '→';
}

/* ──────────────────────────────────────────
   STATS HIGHLIGHT BLOCK
   ──────────────────────────────────────────*/
.stats-highlight {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}
.stats-highlight__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.stat-item__number {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-item__label {
  font-size: .95rem;
  color: var(--ink-50);
  line-height: 1.4;
}
/* Título opcional encima de las cifras (InnerBlocks) */
.stats-highlight__intro {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.stats-highlight__title,
.stats-highlight__intro .wp-block-heading {
  font-size: clamp(2.5rem, 1.9rem + 2vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.07;
  color: var(--ink);
  margin: 0;
}
/* Variante «Tarjetas sobre fondo azul» (página Nosotros · Nuestra experiencia en cifras) */
.stats-highlight--tarjetas {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.stats-highlight--tarjetas:not(.has-background) {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-700) 60%, var(--blue-900) 100%);
}
.stats-highlight--tarjetas .stats-highlight__intro .wp-block-heading,
.stats-highlight--tarjetas .stats-highlight__title { color: #fff; }
.stats-highlight--tarjetas .stats-highlight__inner {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.stats-highlight--tarjetas .stat-item {
  gap: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
}
.stats-highlight--tarjetas .stat-item__number {
  font-size: clamp(2.8rem, 2rem + 2.4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
}
.stats-highlight--tarjetas .stat-item__label {
  margin-top: .8rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

/* ──────────────────────────────────────────
   LEVEL CARDS BLOCK
   ──────────────────────────────────────────*/
.level-cards { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--paper); }
.level-cards__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: flex-start;
}
.level-cards__intro { flex: 1 1 300px; min-width: min(100%, 280px); max-width: 380px; }
.level-cards__intro-sticky { position: sticky; top: 104px; }
.level-cards__intro a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .15em;
}
.level-cards__intro a:hover { color: var(--blue-700); text-decoration-color: currentColor; }
.level-cards__eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.level-cards__eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.level-cards__title {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
  color: var(--ink); margin: .9rem 0 0;
}
.level-cards__text { color: var(--ink-70); line-height: 1.6; margin: 1.1rem 0 0; max-width: 34ch; }
.level-cards__list { flex: 1.6 1 480px; min-width: min(100%, 320px); border-top: 1px solid var(--line); }
.level-cards__empty-notice {
  background: var(--paper);
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  max-width: 640px;
}
.level-cards__empty-notice p {
  color: var(--ink-70);
  line-height: 1.6;
  margin: 0;
}
.level-cards__empty-notice p + p { margin-top: .75rem; }
.level-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: center;
  padding: clamp(1.4rem, 2.8vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease;
  cursor: pointer;
}
.level-card:hover { padding-left: 10px; }
.level-card__badge {
  display: grid;
  place-items: center;
  width: clamp(52px, 7vw, 64px);
  height: clamp(52px, 7vw, 64px);
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  flex: none;
}
.level-card__body { display: flex; flex-direction: column; gap: .3rem; }
.level-card__name {
  font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.level-card__desc { color: var(--ink-70); line-height: 1.55; max-width: 60ch; }
.level-card__arrow { font-size: 1.7rem; color: var(--blue); }
.level-card.is-active { background: var(--blue-50); border-radius: 14px; padding-inline: 1rem; margin-inline: -1rem; }
@media (max-width: 768px) {
  .level-cards__intro-sticky { position: static; }
}

/* ──────────────────────────────────────────
   EXAM DATASHEET BLOCK
   ──────────────────────────────────────────*/
.exam-datasheet {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}
.exam-datasheet__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.exam-datasheet__title {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
  margin: 0;
}
.exam-datasheet__title::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.exam-datasheet__heading {
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.07;
  color: var(--ink); margin: .9rem 0 clamp(1.5rem, 3vw, 2.5rem);
}
.datasheet-grid { max-width: 760px; }
.datasheet-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(.9rem, 2vw, 1.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.datasheet-item:last-child { border-bottom: none; }
@media (max-width: 600px) {
  .datasheet-item { flex-direction: column; align-items: flex-start; gap: .35rem; }
}
.datasheet-item__key {
  font-weight: 600;
  color: var(--ink);
  max-width: 30ch;
  line-height: 1.4;
}
.datasheet-item__value {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

/* ──────────────────────────────────────────
   EXAM INFO GENERAL BLOCK (solo fichas de examen)
   Une "información general" + datos del examen + texto
   "para qué te sirve" en dos columnas.
   ──────────────────────────────────────────*/
.exam-info-general {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}
.exam-info-general__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: flex-start;
}
.exam-info-general__left {
  flex: 1.4 1 380px;
  min-width: min(100%, 340px);
}
/* Sin ficha de datos: en vez de dejar que la columna de texto crezca a todo
   el ancho, se añade un hueco fantasma (mismo flex-basis/flex-grow que
   .exam-info-general__right pero invisible) para que el navegador reparta
   el espacio exactamente igual que si la ficha estuviera presente. */
.exam-info-general__right-ghost { flex: 1 1 320px; min-width: min(100%, 300px); }
@media (max-width: 768px) {
  .exam-info-general__right-ghost { display: none; }
}
.exam-info-general__left .info-cards__eyebrow { margin: 0; }
.exam-info-general__left .info-cards__title { margin: .9rem 0 1.1rem; }
.exam-info-general__left p { line-height: 1.6; color: var(--ink-70); }
.exam-info-general__left p + p { margin-top: 1rem; }
.exam-info-general__left a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .15em;
}
.exam-info-general__left a:hover { color: var(--blue-700); text-decoration-color: currentColor; }
.exam-info-general__right {
  flex: 1 1 320px;
  min-width: min(100%, 300px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 8px 32px -8px rgba(0,43,85,.1);
}
.exam-info-general__right .exam-datasheet__title { margin: 0; }
.exam-info-general__right .exam-datasheet__heading { margin: .7rem 0 1.2rem; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.exam-info-general__right .datasheet-grid { max-width: none; }
.exam-info-general__right .datasheet-item { padding: clamp(.7rem, 1.4vw, .95rem) 0; }
.exam-info-general__right .datasheet-item__value {
  white-space: normal;
  text-align: right;
  font-size: .9rem;
}

/* ──────────────────────────────────────────
   FAQ ACCORDION
   ──────────────────────────────────────────*/
.faq-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}
.faq-section__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.faq-section__header { margin-bottom: 2.5rem; }
.faq-section__eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}
.faq-section__eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.faq-section__title {
  font-size: clamp(1.6rem, 1rem + 3vw, 2.8rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
}
.faq-list { max-width: 800px; }
.faq-section .wp-block-details {
  border-bottom: 1px solid var(--line);
}
.faq-section .wp-block-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
.faq-section .wp-block-details > summary::-webkit-details-marker { display: none; }
.faq-section .wp-block-details > summary:hover { color: var(--blue); }
.faq-section .wp-block-details > summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  color: var(--blue);
  transition: background .2s ease, border-color .2s ease;
}
.faq-section .wp-block-details[open] > summary::after {
  content: "−";
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.faq-section .wp-block-details > :not(summary) {
  padding-bottom: 1.25rem;
  font-size: .97rem;
  line-height: 1.7;
  color: var(--ink-50);
}
.faq-section .wp-block-details > :not(summary) a { color: var(--blue); text-decoration: underline; }

/* ──────────────────────────────────────────
   CONTACT FORM
   ──────────────────────────────────────────*/
.contact-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}
.contact-section .wpcf7 {
  max-width: 720px;
  margin-inline: auto;
}
/* CF7 form base */
.wpcf7-form { max-width: 100%; }
.wpcf7-form p { margin-bottom: 0; }
/* CF7 2-column grid wrapper */
.cf7-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
@media (max-width: 640px) { .cf7-grid { grid-template-columns: 1fr; } }
/* CF7 field wrapper */
.cf7-field { margin-bottom: 1.25rem; }
/* Labels */
.cf7-label,
.wpcf7-form label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}
.cf7-label span[aria-hidden] { color: var(--red); margin-left: .15em; }
/* Inputs / select / textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .2s ease;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,76,151,.1);
}
.wpcf7-form textarea { min-height: 160px; resize: vertical; }
/* Custom select arrow */
.wpcf7-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%236f6f6c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
/* Acceptance checkbox */
.cf7-field--acceptance {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: var(--ink-50);
  margin-bottom: 1.25rem;
}
.cf7-field--acceptance .wpcf7-form-control-wrap { display: contents; }
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: .15em;
  width: 1rem; height: 1rem;
  accent-color: var(--blue);
  cursor: pointer;
}
.cf7-field--acceptance a { color: var(--blue); text-decoration: underline; }
.wpcf7-form .wpcf7-not-valid-tip { font-size: .8rem; color: var(--red); margin-top: .3rem; display: block; }
/* Submit button */
.cf7-field--submit { margin-bottom: 0; margin-top: .5rem; }
.wpcf7-form .wpcf7-submit {
  background: var(--red);
  color: #fff;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  padding: .75rem 2.25rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
  letter-spacing: .01em;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--red-600); border-color: var(--red-600); }
.wpcf7-form .wpcf7-submit:disabled { opacity: .6; cursor: not-allowed; }
/* Response messages */
.wpcf7-response-output {
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .9rem;
  margin-top: 1.25rem !important;
  border: none !important;
}
.wpcf7-mail-sent-ok { background: #eefaee; color: #1a6b1a; }
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked  { background: #fdf0f0; color: #b52020; }
.wpcf7-validation-errors { background: #fff8ed; color: #7a5200; }

/* ──────────────────────────────────────────
   CONVOCATORIAS EMBED
   ──────────────────────────────────────────*/
.convocatorias-embed {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%);
}
.convocatorias-embed__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.convocatorias-embed iframe {
  width: 100%;
  border: none;
  border-radius: 16px;
  min-height: 600px;
}

/* ──────────────────────────────────────────
   CENTROS PREPARADORES
   ──────────────────────────────────────────*/
.centros-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%);
}
.centros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.centro-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.centro-card:hover { box-shadow: 0 4px 24px rgba(0,76,151,.1); }
.centro-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .5rem;
}
.centro-card__city {
  font-size: .875rem;
  color: var(--ink-50);
  margin-bottom: .75rem;
}
.centro-card__exams {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.centro-card__badge {
  font-size: .7rem;
  font-weight: 700;
  background: var(--blue-50);
  color: var(--blue);
  padding: .15rem .5rem;
  border-radius: 999px;
}

/* ──────────────────────────────────────────
   PROMPT BAND (link a ¿qué examen necesitas?)
   ──────────────────────────────────────────*/
.prompt-band {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--blue-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.prompt-band__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.prompt-band__text {
  font-size: clamp(1rem, .9rem + .5vw, 1.2rem);
  font-weight: 600;
  color: var(--blue);
}
.prompt-band__text span { color: var(--red); }

/* ──────────────────────────────────────────
   ABOUT / SOBRE NOSOTROS
   ──────────────────────────────────────────*/
.about-section {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
  background: var(--paper);
}
.about-section__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.about-section__content {}
.about-section__eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.about-section__title,
.about-section__content .wp-block-heading {
  font-size: clamp(2.5rem, 1.9rem + 2vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.07;
  margin-bottom: 1.25rem;
}
.about-section__body {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
}
.about-section__stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (max-width: 768px) {
  .about-section__inner { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────*/
.site-footer {
  background: var(--blue-700);
  color: rgba(255,255,255,.78);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
}
.site-footer__brand img { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.site-footer__brand-text { font-size: .875rem; line-height: 1.6; opacity: .65; }
.site-footer__col-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer__col ul { display: flex; flex-direction: column; gap: .5rem; }
.site-footer__col a { font-size: .9rem; opacity: .65; transition: opacity .2s ease; }
.site-footer__col a:hover { opacity: 1; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer__copy { font-size: .8rem; opacity: .45; }
.site-footer__legal { display: flex; gap: 1.5rem; }
.site-footer__legal .menu-item { list-style: none; }
/* El menú legal va dentro de <ul> (accesibilidad); la lista no cambia la maqueta */
.site-footer__legal-list { display: contents; }
.site-footer__legal a { font-size: .8rem; opacity: .45; transition: opacity .2s ease; }
.site-footer__legal a:hover { opacity: .8; }

@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────
   ABOUT INLINE (sobre nosotros en inicio)
   ──────────────────────────────────────────*/
.convocatorias-band {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
}
.convocatorias-band__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.convocatorias-band__text { font-size: clamp(1rem, .9rem + .5vw, 1.2rem); font-weight: 600; }
.convocatorias-band__dates { display: flex; gap: 2rem; flex-wrap: wrap; }
.convocatorias-band__date { text-align: center; }
.convocatorias-band__date .day { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.convocatorias-band__date .month { font-size: .8rem; font-weight: 600; opacity: .7; }

/* ──────────────────────────────────────────
   UTILIDADES
   ──────────────────────────────────────────*/
.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; }
.u-text-center { text-align: center; }
.u-mt-1 { margin-top: .5rem; }
.u-mt-2 { margin-top: 1rem; }
.u-mt-3 { margin-top: 1.5rem; }
.u-mt-4 { margin-top: 2rem; }
.u-mb-4 { margin-bottom: 2rem; }

/* ──────────────────────────────────────────
   NATIVE BLOCK PATCHES (WP core overrides)
   ──────────────────────────────────────────*/
.wp-block-group[data-bg="blue"]  { background: var(--blue); }
.wp-block-group[data-bg="paper"] { background: var(--paper); }
.wp-block-group[data-bg="light"] { background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%); }
.wp-block-group[data-bg] { padding-block: clamp(2.5rem, 6vw, 5rem); }

/* Alinea el layout nativo "El ancho del contenido" (Grupo → Ajustes → Diseño)
   con la retícula de 1280px + padding fluido que usa el resto del sitio. */
.wp-block-group.is-layout-constrained > :where(:not(.alignfull)) {
  padding-inline: var(--px);
}
.wp-block-group.is-layout-constrained > .wp-block-heading {
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.wp-block-group.is-layout-constrained > p {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink);
}
@media (min-width: 1376px) {
  .wp-block-group.is-layout-constrained > p {
    padding-right: calc(var(--max-w) - 760px - var(--px));
  }
}

/* ──────────────────────────────────────────
   ANIMACIONES — home page
   ──────────────────────────────────────────*/
@keyframes exnMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes exnFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(3deg); }
}

/* ── ADMIN BAR OFFSET ── */
html.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  html.admin-bar .site-header { top: 46px; }
}

/* ── FOOTER LINK HOVER ── */
.site-footer a:hover { color: #fff; }

/* ──────────────────────────────────────────
   NATIVE BLOCKS DENTRO DE BLOQUES CUSTOM
   ──────────────────────────────────────────*/
.hero-home__content .wp-block-buttons,
.que-examen  .wp-block-buttons,
.about-section__content .wp-block-buttons {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.hero-home__content .wp-block-button,
.que-examen  .wp-block-button,
.about-section__content .wp-block-button {
  display: inline-flex;
}
.hero-home__content .wp-block-button__link,
.que-examen  .wp-block-button__link,
.about-section__content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  background: var(--red);
  color: #fff !important;
  border: 1.5px solid var(--red);
  transition: background .25s ease, border-color .25s ease;
  text-decoration: none;
}
.hero-home__content .wp-block-button__link:hover,
.que-examen  .wp-block-button__link:hover,
.about-section__content .wp-block-button__link:hover {
  background: var(--red-600);
  border-color: var(--red-600);
}
/* Flecha consistente en los botones CTA principales (mismo patrón en todo el sitio) */
.hero-home__content .wp-block-button__link::after,
.que-examen  .wp-block-button__link::after,
.about-section__content .wp-block-button__link::after,
.conv-card .wp-block-button__link::after {
  content: '→';
}
/* Botones nativos (core/button con className btn--*) */
.wp-block-button.btn--primary .wp-block-button__link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: .97rem; line-height: 1;
  background: var(--red); color: #fff !important;
  border: 1.5px solid var(--red); text-decoration: none;
  transition: background .25s ease, border-color .25s ease;
}
.wp-block-button.btn--primary .wp-block-button__link:hover {
  background: var(--red-600); border-color: var(--red-600);
}
.wp-block-button.btn--secondary .wp-block-button__link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: .97rem; line-height: 1;
  background: transparent; color: var(--blue) !important;
  border: 1.5px solid var(--blue); text-decoration: none;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.wp-block-button.btn--secondary .wp-block-button__link:hover {
  background: var(--blue); color: #fff !important;
}
/* btn--large debe ir después de primary/secondary para poder pisar su padding/font-size */
.wp-block-button.btn--large .wp-block-button__link {
  padding: .9rem 2rem;
  font-size: 1.05rem;
}

/* heading en hero */
.hero-home__content h1.hero-home__title,
.hero-home__content .wp-block-heading.hero-home__title {
  font-size: clamp(2.25rem, 1rem + 3.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .9;
  color: var(--ink);
  margin: 1.4rem 0 0;
}
/* párrafo subtitle en hero */
.hero-home__content .hero-home__subtitle {
  font-size: clamp(1.18rem, 1rem + .7vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink);
  margin: 1.8rem 0 0;
  max-width: 500px;
}
/* eyebrow como párrafo nativo */
.que-examen__inner  p.que-examen__eyebrow,
.about-section__content p.about-section__eyebrow {
  margin: 0 0 1rem;
}

/* ──────────────────────────────────────────
   HEADER — helpers
   ──────────────────────────────────────────*/
.site-header__logo-text {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--blue);
}
.site-footer__logo-text {
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
}

/* ──────────────────────────────────────────
   FOOTER — brand row + cert logo
   ──────────────────────────────────────────*/
.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
  margin-bottom: 1.25rem;
}
.site-footer__brand-row img { width: auto !important; }
.site-footer__logo-img { height: 60px !important; filter: none !important; display: block; }
.site-footer__brand-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}
.site-footer__cert-logo {
  height: 60px !important;
  filter: none !important;
  display: block;
}
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────
   NAV OVERLAY — topbar border
   ──────────────────────────────────────────*/
.nav-overlay__topbar {
  border-bottom: 1px solid var(--line);
}

/* ──────────────────────────────────────────
   HERO HOME — image stack + badge
   ──────────────────────────────────────────*/
.hero-home__img-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.hero-home__img-main {
  display: block;
  width: 100%;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}
.hero-home__img-secondary {
  position: absolute;
  bottom: -2.5rem;
  right: -2.5rem;
  width: 48%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,76,151,.18);
  z-index: 2;
}
.hero-home__blob--main {
  width: 420px;
  height: 420px;
  background: var(--blue);
  top: -80px;
  right: -80px;
}
.hero-home__blob--secondary {
  width: 280px;
  height: 280px;
  background: var(--cyan);
  bottom: -60px;
  left: -60px;
}
.hero-home__badge {
  position: absolute;
  top: 1.5rem;
  left: -2rem;
  z-index: 3;
  background: #fff;
  border-radius: 999px;
  padding: .5rem 1rem .5rem .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}
.hero-home__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: .85rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .hero-home__badge { display: none; }
  .hero-home__img-secondary { display: none; }
}

/* Logo de certificación junto al botón del hero (atributo logoCertificacion).
   Escritorio: a la derecha del botón, centrado con él. Móvil: encima del botón. */
.hero-home__content.has-cert-logo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem;
}
.hero-home__content.has-cert-logo > * { grid-column: 1 / -1; }
.hero-home__content.has-cert-logo > .wp-block-buttons { grid-column: 1; align-self: center; }
.hero-home__content.has-cert-logo > .hero-home__cert-logo { grid-column: 2; align-self: center; margin-top: 1.9rem; }
.hero-home__cert-logo-img { height: 60px !important; width: auto !important; max-width: none; display: block; }
@media (max-width: 991.98px) {
  .hero-home__content.has-cert-logo { grid-template-columns: minmax(0, 1fr); }
  .hero-home__content.has-cert-logo > .hero-home__cert-logo { grid-column: 1; justify-self: start; order: 1; }
  .hero-home__content.has-cert-logo > .wp-block-buttons { order: 2; margin-top: 1.25rem; }
  .hero-home__content.has-cert-logo > .wp-block-buttons ~ :not(.hero-home__cert-logo) { order: 3; }
}

/* ──────────────────────────────────────────
   EXAMENES LIST — dot-badge design
   ──────────────────────────────────────────*/
.examenes-list {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--paper);
}
.examenes-list__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.examenes-list__intro {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.examenes-list__intro-eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.examenes-list__intro-eyebrow::before,
.examenes-list__intro-eyebrow-line {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.examenes-list__intro-title {
  font-size: clamp(2.5rem, 1.9rem + 2vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.examenes-list__intro-text {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}
.examenes-list__rows { display: flex; flex-direction: column; gap: 1px; }

.exam-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
}
.exam-row-item:first-child { border-top: 1px solid var(--line); }
.exam-row-item > span:first-child {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.exam-row-item__badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.exam-row-item__badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.exam-row-item__badge-dot--cyan  { background: var(--cyan); }
.exam-row-item__badge-dot--blue  { background: var(--blue); }
.exam-row-item__badge-dot--red   { background: var(--red); }
.exam-row-item__badge-dot--green { background: #3DAA5C; }

.exam-row-item__title {
  font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.exam-row-item__desc {
  font-size: .9rem;
  color: var(--ink-50);
  font-weight: 400;
}
.exam-row-item__levels {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}
.exam-row-item__level-pill {
  display: inline-flex;
  font-size: .7rem;
  font-weight: 600;
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line-strong);
  padding: .18rem .5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.exam-row-item__arrow {
  flex-shrink: 0;
  color: var(--blue);
  font-size: 1.2rem;
  transition: transform .2s ease;
}
.exam-row-item:hover .exam-row-item__arrow { transform: translateX(4px); }

@media (max-width: 768px) {
  .examenes-list__inner { grid-template-columns: 1fr; }
  .examenes-list__intro { position: static; margin-bottom: 2rem; }
}

/* ──────────────────────────────────────────
   QUE EXAMEN BLOCK
   ──────────────────────────────────────────*/
.que-examen {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  color: var(--ink);
  text-align: center;
}
.que-examen:not(.has-background) {
  background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%);
}
.que-examen__deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 90%;
  width: auto;
  opacity: .12;
  pointer-events: none;
}
.que-examen__deco--left  { left: 0; }
.que-examen__deco--right { right: 0; }
.que-examen__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.que-examen__icon {
  width: 64px;
  height: auto;
  margin-bottom: 1.5rem;
}

/* Versión Cover nativa (bloque core/cover + core/image en vez del bloque a medida) */
.wp-block-cover.que-examen {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.wp-block-cover.que-examen .wp-block-cover__inner-container {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ink);
}
.wp-block-cover.que-examen figure.que-examen__icon {
  width: 64px;
  height: auto;
  margin: 0 0 1.5rem;
}
.wp-block-cover.que-examen figure.que-examen__icon img {
  width: 100%;
  height: auto;
  display: block;
}
.que-examen__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.que-examen__eyebrow::before,
.que-examen__eyebrow-line {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.que-examen__title,
.wp-block-cover.que-examen .wp-block-heading {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.07;
  color: var(--ink);
  margin-bottom: 1rem;
}
.que-examen__text {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
}

/* ──────────────────────────────────────────
   COMO FUNCIONA BLOCK
   ──────────────────────────────────────────*/
/* Nota: "como-funciona" y "convocatorias" son 2 bloques Gutenberg
   independientes (sin grupo contenedor) que comparten visualmente una
   misma banda ivory: el primero pone el padding/blob de arriba, el
   segundo el de abajo, con el mismo fondo, para que no se note la unión. */
.como-funciona,
.convocatorias-section {
  position: relative;
  overflow: hidden;
}
.como-funciona:not(.has-background) {
  background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%);
}
/* Empieza justo en el color con el que termina ".como-funciona" (arriba),
   en vez de reiniciar el mismo degradado 0%→100% en su propia caja — así
   no se nota la costura entre las dos secciones aunque tengan alturas
   distintas. */
.convocatorias-section:not(.has-background) {
  background: linear-gradient(180deg, #f3f6f8 0%, #eef3f8 45%, #eaf1f8 100%);
}
.como-funciona {
  padding: clamp(4rem, 8vw, 7rem) 0 0;
}
.convocatorias-section {
  padding: 0 0 clamp(4rem, 8vw, 7rem);
}
.como-funciona::before,
.convocatorias-section::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .05;
  background: var(--blue);
}
.como-funciona::before {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -150px;
}
.convocatorias-section::before {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -100px;
}
.como-funciona__inner,
.convocatorias-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.como-funciona__header {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.como-funciona__eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.como-funciona__eyebrow::before,
.como-funciona__eyebrow-line {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.como-funciona__title {
  font-size: clamp(2.5rem, 1.9rem + 2vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.06;
}
.como-funciona__steps {
  display: grid;
  grid-template-columns: repeat(var(--cf-cols, 4), 1fr);
  gap: 1.25rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 767px) {
  .como-funciona__steps {
    grid-template-columns: repeat(min(var(--cf-cols, 4), 2), 1fr);
  }
}
@media (max-width: 479px) {
  .como-funciona__steps { grid-template-columns: 1fr; }
}
.como-funciona__sep { display: none; }
.como-funciona__step {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.4rem, 2.5vw, 2rem);
}
.como-funciona__step-num {
  position: absolute;
  right: -.6rem;
  bottom: -2.6rem;
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--blue);
  opacity: .06;
  pointer-events: none;
}
.como-funciona__step-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.como-funciona__step-text {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}
@media (max-width: 640px) {
  .como-funciona__steps { gap: .85rem; }
}

/* ──────────────────────────────────────────
   CONV CARD (inside como-funciona)
   ──────────────────────────────────────────*/
.conv-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--blue) 0%, var(--blue-700) 55%, var(--blue-900) 100%);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
}
.conv-card__deco-svg,
.conv-card__deco-img {
  position: absolute;
  top: -40px;
  right: -10%;
  width: 48%;
  height: auto;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
/* La imagen (icono a color) va opaca: al 50 % el degradado azul de la tarjeta la veía como un velo.
   El SVG de líneas de la maqueta sí mantiene el .5. */
.conv-card__deco-img { object-fit: contain; opacity: 1; }
.home .conv-card__deco-svg { display: none; }
.conv-card__content {
  position: relative;
  z-index: 1;
  max-width: 62ch;
}
.conv-card__eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .75rem;
}
.conv-card__eyebrow::before,
.conv-card__eyebrow-line {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  flex-shrink: 0;
}
.conv-card__title {
  font-size: clamp(2.5rem, 1.9rem + 2vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.07;
  color: #fff;
  margin-bottom: .75rem;
}
.conv-card__text {
  font-size: clamp(1.15rem, 1rem + .6vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.75rem;
}
@media (max-width: 640px) {
  .conv-card__deco-svg,
  .conv-card__deco-img { display: none; }
}

/* ──────────────────────────────────────────
   ABOUT SECTION — stats + eyebrow line
   ──────────────────────────────────────────*/
.about-section__eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.about-section__eyebrow::before,
.about-section__eyebrow-line {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.about-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.about-stat:first-child { border-top: 0; padding-top: 0; }
.about-stat__num {
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--blue);
  line-height: .9;
  letter-spacing: -.03em;
}
.about-stat__label {
  font-size: .95rem; 
  font-weight: 600;
  color: var(--ink-50);
  text-align: right;
  line-height: 1.3;
  max-width: 100%;
  flex:1;
}

/* ──────────────────────────────────────────
   QUE EXAMEN NECESITAS — lista "si necesitas / te recomendamos"
   ──────────────────────────────────────────*/
.exam-finder {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%);
}
.exam-finder::before {
  content: '';
  position: absolute;
  top: -90px; left: -80px;
  width: 300px; height: 290px;
  border-radius: 46% 54% 60% 40% / 48% 42% 58% 52%;
  background: #cfe6f6;
  pointer-events: none;
}
.exam-finder::after {
  content: '';
  position: absolute;
  top: 50px; right: -110px;
  width: 280px; height: 280px;
  border-radius: 58% 42% 38% 62% / 46% 56% 44% 54%;
  background: #d8edf6;
  pointer-events: none;
}
.exam-finder__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.exam-finder__header { max-width: 58ch; }
.exam-finder__eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.exam-finder__eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.exam-finder__title {
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.07;
  color: var(--ink); margin: .9rem 0 0;
}
.exam-finder__text {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.22rem);
  line-height: 1.55; color: var(--ink-70); margin: 1rem 0 0;
}
.exam-finder__list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.exam-finder__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 2.6vw, 1.9rem) clamp(1.2rem, 2.6vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease;
}
.exam-finder__row:hover { border-color: var(--blue); transform: translateX(6px); }
.exam-finder__need,
.exam-finder__pick { display: flex; flex-direction: column; gap: .3rem; }
.exam-finder__pick { text-align: right; }
.exam-finder__need-label,
.exam-finder__pick-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.exam-finder__need-label { color: var(--ink-50); }
.exam-finder__pick-label { color: var(--blue); }
.exam-finder__need-value {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  font-weight: 700; color: var(--ink); line-height: 1.25;
}
.exam-finder__pick-value {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: .5rem;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  font-weight: 700; color: var(--blue); line-height: 1.25;
}
@media (max-width: 640px) {
  .exam-finder__row { grid-template-columns: 1fr; gap: .6rem; }
  .exam-finder__pick { text-align: left; }
  .exam-finder__pick-value { justify-content: flex-start; }
}

/* ──────────────────────────────────────────
   AVISO DE CONTENIDO PENDIENTE (bloques a la espera de datos reales del cliente)
   ──────────────────────────────────────────*/
.pending-content-notice {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: var(--ivory);
  border-radius: 20px;
}
.pending-content-notice p {
  color: var(--ink-50);
  margin: 0 0 1.5rem;
}

/* ──────────────────────────────────────────
   CHECKLIST BLOCK
   ──────────────────────────────────────────*/
.checklist {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.checklist:not(.has-background) {
  background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%);
}
.checklist:not(.has-background)::before {
  content: '';
  position: absolute;
  top: -90px; left: -80px;
  width: 300px; height: 290px;
  border-radius: 46% 54% 60% 40% / 48% 42% 58% 52%;
  background: #cfe6f6;
  pointer-events: none;
}
.checklist:not(.has-background)::after {
  content: '';
  position: absolute;
  top: 50px; right: -110px;
  width: 280px; height: 280px;
  border-radius: 58% 42% 38% 62% / 46% 56% 44% 54%;
  background: #d8edf6;
  pointer-events: none;
}
.checklist__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}
.checklist__intro { flex: 1 1 320px; min-width: min(100%, 300px); max-width: 420px; }
.checklist__intro-sticky { position: sticky; top: 104px; }
.checklist__eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.checklist__eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.checklist__title {
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.06;
  color: var(--ink); margin: .9rem 0 0;
}
.checklist__text { color: var(--ink-70); line-height: 1.6; margin: 1.1rem 0 0; max-width: 34ch; }
.checklist__grid {
  flex: 1.4 1 420px;
  min-width: min(100%, 300px);
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.checklist__item {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem 1.2rem;
}
.checklist__icon {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center;
  font-size: .82rem; font-weight: 900;
}
.checklist__item-text { font-weight: 600; color: var(--ink); line-height: 1.4; }
@media (max-width: 768px) {
  .checklist__intro-sticky { position: static; }
}

/* ──────────────────────────────────────────
   INTEGRATION PLACEHOLDER (Cemdesk, directorio…)
   ──────────────────────────────────────────*/
.integration-placeholder {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
  scroll-margin-top: 90px;
}
.integration-placeholder--light { background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%); }
.integration-placeholder--paper { background: var(--paper); }
.integration-placeholder--light::before {
  content: '';
  position: absolute;
  top: -90px; left: -80px;
  width: 300px; height: 290px;
  border-radius: 46% 54% 60% 40% / 48% 42% 58% 52%;
  background: #cfe6f6;
  pointer-events: none;
}
.integration-placeholder--light::after {
  content: '';
  position: absolute;
  top: 50px; right: -110px;
  width: 280px; height: 280px;
  border-radius: 58% 42% 38% 62% / 46% 56% 44% 54%;
  background: #d8edf6;
  pointer-events: none;
}
.integration-placeholder__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.integration-placeholder__intro { max-width: 58ch; }
.integration-placeholder__eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.integration-placeholder__eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.integration-placeholder__title {
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.07;
  color: var(--ink); margin: .9rem 0 0;
}
.integration-placeholder__text {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.22rem);
  line-height: 1.55; color: var(--ink-70); margin: 1rem 0 0;
}
.integration-placeholder__box {
  position: relative;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  border: 2px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--paper);
  overflow: hidden;
  min-height: 460px;
}
.integration-placeholder__box--iframe { border: none; border-radius: 0; min-height: 800px; }
.integration-placeholder__box--iframe iframe {
  width: 100%;
  height: 100%;
  min-height: 800px;
  border: none;
}
.integration-placeholder__skeleton {
  position: absolute;
  inset: 0;
  padding: 1.2rem;
}
.integration-placeholder__row {
  display: flex; gap: 1rem; align-items: center;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.integration-placeholder__bar { height: 12px; border-radius: 6px; }
.integration-placeholder__pill {
  margin-left: auto; width: 90px; height: 30px;
  border-radius: 999px; background: var(--blue-50);
}
.integration-placeholder__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245,244,240,.4) 0%, rgba(245,244,240,.92) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
}
.integration-placeholder__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: var(--blue-50); color: var(--blue);
  font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.integration-placeholder__box-title {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 700; letter-spacing: -.02em; color: var(--ink);
  margin: 0; max-width: 24ch; line-height: 1.15;
}
.integration-placeholder__box-text {
  color: var(--ink-70); margin: 0; max-width: 46ch; line-height: 1.6;
}

/* ──────────────────────────────────────────
   INFO CARDS BLOCK
   ──────────────────────────────────────────*/
.info-cards {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem);
  scroll-margin-top: 90px;
}
.info-cards:not(.has-background) {
  background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%);
}
/* El recorte de las formas decorativas vive en su propio div en vez de en
   .info-cards, para que un "overflow:hidden" en un antepasado no rompa el
   position:sticky de la intro (bloque "antes de matricularte"). */
.info-cards__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.info-cards:not(.has-background) .info-cards__decor::before {
  content: '';
  position: absolute;
  top: -90px; left: -80px;
  width: 300px; height: 290px;
  border-radius: 46% 54% 60% 40% / 48% 42% 58% 52%;
  background: #cfe6f6;
}
.info-cards:not(.has-background) .info-cards__decor::after {
  content: '';
  position: absolute;
  top: 50px; right: -110px;
  width: 280px; height: 280px;
  border-radius: 58% 42% 38% 62% / 46% 56% 44% 54%;
  background: #d8edf6;
}
.info-cards__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.info-cards__intro { max-width: 58ch; }
.info-cards__eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.info-cards__eyebrow:empty { display: none; }
.info-cards__eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.info-cards__title {
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.07;
  color: var(--ink); margin: .9rem 0 0;
}
.info-cards__text {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.22rem);
  line-height: 1.55; color: var(--ink-70); margin: 1rem 0 0;
}
.info-cards__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(var(--ic-cols, 3), 1fr);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 900px) {
  .info-cards__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .info-cards__grid { grid-template-columns: 1fr; }
}
.info-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.5rem, 2.6vw, 2rem);
}
.info-card__title {
  font-size: clamp(1.25rem, 1rem + .7vw, 1.45rem);
  font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 0;
}
.info-card__row { display: flex; flex-direction: column; gap: .2rem; }
.info-card__label {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-50);
}
.info-card__value { color: var(--ink-70); line-height: 1.5; }
.info-card__value--highlight { font-weight: 700; color: var(--blue); font-size: 1.05rem; }
.info-card__link {
  margin-top: auto; padding-top: .3rem;
  font-weight: 700; color: var(--red); text-decoration: none;
}
.info-card__link::after { content: '→'; margin-left: .5rem; }
.info-card__link:hover { color: var(--red-600); }

/* Con un único item ("antes de matricularte" de cada examen): intro a la
   izquierda y una tarjeta de dato por fila a la derecha, en vez de un grid
   de tarjetas agrupadas. */
.info-cards__inner--single {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}
.info-cards__inner--single .info-cards__intro {
  flex: 1.2 1 380px;
  min-width: min(100%, 340px);
  max-width: 520px;
  position: sticky;
  top: 104px;
}
@media (max-width: 768px) {
  .info-cards__inner--single .info-cards__intro { position: static; }
}
.info-cards__facts {
  flex: 1 1 320px;
  min-width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.info-fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.2rem, 2.2vw, 1.6rem);
}
.info-fact__label {
  display: block;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-50);
  margin-bottom: .5rem;
}
.info-fact__value {
  display: block;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem);
  font-weight: 700; color: var(--blue); line-height: 1.15;
}
.info-fact__value--highlight {
  font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem);
  font-weight: 700; color: var(--blue); line-height: 1.15;
}

/* ──────────────────────────────────────────
   STEP LIST BLOCK (lista numerada con intro)
   ──────────────────────────────────────────*/
.step-list { padding-block: clamp(3rem, 6vw, 5rem); background: var(--paper); }
.step-list__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  flex-direction: column;
}
/* La intro (eyebrow/título/texto/botón) se edita como un único bloque, pero
   aquí se "desenvuelve" para que cada hijo participe en el flujo de la
   sección y el botón pueda ir después de los pasos (como en el diseño) sin
   tener que tocar el contenido guardado. */
.step-list__intro { display: contents; }
.step-list__eyebrow,
.step-list__title,
.step-list__text {
  max-width: 58ch;
}
.step-list__eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.step-list__eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.step-list__title {
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.07;
  color: var(--ink); margin: .9rem 0 0;
}
.step-list__text { color: var(--ink-70); line-height: 1.6; margin: 1rem 0 0; }
.step-list__intro a:not(.wp-block-button__link) {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .15em;
}
.step-list__intro a:not(.wp-block-button__link):hover { color: var(--blue-700); text-decoration-color: currentColor; }
.step-list__intro .wp-block-buttons { order: 2; margin-top: 2rem; }
.step-list__intro .wp-block-buttons .wp-block-button__link::after { content: '→'; margin-left: .6rem; }
.step-list__items { order: 1; display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(1.8rem, 4vw, 2.8rem); }
.step-list__item {
  position: relative;
  overflow: hidden;
  flex: 1 1 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.6rem, 2.8vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step-list__item-ghost {
  position: absolute; right: -.6rem; bottom: -2.6rem;
  font-size: 8rem; font-weight: 900; line-height: 1; letter-spacing: -.05em;
  color: var(--blue); opacity: .06; pointer-events: none;
}
.step-list__num {
  position: relative; z-index: 1;
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 1.1rem;
}
.step-list__num-icon { width: 44px; height: 44px; object-fit: contain; }
.step-list__num--icon { background: none; }
.step-list__item-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .25rem; }
.step-list__item-title { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.step-list__item-text { color: var(--ink-70); line-height: 1.5; }
.step-list__item-text a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .15em;
}
.step-list__item-text a:hover { color: var(--blue-700); text-decoration-color: currentColor; }

/* Variante "ventajas": fuerza 3 cards por fila (en vez de estirarse a lo
   ancho) y centra la última fila cuando sobran menos de 3, usado en la
   página de Centro Preparador Cambridge. */
.step-list.ventajas .step-list__items { justify-content: center; }
.step-list.ventajas .step-list__item { flex: 0 1 calc((100% - 2rem) / 3); }
@media (max-width: 768px) {
  .step-list.ventajas .step-list__item { flex: 1 1 100%; }
}

/* Variante "sidebar": intro con botón a la izquierda (columna estrecha) y
   pasos apilados en píldoras azules a la derecha — el diseño original de
   este bloque, usado en páginas como "Resultados y certificados" donde el
   diseño de referencia difiere del de la ficha de examen (variante "cards"). */
.step-list--sidebar .step-list__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}
.step-list--sidebar .step-list__intro {
  display: flex;
  flex-direction: column;
  flex: 1 1 320px;
  min-width: min(100%, 300px);
  max-width: 440px;
}
.step-list--sidebar .step-list__eyebrow,
.step-list--sidebar .step-list__title,
.step-list--sidebar .step-list__text {
  max-width: none;
}
.step-list--sidebar .step-list__title { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem); margin: .9rem 0 1rem; }
.step-list--sidebar .step-list__text { margin: 0 0 1.6rem; max-width: 46ch; }
.step-list--sidebar .step-list__intro .wp-block-buttons { order: 0; margin-top: 0; }
.step-list--sidebar .step-list__items {
  order: 0;
  flex: 1.2 1 380px;
  min-width: min(100%, 300px);
  flex-wrap: nowrap;
  flex-direction: column;
  margin-top: 0;
}
.step-list--sidebar .step-list__item {
  flex: none;
  overflow: visible;
  flex-direction: row;
  align-items: flex-start;
  background: var(--blue-50);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
}
.step-list--sidebar .step-list__item-ghost { display: none; }
.step-list--sidebar .step-list__num { background: var(--blue); color: #fff; }

/* ──────────────────────────────────────────
   ACCORDION SECTION (intro sticky + acordeones)
   ──────────────────────────────────────────*/
.accordion-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.accordion-section--light { background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%); }
.accordion-section--paper { background: var(--paper); }
.accordion-section--light::before {
  content: '';
  position: absolute;
  top: -90px; left: -80px;
  width: 300px; height: 290px;
  border-radius: 46% 54% 60% 40% / 48% 42% 58% 52%;
  background: #cfe6f6;
  pointer-events: none;
}
.accordion-section--light::after {
  content: '';
  position: absolute;
  top: 50px; right: -110px;
  width: 280px; height: 280px;
  border-radius: 58% 42% 38% 62% / 46% 56% 44% 54%;
  background: #d8edf6;
  pointer-events: none;
}
.accordion-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}
.accordion-section--stacked .accordion-section__inner { flex-direction: column; }
.accordion-section--stacked .accordion-section__intro { max-width: 58ch; flex-basis: auto; }
.accordion-section--stacked .accordion-section__intro-sticky { position: static; }
.accordion-section--stacked .accordion-section__list { flex-basis: auto; max-width: 880px; width: 100%; }
.accordion-section__intro { flex: 1 1 300px; min-width: min(100%, 280px); max-width: 400px; }
.accordion-section__intro-sticky { position: sticky; top: 104px; }
.accordion-section__eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.accordion-section__eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.accordion-section__title {
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
  color: var(--ink); margin: .9rem 0 0;
}
.accordion-section__text { color: var(--ink-70); line-height: 1.6; margin: 1.1rem 0 0; max-width: 34ch; }
.accordion-section__list { flex: 1.5 1 460px; min-width: min(100%, 320px); border-top: 1px solid var(--line); }
.accordion-section__item { border-bottom: 1px solid var(--line); }
.accordion-section__item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 0;
  font-weight: 700;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.22rem);
  color: var(--ink);
}
.accordion-section__item > summary::-webkit-details-marker { display: none; }
.accordion-section__item > summary::after {
  content: '+';
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--blue);
}
.accordion-section__item[open] > summary::after {
  content: '\2013';
}
.accordion-section__body { padding: .2rem 0 1.5rem; color: var(--ink-70); max-width: 72ch; line-height: 1.7; }
.accordion-section__body p + p { margin-top: 1rem; }
.accordion-section__body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .15em;
}
.accordion-section__body a:hover { color: var(--blue-700); text-decoration-color: currentColor; }
/* Vista de edición: título + respuesta siempre visibles, sin comportamiento de <details> */
.accordion-section__item-summary { font-weight: 600; color: var(--ink); margin: 0 0 .35rem; }
.accordion-section__item-body-edit { font-size: .9rem; color: var(--ink-50); margin: 0 0 1rem; }
@media (max-width: 768px) {
  .accordion-section__intro-sticky { position: static; }
}

/* ──────────────────────────────────────────
   FAQ GROUPS (varias categorías, cada una con su acordeón)
   ──────────────────────────────────────────*/
.faq-groups {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.faq-groups:not(.has-background) {
  background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%);
}
.faq-groups:not(.has-background)::before {
  content: '';
  position: absolute;
  top: -90px; left: -80px;
  width: 300px; height: 290px;
  border-radius: 46% 54% 60% 40% / 48% 42% 58% 52%;
  background: #cfe6f6;
  pointer-events: none;
}
.faq-groups:not(.has-background)::after {
  content: '';
  position: absolute;
  top: 50px; right: -110px;
  width: 280px; height: 280px;
  border-radius: 58% 42% 38% 62% / 46% 56% 44% 54%;
  background: #d8edf6;
  pointer-events: none;
}
.faq-groups__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.faq-groups__group {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: flex-start;
}
.faq-groups__label { flex: 1 1 240px; min-width: min(100%, 220px); max-width: 320px; }
.faq-groups__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.faq-groups__eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.faq-groups__list { flex: 2 1 460px; min-width: min(100%, 320px); border-top: 1px solid var(--line); }
.faq-groups__item { border-bottom: 1px solid var(--line); }
.faq-groups__item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 0;
  font-weight: 700;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.22rem);
  color: var(--ink);
}
.faq-groups__item > summary::-webkit-details-marker { display: none; }
.faq-groups__item > summary::after {
  content: '+';
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--blue);
}
.faq-groups__item[open] > summary::after { content: '\2013'; }
.faq-groups__body { padding: .2rem 0 1.5rem; color: var(--ink-70); max-width: 72ch; line-height: 1.7; }
.faq-groups__body p + p { margin-top: 1rem; }
.faq-groups__body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .15em;
}
.faq-groups__body a:hover { color: var(--blue-700); text-decoration-color: currentColor; }
/* Vista de edición */
.faq-groups__item-summary { font-weight: 600; color: var(--ink); margin: 0 0 .35rem; }
.faq-groups__item-body-edit { font-size: .9rem; color: var(--ink-50); margin: 0 0 1rem; }

/* ──────────────────────────────────────────
   CONTACT LAYOUT (formulario + datos + mapa)
   ──────────────────────────────────────────*/
.contact-layout {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.contact-layout:not(.has-background) {
  background: linear-gradient(180deg, #eaf1f8 0%, #eef3f8 55%, #f3f6f8 100%);
}
.contact-layout:not(.has-background)::before {
  content: '';
  position: absolute;
  top: -90px; left: -80px;
  width: 300px; height: 290px;
  border-radius: 46% 54% 60% 40% / 48% 42% 58% 52%;
  background: #cfe6f6;
  pointer-events: none;
}
.contact-layout:not(.has-background)::after {
  content: '';
  position: absolute;
  top: 50px; right: -110px;
  width: 280px; height: 280px;
  border-radius: 58% 42% 38% 62% / 46% 56% 44% 54%;
  background: #d8edf6;
  pointer-events: none;
}
.contact-layout__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}
.contact-layout--invertido .contact-layout__inner { flex-direction: row-reverse; }
.contact-layout__card {
  flex: 1.3 1 440px;
  min-width: min(100%, 340px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 24px 48px -34px rgba(0,43,85,.3);
}
.contact-layout__card-eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.contact-layout__card-eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.contact-layout__card-title {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  margin: .8rem 0 1.5rem;
}
.contact-layout__sidebar {
  flex: 1 1 300px;
  min-width: min(100%, 280px);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.contact-layout__info-eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.contact-layout__info-eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.contact-layout__info-rows { margin-top: .8rem; }
.contact-layout__info-row {
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.contact-layout__info-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-50);
}
.contact-layout__info-value { color: var(--ink); font-weight: 600; line-height: 1.5; }
.contact-layout__map {
  width: 100%; height: 240px; border-radius: 16px;
  overflow: hidden; border: 1px solid var(--line);
}
.contact-layout__map img { width: 100%; height: 100%; object-fit: cover; }
.contact-layout__map--empty {
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; text-align: center; font-size: .8rem; color: var(--ink-50);
  background: var(--blue-50);
}

/* ──────────────────────────────────────────
   BLOG — cabecera de entrada, prosa, relacionados, listado
   ──────────────────────────────────────────*/
.blog-post-header { padding-top: clamp(3.5rem, 8vw, 6rem); background: var(--paper); }
.blog-post-header__inner {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: var(--px);
}
.blog-post-header__eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.blog-post-header__eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.blog-post-header__title {
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.blog-post-header__meta { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2.5rem; }
.blog-post-header__meta span { font-size: .85rem; color: var(--ink-50); }
.blog-post-header__divider { width: 1px; height: 14px; background: var(--line); }
.blog-post-header__hero-image { max-width: var(--max-w); margin: 0 auto clamp(2.5rem, 5vw, 4rem); padding-inline: var(--px); }
.blog-post-header__hero-image img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 18px; display: block; }

.blog-post-body {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 2.5rem;
}
.blog-share-rail__sticky {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.blog-share-rail__sticky a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.blog-share-rail__sticky a:hover { background: var(--red); }

.blog-post-body .wp-block-post-content {
  max-width: 780px;
  margin-inline: auto;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.blog-post-body .wp-block-post-content p { font-size: 1.05rem; line-height: 1.85; color: var(--ink); margin-bottom: 1.25rem; }
.blog-post-body .wp-block-post-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--ink); margin: 2.25rem 0 1rem; letter-spacing: -.01em; }
.blog-post-body .wp-block-post-content ul { margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.blog-post-body .wp-block-post-content li { font-size: 1.05rem; line-height: 1.7; color: var(--ink); display: inline-block; align-items: flex-start; padding-left: 14px; position: relative; }
.blog-post-body .wp-block-post-content li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-top: 10px;     display: block; position: absolute; left: 0; top: 2px;}
.blog-post-body .wp-block-post-content a:not(.wp-block-button__link) { color: var(--blue); text-decoration: none; }
.blog-post-body .wp-block-post-content a:not(.wp-block-button__link):hover { text-decoration: underline; }
@media (max-width: 768px) {
  .blog-post-body { grid-template-columns: 1fr; }
  .blog-share-rail__sticky { position: static; flex-direction: row; margin-bottom: 1.5rem; }
}

.blog-related-posts { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); background: var(--ivory); }
.blog-related-posts__inner { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px); }
.blog-related-posts__title { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 2rem; }
.blog-related-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-related-posts__card { display: flex; flex-direction: column; text-decoration: none; }
.blog-related-posts__card-img { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; margin-bottom: 1rem; }
.blog-related-posts__card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-related-posts__card:hover .blog-related-posts__card-img img { transform: scale(1.05); }
.blog-related-posts__date { font-size: .75rem; color: var(--ink-50); margin-bottom: .5rem; }
.blog-related-posts__card-title { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.4; transition: color .2s ease; }
.blog-related-posts__card:hover .blog-related-posts__card-title { color: var(--blue); }
@media (max-width: 768px) {
  .blog-related-posts__grid { grid-template-columns: 1fr; }
}

/* Listado del blog (templates/index.html) — bloques núcleo estilados como tarjetas */
.blog-index { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px); padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem); }
.blog-index .wp-block-post-template { gap: 2.5rem 2rem; }
.blog-index .wp-block-post {
  display: flex;
  flex-direction: column;
  list-style: none;
}
.blog-index .wp-block-post-featured-image { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; margin-bottom: 1rem; }
.blog-index .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-index .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.blog-index .wp-block-post-title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin: 0 0 .6rem; }
.blog-index .wp-block-post-title a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
.blog-index .wp-block-post:hover .wp-block-post-title a { color: var(--blue); }
.blog-index .wp-block-post-excerpt { font-size: .92rem; line-height: 1.6; color: var(--ink-50); }
.blog-index .wp-block-post-excerpt__excerpt { margin: 0; }
.blog-index .wp-block-post-excerpt__more-link { display: none; }
@media (max-width: 768px) {
  .blog-index .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; }
}

.blog-index .wp-block-query-pagination {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.blog-index .wp-block-query-pagination a,
.blog-index .wp-block-query-pagination span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.blog-index .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding-inline: .5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.blog-index .page-numbers:hover { background: var(--blue-50); }
.blog-index .page-numbers.current { background: var(--blue); color: var(--paper); }
.blog-index .wp-block-query-pagination-previous-arrow,
.blog-index .wp-block-query-pagination-next-arrow { margin: 0 .35rem; }

/* ──────────────────────────────────────────
   TESTIMONIALS — intro (eyebrow + título + texto) a la izquierda, sticky,
   carrusel de testimonios (CPT "testimonio") a la derecha, uno por slide.
   Misma estructura de dos columnas que level-cards / info-cards--single.
   ──────────────────────────────────────────*/
.testimonials { padding-block: clamp(3.5rem, 7vw, 6rem); }
.testimonials:not(.has-background) {
  background: linear-gradient(rgb(243, 246, 248) 0%, rgb(238, 243, 248) 45%, rgb(234, 241, 248) 100%);
}
.testimonials__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.testimonials__intro { flex: 1 1 300px; min-width: min(100%, 280px); max-width: 380px; }
.testimonials__eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.testimonials__eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 2px;
  background: var(--red); flex-shrink: 0;
}
.testimonials__title {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  color: var(--ink); margin: .9rem 0 0;
}
.testimonials__text { color: var(--ink-70); line-height: 1.6; margin: 1.1rem 0 0; max-width: 34ch; }

.testimonials__carousel { position: relative; flex: 1.6 1 480px; min-width: min(100%, 320px); }
.testimonials__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}
.testimonials__track {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.testimonials__slide { flex: 0 0 100%; min-width: 0; }

.testimonial-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-radius: 18px;
  padding-block: clamp(2rem, 4vw, 3rem);
  padding-inline: clamp(3.5rem, 7vw, 5rem);
  min-height: clamp(220px, 30vw, 280px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.testimonial-card__text {
  position: relative; z-index: 1;
  color: var(--ink); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6;
}
.testimonial-card__text p + p { margin-top: 1rem; }
.testimonial-card__footer {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: .15rem;
}
.testimonial-card__name { font-weight: 700; color: var(--blue); }
.testimonial-card__date { font-size: .85rem; color: var(--ink-50); }

.testimonials__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--blue);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px -8px rgba(0, 43, 85, .25);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.testimonials__arrow--prev { left: 1rem; }
.testimonials__arrow--next { right: 1rem; }
.testimonials__arrow:hover { background: var(--blue); color: #fff; }
@media (max-width: 600px) {
  .testimonials__arrow { width: 36px; height: 36px; font-size: 1.2rem; }
  .testimonials__arrow--prev { left: .5rem; }
  .testimonials__arrow--next { right: .5rem; }
}

.testimonials__empty-notice {
  flex: 1.6 1 480px; min-width: min(100%, 320px);
  background: var(--paper); border: 1px dashed var(--line-strong);
  border-radius: 14px; padding: clamp(1.5rem, 3vw, 2rem);
}
.testimonials__empty-notice p + p { margin-top: .75rem; }

/* ──────────────────────────────────────────
   MEDIA ROWS — sección nativa: core/group.media-rows con varios
   core/media-text (foto + texto) apilados. Página Nosotros · Equipo.
   ──────────────────────────────────────────*/
.wp-block-group.media-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5.5rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.wp-block-group.media-rows:not(.has-background) { background: var(--blue-50); }
.wp-block-group.media-rows > * {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.media-rows .wp-block-media-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-block: 0;
}
.media-rows .wp-block-media-text > .wp-block-media-text__media,
.media-rows .wp-block-media-text > .wp-block-media-text__content {
  flex: 1 1 420px;
  min-width: min(100%, 300px);
  padding: 0;
  margin: 0;
}
.media-rows .wp-block-media-text__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 30px 70px -40px rgba(0,43,85,.45);
}
.media-rows .wp-block-media-text__content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.media-rows .wp-block-media-text__content p + p { margin-top: 1.1rem; }
.media-rows .wp-block-media-text__content p.is-lead {
  font-size: 18px;
  line-height: 1.5;
}
.media-rows .wp-block-media-text__content p.is-lead + p { margin-top: 1.3rem; }

/* ──────────────────────────────────────────
   GALLERY SLIDER — intro (título + párrafos a 2 columnas) y carrusel de
   fotos, 3 visibles (2 en móvil). JS: blocks/gallery-slider/src/view.js
   ──────────────────────────────────────────*/
.gallery-slider { padding-block: clamp(4rem, 8vw, 7rem); }
.gallery-slider:not(.has-background) { background: var(--paper); }
.gallery-slider__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.gallery-slider__intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 1.2rem clamp(2rem, 5vw, 4rem);
}
.gallery-slider__intro > .wp-block-heading,
.gallery-slider__title {
  grid-column: 1 / -1;
  font-size: clamp(2.5rem, 1.9rem + 2vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.06;
  color: var(--ink);
  margin: 0 0 clamp(.3rem, 1.8vw, 1rem);
  text-wrap: balance;
}
.gallery-slider__intro p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
}
.gallery-slider__intro a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gallery-slider__intro a:hover { color: var(--blue-700); }
.gallery-slider__carousel {
  --n: 3;
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.2rem);
}
.gallery-slider__viewport { overflow: hidden; border-radius: 16px; }
.gallery-slider__track {
  display: flex;
  gap: 14px;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.gallery-slider__slide {
  flex: 0 0 calc((100% - (var(--n) - 1) * 14px) / var(--n));
  min-width: 0;
}
.gallery-slider__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}
.gallery-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.95);
  color: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px -4px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-slider__arrow[hidden] { display: none; }
.gallery-slider__arrow:hover { transform: translateY(-50%) scale(1.08); box-shadow: 0 6px 18px -6px rgba(0,43,85,.45); }
.gallery-slider__arrow--prev { left: 14px; }
.gallery-slider__arrow--next { right: 14px; }
@media (max-width: 760px) {
  .gallery-slider__carousel { --n: 2; }
}

/* ──────────────────────────────────────────
   PLUGINS DE TERCEROS — avisos que no son parte del sitio
   ──────────────────────────────────────────*/
.otgs-development-site-front-end { display: none !important; }
/* -- Fusion aditiva: modal de ayuda, invertido, redes sociales footer -- */
.datasheet-item__help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: .35rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--blue);
  font-size: .8rem;
  cursor: pointer;
  vertical-align: middle;
  opacity: .7;
  transition: opacity .2s ease;
}
.datasheet-item__help:hover { opacity: 1; }

/* ──────────────────────────────────────────
   HELP MODAL (icono de ayuda genérico)
   ──────────────────────────────────────────*/
.help-modal[hidden] { display: none; }
.help-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.help-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,43,85,.6);
}
.help-modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: 16px;
  padding: 2rem;
  max-width: min(90vw, 720px);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.3);
}
.help-modal__title {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
  font-size: 1.1rem;
}
.help-modal__image { max-width: 100%; height: auto; display: block; }
.help-modal__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--ivory);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
}
.help-modal__close:hover { background: var(--line); }

/* ──────────────────────────────────────────
   VIDEO MODAL (botón de play en los heroes con imagen)
   ──────────────────────────────────────────*/
.video-modal[hidden] { display: none; }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,20,40,.88);
}
.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.5);
}
.video-modal__media, .video-modal__media iframe, .video-modal__media video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.video-modal__close:hover { background: rgba(255,255,255,.3); }

.exam-info-general--invertido .exam-info-general__inner { flex-direction: row-reverse; }

.exam-info-general__right .datasheet-item__value strong { font-weight: 700; }

.site-footer__socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.site-footer__social {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  transition: background .2s ease, opacity .2s ease;
  opacity: .85;
}
.site-footer__social:hover { background: var(--red); opacity: 1; }
.site-footer__social i { font-size: 15px; }

.blog-share-rail__sticky a i { font-size: 15px; }

/* Listado de la Política de cookies - bullets azules */
.cookie-list, .legal-list {
  list-style: disc;
  padding-left: 80px!important;
  margin: 0 0 1em 1.5em;
}
.cookie-list li,
.legal-list li {
  margin-bottom: 0.5em;
  padding-left: 0.2em;
}
.cookie-list li::marker,
.legal-list li::marker {
  color: #003a73;
}
/* Listas anidadas dentro de .cookie-list */
.cookie-list ul,
.legal-list ul {
  list-style: circle;
  padding-left: 1.4em;
  margin-top: 0.5em;
}
.cookie-list ul li::marker,
.legal-list ul li::marker {
  color: #003a73;
}

/* Política de cookies generada por Complianz (#cmplz-document) con el mismo aspecto que
   las demás páginas legales (privacidad, aviso legal): misma retícula, H3 azul de sección,
   párrafos a 16px / 1.65 en 760px y viñetas azules. Pisa document.min.css de Complianz. */
.wp-block-group.is-layout-constrained > #cmplz-document {
  max-width: var(--max-w);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--px);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  text-align: left;
}
.wp-block-group.is-layout-constrained > #cmplz-document > * { max-width: 760px; }
.wp-block-group.is-layout-constrained > #cmplz-document h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--blue-700);
  margin: 50px 0 24px;
  padding: 0;
  border: 0;
}
.wp-block-group.is-layout-constrained > #cmplz-document h3:not(.cmplz-category-title) {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--blue-700);
  margin: 32px 0 16px;
  padding: 0;
  border: 0;
}
.wp-block-group.is-layout-constrained > #cmplz-document p,
.wp-block-group.is-layout-constrained > #cmplz-document li,
.wp-block-group.is-layout-constrained > #cmplz-document td {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.wp-block-group.is-layout-constrained > #cmplz-document p { margin: 0 0 16px; }
.wp-block-group.is-layout-constrained > #cmplz-document ul {
  list-style: disc;
  margin: 0 0 16px;
  padding-left: 32px;
}
.wp-block-group.is-layout-constrained > #cmplz-document li { margin-bottom: 8px; padding-left: .2em; }
.wp-block-group.is-layout-constrained > #cmplz-document li::marker { color: var(--blue-700); }
.wp-block-group.is-layout-constrained > #cmplz-document a { color: var(--blue); text-decoration: underline; }
.wp-block-group.is-layout-constrained > #cmplz-document a[target=_blank]::after { content: none; }
/* Bloques desplegables (gestión del consentimiento, cookies por servicio) */
.wp-block-group.is-layout-constrained > #cmplz-document details {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.wp-block-group.is-layout-constrained > #cmplz-document details summary,
.wp-block-group.is-layout-constrained > #cmplz-document .cmplz-category-header {
  background: var(--blue-50);
  margin: 0;
}
.wp-block-group.is-layout-constrained > #cmplz-document .cmplz-category-title,
.wp-block-group.is-layout-constrained > #cmplz-document details summary h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
