/*
 * Tema MAPI Prevención — estilos.
 * Las tipografías (Onest y Public Sans) se cargan desde el propio tema (theme.json), sin Google Fonts.
 */

@font-face {
  font-family: "Onest Fallback";
  src: local(Arial);
  ascent-override: 92.2%;
  descent-override: 28.99%;
  line-gap-override: 0%;
  size-adjust: 105.2%;
}
@font-face {
  font-family: "Public Sans Fallback";
  src: local(Arial);
  ascent-override: 90.59%;
  descent-override: 21.46%;
  line-gap-override: 0%;
  size-adjust: 104.87%;
}

:root {
  --font-onest: "Onest", "Onest Fallback", sans-serif;
  --font-public-sans: "Public Sans", "Public Sans Fallback", sans-serif;
  interpolate-size: allow-keywords;
}

/* Reset base */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
ol,
ul,
menu {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: inherit;
}
img,
svg,
video {
  display: block;
  vertical-align: middle;
}
img,
video {
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border-radius: 0;
}
button {
  cursor: pointer;
}
mark {
  background: none;
  color: inherit;
}
.wp-block-image,
.wp-block-video,
.wp-block-table {
  margin: 0;
}
.has-teal-color {
  color: var(--teal) !important;
}

:root {
  --bg: #f9f7f9;
  --bg2: #ffffff;
  --bd: #e2dee2;
  --title: #1e141e;
  --text: #4d444d;
  --meta: #807880;
  --link: #07b4b9;
  --teal: #07b4b9;
  --navy: #040249;
  --purple: #6246a5;
  --green: #095753;
  --gold: #ebc07d;

  --h1: 57px;
  --h2: 47px;
  --h3: 35px;
  --h4: 28px;
  --h5: 23px;
  --h6: 19px;
  --p: 16px;

  --radius: 40px;
  --gutter: 70px;
  --edge: 30px;
  --section: 150px;
  --gap: 30px;
}

@media (max-width: 1279px) {
  :root {
    --h1: 45px;
    --h2: 36px;
    --h3: 28px;
    --h4: 22px;
    --h5: 20px;
    --h6: 18px;
    --gutter: 30px;
    --edge: 20px;
    --section: 95px;
  }
}

@media (max-width: 767px) {
  :root {
    --h1: 36px;
    --h2: 31px;
    --h3: 26px;
    --h5: 19px;
    --h6: 17px;
    --p: 15px;
    --radius: 20px;
    --gutter: 20px;
    --edge: 0px;
    --section: 65px;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-public-sans);
  font-size: var(--p);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Tipografía */
.t1,
.t2,
.t3,
.t4,
.t5,
.t6 {
  font-family: var(--font-onest);
  font-weight: 500;
  color: var(--title);
}
.t1 {
  font-size: var(--h1);
  line-height: 1.105;
  letter-spacing: -0.04em;
}
.t2 {
  font-size: var(--h2);
  line-height: 1.13;
  letter-spacing: -0.04em;
}
.t3 {
  font-size: var(--h3);
  line-height: 1.115;
  letter-spacing: -0.04em;
}
.t4 {
  font-size: var(--h4);
  line-height: 1.215;
  letter-spacing: -0.03em;
}
.t5 {
  font-size: var(--h5);
  line-height: 1.215;
  letter-spacing: -0.03em;
}
.t6 {
  font-size: var(--h6);
  line-height: 1.265;
  letter-spacing: -0.03em;
}
.eyebrow {
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--title);
  margin-bottom: 25px;
}
.accent {
  color: var(--teal);
}
.on-dark {
  color: #fff;
}

@media (max-width: 1279px) {
  .eyebrow {
    margin-bottom: 15px;
  }
}
@media (max-width: 767px) {
  .eyebrow {
    font-size: 13px;
    margin-bottom: 10px;
  }
}

.container {
  width: min(1290px, calc(100% - 60px));
  margin-inline: auto;
}
@media (max-width: 1279px) {
  .container {
    width: min(1024px, calc(100% - 60px));
  }
}
@media (max-width: 767px) {
  .container {
    width: calc(100% - 40px);
  }
}

.rounded-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Botones */
.btn > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  padding: 18px 40px;
  border-radius: 30px;
  background: var(--title);
  color: var(--bg);
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
.btn > .wp-block-button__link:hover {
  background: var(--teal);
}
.btn--light > .wp-block-button__link {
  background: var(--bg);
  color: var(--title);
}
.btn--light > .wp-block-button__link:hover,
.btn--light > .wp-block-button__link:active,
.btn--light > .wp-block-button__link:focus-visible {
  background: var(--teal);
  color: #fff;
}
.btn--sm > .wp-block-button__link {
  font-size: 14px;
  padding: 11px 17px;
}
@media (max-width: 1279px) {
  .btn > .wp-block-button__link {
    padding: 16px 36px;
  }
  .btn--sm > .wp-block-button__link {
    padding: 11px 17px;
  }
}
@media (max-width: 767px) {
  .btn > .wp-block-button__link {
    font-size: 15px;
    padding: 14px 32px;
  }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.js .rv-up,
.js .rv-fade {
  opacity: 0;
}
.js .rv-up.is-in {
  animation: fadeInUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms) both;
}
.js .rv-fade.is-in {
  animation: fadeIn 0.9s ease var(--d, 0ms) both;
}
.js .rv-words:not(.is-split),
.js .rv-chars:not(.is-split) {
  opacity: 0;
}
.js .is-split .w {
  display: inline-block;
  opacity: 0;
}
.js .is-split.is-in .w {
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--d, 0ms) + var(--i, 0) * var(--step, 30ms));
}
.rv-d1 {
  --d: 100ms;
}
.rv-d2 {
  --d: 200ms;
}
.rv-d3 {
  --d: 300ms;
}
.nowrap {
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .js .rv-up,
  .js .rv-fade,
  .js .rv-words,
  .js .rv-chars,
  .js .is-split .w,
  .crs {
    opacity: 1 !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Cabecera */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}
.hdr.is-scrolled {
  background: var(--bg);
  border-color: var(--bd);
}
.hdr__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 70px;
}
.hdr__logo {
  width: 23%;
}
.hdr__logo img,
.hdr__mobile img {
  height: 33px;
  width: auto;
}
.hdr__nav {
  width: 54%;
  display: flex;
  justify-content: center;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
}
.hdr__nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: var(--title);
  transition: color 0.3s ease;
}
.hdr__nav a:hover,
.hdr__nav a[aria-current="page"] {
  color: var(--teal);
}
.hdr__side {
  width: 23%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hdr__mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.hdr__burger {
  display: inline-flex;
  color: var(--title);
  cursor: pointer;
}
.hdr__burger svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.mnav__overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
}
.mnav__overlay.is-open {
  visibility: visible;
}
.mnav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: 390px;
  max-width: 100%;
  padding: 50px;
  background: var(--navy);
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0.4s;
  overflow-y: auto;
}
.mnav.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mnav__close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #fff;
  cursor: pointer;
}
.mnav__close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.mnav ul {
  margin-top: 50px;
}
.mnav li {
  margin: 10px 0;
}
.mnav a {
  display: block;
  padding: 7px 0;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.2;
  color: #fff;
  transition: color 0.3s ease;
}
.mnav a:hover {
  color: var(--teal);
}
@media (max-width: 1279px) {
  .hdr__row {
    display: none;
  }
  .hdr__mobile {
    display: flex;
  }
}
@media (max-width: 767px) {
  .mnav {
    width: 100%;
    padding: 40px;
  }
  .mnav__close {
    top: 22px;
    right: 20px;
  }
}

/* Hero */
.hero-wrap {
  padding: 0 var(--edge);
}
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  min-height: 95vh;
  padding: 150px 70px 70px;
  border-radius: var(--radius);
  background: var(--navy);
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
}
.hero > :not(.hero__video) {
  position: relative;
  z-index: 1;
}
.hero__title {
  max-width: 700px;
  margin-bottom: 30px;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 92px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  --step: 10ms;
}
.hero__bottom {
  display: flex;
  align-items: flex-end;
  gap: var(--gap);
}
.hero__bottom > * {
  flex: 1;
}
.hero__tagline {
  max-width: 400px;
  color: #fff;
}
.counters {
  flex: none;
  width: 250px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5vw;
  text-align: right;
}
.counter__num {
  margin-bottom: 2px;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: var(--h1);
  line-height: 1.105;
  color: #fff;
}
.counter__label {
  color: #ffffffb3;
}
@media (max-width: 1279px) {
  .hero {
    min-height: 85vh;
    padding: 100px 30px 40px;
  }
  .hero::after {
    opacity: 0.2;
  }
  .hero__title {
    max-width: 500px;
    margin-bottom: 25px;
    font-size: 70px;
  }
  .hero__tagline {
    max-width: 300px;
  }
}
@media (max-width: 767px) {
  .hero {
    padding: 70px 20px 30px;
    border-radius: 0;
  }
  .hero::after {
    opacity: 0.5;
  }
  .hero__title {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: 50px;
  }
  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero__tagline {
    max-width: 100%;
  }
  .counters {
    width: 100%;
    margin-left: 0;
    gap: 15px;
    text-align: left;
  }
}

/* Frase destacada */
.statement {
  position: relative;
  padding: var(--section) 0;
}
.statement__deco {
  position: absolute;
  right: 0;
  top: 25%;
  width: auto;
  max-width: 18vw;
  height: auto;
}
.statement__title {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  line-height: 1.15;
}
.statement__img {
  display: inline-block;
  height: 1.27em;
  width: auto;
  margin: -5px 4px 0;
  border-radius: 20px;
  vertical-align: middle;
}
@media (max-width: 1279px) {
  .statement__deco {
    top: 0;
  }
  .statement__title {
    max-width: 700px;
  }
  .statement__img {
    border-radius: 15px;
  }
}
@media (max-width: 767px) {
  .statement__deco {
    display: none;
  }
  .statement__title {
    max-width: 100%;
  }
  .statement__img {
    margin: -2px 2px 0;
  }
}

/* Especialidades */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--gutter);
}
.spec {
  padding: 7.1vw 2.6vw 6.7vw;
  border: 1px solid var(--bd);
  border-left-width: 0;
}
.spec:first-child {
  border-left-width: 1px;
  border-radius: 40px 0 0 40px;
}
.spec:last-child {
  border-radius: 0 40px 40px 0;
}
.spec__icon {
  width: auto;
  height: 70px;
  margin-bottom: 57px;
}
.spec__title {
  margin-bottom: 12px;
}
@media (max-width: 1279px) {
  .specs {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec {
    padding: 60px 30px 55px;
    border-radius: 0;
  }
  .spec:nth-child(1) {
    border-radius: 40px 0 0 0;
  }
  .spec:nth-child(2) {
    border-radius: 0 40px 0 0;
  }
  .spec:nth-child(3) {
    border-width: 0 1px 1px 1px;
    border-radius: 0 0 0 40px;
  }
  .spec:nth-child(4) {
    border-width: 0 1px 1px 0;
    border-radius: 0 0 40px 0;
  }
  .spec__icon {
    height: 60px;
    margin-bottom: 33px;
  }
  .spec__title {
    margin-bottom: 8px;
  }
}
@media (max-width: 767px) {
  .specs {
    grid-template-columns: 1fr;
  }
  .spec {
    padding: 40px 25px 35px;
  }
  .spec:nth-child(n) {
    border-width: 0 1px 1px 1px;
    border-radius: 0;
  }
  .spec:nth-child(1) {
    border-width: 1px;
    border-radius: 20px 20px 0 0;
  }
  .spec:nth-child(4) {
    border-radius: 0 0 20px 20px;
  }
  .spec__icon {
    height: 55px;
    margin-bottom: 20px;
  }
}

/* Sobre MAPI */
.about {
  display: flex;
  gap: var(--gap);
  padding: var(--section) 0;
}
.about > * {
  flex: 1;
  min-width: 0;
}
.about__media {
  padding-right: 5.8vw;
}
.about__text {
  margin-bottom: 80px;
}
.about__text .t1 {
  margin-bottom: 28px;
}
.about__text p + p {
  margin-top: 1.62em;
}
@media (max-width: 1279px) {
  .about__media {
    padding-right: 0;
  }
  .about__text {
    margin-bottom: 50px;
  }
  .about__text .t1 {
    margin-bottom: 22px;
  }
  .about__text p + p {
    margin-top: 1em;
  }
}
@media (max-width: 767px) {
  .about {
    flex-direction: column;
    gap: 25px;
  }
  .about__text {
    margin-bottom: 30px;
  }
  .about__text .t1 {
    margin-bottom: 15px;
  }
}

/* Soluciones (pestañas) */
.solutions {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}
.solutions__inner {
  padding-top: var(--section);
}
/* Sin testimonios debajo, el bloque necesita su propio aire antes del bloque azul */
.solutions__inner--last {
  padding-bottom: var(--section);
}
.solutions__head {
  display: flex;
  gap: var(--gap);
  margin-bottom: 50px;
}
.solutions__head > :first-child {
  width: 70%;
}
.solutions__cta {
  width: 30%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: 7px;
}
.textlink {
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.265;
  color: var(--title);
  transition: color 0.3s ease;
}
.textlink:hover {
  color: var(--text);
}
.tabs {
  display: flex;
  gap: 30px;
}
.tabs__list {
  flex: none;
  width: 32%;
  display: flex;
  flex-direction: column;
}
.tabs__tab {
  position: relative;
  margin-top: -1px;
  padding: 18px 0;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  text-align: left;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.215;
  letter-spacing: -0.03em;
  color: var(--meta);
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}
.tabs__tab:first-child {
  margin-top: 0;
}
.tabs__tab:hover {
  color: var(--title);
}
.tabs__tab[aria-selected="true"] {
  z-index: 1;
  color: var(--title);
  border-color: var(--title);
}
.tabs__panels {
  flex: 1;
  min-width: 0;
}
.tabs__panel[hidden] {
  display: none;
}
.tabs__panel {
  animation: fadeIn 0.5s ease both;
}
@media (max-width: 1279px) {
  .solutions__head {
    margin-bottom: 38px;
  }
  .tabs__list {
    width: 40%;
  }
  .tabs__tab {
    padding: 14px 0;
    font-size: 20px;
  }
}
@media (max-width: 767px) {
  .solutions__head {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
  }
  .solutions__head > :first-child,
  .solutions__cta {
    width: 100%;
  }
  .solutions__cta {
    justify-content: flex-start;
    padding-bottom: 0;
  }
  .tabs {
    flex-direction: column;
    gap: 20px;
  }
  .tabs__list {
    width: 100%;
  }
}

/* Testimonios */
.testi {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section) var(--gutter);
}
.testi__deco {
  position: absolute;
  left: 0;
  top: -10vw;
  width: auto;
  max-width: 17vw;
  height: auto;
}
.testi .eyebrow,
.testi__title {
  position: relative;
  text-align: center;
}
.testi__title {
  max-width: 550px;
  margin-bottom: 50px;
}
.carousel {
  position: relative;
  width: 100%;
  --pv: 4;
}
.carousel__viewport {
  margin: 0 -15px;
  overflow: hidden;
  touch-action: pan-y;
}
.carousel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.carousel__slide {
  flex: 0 0 calc(100% / var(--pv));
  padding: 0 15px;
  display: flex;
}
.tcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 2.9vw 2vw;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 40px;
}
.tcard__text {
  margin-bottom: 45px;
}
.tcard__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 25px;
}
.tcard__stars svg {
  width: 17px;
  height: 17px;
  fill: #ed8a19;
}
.tcard__author {
  display: flex;
  align-items: center;
  margin-top: auto;
}
.tcard__author img {
  width: 65px;
  height: 65px;
  margin-right: 15px;
  border-radius: 50%;
  object-fit: cover;
}
.tcard__place {
  font-size: 15px;
  line-height: 18px;
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 23px;
  margin-top: 60px;
}
.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bd);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.carousel__dot:hover,
.carousel__dot[aria-current="true"] {
  background: var(--teal);
}
@media (max-width: 1279px) {
  .testi__deco {
    left: -1px;
    top: 0;
  }
  .testi__title {
    max-width: 450px;
    margin-bottom: 38px;
  }
  .carousel {
    --pv: 2;
  }
  .tcard {
    padding: 45px 30px;
  }
  .tcard__text {
    margin-bottom: 35px;
  }
  .tcard__stars {
    margin-bottom: 20px;
  }
  .tcard__author img {
    width: 54px;
    height: 54px;
    margin-right: 12px;
  }
  .carousel__dots {
    gap: 20px;
    margin-top: 40px;
  }
}
@media (max-width: 767px) {
  .testi__deco {
    display: none;
  }
  .testi__title {
    max-width: 100%;
    margin-bottom: 28px;
  }
  .carousel {
    --pv: 1;
  }
  .tcard {
    padding: 35px 20px;
    border-radius: 20px;
  }
  .tcard__text {
    margin-bottom: 25px;
  }
  .tcard__stars {
    margin-bottom: 15px;
  }
  .tcard__author img {
    width: 48px;
    height: 48px;
    margin-right: 10px;
  }
  .carousel__dots {
    gap: 15px;
    margin-top: 30px;
  }
}

/* Bloque azul marino */
.dark-wrap {
  padding: 0 var(--edge);
}
.dark {
  background: var(--navy);
}
.dark--top {
  padding: var(--section) 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.dark__cols {
  display: flex;
  gap: var(--gap);
}
.dark__cols > * {
  flex: 1;
  min-width: 0;
}
.dark__left {
  align-self: center;
  padding-right: 5.7vw;
}
.dark__left .t1 {
  padding-bottom: 50px;
}
.steps {
  --circle: 60px;
}
.step {
  display: flex;
  padding-bottom: 43px;
}
.step:last-child {
  padding-bottom: 0;
}
.step__mark {
  position: relative;
  flex: none;
  width: var(--circle);
  margin-right: 27px;
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--circle);
  height: var(--circle);
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}
.step:not(:last-child) .step__mark::after {
  content: "";
  position: absolute;
  left: calc(var(--circle) / 2 - 0.5px);
  top: calc(var(--circle) + 15px);
  bottom: -28px;
  border-right: 1px solid var(--bd);
}
.step__body {
  padding-top: 10px;
  color: #fff;
}
.step__body .t5 {
  margin-bottom: 11px;
}
.step__body p + p {
  margin-top: 1em;
}
.dark--sectors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
.sectors__label {
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.265;
  color: #fff;
  text-align: center;
}
.sectors {
  position: relative;
  width: 70%;
  overflow: hidden;
}
.sectors::before,
.sectors::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 10%;
  pointer-events: none;
}
.sectors::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy) 0%, #04024900 100%);
}
.sectors::after {
  right: 0;
  background: linear-gradient(270deg, var(--navy) 0%, #04024900 100%);
}
@keyframes marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-time, 40s) linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.sectors img {
  height: 80px;
  width: auto;
  max-width: none;
  margin-right: 60px;
}
.dark--faq {
  padding: var(--section) var(--gutter);
  border-radius: 0 0 var(--radius) var(--radius);
}
.faq__item {
  background: var(--bg2);
  border-radius: 40px;
  overflow: hidden;
}
.faq__item + .faq__item {
  margin-top: 10px;
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 55px 40px;
  text-align: left;
  cursor: pointer;
  transition: padding-bottom 0.3s ease;
}
.faq__item.is-open .faq__q {
  padding-bottom: 20px;
}
.faq__icon {
  flex: none;
  display: flex;
  margin-left: 30px;
  padding: 16px;
  border: 1px solid var(--bd);
  border-radius: 50%;
  color: var(--title);
}
.faq__icon svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}
.faq__a > div {
  min-height: 0;
  overflow: hidden;
}
.faq__a-inner {
  padding: 0 17vw 55px 40px;
  color: var(--text);
}
.faq__a-inner p + p {
  margin-top: 1.62em;
}
@media (max-width: 1279px) {
  .dark--top {
    padding-inline: 30px;
  }
  .dark--top .container {
    width: min(1024px, 100%);
  }
  .dark__left {
    padding-right: 0;
  }
  .dark__left .t1 {
    padding-bottom: 38px;
  }
  .steps {
    --circle: 50px;
  }
  .step {
    padding-bottom: 25px;
  }
  .step__mark {
    margin-right: 20px;
  }
  .step:not(:last-child) .step__mark::after {
    bottom: -10px;
  }
  .step__body {
    padding-top: 6px;
  }
  .step__body .t5 {
    margin-bottom: 6px;
  }
  .dark__img {
    height: 650px;
    object-fit: cover;
  }
  .dark--sectors {
    gap: 40px;
  }
  .sectors {
    width: 90%;
  }
  .faq__q {
    padding: 38px 35px;
  }
  .faq__item.is-open .faq__q {
    padding-bottom: 8px;
  }
  .faq__a-inner {
    padding: 0 12vw 38px 35px;
  }
}
@media (max-width: 767px) {
  .dark--top {
    padding-inline: 0;
    border-radius: 0;
  }
  .dark--top .container {
    width: calc(100% - 40px);
  }
  .dark__cols {
    flex-direction: column;
  }
  .steps {
    --circle: 44px;
  }
  .step {
    padding-bottom: 15px;
  }
  .step__mark {
    margin-right: 15px;
  }
  .step:not(:last-child) .step__mark::after {
    bottom: 0;
  }
  .dark__img {
    height: auto;
  }
  .dark--sectors {
    gap: 25px;
  }
  .sectors {
    width: 100%;
  }
  .sectors img {
    height: 70px;
    margin-right: 40px;
  }
  .dark--faq {
    border-radius: 0;
  }
  .faq__item {
    border-radius: 20px;
  }
  .faq__q {
    padding: 25px;
  }
  .faq__icon {
    margin-left: 20px;
    padding: 14px;
  }
  .faq__item.is-open .faq__q {
    padding-bottom: 10px;
  }
  .faq__a-inner {
    padding: 0 25px 25px;
  }
}

/* Formación */
.training {
  position: relative;
  padding-top: var(--section);
}
.training__deco-r {
  position: absolute;
  right: 0;
  top: 5%;
  width: auto;
  max-width: 20vw;
  height: auto;
}
.training__deco-l {
  position: absolute;
  left: 0;
  bottom: 0;
  width: auto;
  max-width: 12vw;
  height: auto;
}
.training__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.training__title {
  max-width: 630px;
  margin-bottom: 20px;
  text-align: center;
}
.switch {
  display: inline-flex;
  background: var(--bg2);
  border-radius: 30px;
}
.switch__btn {
  padding: 12px 33px;
  border-radius: 30px;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--meta);
  cursor: pointer;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}
.switch__btn:hover {
  color: var(--title);
}
.switch__btn[aria-selected="true"] {
  background: var(--bg);
  color: var(--title);
  box-shadow: inset 0 0 0 4px var(--bg2);
}
.plans {
  display: flex;
  align-items: flex-end;
  gap: var(--gap);
  width: 100%;
  padding-top: 60px;
  animation: fadeIn 0.3s ease both;
}
.plans[hidden] {
  display: none;
}
.plan {
  flex: 1;
  min-width: 0;
}
.plan__flag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 0 14px;
  border-radius: 40px 40px 0 0;
  background: var(--navy);
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.265;
  color: #fff;
}
.plan__flag svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.plan__card {
  background: var(--bg2);
  border-radius: 40px;
}
.plan--featured .plan__card {
  border-radius: 0 0 40px 40px;
}
.plan__head {
  padding: 40px 30px 49px;
}
.plan__rule {
  margin: 0 30px 35px;
  border-top: 1px solid var(--bd);
}
.plan__list {
  padding: 0 30px 25px;
  font-size: 14px;
  line-height: 1.25;
}
.plan__list li {
  display: flex;
  align-items: flex-start;
}
.plan__list li + li {
  margin-top: 12px;
}
.plan__list svg {
  flex: none;
  width: 19px;
  height: 19px;
  margin-right: 8px;
  fill: #bdd9b5;
}
.plan__foot {
  padding: 0 30px 35px;
}
.plan__btn > .wp-block-button__link {
  display: block;
  width: 100%;
  padding: 15px;
  border: 1px solid var(--bd);
  border-radius: 30px;
  text-align: center;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 15px;
  line-height: 19px;
  color: var(--title);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
.plan__btn > .wp-block-button__link:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.plan--featured .plan__btn > .wp-block-button__link {
  padding: 16px;
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.plan--featured .plan__btn > .wp-block-button__link:hover {
  background: #07b4b9d4;
  border-color: transparent;
}
@media (max-width: 1279px) {
  .training__deco-r {
    top: 0;
  }
  .training__deco-l {
    bottom: -3%;
  }
  .training__title {
    max-width: 500px;
  }
  .plans {
    padding-top: 40px;
  }
  .plan__flag {
    padding: 9px 0;
  }
  .plan__head {
    padding: 25px 20px 25px;
  }
  .plan__rule {
    margin: 0 20px 20px;
  }
  .plan__list {
    padding: 0 20px 20px;
  }
  .plan__list li + li {
    margin-top: 10px;
  }
  .plan__list svg {
    width: 18px;
    height: 18px;
  }
  .plan__foot {
    padding: 0 20px 25px;
  }
  .plan__btn > .wp-block-button__link {
    padding: 13px;
  }
  .plan--featured .plan__btn > .wp-block-button__link {
    padding: 14px;
  }
}
@media (max-width: 767px) {
  .training__deco-r,
  .training__deco-l {
    display: none;
  }
  .training__title {
    max-width: 100%;
    margin-bottom: 15px;
  }
  .switch__btn {
    padding: 12px 18px;
  }
  .plans {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-top: 30px;
  }
  .plan__flag {
    border-radius: 20px 20px 0 0;
  }
  .plan__card {
    border-radius: 20px;
  }
  .plan--featured .plan__card {
    border-radius: 0 0 20px 20px;
  }
}

/* Marquesina grande */
.bigmq {
  min-height: 8.8vw;
  padding: 120px 0;
  overflow: hidden;
}
.bigmq__scale {
  transform: scale(0.66);
  transform-origin: center top;
  will-change: transform;
}
.bigmq__text {
  display: flex;
  align-items: center;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 26vw;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--title);
  white-space: nowrap;
}
.bigmq__text > * {
  margin-right: 3.6vw;
}
.bigmq__text img {
  position: relative;
  top: -2.3vw;
  height: 0.83em;
  width: auto;
  max-width: none;
  border-radius: var(--radius);
}
@media (max-width: 1279px) {
  .bigmq {
    min-height: 10vw;
    padding: 70px 0;
  }
}
@media (max-width: 767px) {
  .bigmq {
    padding: 40px 0;
  }
}

/* Pie */
.footer {
  padding: 0 var(--edge) var(--edge);
}
.footer__box {
  padding: 135px 70px 60px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
}
.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 85px;
  text-align: center;
}
.footer__title {
  margin-bottom: 20px;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 5vw;
  line-height: 1.105;
  letter-spacing: -0.04em;
  color: #fff;
  --step: 10ms;
}
.footer__lead {
  margin-bottom: 80px;
}
.form {
  width: 100%;
  max-width: 630px;
  text-align: left;
}
.form__field {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 13px 20px;
  border: 1px solid var(--bd);
  border-radius: 30px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.3s ease;
}
.form__field::placeholder {
  color: var(--meta);
}
.form__field:focus {
  outline: none;
  border-color: var(--meta);
  color: var(--title);
}
textarea.form__field {
  height: 140px;
  resize: vertical;
}
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 20px;
  color: #ffffffb3;
  cursor: pointer;
}
.form__check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--teal);
}
.form__check a {
  text-decoration: underline;
}
.form__submit {
  width: 100%;
  background: var(--teal);
  color: var(--bg);
}
.form__submit:hover {
  background: #0402496e;
}
.footer__cols {
  display: flex;
  gap: var(--gap);
}
.footer__cols > * {
  flex: 1;
  min-width: 0;
}
/* Enlaces del pie en turquesa; al pasar el ratón, blanco */
.footer a {
  color: var(--teal);
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #fff;
}
.footer__addr {
  max-width: 200px;
}
.footer__social li + li {
  margin-top: 15px;
}
@media (max-width: 1279px) {
  .footer__box {
    padding: 95px 30px 45px;
  }
  .footer__top {
    margin-bottom: 50px;
  }
  .footer__title {
    margin-bottom: 15px;
    font-size: 52px;
  }
  .footer__lead {
    margin-bottom: 50px;
  }
  .form {
    max-width: 600px;
  }
  .footer__cols > :nth-child(1) {
    flex: 27;
  }
  .footer__cols > :nth-child(2) {
    flex: 23;
  }
  .footer__cols > :nth-child(3) {
    flex: 33;
  }
  .footer__social li + li {
    margin-top: 10px;
  }
}
@media (max-width: 767px) {
  .footer__box {
    padding: 65px 20px 30px;
    border-radius: 0;
  }
  .footer__top {
    margin-bottom: 30px;
  }
  .footer__title {
    margin-bottom: 10px;
    font-size: 32px;
  }
  .footer__lead {
    margin-bottom: 25px;
  }
  .form__field {
    margin-bottom: 13px;
    padding: 11px 12px;
  }
  .form__check {
    margin-bottom: 15px;
  }
  .footer__cols {
    flex-direction: column;
    gap: 20px;
  }
  .footer__social li + li {
    margin-top: 8px;
  }
}

.statement__deco,
.testi__deco,
.training__deco-r,
.training__deco-l {
  pointer-events: none;
}


/* Servicios */
.svc-intro {
  display: flex;
  align-items: flex-end;
  gap: var(--gap);
  padding-top: var(--section);
  margin-bottom: 50px;
}
.svc-intro > * {
  flex: 1;
  min-width: 0;
}
.svc-intro__title .t1 {
  max-width: 87%;
}
.svc-intro__title .eyebrow a {
  transition: color 0.3s ease;
}
.svc-intro__title .eyebrow a:hover {
  color: var(--teal);
}
.svc-intro__text {
  padding-left: 15px;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 var(--gutter);
}
.svc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 42px 35px 47px;
  border-radius: var(--radius);
  background: var(--bg2);
}
.svc-card__title {
  max-width: 260px;
}
.svc-card p {
  margin-bottom: 15px;
}
.svc-card__link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 16px;
  color: var(--title);
  transition: color 0.3s ease;
}
.svc-card__link svg {
  width: 14px;
  height: 14px;
  margin-left: 8px;
  fill: currentColor;
  transition: transform 0.3s ease;
}
.svc-card__link:hover {
  color: var(--teal);
}
.svc-card__link:hover svg {
  transform: translateX(4px);
}
.svc-photo {
  display: block;
  min-height: 22vw;
  border-radius: var(--radius);
  overflow: hidden;
}
.svc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.svc-photo:hover img {
  transform: scale(1.04);
}
/* Fila inferior en orden inverso: foto, tarjeta, foto, tarjeta */
.svc-grid > :nth-child(5) {
  order: 2;
}
.svc-grid > :nth-child(6) {
  order: 1;
}
.svc-grid > :nth-child(7) {
  order: 4;
}
.svc-grid > :nth-child(8) {
  order: 3;
}
.svc-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: var(--section);
  text-align: center;
}
.svc-cta .t1 {
  max-width: 630px;
  margin-bottom: 28px;
}
.svc-cta p {
  margin-bottom: 35px;
}
.svc-faq {
  padding: 0 var(--edge);
  margin-bottom: var(--section);
}
.svc-faq .dark--faq {
  border-radius: var(--radius);
  background: var(--navy);
}
.svc-faq__head {
  max-width: 630px;
  margin: 0 auto 50px;
  text-align: center;
}
.svc-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 var(--gutter);
}
.svc-block {
  padding: 42px 35px 47px;
  border-radius: var(--radius);
  background: var(--bg2);
}
.svc-block .t4 {
  margin-bottom: 20px;
}
.svc-incl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px var(--gutter) 0;
}
.svc-incl__photo {
  min-height: 34vw;
  border-radius: var(--radius);
  overflow: hidden;
}
.svc-incl__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-incl__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}
.svc-incl__list {
  margin: 35px 0 45px;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: var(--h6);
  line-height: 1.265;
  letter-spacing: -0.03em;
}
.svc-incl__list li {
  display: flex;
  align-items: flex-start;
}
.svc-incl__list li + li {
  margin-top: 18px;
}
.svc-incl__list svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 12px 0 0;
  fill: var(--teal);
}
.svc-more {
  padding-block: var(--section);
}
.svc-more__list li {
  border-top: 1px solid var(--bd);
}
.svc-more__list li:last-child {
  border-bottom: 1px solid var(--bd);
}
.svc-more__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  transition: color 0.3s ease;
}
.svc-more__list a:hover {
  color: var(--teal);
}
.svc-more__list svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: currentColor;
}
@media (max-width: 1279px) {
  .svc-intro {
    margin-bottom: 38px;
  }
  .svc-intro__title .t1 {
    max-width: 85%;
  }
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Filas alternas: tarjeta/foto, foto/tarjeta */
  .svc-grid > :nth-child(-n + 2) {
    order: 0;
  }
  .svc-grid > :nth-child(4) {
    order: 1;
  }
  .svc-grid > :nth-child(3) {
    order: 2;
  }
  .svc-grid > :nth-child(5),
  .svc-grid > :nth-child(6) {
    order: 3;
  }
  .svc-grid > :nth-child(8) {
    order: 4;
  }
  .svc-grid > :nth-child(7) {
    order: 5;
  }
  .svc-photo {
    min-height: 40vw;
  }
  .svc-faq__head {
    max-width: 570px;
    margin-bottom: 38px;
  }
  .svc-blocks {
    grid-template-columns: 1fr;
  }
  .svc-incl__box {
    padding: 45px 35px;
  }
}
@media (max-width: 767px) {
  .svc-intro {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 28px;
  }
  .svc-intro__title .t1 {
    max-width: none;
  }
  .svc-intro__text {
    padding-left: 0;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .svc-grid > :nth-child(n) {
    order: 0;
  }
  .svc-card {
    gap: 25px;
    padding: 30px;
  }
  .svc-photo {
    min-height: 280px;
  }
  .svc-cta p {
    margin-bottom: 25px;
  }
  .svc-faq__head {
    margin-bottom: 28px;
  }
  .svc-faq .dark--faq {
    border-radius: 0;
  }
  .svc-block {
    padding: 30px;
  }
  .svc-block .t4 {
    margin-bottom: 12px;
  }
  .svc-incl {
    grid-template-columns: 1fr;
  }
  .svc-incl__photo {
    min-height: 280px;
  }
  .svc-incl__box {
    padding: 35px 30px;
  }
  .svc-incl__list {
    margin: 22px 0 30px;
  }
}

/* Formación (catálogo de cursos) */
/* Sin data-reveal: la lista es más alta que la pantalla y no alcanzaría el umbral del observador */
.crs {
  animation: fadeInUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 200ms both;
}
.crs__filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}
.crs__field span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--title);
}
.crs__field select,
.crs__field input {
  width: 100%;
  height: 54px;
  padding: 0 24px;
  border: 1px solid var(--bd);
  border-radius: 30px;
  background: var(--bg2);
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 16px;
  color: var(--title);
  appearance: none;
  transition: border-color 0.3s ease;
}
.crs__field select {
  padding-right: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231e141e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.crs__field input::placeholder {
  font-weight: 400;
  color: var(--meta);
}
.crs__field select:hover,
.crs__field input:hover,
.crs__field select:focus-visible,
.crs__field input:focus-visible {
  border-color: var(--teal);
  outline: none;
}
.crs__count {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--meta);
}
.crs__count button {
  font-family: var(--font-onest);
  font-weight: 500;
  color: var(--title);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.crs__count button:hover {
  color: var(--teal);
}
.crs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.crs-card {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 26px;
  border: 1px solid var(--bd);
  border-radius: 30px;
  background: var(--bg2);
  transition: border-color 0.3s ease;
}
.crs-card:hover {
  border-color: var(--teal);
}
.crs-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.crs-tag {
  padding: 7px 12px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--navy) 8%, transparent);
  font-family: var(--font-onest);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.crs-tag--teal {
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--green);
}
.crs-card__title {
  margin-bottom: 26px;
}
.crs-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--bd);
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 15px;
}
.crs-card__hours {
  color: var(--teal);
}
.crs-card__link {
  display: inline-flex;
  align-items: center;
  color: var(--title);
  transition: color 0.3s ease;
}
.crs-card__link svg {
  width: 13px;
  height: 13px;
  margin-left: 7px;
  fill: currentColor;
  transition: transform 0.3s ease;
}
.crs-card__link:hover {
  color: var(--teal);
}
.crs-card__link:hover svg {
  transform: translateX(4px);
}
.crs__empty {
  padding: 50px 30px;
  border: 1px solid var(--bd);
  border-radius: 30px;
  background: var(--bg2);
  text-align: center;
}
.crs__empty a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crs__note {
  margin-top: 25px;
  font-size: 14px;
  color: var(--meta);
}
@media (max-width: 1279px) {
  .crs__filters,
  .crs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .crs__filters > :last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .crs__filters,
  .crs__grid {
    grid-template-columns: 1fr;
  }
  .crs__filters {
    gap: 15px;
    margin-bottom: 25px;
  }
  .crs-card {
    padding: 24px 22px 20px;
    border-radius: 20px;
  }
  .crs__empty {
    border-radius: 20px;
  }
}

/* Pie: texto legal del formulario y franja final */
.form__legal {
  width: 100%;
  font-size: 11px;
  line-height: 1.55;
  text-align: left;
  color: var(--meta);
}
.form__legal strong {
  font-weight: 600;
}
.form__legal a {
  text-decoration: underline;
}
.footer .form__legal {
  margin-top: 45px;
  color: #ffffff99;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px 30px;
  flex-wrap: wrap;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid #ffffff33;
  font-size: 14px;
  color: #ffffffb3;
}
@media (max-width: 1279px) {
  .footer__bottom {
    margin-top: 50px;
  }
}
@media (max-width: 767px) {
  .footer__bottom {
    flex-direction: column;
    margin-top: 30px;
    padding-top: 20px;
  }
}

/* Páginas legales */
.legal {
  max-width: 860px;
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.legal__body {
  margin-top: 45px;
}
.legal__body h2 {
  margin: 40px 0 12px;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: var(--h5);
  line-height: 1.215;
  letter-spacing: -0.03em;
  color: var(--title);
}
.legal__body p + p {
  margin-top: 12px;
}
.legal__body ul {
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
}
.legal__body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contacto */
.ctc {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  gap: 20px;
  margin-bottom: var(--section);
}
.ctc__card {
  padding: 45px;
  border-radius: var(--radius);
  background: var(--bg2);
}
.ctc__card .t4 {
  margin-bottom: 28px;
}
.ctc__card .form {
  max-width: none;
}
.ctc__card .form__check {
  color: var(--text);
}
.ctc__card .form__check a {
  color: var(--teal);
}
.ctc__card .form__submit:hover {
  background: var(--navy);
}
.ctc__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ctc__office {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}
.ctc__office .t4 {
  margin-bottom: 18px;
}
.ctc__office address {
  max-width: 260px;
  margin-bottom: 22px;
  font-style: normal;
}
.ctc__office li + li {
  margin-top: 6px;
}
.ctc__office a {
  transition: color 0.3s ease;
}
.ctc__office address a,
.ctc__office a:hover {
  color: var(--teal);
}
.ctc__office address a:hover {
  color: #fff;
}
.ctc__note {
  padding: 32px 40px;
  border-radius: var(--radius);
  background: var(--bg2);
}
.ctc__note .t6 {
  margin-bottom: 8px;
}
.ctc__note a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ctc > .form__legal {
  grid-column: 1 / -1;
  margin-top: 10px;
}
@media (max-width: 1279px) {
  .ctc {
    grid-template-columns: 1fr;
  }
  .ctc__card {
    padding: 35px;
  }
}
@media (max-width: 767px) {
  .ctc__card,
  .ctc__office,
  .ctc__note {
    padding: 28px 22px;
  }
}

/* Aviso de cookies */
.cookies {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 25px;
  width: min(760px, calc(100% - 40px));
  padding: 20px 22px 20px 30px;
  border: 1px solid var(--bd);
  border-radius: 30px;
  background: var(--bg2);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 10px 40px #04024926;
  transform: translateX(-50%);
}
.cookies a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookies__btn {
  flex: none;
}
@media (max-width: 767px) {
  .cookies {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 20px;
    border-radius: 20px;
  }
}

/* Formulario: verificación anti-bots y resultado del envío */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form__captcha {
  margin-bottom: 20px;
}
.form__captcha:empty {
  display: none;
}
.form__submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.form__status {
  margin-top: 18px;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
}
.form__status--ok {
  color: var(--teal);
}
.form__status--error {
  color: #c0392b;
}
.footer .form__status--ok {
  color: #fff;
}
.footer .form__status--error {
  color: #ffb9ad;
}

/* Formación (home): acceso al catálogo completo */
.training__more {
  margin-top: 45px;
}
@media (max-width: 767px) {
  .training__more {
    margin-top: 30px;
  }
}

/* ======================================================================
   Adaptación a los bloques de WordPress
   ====================================================================== */

/* Imágenes en bloques */
.rounded-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Botones */
.wp-block-button.btn {
  display: inline-flex;
}
.form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  padding: 18px 40px;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}
@media (max-width: 767px) {
  .form__submit {
    font-size: 15px;
    padding: 14px 32px;
  }
}

/* Cabecera */
.admin-bar .hdr {
  top: var(--wp-admin--admin-bar--height, 32px);
}
.hdr__logo a {
  display: inline-block;
}
.hdr__logo img {
  height: 33px;
  width: auto;
}
.hdr .hdr__nav,
.hdr .hdr__nav .wp-block-navigation__container {
  gap: 0;
}
.hdr .hdr__nav .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: var(--title);
  transition: color 0.3s ease;
}
.hdr .hdr__nav .wp-block-navigation-item__content:hover,
.hdr .hdr__nav .wp-block-navigation-item__content[aria-current="page"] {
  color: var(--teal);
}
.hdr__side {
  flex-wrap: nowrap;
}
.hdr__burger {
  display: none;
}
@media (max-width: 1279px) {
  .hdr__row {
    display: flex;
    padding: 15px 30px;
  }
  .hdr__logo {
    width: auto;
  }
  .hdr__nav,
  .hdr__side {
    display: none !important;
  }
  .hdr__burger {
    display: inline-flex;
  }
}
@media (max-width: 767px) {
  .hdr__row {
    padding: 15px 20px;
  }
}

/* Hero */
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Frase destacada */
.statement::before {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  width: 18vw;
  aspect-ratio: 1064 / 1478;
  background: url(../images/deco-1.webp) no-repeat right top / contain;
  pointer-events: none;
}
.statement__title img {
  display: inline-block;
  height: 1.27em;
  width: auto;
  margin: -5px 4px 0;
  border-radius: 20px;
  vertical-align: middle;
}
@media (max-width: 1279px) {
  .statement::before {
    top: 0;
  }
  .statement__title img {
    border-radius: 15px;
  }
}
@media (max-width: 767px) {
  .statement::before {
    display: none;
  }
  .statement__title img {
    margin: -2px 2px 0;
  }
}

/* Especialidades */
.spec__icon img {
  height: 100%;
  width: auto;
}

/* Sobre MAPI */
.about__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.about__text p + p {
  margin-top: 1.62em;
}

/* Soluciones */
.solutions__cta a {
  transition: color 0.3s ease;
}
.solutions__cta a:hover {
  color: var(--text);
}
.tabs__panel figcaption {
  display: none;
}

/* Pasos numerados */
.steps {
  counter-reset: step;
  --mark-gap: 27px;
}
.step {
  position: relative;
  counter-increment: step;
  min-height: var(--circle);
  padding-left: calc(var(--circle) + var(--mark-gap));
  padding-top: 10px;
  color: #fff;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--circle);
  height: var(--circle);
  border-radius: 50%;
  background: var(--teal);
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: var(--h6);
  letter-spacing: -0.03em;
  color: #fff;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--circle) / 2 - 0.5px);
  top: calc(var(--circle) + 15px);
  bottom: 15px;
  border-right: 1px solid var(--bd);
}
.step .t5 {
  margin-bottom: 11px;
}
.step p + p {
  margin-top: 1em;
}
@media (max-width: 1279px) {
  .steps {
    --mark-gap: 20px;
  }
  .step {
    padding-top: 6px;
  }
  .step .t5 {
    margin-bottom: 6px;
  }
  .dark__img img {
    height: 100%;
    object-fit: cover;
  }
}
@media (max-width: 767px) {
  .steps {
    --mark-gap: 15px;
  }
}
.dark__img img {
  border-radius: var(--radius);
}

/* Preguntas frecuentes (bloque Detalles) */
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 55px 40px;
  list-style: none;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: var(--h5);
  line-height: 1.215;
  letter-spacing: -0.03em;
  color: var(--title);
  cursor: pointer;
  transition: padding-bottom 0.3s ease;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "";
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: 30px;
  border: 1px solid var(--bd);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath fill='%231e141e' d='M4.8,4.8V0h1.3v4.8H11v1.3H6.2V11H4.8V6.2H0V4.8H4.8z'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.faq__item[open] summary {
  padding-bottom: 20px;
}
.faq__item[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath fill='%231e141e' d='M0,4.8l11,0v1.3H0L0,4.8z'/%3E%3C/svg%3E");
}
.faq__item > :not(summary) {
  padding: 0 17vw 0 40px;
  color: var(--text);
}
.faq__item > :not(summary) + :not(summary) {
  padding-top: 1.62em;
}
.faq__item > :last-child:not(summary) {
  padding-bottom: 55px;
}
.faq__item::details-content {
  height: 0;
  overflow: hidden;
  transition:
    height 0.3s ease,
    content-visibility 0.3s allow-discrete;
}
.faq__item[open]::details-content {
  height: auto;
}
@media (max-width: 1279px) {
  .faq__item summary {
    padding: 38px 35px;
  }
  .faq__item[open] summary {
    padding-bottom: 8px;
  }
  .faq__item > :not(summary) {
    padding: 0 12vw 0 35px;
  }
  .faq__item > :last-child:not(summary) {
    padding-bottom: 38px;
  }
}
@media (max-width: 767px) {
  .faq__item summary {
    padding: 25px;
  }
  .faq__item summary::after {
    width: 40px;
    height: 40px;
    margin-left: 20px;
  }
  .faq__item[open] summary {
    padding-bottom: 10px;
  }
  .faq__item > :not(summary) {
    padding: 0 25px;
  }
  .faq__item > :last-child:not(summary) {
    padding-bottom: 25px;
  }
}

/* Formación (home) */
.training::before,
.training::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}
.training::before {
  right: 0;
  top: 5%;
  width: 20vw;
  aspect-ratio: 1174 / 1340;
  background-image: url(../images/deco-3.webp);
  background-position: right top;
}
.training::after {
  left: 0;
  bottom: 0;
  width: 12vw;
  aspect-ratio: 1086 / 1448;
  background-image: url(../images/deco-2.webp);
  background-position: left bottom;
}
@media (max-width: 1279px) {
  .training::before {
    top: 0;
  }
  .training::after {
    bottom: -3%;
  }
}
@media (max-width: 767px) {
  .training::before,
  .training::after {
    display: none;
  }
}
.training__inner {
  z-index: 1;
}
.mapi-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.mapi-switch__panel {
  width: 100%;
}
.mapi-switch__label {
  margin-top: 40px;
  text-align: center;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--title);
}
.mapi-switch.is-ready .mapi-switch__label {
  display: none;
}
.mapi-switch.is-ready .mapi-switch__panel[hidden] {
  display: none;
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan--featured::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M8 1.1c.5 0 .9.4 1.1.9l1.2 3.2 2.5-1.8c.9-.6 2 .2 1.7 1.3l-2.7 7.6c-.2.5-.7.9-1.3.9h-5c-.6 0-1.1-.4-1.3-.9L1.5 4.7C1.2 3.6 2.3 2.8 3.2 3.4l2.5 1.8L6.9 2c.2-.5.6-.9 1.1-.9ZM4.3 14.1h7.4a.6.6 0 0 1 0 1.2H4.3a.6.6 0 0 1 0-1.2Z'/%3E%3C/svg%3E") "  CURSO DESTACADO";
  display: block;
  padding: 13px 0 14px;
  border-radius: 40px 40px 0 0;
  background: var(--navy);
  text-align: center;
  white-space: pre;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.265;
  color: #fff;
}
.plan__title {
  position: relative;
  padding: 40px 30px 49px;
}
.plan__title::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  border-top: 1px solid var(--bd);
}
.plan__list {
  padding-top: 35px;
}
.plan__list li::before,
.svc-incl__list li::before {
  content: "";
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 20'%3E%3Cpath fill='%23bdd9b5' d='M9.5 0.5C4.26149 0.5 0 4.76149 0 10C0 15.2385 4.26149 19.5 9.5 19.5C14.7385 19.5 19 15.2385 19 10C19 4.76149 14.7385 0.5 9.5 0.5ZM14.3149 7.98682L9.16906 13.1326C9.01468 13.2869 8.81203 13.3646 8.60938 13.3646C8.40672 13.3646 8.20407 13.2869 8.04969 13.1326L5.47682 10.5597C5.16719 10.2502 5.16719 9.7498 5.47682 9.44032C5.78631 9.13068 6.28656 9.13068 6.59619 9.44032L8.60938 11.4535L13.1956 6.86745C13.5051 6.55782 14.0053 6.55782 14.3149 6.86745C14.6244 7.17693 14.6244 7.67719 14.3149 7.98682Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan__list li::before {
  width: 19px;
  height: 19px;
  margin-right: 8px;
}
.plan__foot .wp-block-button,
.plan__foot .wp-block-button__link {
  width: 100%;
}
@media (max-width: 1279px) {
  .plan--featured::before {
    padding: 9px 0;
  }
  .plan__title {
    padding: 25px 20px;
  }
  .plan__title::after {
    left: 20px;
    right: 20px;
  }
  .plan__list {
    padding-top: 20px;
  }
  .plan__list li::before {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 767px) {
  .plan--featured::before {
    border-radius: 20px 20px 0 0;
  }
}

/* Marquesina grande */
.bigmq {
  position: relative;
}
.mapi-bigmq:not(.is-ready) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3vw;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 8vw;
  letter-spacing: -0.04em;
  color: var(--title);
}
.mapi-bigmq:not(.is-ready) img {
  height: 0.83em;
  width: auto;
  border-radius: var(--radius);
}

/* Pie */
.footer__cols ul li + li {
  margin-top: 0;
}
.footer__social li + li {
  margin-top: 15px;
}
@media (max-width: 1279px) {
  .footer__social li + li {
    margin-top: 10px;
  }
}
@media (max-width: 767px) {
  .footer__social li + li {
    margin-top: 8px;
  }
}

/* Servicios */
.svc-photo {
  position: relative;
}
.svc-photo a {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.svc-photo img,
.svc-incl__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-incl__photo {
  position: relative;
}
.svc-card__link a,
.svc-more__list a {
  display: inline-flex;
  align-items: center;
  color: var(--title);
  transition: color 0.3s ease;
}
.svc-card__link a {
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 16px;
}
.svc-card__link a::after,
.svc-more__list a::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M8.2 1.6 13.6 7l-5.4 5.4-.9-.9 3.8-3.8H.4V6.3h10.7L7.3 2.5l.9-.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M8.2 1.6 13.6 7l-5.4 5.4-.9-.9 3.8-3.8H.4V6.3h10.7L7.3 2.5l.9-.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s ease;
}
.svc-card__link a:hover,
.svc-more__list a:hover {
  color: var(--teal);
}
.svc-card__link a:hover::after {
  transform: translateX(4px);
}
.svc-more__list a {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: var(--h5);
  line-height: 1.215;
  letter-spacing: -0.03em;
}
.svc-more__list a::after {
  width: 16px;
  height: 16px;
}
.svc-incl__list li::before {
  width: 22px;
  height: 22px;
  margin: 1px 12px 0 0;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 20'%3E%3Cpath d='M9.5 0.5C4.26149 0.5 0 4.76149 0 10C0 15.2385 4.26149 19.5 9.5 19.5C14.7385 19.5 19 15.2385 19 10C19 4.76149 14.7385 0.5 9.5 0.5ZM14.3149 7.98682L9.16906 13.1326C9.01468 13.2869 8.81203 13.3646 8.60938 13.3646C8.40672 13.3646 8.20407 13.2869 8.04969 13.1326L5.47682 10.5597C5.16719 10.2502 5.16719 9.7498 5.47682 9.44032C5.78631 9.13068 6.28656 9.13068 6.59619 9.44032L8.60938 11.4535L13.1956 6.86745C13.5051 6.55782 14.0053 6.55782 14.3149 6.86745C14.6244 7.17693 14.6244 7.67719 14.3149 7.98682Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 20'%3E%3Cpath d='M9.5 0.5C4.26149 0.5 0 4.76149 0 10C0 15.2385 4.26149 19.5 9.5 19.5C14.7385 19.5 19 15.2385 19 10C19 4.76149 14.7385 0.5 9.5 0.5ZM14.3149 7.98682L9.16906 13.1326C9.01468 13.2869 8.81203 13.3646 8.60938 13.3646C8.40672 13.3646 8.20407 13.2869 8.04969 13.1326L5.47682 10.5597C5.16719 10.2502 5.16719 9.7498 5.47682 9.44032C5.78631 9.13068 6.28656 9.13068 6.59619 9.44032L8.60938 11.4535L13.1956 6.86745C13.5051 6.55782 14.0053 6.55782 14.3149 6.86745C14.6244 7.17693 14.6244 7.67719 14.3149 7.98682Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.svc-incl__box .wp-block-buttons {
  margin: 0;
}
.svc-intro__title .eyebrow a:hover {
  color: var(--teal);
}

/* Catálogo de cursos: sin JavaScript se ve la tabla tal cual */
.mapi-catalog__data table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.mapi-catalog__data th,
.mapi-catalog__data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bd);
  text-align: left;
}
.mapi-catalog__data th {
  font-family: var(--font-onest);
  font-weight: 500;
  color: var(--title);
}
.mapi-catalog.is-ready .mapi-catalog__data {
  display: none;
}

/* Contacto */
.ctc__address {
  max-width: 260px;
  margin-bottom: 22px;
}
.ctc__address a {
  color: var(--teal);
}
.ctc__address a:hover {
  color: #fff;
}

/* Bloques sueltos añadidos desde el editor (fuera de las secciones del tema) */
.entry-content > :not(.wp-block-group) {
  width: min(860px, calc(100% - 40px));
  margin-inline: auto;
}
.entry-content > :not(.wp-block-group) + :not(.wp-block-group) {
  margin-top: 1.2em;
}
.entry-content > :not(.wp-block-group):first-child {
  margin-top: var(--section);
}
.entry-content > :not(.wp-block-group):last-child {
  margin-bottom: var(--section);
}
.entry-content > h2,
.legal__body > h2 {
  font-family: var(--font-onest);
  font-weight: 500;
  color: var(--title);
}
.entry-content > h1 {
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: var(--h1);
  line-height: 1.105;
  letter-spacing: -0.04em;
  color: var(--title);
}
.entry-content > h2 {
  font-size: var(--h3);
  line-height: 1.115;
  letter-spacing: -0.04em;
}
.entry-content > ul {
  padding-left: 20px;
  list-style: disc;
}
.entry-content > p a,
.entry-content > ul a {
  color: var(--teal);
  text-decoration: underline;
}

/* WordPress envuelve el shortcode del formulario en un párrafo que queda vacío */
.footer__top > p:empty,
.ctc__card > p:empty {
  display: none;
}

/* Pasos: el título y el texto van uno debajo del otro, no en fila */
.step {
  display: block;
}

/* Botones de las tarjetas de cursos: contorno, sin el fondo oscuro de WordPress */
.plan__btn > .wp-block-button__link {
  background: transparent;
}
.plan__btn > .wp-block-button__link:hover {
  background: var(--teal);
}
.plan--featured .plan__btn > .wp-block-button__link {
  background: var(--teal);
}
.plan--featured .plan__btn > .wp-block-button__link:hover {
  background: #07b4b9d4;
}

/* Pie: tres columnas iguales; la dirección se corta a 200px dentro de su columna */
.footer__cols > .footer__addr {
  max-width: none;
}
.footer__addr a {
  display: inline-block;
  max-width: 200px;
}
.footer__cols .footer__social li + li {
  margin-top: 15px;
}
@media (max-width: 1279px) {
  .footer__cols .footer__social li + li {
    margin-top: 10px;
  }
}

/*
 * Espacio antes del pie. WordPress quita el margen inferior al último bloque de la página
 * (regla «:root :where(.is-layout-flow) > :last-child»), así que se repone aquí con más especificidad.
 */
.entry-content > .svc-faq:last-child,
.entry-content > .ctc:last-child,
.entry-content > .legal:last-child {
  margin-block-end: var(--section);
}

/* Botón flotante de WhatsApp (Ajustes → MAPI Prevención). Por debajo del menú móvil. */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.wa-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 20px rgba(4, 2, 73, 0.25);
  transition: transform 0.3s ease;
}
.wa-float:hover .wa-float__btn {
  transform: scale(1.06);
}
.wa-float__bubble {
  position: relative;
  padding: 10px 16px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(4, 2, 73, 0.15);
  font-family: var(--font-public-sans);
  font-size: 15px;
  line-height: 1.2;
  color: var(--title);
  white-space: nowrap;
}
.wa-float__bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 767px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
  }
  .wa-float__btn {
    width: 54px;
    height: 54px;
  }
  .wa-float__bubble {
    font-size: 14px;
    padding: 9px 14px;
  }
}
@media print {
  .wa-float {
    display: none;
  }
}
