@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Margen */
.m-0 {
  margin: 0;
}
.m-5 {
  margin: 5px;
}
.m-10 {
  margin: 10px;
}
.m-20 {
  margin: 20px;
}
.m-30 {
  margin: 30px;
}

.mt-0 {
  margin-top: 0;
}
.mt-5 {
  margin-top: 5px;
}
.mt-10 {
  margin-top: 10px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-30 {
  margin-top: 30px;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-5 {
  margin-bottom: 5px;
}
.mb-10 {
  margin-bottom: 10px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mb-30 {
  margin-bottom: 30px;
}
.mb-100 {
  margin-bottom: 100px;
}

.ml-0 {
  margin-left: 0;
}
.ml-5 {
  margin-left: 5px;
}
.ml-10 {
  margin-left: 10px;
}
.ml-20 {
  margin-left: 20px;
}
.ml-30 {
  margin-left: 30px;
}

.mr-0 {
  margin-right: 0;
}
.mr-5 {
  margin-right: 5px;
}
.mr-10 {
  margin-right: 10px;
}
.mr-20 {
  margin-right: 20px;
}
.mr-30 {
  margin-right: 30px;
}

/* Padding */
.p-0 {
  padding: 0;
}
.p-5 {
  padding: 5px;
}
.p-10 {
  padding: 10px;
}
.p-20 {
  padding: 20px;
}
.p-30 {
  padding: 30px;
}

.pt-0 {
  padding-top: 0;
}
.pt-5 {
  padding-top: 5px;
}
.pt-10 {
  padding-top: 10px;
}
.pt-20 {
  padding-top: 20px;
}
.pt-30 {
  padding-top: 30px;
}

.pb-0 {
  padding-bottom: 0;
}
.pb-5 {
  padding-bottom: 5px;
}
.pb-10 {
  padding-bottom: 10px;
}
.pb-20 {
  padding-bottom: 20px;
}
.pb-30 {
  padding-bottom: 30px;
}

.pl-0 {
  padding-left: 0;
}
.pl-5 {
  padding-left: 5px;
}
.pl-10 {
  padding-left: 10px;
}
.pl-20 {
  padding-left: 20px;
}
.pl-30 {
  padding-left: 30px;
}

.pr-0 {
  padding-right: 0;
}
.pr-5 {
  padding-right: 5px;
}
.pr-10 {
  padding-right: 10px;
}
.pr-20 {
  padding-right: 20px;
}
.pr-30 {
  padding-right: 30px;
}

.titillium-web-extralight {
  font-family: "Titillium Web", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.titillium-web-light {
  font-family: "Titillium Web", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.titillium-web-regular {
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.titillium-web-semibold {
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.titillium-web-bold {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.titillium-web-black {
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.titillium-web-extralight-italic {
  font-family: "Titillium Web", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.titillium-web-light-italic {
  font-family: "Titillium Web", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.titillium-web-regular-italic {
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.titillium-web-semibold-italic {
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.titillium-web-bold-italic {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.content {
  margin: 0 auto;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.nunito {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

header {
  position: relative;
  width: 100%;
  background-color: #055592;
  z-index: 10000;
}

.site-branding {
  border-bottom: 2px solid #ffffff;
}

.content-site-branding {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5px;
}

.branding-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 35%;
  max-width: 400px;
}

/* .branding-logo {
  height: 130px;
}

.branding-logo img {
  height: 100%;
} */

.social-network {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.icons {
  margin-bottom: 15px;
}

.icons-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: "Nunito Sans", sans-serif;
}

.icons-content h2 {
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
}

.icon-item {
  font-size: 25px;
  margin: 5px 7px;
}

.icon-item a {
  text-decoration: none;
  list-style: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-item img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.icon-item a:hover img,
.icon-item a:focus-visible img {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.24));
  transform: translateY(-1px);
}

.input-search input {
  font-family: "Nunito Sans", sans-serif;
  font-size: 15px;
  padding: 3px;
  background: #055592;
  color: #ffffff;
  border: solid 1px #00000000;
  border-bottom: 1px solid #ffffff;
}

.input-search input::placeholder {
  color: #ffffff;
  opacity: 1;
}

.input-search input::-webkit-input-placeholder {
  color: #ffffff;
}

.input-search input:-ms-input-placeholder {
  color: #ffffff;
}

.input-search input::-ms-input-placeholder {
  color: #ffffff;
}

.input-search input:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
  border: solid 1px #00000000;
  border-bottom: 1px solid #ffffff;
}

.input-search i {
  color: #fff;
  cursor: pointer;
}
.navbar {
  width: 100%;
}
.content-navbar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-evenly;
}

.content-navbar ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.content-navbar ul li a {
  list-style: none;
  text-decoration: none;
  color: #ffffff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  /* transition: all 2s; */
}

.content-navbar ul li a:hover {
  border-bottom: 1px solid #ffffff;
}

.sticky-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0 auto;
  padding: 14px 0;

  display: grid;
  grid-template-columns: 15% 70% 15%;
  align-items: center;
  justify-content: space-evenly;

  background: rgba(5, 85, 146, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%) scale(0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0);

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    visibility 0.35s ease,
    box-shadow 0.45s ease;
}

.sticky-navbar.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.sticky-branding-logo {
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sticky-branding-logo img {
  height: 100%;
}

.sticky-navbar ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.sticky-navbar ul li a {
  list-style: none;
  text-decoration: none;
  color: #ffffff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  /* transition: all 2s; */
}

.sticky-navbar ul li a:hover {
  border-bottom: 1px solid #ffffff;
}

@media (max-width: 991px) {
  .sticky-navbar {
    display: none !important;
  }
}

/* ============================= */
/* MOBILE / TABLET HAMBURGER MENU */
/* ============================= */

.mobile-navbar,
.mobile-menu-overlay,
.mobile-menu-panel {
  display: none;
}

/* Ocultar menú desktop y sticky en tablet / celular */
@media (max-width: 991px) {
  .navbar,
  .sticky-navbar {
    display: none !important;
  }

  .mobile-navbar {
    display: grid;
    grid-template-columns: 80% 20%;
    align-items: center;
    width: 100%;
    padding: 12px 18px;
    background: #055592;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  }

  .mobile-navbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .mobile-navbar-brand .branding-instituto {
    cursor: pointer;
    max-width: 100%;
  }

  .mobile-navbar-brand .brand-logo img {
    max-height: 58px;
    width: auto;
  }

  .mobile-navbar-brand .brand-titulo p {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .mobile-navbar-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .hamburger-button {
    width: 46px;
    height: 46px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 0;
    z-index: 10002;
  }

  .hamburger-button span {
    display: block;
    width: 34px;
    height: 3px;
    background: #ffffff;
    border-radius: 20px;
    transition:
      transform 0.35s ease,
      opacity 0.25s ease,
      width 0.35s ease;
  }

  .hamburger-button.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .hamburger-button.active span:nth-child(2) {
    opacity: 0;
    width: 0;
  }

  .hamburger-button.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-panel {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    max-width: 420px;
    height: 100vh;
    background: #055592;
    z-index: 9998;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    box-shadow: 15px 0 35px rgba(0, 0, 0, 0.25);
  }

  .mobile-menu-panel.active {
    transform: translateX(0);
  }

  .mobile-menu-header {
    padding: 28px 24px 18px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 85px;
  }

  .mobile-menu-header img {
    height: 78px;
    width: auto;
  }

  .mobile-menu-content {
    padding: 25px 24px 40px;
    margin-top: 85px;
  }

  .mobile-menu-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-content ul li {
    width: 100%;
  }

  .mobile-menu-content ul li a {
    display: block;
    width: 100%;
    padding: 15px 0;
    color: #ffffff;
    text-decoration: none;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .mobile-menu-content ul li a:hover,
  .mobile-menu-content ul li a.menu-item-activo {
    color: #ffffff;
    padding-left: 10px;
    border-left: 4px solid #ffffff;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}

/* ============================= */
/* AJUSTE LOGOTIPO MOBILE NAVBAR */
/* ============================= */

@media (max-width: 576px) {
  .mobile-navbar {
    grid-template-columns: 82% 18%;
    min-height: 96px;
    padding: 10px 14px;
  }

  .mobile-navbar-brand {
    width: 100%;
    min-width: 0;
  }

  .mobile-navbar-brand .branding-instituto {
    width: 100%;
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    column-gap: 10px;
  }

  .mobile-navbar-brand .brand-logo {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-navbar-brand .brand-logo img {
    width: 72px;
    height: 72px;
    max-height: none;
    object-fit: contain;
  }

  .mobile-navbar-brand .brand-section {
    width: 100%;
    min-width: 0;
  }

  .mobile-navbar-brand .brand-bandera {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    height: 9px;
    margin-bottom: 6px;
  }

  .mobile-navbar-brand .bandera-item {
    height: 4px;
  }

  .mobile-navbar-brand .brand-titulo p {
    color: #ffffff;
    font-size: 0.86rem;
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
    max-width: 100%;
  }

  .mobile-navbar-action {
    justify-content: flex-end;
  }

  .hamburger-button {
    width: 38px;
    height: 38px;
  }

  .hamburger-button span {
    width: 30px;
    height: 3px;
  }
}

.search-bar ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  height: 40px;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-right: 30px;
}

.search-bar ul li a {
  text-decoration: none;
  font-weight: 500;
  color: #2a4176;
}

#menu {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  background: white;
  box-shadow: 0px 10px 7px rgba(0, 0, 0, 0.462);
}

#menu img {
  height: 110px;
}

#menu .logo {
  position: relative;
  left: 30px;
  bottom: 15px;
}

.menu-items ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  gap: 20px;
  padding-right: 30px;
}

.menu-items ul li a {
  text-decoration: none;
  /*font-size: clamp(0.95rem, 1vw + 0.5rem, 1.65rem);*/
  font-weight: 500;
  color: #2a4176;
  transition: all 0.3s;
  border-bottom: 3px rgb(255, 255, 255) solid;
}

.menu-items ul li a:hover {
  color: #b3b3b3;
  border-bottom: 3px rgb(255, 24, 24) solid;
}

.menu-item-activo {
  position: relative;
}

.menu-item-activo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;

  background: linear-gradient(
    to right,
    #009246 33.33%,
    /* verde */ #ffffff 33.33% 66.66%,
    /* blanco */ #ce2b37 66.66% /* rojo */
  );
}

.bar-social {
  position: fixed;
  top: 20px;
  right: 50px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 5px 15px;
}

.bar-social ul {
  display: flex;
  flex-direction: row;
}

.bar-social ul li {
  padding: 10px 10px;
  transition: all 0.3s;
}

.bar-social ul li a {
  text-decoration: none;
  color: #055592;
  font-size: 1.5rem;
}

.bar-social ul li a:hover {
  color: #004739;
}

.item {
  position: relative;
}

.item .textos {
  position: absolute;
  bottom: 70px;
  left: 50px;
  color: #ffffff;
}

.textos {
  background: #0046388b;
  padding: 10px 20px;
  border-radius: 7px;
}

.titulo {
  /* font-size: 1.7em; */
  /* font-size: clamp(1.2rem, 2vw + 0.5rem, 2.5rem); */
  font-size: clamp(1rem, 1.5vw + 0.5rem, 2rem);
}

.subtitulo {
  font-size: 1.3em;
}

.subtitulo a {
  text-decoration: underline;
  color: white;
}

.custom-nav {
  display: flex;
  justify-content: center; /* Centra los botones horizontalmente */
  align-items: center; /* Centra los botones verticalmente */
  margin-top: 20px; /* Ajusta el margen superior según sea necesario */
}

.custom-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

/* Contenedor principal de los botones */
.custom-nav {
  display: flex; /* Para que los botones se coloquen uno al lado del otro */
  justify-content: center; /* Centra el grupo de botones horizontalmente */
  align-items: center;
  margin-top: 30px; /* Ajusta según el espacio deseado */
  /* El contenedor no necesita la forma de píldora, la harán los botones */
}

/* Estilos generales para ambos botones */
.custom-nav button {
  border: none; /* Elimina el borde predeterminado */
  cursor: pointer;
  font-size: 20px; /* Tamaño de los iconos de flecha */
  height: 50px; /* Altura fija para ambos botones */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease; /* Transición suave para efectos hover */
  padding: 0; /* Asegúrate de que no haya padding interno que afecte el tamaño */
  margin: 0; /* Elimina el margen entre ellos para que estén pegados */
}

#hero-slide {
  position: relative;
  /* padding-top:100px ; */
}

.custom-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

/* Estilos específicos para el botón "Anterior" (izquierda) */
#customPrev {
  background-color: #ffffff; /* Fondo blanco */
  color: #3f60a9; /* Color azul para el icono */
  width: 60px; /* Ancho del botón */
  border-bottom-left-radius: 7px; /* Redondea solo la esquina inferior izquierda */
  /* clip-path para el corte diagonal */
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  /* Ajusta los porcentajes de clip-path para variar el ángulo del corte */
}

/* Estilos específicos para el botón "Siguiente" (derecha) */
#customNext {
  background-color: #3f60a9; /* Fondo azul */
  color: #ffffff; /* Color blanco para el icono */
  width: 60px; /* Ancho del botón */
  border-top-right-radius: 7px; /* Redondea solo la esquina superior derecha */
  /* clip-path para el corte diagonal */
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  /* Ajusta los porcentajes de clip-path para variar el ángulo del corte */
}

/* Efectos hover para los botones */
#customPrev:hover {
  background-color: #f0f0f0; /* Un blanco más oscuro al pasar el ratón */
  color: #2a4176; /* Un azul un poco más oscuro */
}

#customNext:hover {
  background-color: #2a4176; /* Un azul más oscuro al pasar el ratón */
  color: #f0f0f0; /* Un blanco más oscuro */
}

/* Eliminar el outline de enfoque por defecto */
.custom-nav button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 96, 169, 0.5); /* Opcional: un ligero resplandor de enfoque */
}

.instituto {
  margin: 50px 0;
}

.titulo-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.titulo-section h2 {
  /* font-size: 4rem; */
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
}

.titulo-section h2:nth-child(1) {
  color: transparent; /* Hace que el relleno del texto sea transparente */
  -webkit-text-stroke-width: 2px; /* Ancho de la línea del contorno para WebKit */
  -webkit-text-stroke-color: #055592; /* Color de la línea del contorno para WebKit */
  text-stroke-width: 2px; /* Ancho de la línea del contorno estándar */
  text-stroke-color: #055592; /* Color de la línea del contorno estándar */
  font-weight: bold;
}

.titulo-section p {
  font-size: 1.4rem;
}

.texto-azul {
  color: #055592;
}

.texto-rojo {
  color: #d54d51;
}

.texto-verde {
  color: #004739;
}

.texto-blanco {
  color: #ffffff;
}

/* .legado{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
} */

.legado {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.legado-item {
  display: grid;
  grid-template-columns: 13% 85%;
  align-items: start;
  padding: 5px 7px;
}

.bullet {
  background: #004739;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  width: 30px;
  height: 30px;
}

.legado-texto {
  font-size: 1.2rem;
}

.btn-action {
  display: block;
  background: #de474c;
  padding: 10px 5px;
  width: 70%;
  margin-top: 10px;
  text-align: center;
  border-radius: 20px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s;
}

.btn-action:hover {
  background: #b5070c;
}

.img-titulo {
  width: 100%;
  height: 100%;
  max-height: 580px;
  overflow: hidden;
  margin: 80px 0;
}

.img-titulo img {
  width: 100%;
}

.aprende {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.aprende p {
  margin-bottom: 10px;
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.25rem);
  line-height: 1.6;
}

.niveles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.textos-nivel {
  position: relative;
}

.nivel-letra {
  position: absolute;
  top: 10px;
  right: 40px;
  z-index: 100;
  font-size: 4rem;
  color: #ffffff;
}

.titulo-nivel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 20px;
}

.descripcion-nivel {
  /* position: absolute;
    top: 180px;
    left: 20px; */
  font-size: 1.2rem;
  width: 90%;
}

.cls-1 {
  fill: url(#miGradienteDuro);
  stroke: #fff;
  stroke-miterlimit: 10;
}

.cls-2 {
  fill: url(#miGradienteDuro2);
  stroke: #fff;
  stroke-miterlimit: 10;
}

.cls-3 {
  fill: url(#miGradienteDuro3);
  stroke: #fff;
  stroke-miterlimit: 10;
}

.tu-nivel {
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
}

.tu-nivel a {
  text-decoration: none;
  list-style: none;
}

.tu-nivel h2 {
  font-size: 2rem;
  font-weight: 400;
}

.btn-tu-nivel {
  text-decoration: none;
  background: #d54d51;
  padding: 15px 30px;
  width: fit-content;
  margin: 20px auto;
  border-radius: 40px;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-tu-nivel:hover {
  background: #b5070c;
}

.niveles-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.niveles-card-item {
  width: 100%;
  position: relative;
  transition: all 0.3s;
}

.niveles-card-item img {
  width: 100%;
}

.niveles-card-text {
  position: absolute;
  top: 10px;
  /* top: 50%; */
  /* transform: translateY(-50%); */
  right: 20px;
  text-align: right;
  font-size: 2rem;
  color: #fff;
  z-index: 2;
}

/* Overlay oscuro con ::before */
.niveles-card-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Opacidad ajustable */
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Efecto hover: muestra overlay y escala imagen */
.niveles-card-item:hover::before {
  opacity: 1;
}

.niveles-card-item:hover img {
  transform: scale(1.05);
}

.nivel-card-descripcion h3 {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 4.5rem;
  color: #fff;
  z-index: 2;
}

.nivel-card-descripcion p {
  position: absolute;
  bottom: 10px;
  text-decoration: none;
  color: #ffffff;
  z-index: 2;
  font-weight: 500;
  padding: 0 10px 0 10px;
  font-size: 1.2rem;
}

.ya-dominas {
  width: 100%;
  margin: 80px auto;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
}

.ya-dominas h2 {
  font-size: 3rem;
}

.ya-dominas-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.ya-dominas p {
  margin-bottom: 10px;
}

.col3 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.col3 img {
  width: 70%;
}

.ya-dominas-items p {
  font-size: 1.2rem;
  font-weight: 300;
}

.btn-mail-contacto a {
  text-decoration: none;
  font-weight: 500;
}

.btn-ya-dominas {
  width: 40%;
  background: #d54d51;
  text-align: center;
  margin: 50px auto;
  border-radius: 30px;
  padding: 5px;
  transition: all 0.3s;
}

.btn-ya-dominas a {
  text-decoration: none;
  font-weight: 500;
  color: #ffffff;
}

.btn-ya-dominas:hover {
  background: #d5242a;
}

.biblioteca {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.img-biblioteca {
  width: 100%;
}

.img-biblioteca img {
  width: 100%;
}

.textos-biblioteca {
  position: absolute;
  top: 30px;
  right: 10px;
  width: 70%;
}

.titulos-biblioteca h2 {
  color: transparent; /* Hace que el relleno del texto sea transparente */
  -webkit-text-stroke-width: 2px; /* Ancho de la línea del contorno para WebKit */
  -webkit-text-stroke-color: #ffffff; /* Color de la línea del contorno para WebKit */
  text-stroke-width: 2px; /* Ancho de la línea del contorno estándar */
  text-stroke-color: #ffffff; /* Color de la línea del contorno estándar */
  font-weight: bold;
  font-size: clamp(1.8rem, 5vw + 1rem, 4rem);
}

.titulos-biblioteca h4 {
  font-size: 2rem;
}

.items-biblioteca {
  display: grid;
  grid-template-columns: 50% 50%;
}

.items-biblioteca p:nth-child(1) {
  font-weight: 500;
  font-size: 1.2rem;
}

.items-biblioteca p:nth-child(2) {
  font-weight: 200;
  font-size: 1.2rem;
}

.agenda {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.agenda h2 {
  color: transparent; /* Hace que el relleno del texto sea transparente */
  -webkit-text-stroke-width: 2px; /* Ancho de la línea del contorno para WebKit */
  -webkit-text-stroke-color: #055592; /* Color de la línea del contorno para WebKit */
  text-stroke-width: 2px; /* Ancho de la línea del contorno estándar */
  text-stroke-color: #055592; /* Color de la línea del contorno estándar */
  font-weight: bold;
  font-size: 4rem;
}

.agenda h3 {
  font-size: 2rem;
}

.agenda h5 {
  font-size: 1.3rem;
}

.agenda p {
  font-size: 1.2rem;
  font-weight: 300;
}

.img-agenda {
  width: 100%;
  height: 100%;
  max-height: 400px;
  overflow: hidden;
}

.img-agenda img {
  width: 100%;
}

.callto-action-agenda {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
}

.btn-agenda {
  background: #d54d51;
  color: #fff;
  width: 45%;
  text-align: center;
  padding: 15px 15px;
  border-radius: 40px;
  transition: all 0.3s;
  font-size: 1.2rem;
  font-weight: 300;
}

.btn-agenda a {
  text-decoration: none;
  color: white;
}

.btn-agenda:hover {
  background: #d5242a;
}

.aprende {
  width: 100%;
}

.aprende-titulo h2 {
  color: transparent; /* Hace que el relleno del texto sea transparente */
  -webkit-text-stroke-width: 2px; /* Ancho de la línea del contorno para WebKit */
  -webkit-text-stroke-color: #055592; /* Color de la línea del contorno para WebKit */
  text-stroke-width: 2px; /* Ancho de la línea del contorno estándar */
  text-stroke-color: #055592; /* Color de la línea del contorno estándar */
  font-weight: bold;
  font-size: 4rem;
}
.texto-aprende p {
  font-size: 1.2rem;
  font-weight: 400;
}

.aprende-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.items-aprende {
  padding: 10px 30px;
}

.img-titulos {
  position: relative;
}

.img-titulos img {
  width: 100%;
}

.img-titulos h2 {
  z-index: 2;
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #ffffff;
  font-size: 2.3rem;
  font-weight: 500;
}

.aprende-txt p {
  font-size: 1.2rem;
  font-weight: 500;
}

.inscribirte {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 80px auto;
}

.btn-inscribirte {
  padding: 10px 25px;
  background: #d54d51;
  width: 40%;
  text-align: center;
  border-radius: 35px;
  color: #ffffff;
  transition: all 0.3s;
}

.btn-inscribirte a {
  text-decoration: none;
  color: white;
}

.btn-inscribirte:hover {
  background: #d5242a;
}

.btn-inscribirte p {
  font-weight: 500;
}

.contacto {
  display: grid;
  grid-template-columns: 55% 45%;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.formulario {
  display: flex;
  flex-direction: column;
  padding: 30px;
  font-size: 1.2rem;
}

.formulario input {
  margin-bottom: 15px;
  font-size: 1.2rem;
  border: 0px #000;
  border-bottom: solid 1px #000;
  padding: 5px 3px;
}

.formulario textarea {
  margin-bottom: 15px;
  font-size: 1.2rem;
  padding: 5px 3px;
}

.newsletter {
  padding: 30px;
  position: relative;
}

.newsletter-titulo {
  text-align: center;
}

.newsletter-img {
  position: relative;
}

.newsletter-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 20%,
    rgba(0, 0, 0, 0.1) 35%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 1;
}

.newsletter-img p {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1.7rem;
  font-weight: 500;
  width: 100%;
}

.newsletter-img img {
  width: 100%;
}

.contacto h2 {
  font-size: 2.2rem;
}

.btn-enviar {
  background: #d54d51 !important;
  width: 20% !important;
  text-align: center;
  padding: 10px 7px;
  margin: 20px 0;
  align-self: flex-end;
  border-radius: 30px;
  color: #ffffff;
  font-weight: 300;
  transition: all 0.3s;
}

.btn-enviar:hover {
  background: #d5242a;
}

.btn-newsletter {
  background: #d54d51;
  padding: 5px 20px;
  width: 60%;
  text-align: center;
  z-index: 3;
  color: #ffffff;
  font-weight: 300;
  border-radius: 40px;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn-newsletter:hover {
  background: #d5242a;
}

.newsletter-img .texto-blanco {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.5;
}

footer {
  background: #055592;
  color: #ffffff;
  text-align: center;
  font-size: 1.2rem;
  padding: 10px 0;
  width: 100%;
  z-index: 100;
}

footer a {
  text-decoration: none;
  color: #ffffff;
}

footer ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}

.footer-end {
  width: 100%;
  max-width: 1200px;
  margin: 10px auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 100;
  text-decoration: none;
  color: #65dde0;
  font-size: 14px;
}

.footer-end a {
  text-decoration: none;
  color: #65dde0;
}

#brandings {
  display: grid;
  grid-template-columns: 33.3% 33.3% 33.3%;
  align-items: start;
}

.branding-instituto {
  display: flex;
  flex-direction: row;
  cursor: pointer;
}

.brand-logo {
  width: 100%;
  max-width: 85px;
}

.logo-branding img {
  width: 100%;
  max-width: 220px;
}

.brand-logo img {
  width: 100%;
}

.brand-section {
  display: flex;
  flex-direction: column;
  padding: 5px 10px;
}

.brand-bandera {
  height: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
}

.bg-red {
  background: #009246;
}

.bg-white {
  background: #ffffff;
}

.bg-blue {
  background: #ce2b37;
}

.brand-titulo {
  font-family: "Titillium Web", sans-serif;
  font-size: 17px;
  text-align: justify;
  font-weight: 600;
  margin-top: 7px;
  color: #ffffff;
  text-decoration: none;
  list-style: none;
}

#menu-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
}

.linea-footer {
  height: 1px;
  width: 100%;
  background: #ffffff;
}

.menu-item-footer {
  padding: 3px 10px;
}

.menu-item-footer {
  font-family: "Nunito Sans", sans-serif;
  font-size: 15px;
  font-weight: 100;
}

.menu-item-footer h3 {
  font-weight: 300;
}

.menu-item-footer p {
  margin: 15px 0;
}

.menu-item-footer a {
  color: #65dde0;
}

.animated {
  opacity: 0;
  transition: opacity 0.3s ease;
}

:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-section:not(.motion-hero),
.motion-card,
.motion-panel {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  filter: blur(5px);
  transition:
    opacity 0.78s var(--motion-ease),
    transform 0.78s var(--motion-ease),
    filter 0.78s var(--motion-ease);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform, filter;
}

.motion-panel {
  transform: translate3d(0, 24px, 0) scale(0.99);
}

.motion-card {
  transform: translate3d(0, 38px, 0) scale(0.97);
}

.motion-section.is-visible,
.motion-card.is-visible,
.motion-panel.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.motion-hero {
  overflow: hidden;
  isolation: isolate;
}

.motion-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 78%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(115deg, rgba(5, 85, 146, 0.18), transparent 48%);
  opacity: 0;
  animation: heroSheen 1.1s var(--motion-soft) 0.12s forwards;
}

.motion-hero-media {
  transform: translate3d(0, var(--hero-drift, 0), 0) scale(1.035);
  transition: transform 0.28s linear;
  will-change: transform;
}

.motion-hero-copy {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  animation: heroCopyIn 0.86s var(--motion-ease) forwards;
  animation-delay: calc(0.18s + var(--motion-delay, 0ms));
}

.motion-card,
.motion-panel,
.niveles-card-item,
.items-aprende,
.faq-item,
.terms-card,
.item-detalle-curso,
.course-detail-card {
  transition:
    opacity 0.78s var(--motion-ease),
    transform 0.78s var(--motion-ease),
    filter 0.78s var(--motion-ease),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.niveles-card-item:hover,
.items-aprende:hover,
.faq-item:hover,
.terms-card:hover,
.item-detalle-curso:hover,
.course-detail-card:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow: 0 18px 38px rgba(5, 85, 146, 0.16);
}

.motion-cta {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

.motion-cta::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -55%;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.58s ease;
}

.motion-cta:hover,
.motion-cta:focus-visible {
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow: 0 14px 28px rgba(5, 85, 146, 0.18);
}

.motion-cta:hover::after,
.motion-cta:focus-visible::after {
  transform: translateX(360%) skewX(-18deg);
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes heroSheen {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated,
  .motion-section,
  .motion-card,
  .motion-panel,
  .motion-hero-copy,
  .motion-hero-media,
  .motion-cta,
  .motion-cta::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

.cursos-hero {
  width: 100%;
  height: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.cursos-hero img {
  width: 100%;
}

.cursos-hero h2 {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw + 1rem, 3rem);
  color: #ffffff;
}

.titulos-cursos {
  width: 100%;
  max-width: 1440px;
  display: grid;
  grid-template-columns: 10% 45% 40%;
  align-items: center;
  gap: 30px;
}

.titulos-cursos h2 {
  justify-self: flex-end;
  font-size: 7rem;
}

.textos-titulo-cursos h3 {
  font-size: 2rem;
  color: #055592;
}

.textos-titulo-cursos p {
  font-size: 1.2rem;
  font-weight: 500;
}

.btn-cursos-nivel a {
  text-decoration: none;
  color: #ffffff;
}

.btn-cursos-nivel {
  background: #d54d51;
  padding: 5px 20px;
  width: 90%;
  text-align: center;
  color: #ffffff;
  font-weight: 300;
  border-radius: 40px;
  transition: all 0.3s;
  font-size: 1rem;
  justify-self: center;
}

.titulo-nivel-categoria {
  width: 100%;
  background: #055592;
  text-align: center;
  margin: 0 auto;
}

.titulo-nivel-categoria h2 {
  color: #ffffff;
}

.nivel-filtro-categoria {
  width: 100%;
  display: flex;
  justify-content: center;
}

.scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  scroll-behavior: smooth;
}

.mostrarlista-mascursos {
  width: 100%;
  background: #e2e6f1;
}

.mostrarlista-mascursos-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.categoria-lista {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: nowrap;
  width: fit-content;
}

.categoria-lista li {
  flex: 0 0 auto;
}

.categoria-lista a {
  display: block;
  padding: 10px 15px;
  border-radius: 20px;
  text-decoration: none;
  color: rgb(211, 211, 211);
  white-space: nowrap;
  border-top: solid 1px white;
  border-bottom: solid 1px black;
  transition: all 0.3s;
}

.categoria-lista a:hover {
  color: white;
}

.categoria-lista a:hover {
  border-top: solid 1px black;
  border-bottom: solid 1px white;
}

.categoria-lista li:nth-child(1) a {
  background: #339cff;
}

.categoria-lista li:nth-child(2) a {
  background: #009966;
}

.categoria-lista li:nth-child(3) a {
  background: #cc3333;
}

.categoria-lista li:nth-child(4) a {
  background: #0074d9;
}

.categoria-lista p {
  margin: 0;
  font-weight: 600;
}

.detalle-cursos {
  background: #e2e6f1;
  width: 100%;
  max-width: 1440px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding: 30px;
}

.item-detalle-curso {
  border-radius: 28px;
  width: 100%;
  height: auto;
  box-shadow: 0px 0px 10px #000000;
  padding: 20px;
  background: #fff;
}

.item-detalle-curso p {
  font-weight: 500;
}

.btn-comprar-curso {
  background: #d54d51;
  padding: 5px 20px;
  width: 90%;
  text-align: center;
  color: #ffffff;
  font-weight: 300;
  border-radius: 40px;
  transition: all 0.3s;
  font-size: 1rem;
  justify-self: center;
  margin-top: 20px;
}

.btn-comprar-curso a {
  text-decoration: none;
  color: #ffffff;
}

.subtitulo-curso {
  font-size: 2rem;
}

.meses-curso {
  font-size: 1.1rem;
}

.texto-agenda-titulo {
  font-size: 1.5rem;
}

.media-pantalla {
  width: 50%;
  line-height: 0.8;
}

/* Ocultar por defecto */
.modal-newsletter {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* fondo oscuro */
  z-index: 999;
  justify-content: center;
  align-items: center;
}

/* Contenedor del formulario */
.modal-content {
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Inputs */
.modal-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Botón */
.modal-content button {
  width: 100%;
  padding: 12px;
  background: #004638;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.faq-section {
  position: relative;
  isolation: isolate;
  width: min(1120px, calc(100% - 36px));
  margin: 70px auto;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(5, 85, 146, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 8%, rgba(5, 85, 146, 0.14), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(206, 63, 72, 0.1), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f5f9fc 100%);
  box-shadow: 0 24px 70px rgba(16, 44, 67, 0.12);
  font-family: "Nunito Sans", sans-serif;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -90px;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(5, 85, 146, 0.1);
  filter: blur(1px);
}

.faq-section__header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.faq-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(5, 85, 146, 0.1);
  color: #055592;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq-section__eyebrow::before {
  content: "\f059";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.faq-section h2 {
  margin: 0;
  color: #102c43;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.faq-section__header p {
  max-width: 640px;
  margin: 14px auto 0;
  color: #66798a;
  font-size: 1rem;
  line-height: 1.7;
}

.faq-container {
  display: grid;
  gap: 14px;
}

.faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(5, 85, 146, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(32, 63, 88, 0.06);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.faq-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #055592, #ce3f48);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.faq-item:hover,
.faq-item.open {
  border-color: rgba(5, 85, 146, 0.24);
  box-shadow: 0 20px 46px rgba(5, 85, 146, 0.13);
  transform: translateY(-2px);
}

.faq-item.open::before {
  opacity: 1;
}

.faq-question {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: #172c3c;
  text-align: left;
  cursor: pointer;
}

.faq-question:focus-visible {
  outline: 3px solid rgba(5, 85, 146, 0.24);
  outline-offset: -3px;
}

.faq-question__number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #055592, #0a769e);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(5, 85, 146, 0.24);
}

.faq-question__text {
  color: #1e3547;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 900;
  line-height: 1.4;
}

.faq-question__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef6fb;
  color: #055592;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.faq-item.open .faq-question__icon {
  background: #ce3f48;
  color: #ffffff;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--motion-ease, ease);
}

.faq-answer__inner {
  padding: 0 22px 22px 79px;
  color: #5e7080;
  font-size: 0.98rem;
  line-height: 1.75;
}

.faq-answer__inner p {
  margin: 0 0 12px;
}

.faq-answer__inner p:last-child {
  margin-bottom: 0;
}

.faq-answer__inner a {
  color: #055592;
  font-weight: 800;
}

.faq-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 34px;
  border: 1px dashed rgba(5, 85, 146, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: #66798a;
  text-align: center;
}

.faq-empty i {
  display: inline-grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e7f1f8;
  color: #055592;
  font-size: 1.6rem;
}

.faq-empty h3 {
  margin: 0 0 8px;
  color: #1e3547;
  font-family: "Montserrat", sans-serif;
}

.faq-empty p {
  max-width: 440px;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .faq-section {
    width: min(100% - 24px, 1120px);
    margin: 44px auto;
    padding: 24px 14px;
    border-radius: 24px;
  }

  .faq-section__header {
    margin-bottom: 24px;
  }

  .faq-question {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 17px 15px;
  }

  .faq-question__number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  .faq-question__icon {
    grid-column: 1 / -1;
    width: 100%;
    height: 32px;
    border-radius: 12px;
  }

  .faq-answer__inner {
    padding: 0 15px 19px;
  }
}

.whats {
  width: 70px;
  height: 70px;
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 10000;
}

.whats img {
  width: 100%;
}

.pie {
  display: grid;
  grid-template-columns: 25% 25% 25% 25%;
  align-items: flex-start;
  justify-content: space-between;
  margin: 10px auto 85px auto;
  padding: 10px 20px 20px 20px;
  background: #055592;
  width: 100%;
  color: white;
}

.pie-logo {
  width: 100%;
}

.pie-logo img {
  width: 100%;
  max-width: 250px;
}

.item-pie {
  padding: 15px;
}

.item-pie a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.item-pie a p {
  margin: 7px 0;
}

.ham {
  display: none;
}

.nivel {
  --nivel-color: #0074d9;
  --nivel-soft-color: #e6f3ff;
  --nivel-watermark-color: rgba(0, 116, 217, 0.12);
  --nivel-shadow-color: rgba(0, 116, 217, 0.24);
  margin-bottom: 50px;
  width: 100%;
  padding-bottom: 50px;
}

.nivel-content {
  max-width: 1200px;
  margin: 0 auto;
}

.botones-nivel {
  padding: 30px 10px;
  position: relative;
  z-index: 10;
}

.botones-nivel ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  gap: 30px;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0px 20px;
}

.botones-nivel ul li {
  text-align: center;
}

.nivel-selector {
  min-width: 64px;
  padding: 9px 17px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--nivel-button-color, #0074d9);
  color: var(--nivel-button-text, #ffffff);
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(26, 45, 64, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.nivel-selector:hover,
.nivel-selector:focus-visible {
  outline: none;
  box-shadow: 0 8px 20px var(--nivel-button-shadow, var(--nivel-shadow-color));
  transform: translateY(-3px);
}

.nivel-selector:not(.active) {
  opacity: 0.78;
}

.nivel-selector.active {
  border-color: #ffffff;
  opacity: 1;
  box-shadow:
    0 0 0 3px var(--nivel-button-color, #0074d9),
    0 10px 24px var(--nivel-button-shadow, var(--nivel-shadow-color));
  transform: translateY(-3px) scale(1.04);
}

.nivel-slide ul {
  display: flex;
  font-size: 2.3rem;
  list-style: none;
  gap: 30px;
  font-weight: 100;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.item-nivel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 40px;
  grid-template-rows: repeat(6, 50px);
}

.letra-nivel {
  grid-column: 7/9;
  grid-row: 1/7;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.letra-nivel p {
  font-size: 25rem;
  color: var(--nivel-watermark-color);
  transition: color 0.35s ease;
}

.nombre-nivel {
  grid-column: 7/9;
  grid-row: 5/7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.nombre-nivel p {
  font-size: 1.9rem;
  color: var(--nivel-color);
  font-weight: 900;
  transition: color 0.35s ease;
}

.nivel-descripcion {
  grid-column: 1/4;
  grid-row: 1/7;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 20px;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.2rem);
}

.nivel-descripcion p:nth-child(1) {
  font-size: 1.5rem !important;
  color: var(--nivel-color);
  font-weight: 900;
  transition: color 0.35s ease;
}

.nivel-detalle {
  grid-column: 4/7;
  grid-row: 1/7;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 20px;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.2rem);
}

.nivel-detalle p:first-child {
  color: var(--nivel-color);
  font-weight: 900;
  transition: color 0.35s ease;
}

.graph-nivel {
  grid-column: 9/10;
  grid-row: 1/7;
  width: 100%;
  height: 16.6%;
  background: #004739;
  position: relative;
  align-self: flex-end;
}

.graph-nivel p {
  font-size: 25px;
  font-weight: bold;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: #004739;
}

.nivel-slide {
  /* background: white; */
  font-weight: bold;
  padding-top: 10px;
}

.nivel-slide ul li {
  background-color: #ffffff; /* Fondo blanco */
  color: var(--nivel-color);
  border: solid 1px var(--nivel-color);
  border-radius: 9px;
  padding: 0px 15px;
  transition: 0.3s;
}

.nivel-slide ul li:hover {
  background-color: var(--nivel-color);
  color: #ffffff;
}

/* Anima la barra de progreso vertical */
.graph-nivel {
  transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nivel {
  transition: background-color 0.6s ease;
}

/* (Opcional) Suave aparición de textos al cambiar nivel */
.fade-swap {
  animation: fadeSwap 0.25s ease;
}
@keyframes fadeSwap {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  header {
    height: 50px;
  }

  #hero-slide {
    padding-top: 50px;
  }

  #menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
  }

  #menu .logo {
    position: unset;
    margin-bottom: 50px;
  }

  .menu-items ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .menu-items ul li a {
    text-decoration: none;
    font-size: clamp(1.5rem, 1vw + 0.5rem, 1.65rem) !important;
    font-weight: 500;
    color: #2a4176;
    transition: all 0.3s;
    border-bottom: 3px rgb(255, 255, 255) solid;
  }

  .bar-social {
    display: none;
  }
  .instituto {
    margin-bottom: 20px;
  }

  .ham {
    display: block;
  }

  .ya-dominas {
    margin: 30px auto;
  }

  .btn-ya-dominas {
    width: 60%;
  }

  .btn-inscribirte {
    width: 70%;
  }

  .contacto {
    grid-template-columns: 1fr;
  }

  .btn-enviar {
    width: 40%;
  }

  .biblioteca {
    display: flex;
    flex-direction: column;
  }

  .biblioteca {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }

  .img-biblioteca {
    width: 100%;
  }

  .img-biblioteca img {
    width: 100%;
  }

  .textos-biblioteca {
    position: absolute;
    top: 0px;
    left: 10px;
    width: 100%;
  }

  .titulos-biblioteca h2 {
    color: transparent; /* Hace que el relleno del texto sea transparente */
    -webkit-text-stroke-width: 2px; /* Ancho de la línea del contorno para WebKit */
    -webkit-text-stroke-color: #ffffff; /* Color de la línea del contorno para WebKit */
    text-stroke-width: 2px; /* Ancho de la línea del contorno estándar */
    text-stroke-color: #ffffff; /* Color de la línea del contorno estándar */
    font-weight: bold;
    font-size: clamp(1.8rem, 5vw + 1rem, 4rem);
  }

  .titulos-biblioteca h4 {
    font-size: 2rem;
  }

  .items-biblioteca {
    display: grid;
    grid-template-columns: 1fr;
  }

  .items-biblioteca p {
    color: #ffffff;
  }

  .items-biblioteca p:nth-child(1) {
    font-weight: 500;
    font-size: 1.2rem;
  }

  .items-biblioteca p:nth-child(2) {
    font-weight: 200;
    font-size: 1.2rem;
  }

  .titulos-cursos {
    padding: 0 20px;
  }

  .pie {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 30px;
    justify-content: space-between;
    padding-bottom: 70px;
  }

  .whats {
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
  }

  footer a {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .custom-nav {
    bottom: -50px;
  }

  header {
    height: 50px;
  }

  #hero-slide {
    padding-top: 50px;
  }

  #cursos {
    padding-top: 70px;
  }

  .items-biblioteca p {
    color: #333;
  }

  .item .textos {
    bottom: 5px;
    left: 5px;
  }

  #customPrev {
    background: #d8d8d8;
  }

  .img-titulo {
    margin: 30px 0;
  }

  .instituto {
    margin-bottom: 20px;
  }

  .ya-dominas {
    margin: 15px auto;
  }

  .btn-ya-dominas {
    width: 100%;
  }

  .btn-agenda {
    width: 100%;
  }

  .btn-inscribirte {
    width: 90%;
  }

  .btn-enviar {
    width: 70%;
  }

  .biblioteca {
    height: 400px;
  }

  .bar-social {
    position: fixed;
    top: 5px;
    right: 5px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px 5px;
  }

  .bar-social ul {
    display: flex;
    flex-direction: row;
  }

  .bar-social ul li {
    padding: 5px 5px;
    transition: all 0.3s;
  }

  .bar-social ul li a {
    text-decoration: none;
    color: #055592;
    font-size: 1.5rem;
  }

  .bar-social ul li a:hover {
    color: #004739;
  }

  .titulos-cursos {
    display: flex;
    flex-direction: column;
  }

  .whats {
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .pie {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 70px;
    gap: 0px;
  }

  .item-pie:nth-child(1) img {
    width: 70%;
  }

  .item-pie {
    text-align: center;
  }

  footer a {
    font-size: 1.2rem;
  }

  .botones-nivel ul {
    gap: 10px;
    padding: 0px 10px;
  }

  .nivel-slide ul {
    font-size: 1.9rem;
  }

  .letra-nivel {
    grid-column: 1/10;
    align-self: center;
    justify-self: center;
  }

  .nombre-nivel {
    grid-column: 1/9;
    grid-row: 5/7;
  }

  .nivel-descripcion {
    grid-column: 1/5;
    grid-row: 1/5;
  }

  .nivel-detalle {
    grid-column: 5/9;
    grid-row: 1/5;
  }

  .letra-nivel {
    overflow: hidden;
  }

  .letra-nivel p {
    font-size: 22rem;
  }

  .introcursos {
    flex-direction: column !important;
    padding: 5px 20px;
  }
}

.mensaje-cargando,
.mensaje-vacio,
.mensaje-error {
  padding: 30px;
  text-align: center;
  color: #444;
  font-size: 1.2rem;
}

.modal-curso {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-contenido {
  background: white;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  border-radius: 10px;
  position: relative;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.boton-inscribirse {
  margin-top: 20px;
  text-align: center;
}
.btn-inscribirse {
  display: inline-block;
  background-color: #007f5f;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.btn-inscribirse:hover {
  background-color: #005c43;
}

.loading {
  font-style: italic;
  color: #666;
  text-align: center;
}
.sin-cursos {
  font-weight: bold;
  color: #a00;
  text-align: center;
}

.ver-detalle-curso {
  background: #d54d51;
  border: 0px solid;
  color: #0000005d;
}

.aprende-referencia {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.referencia-item p {
  margin: 15px 0;
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.25rem);
}

.referencia-item p:nth-child(2) {
  font-weight: 500;
}

.referencia-item-texto {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
}

.fondo-referencia {
  position: relative;
  z-index: -1;
  grid-column: 1/4;
  grid-row: 1/4;
}

.referencia-letra {
  grid-column: 3/4;
  grid-row: 1/2;
  align-self: center;
  justify-self: center;
}

.referencia-letra h2 {
  font-size: 4rem;
  color: white;
}

.referencia-textos {
  grid-column: 1/4;
  grid-row: 2/4;
  align-self: center;
  padding: 20px;
  color: rgb(255, 255, 255);
}

.referencia-botones {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  cursor: pointer;
}

.referencia-btn {
  padding: 0px 50px;
  border: 1px solid rgb(130, 130, 130);
  font-weight: 300;
  color: white;
  border-radius: 17px;
  background: rgb(181, 181, 181);
}

.referencia-btn:nth-child(1) {
  background: #99d9db;
}

.referencia-vinculo {
  background: white;
  color: #d5242a;
  text-align: center;
  width: 30%;
  cursor: pointer;
  transition: all 0.3s;
}

.referencia-vinculo:hover {
  color: white;
  background: #d54d51;
}

footer ul {
  list-style: none;
}

/* Contenedor de la tabla */
.tabla-cursos {
  width: 100%;
  overflow-x: auto;
}

/* Estilo general de la tabla */
.tabla-cursos table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

/* Encabezado */
.tabla-cursos thead {
  background: #99d9db;
  color: #333;
  text-align: left;
}

.tabla-cursos th {
  padding: 14px 16px;
  font-weight: 600;
  white-space: nowrap;
}

/* Celdas de datos */
.tabla-cursos td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  white-space: nowrap;
}

/* Fila hover */
.tabla-cursos tbody tr:hover {
  background-color: #f7fcfc;
  transition: background 0.2s ease-in-out;
}

/* Botón de acción */
.tabla-cursos .btn-ver-detalle {
  background: #3873d1;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tabla-cursos .btn-ver-detalle:hover {
  background: #2b5cb0;
}

/* Responsive en pantallas pequeñas */
@media (max-width: 768px) {
  .tabla-cursos table {
    font-size: 14px;
  }

  .tabla-cursos th,
  .tabla-cursos td {
    padding: 10px 12px;
  }

  .tabla-cursos .btn-ver-detalle {
    font-size: 13px;
    padding: 6px 10px;
  }
}

/* === Estilo para los filtros === */
.filtros-tabla {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.filtros-tabla select {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  transition: border-color 0.3s ease;
}

.filtros-tabla select:focus {
  border-color: #337ab7;
  outline: none;
}

/* === Contenedor de tabla === */
.tabla-cursos-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* === Tabla === */
.tabla-cursos {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 800px;
}

.tabla-cursos thead {
  background-color: #337ab7;
  color: #fff;
}

.tabla-cursos thead th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
}

.tabla-cursos tbody tr {
  border-bottom: 1px solid #ddd;
  transition: background 0.2s;
}

.tabla-cursos tbody tr:hover {
  background-color: #f1f1f1;
}

.tabla-cursos td {
  padding: 10px 12px;
  color: #333;
  vertical-align: middle;
}

/* === Botón VER DETALLE === */
.ver-detalle-curso {
  background-color: #28a745;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.3s ease;
}

.ver-detalle-curso:hover {
  background-color: #218838;
}

/* === Responsive para dispositivos pequeños === */
@media (max-width: 768px) {
  .filtros-tabla {
    flex-direction: column;
  }

  .tabla-cursos {
    font-size: 12px;
    min-width: 100%;
  }

  .ver-detalle-curso {
    padding: 6px 10px;
    font-size: 12px;
  }
}

.introcursos {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
  align-items: flex-start;
  justify-content: space-around;
  margin: 50px auto;
  gap: 20px;
  text-align: center;
}

.item-introcursos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icono-introcursos img {
  width: 100%;
  max-width: 150px;
}

.texto-introcursos h4 {
  margin-bottom: 10px;
}

.btn-introcursos {
  cursor: pointer;
  background: #d5242a;
  color: white;
  padding: 5px 10px;
  width: 50%;
  margin: 10px auto;
  border-radius: 20px;
}

.hb {
  position: fixed;
  top: 4px;
  left: 5px;
  width: 50px;
  z-index: 10000;
}

.txt-niveles {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.seguirnos {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 0;
}

.seguirnos ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0;
}

.seguirnos ul li {
  list-style: none;
}

.seguirnos ul li img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.seguirnos ul li a:hover img,
.seguirnos ul li a:focus-visible img {
  filter: drop-shadow(0 8px 12px rgba(5, 85, 146, 0.22));
  transform: translateY(-4px) scale(1.04);
}

.seguir h3 {
  padding-bottom: 50px;
  font-size: 25px;
}

.seguir h3 a {
  color: #055592;
  text-decoration: none;
}

@media (max-width: 576px) {
  .seguirnos {
    padding: 52px 18px;
  }

  .seguirnos ul {
    gap: 24px;
  }

  .seguirnos ul li img {
    width: 58px;
    height: 58px;
  }

  .seguir h3 {
    padding-bottom: 32px;
    font-size: 19px;
  }
}

.categoria-lista li.is-active a p {
  font-weight: 800;
  text-decoration: underline;
}

/* ===== Modal Newsletter ===== */
.modal-newsletter {
  position: fixed;
  inset: 0;
  display: none; /* tu JS lo pone en flex */
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(520px, 100%);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  animation: modalIn 0.22s ease forwards;
}

@keyframes modalIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.06);
  color: #111;
  font-size: 22px;
  line-height: 1;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.modal-close:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px 20px 12px;
  background: linear-gradient(
    135deg,
    rgba(153, 217, 219, 0.35),
    rgba(56, 115, 209, 0.18)
  );
}

.modal-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(5, 85, 146, 0.1);
  border: 1px solid rgba(5, 85, 146, 0.18);
  color: #055592;
  font-size: 22px;
}

.modal-headings h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: #0b2b3a;
}
.modal-headings p {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(11, 43, 58, 0.78);
  line-height: 1.4;
}

.modal-body {
  padding: 16px 20px 20px;
}

.form-row {
  margin-bottom: 12px;
}
.form-row label {
  display: block;
  font-size: 12px;
  color: rgba(11, 43, 58, 0.75);
  margin-bottom: 6px;
}
.form-row input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  outline: none;
  font-size: 14px;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.form-row input:focus {
  border-color: rgba(5, 85, 146, 0.45);
  box-shadow: 0 0 0 4px rgba(5, 85, 146, 0.12);
}

.btn-primary {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #055592, #3873d1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.btn-subtext {
  font-size: 12px;
  opacity: 0.9;
}

.modal-legal {
  margin: 12px 2px 0;
  font-size: 11.5px;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.35;
}

.modal-msg {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.04);
}

/* Estado éxito/error (si quieres) */
.modal-msg.ok {
  color: #175c40;
  background: rgba(23, 92, 64, 0.1);
}
.modal-msg.err {
  color: #b00020;
  background: rgba(176, 0, 32, 0.1);
}

.instituto-eventos {
  background: #000000;
  width: 100%;
  margin-top: 20px;
}

.instituto-eventos-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.instituto-eventos-contenedor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  width: 100%;
  height: 400px;
  padding: 5px 10px;
}

.instituto-eventos-items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 10px 15px;
}

.instituto-eventos-items h2 {
  color: transparent; /* Hace que el relleno del texto sea transparente */
  -webkit-text-stroke-width: 1px; /* Ancho de la línea del contorno para WebKit */
  -webkit-text-stroke-color: #ffffff; /* Color de la línea del contorno para WebKit */
  text-stroke-width: 1px; /* Ancho de la línea del contorno estándar */
  text-stroke-color: #ffffff; /* Color de la línea del contorno estándar */
  font-weight: bold;
  font-size: clamp(1.3rem, 5vw + 1rem, 2.5rem);
  font-family: "Nunito Sans", sans-serif;
}

.instituto-eventos-items p {
  font-family: "Nunito Sans", sans-serif;
  color: #ffffff;
  margin: 5px 0px;
}

.btn-action-cultura {
  text-align: center;
  margin: 0 auto;
}

.btn-action-cultura {
  display: block;
  background: #de474c;
  width: 50%;
  margin-top: 10px;
  text-align: center;
  border-radius: 20px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-action-cultura:hover {
  background: #b5070c;
}

.patrimonio-literario {
  width: 100%;
  margin: 40px 0;
}

.patrimonio-literario-container {
  width: 100%;
  height: 400px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  gap: 20px;
  overflow: hidden;
}

.patrimonio-literario-item {
  height: 400px;
  width: 100%;
}

.patrimonio-literario-item img {
  height: 100%;
}

.patrimonio-literario-item:nth-child(1) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.patrimonio-literario-item:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px;
}

.patrimonio-literario-item:nth-child(2) h2 {
  font-family: "Nunito Sans", sans-serif;
  color: #055592;
  margin: 10px 0;
  font-weight: bold;
  font-size: clamp(1.3rem, 5vw + 1rem, 2.5rem);
}

.patrimonio-literario-item:nth-child(2) p {
  font-family: "Nunito Sans", sans-serif;
  margin: 6px 0;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

/* ============================= */
/* RESPONSIVE - EVENTOS / BIBLIOTECA */
/* ============================= */

.instituto-eventos-contenedor {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.patrimonio-literario-item img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* TABLET */
@media (max-width: 991px) {
  .instituto-eventos {
    margin-top: 15px;
  }

  .instituto-eventos-container,
  .patrimonio-literario-container {
    max-width: 92%;
  }

  .instituto-eventos-contenedor {
    height: auto;
    min-height: 420px;
    grid-template-columns: 1fr;
    position: relative;
    padding: 30px 20px;
  }

  .instituto-eventos-contenedor::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
  }

  .instituto-eventos-items {
    position: relative;
    z-index: 2;
    padding: 10px;
  }

  .instituto-eventos-items:nth-child(2) {
    display: none;
  }

  .instituto-eventos-items h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.05;
  }

  .instituto-eventos-items p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 650px;
  }

  .btn-action-cultura {
    width: auto;
    min-width: 260px;
    padding: 8px 18px;
    margin: 20px 0 0 0;
  }

  .btn-action-cultura p {
    margin: 0;
    line-height: 1.3;
  }

  .patrimonio-literario {
    margin: 35px 0;
  }

  .patrimonio-literario-container {
    height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    overflow: visible;
  }

  .patrimonio-literario-item {
    height: auto;
  }

  .patrimonio-literario-item:nth-child(1) {
    padding: 0;
  }

  .patrimonio-literario-item img {
    height: 360px;
  }

  .patrimonio-literario-item:nth-child(2) {
    padding: 10px 0;
  }

  .patrimonio-literario-item:nth-child(2) h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
  }

  .patrimonio-literario-item:nth-child(2) p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* CELULAR */
@media (max-width: 576px) {
  .instituto-eventos-container,
  .patrimonio-literario-container {
    max-width: 100%;
  }

  .instituto-eventos-contenedor {
    min-height: 520px;
    padding: 35px 18px;
    background-position: center right !important;
  }

  .instituto-eventos-items {
    justify-content: center;
    padding: 0;
  }

  .instituto-eventos-items h2 {
    font-size: 2rem;
    line-height: 1.05;
    margin-bottom: 14px;
    -webkit-text-stroke-width: 0.8px;
  }

  .instituto-eventos-items p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .btn-action-cultura {
    width: 100%;
    max-width: 320px;
    min-width: unset;
    border-radius: 16px;
    padding: 10px 14px;
    margin-top: 22px;
  }

  .btn-action-cultura p {
    font-size: 0.9rem;
    font-weight: 700;
  }

  .patrimonio-literario {
    margin: 30px 0;
    padding: 0 18px;
  }

  .patrimonio-literario-container {
    gap: 18px;
  }

  .patrimonio-literario-item img {
    height: 260px;
    border-radius: 10px;
  }

  .patrimonio-literario-item:nth-child(2) h2 {
    font-size: 2rem;
    line-height: 1.12;
    margin: 8px 0 12px;
  }

  .patrimonio-literario-item:nth-child(2) p {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

/* CELULARES MUY PEQUEÑOS */
@media (max-width: 380px) {
  .instituto-eventos-contenedor {
    min-height: 560px;
    padding: 30px 15px;
  }

  .instituto-eventos-items h2,
  .patrimonio-literario-item:nth-child(2) h2 {
    font-size: 1.75rem;
  }

  .instituto-eventos-items p,
  .patrimonio-literario-item:nth-child(2) p {
    font-size: 0.9rem;
  }

  .patrimonio-literario-item img {
    height: 230px;
  }
}

@media (max-width: 768px) {
  header {
    display: none;
  }
}

/* ============================= */
/* RESPONSIVE FOOTER */
/* ============================= */

@media (max-width: 991px) {
  .footer-main {
    padding: 35px 20px 0;
  }

  .footer-container {
    width: 100%;
    max-width: 92%;
    margin: 0 auto;
  }

  #brandings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .brandings-item {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .branding-instituto {
    justify-content: center;
    max-width: 420px;
  }

  .logo-branding img {
    max-width: 220px;
    height: auto;
  }

  #menu-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 35px;
  }

  .menu-item-footer h3 {
    font-size: 1.15rem;
  }

  .menu-item-footer p,
  .menu-item-footer a {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .footer-end {
    margin-top: 35px;
    padding: 18px 0;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .footer-main {
    padding: 30px 18px 0;
  }

  .footer-container {
    max-width: 100%;
  }

  #brandings {
    gap: 20px;
  }

  .branding-instituto {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .brand-logo img {
    max-width: 90px;
    height: auto;
  }

  .brand-section {
    align-items: center;
  }

  .brand-bandera {
    justify-content: center;
  }

  .brand-titulo p {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .logo-branding img {
    max-width: 190px;
  }

  #menu-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 35px;
    text-align: center;
  }

  .menu-item-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .linea-footer {
    margin: 8px auto 14px;
  }

  .menu-item-footer p {
    max-width: 320px;
    margin: 5px 0;
    line-height: 1.6;
  }

  .footer-end {
    flex-direction: column;
    text-align: center;
    padding: 20px 10px;
  }

  .footer-end-links a,
  .footer-end-reservados p {
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .footer-main {
    padding: 25px 14px 0;
  }

  .brand-logo img {
    max-width: 78px;
  }

  .logo-branding img {
    max-width: 165px;
  }

  .brand-titulo p {
    font-size: 0.86rem;
  }

  .menu-item-footer h3 {
    font-size: 1.05rem;
  }

  .menu-item-footer p,
  .menu-item-footer a {
    font-size: 0.86rem;
  }
}

/* ============================= */
/* AJUSTE LOGOTIPO FOOTER MOBILE */
/* ============================= */

@media (max-width: 767px) {
  footer #brandings .brandings-item:first-child {
    width: 100%;
  }

  footer #brandings .branding-instituto {
    width: 100%;
    max-width: 360px;
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    column-gap: 12px;
    margin: 0 auto;
    cursor: pointer;
    text-align: left;
  }

  footer #brandings .brand-logo {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  footer #brandings .brand-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
  }

  footer #brandings .brand-section {
    width: 100%;
    min-width: 0;
  }

  footer #brandings .brand-bandera {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    height: 8px;
    margin-bottom: 7px;
  }

  footer #brandings .bandera-item {
    height: 8px;
  }

  footer #brandings .brand-titulo p {
    margin: 0;
    color: #ffffff;
    font-size: 0.86rem;
    line-height: 1.18;
    font-weight: 700;
    text-align: left;
  }

  footer #brandings .logo-branding {
    margin-top: 12px;
  }
}

@media (max-width: 390px) {
  footer #brandings .branding-instituto {
    max-width: 320px;
    grid-template-columns: 62px 1fr;
    column-gap: 9px;
  }

  footer #brandings .brand-logo,
  footer #brandings .brand-logo img {
    width: 62px;
    height: 62px;
  }

  footer #brandings .brand-bandera,
  footer #brandings .bandera-item {
    height: 4px;
  }

  footer #brandings .brand-titulo p {
    font-size: 0.78rem;
    line-height: 1.15;
  }
}

/* ============================= */
/* BUSCADOR GLOBAL Y MODALES CURSO */
/* ============================= */

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

.input-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 250px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
}

.input-search input {
  flex: 1;
  min-width: 0;
  padding: 6px 40px 6px 2px;
  border-bottom: 0;
}

.input-search input:focus {
  border-bottom: 0;
}

.input-search button {
  position: absolute;
  right: 0;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.input-search button:hover,
.input-search button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  transform: scale(1.05);
}

.search-results-box {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 250px;
  color: #ffffff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.78rem;
  text-align: right;
}

.mobile-search-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}

body.course-modal-open {
  overflow: hidden;
}

.course-search-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.course-search-modal.is-open {
  display: flex;
}

.course-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(5, 85, 146, 0.32), transparent 38%),
    rgba(5, 21, 37, 0.78);
  backdrop-filter: blur(7px);
}

.course-search-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1120px, 96vw);
  max-height: min(880px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 26px;
  background: #f7f9fc;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  animation: courseModalEnter 0.28s ease-out;
}

@keyframes courseModalEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.course-search-modal__close,
.iicm-modal__close,
.cerrar-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.course-search-modal__close:hover,
.iicm-modal__close:hover,
.cerrar-modal:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(8deg);
}

.course-search-modal__header {
  position: relative;
  z-index: 1;
  padding: 30px 76px 24px 34px;
  background:
    linear-gradient(118deg, rgba(5, 85, 146, 0.98), rgba(12, 103, 149, 0.94)),
    #055592;
  color: #ffffff;
}

.course-search-modal__eyebrow,
.course-detail-modal__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: #cae9ff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.course-search-modal__header h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.course-search-modal__header > p {
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Nunito Sans", sans-serif;
}

.course-search-modal__form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 760px;
  overflow: hidden;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 29, 52, 0.2);
}

.course-search-modal__form > i {
  margin-left: 18px;
  color: #697b8c;
}

.course-search-modal__form input {
  width: 100%;
  min-width: 0;
  padding: 15px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172432;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
}

.course-search-modal__form button {
  align-self: stretch;
  padding: 0 24px;
  border: 0;
  background: #ce3f48;
  color: #ffffff;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.course-search-modal__form button:hover {
  background: #b72f38;
}

.course-search-modal__header .course-search-modal__status {
  min-height: 20px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
}

.course-search-modal__content {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.7fr);
  min-height: 360px;
  overflow: hidden;
}

.course-search-modal__results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid #dfe6ee;
  background: #eef3f8;
}

.course-result-card {
  position: relative;
  width: 100%;
  padding: 16px 40px 16px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #ffffff;
  color: #1a2836;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(25, 55, 82, 0.06);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.course-result-card::after {
  content: "\f054";
  position: absolute;
  top: 50%;
  right: 16px;
  color: #91a0ae;
  font-family: "Font Awesome 5 Free";
  font-size: 0.75rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.course-result-card:hover,
.course-result-card.is-selected {
  border-color: #1780bb;
  box-shadow: 0 10px 26px rgba(5, 85, 146, 0.14);
  transform: translateY(-2px);
}

.course-result-card.is-selected::after {
  color: #055592;
}

.course-result-card__source {
  display: block;
  margin-bottom: 4px;
  color: #ce3f48;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.course-result-card strong,
.course-result-card__meta,
.course-result-card__price {
  display: block;
  font-family: "Nunito Sans", sans-serif;
}

.course-result-card strong {
  margin-bottom: 7px;
  font-size: 0.98rem;
  line-height: 1.3;
}

.course-result-card__meta {
  color: #687887;
  font-size: 0.78rem;
  line-height: 1.45;
}

.course-result-card__price {
  margin-top: 9px;
  color: #055592;
  font-size: 0.9rem;
  font-weight: 800;
}

.course-search-modal__detail {
  overflow-y: auto;
  padding: 28px 32px;
  background: #ffffff;
}

.course-search-modal__empty,
.course-search-modal__no-results {
  display: flex;
  flex: 1;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #697b8c;
  text-align: center;
}

.course-search-modal__empty > i,
.course-search-modal__no-results > i {
  display: inline-flex;
  width: 66px;
  height: 66px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border-radius: 50%;
  background: #e7f1f8;
  color: #055592;
  font-size: 1.45rem;
}

.course-search-modal__empty h3,
.course-search-modal__no-results h3 {
  margin: 0 0 6px;
  color: #233443;
  font-family: "Montserrat", sans-serif;
}

.course-search-modal__empty p,
.course-search-modal__no-results p {
  max-width: 390px;
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  line-height: 1.55;
}

.course-search-modal__no-results--error > i {
  background: #fde9ea;
  color: #ba343d;
}

.course-detail__heading h3,
.course-modal-heading h3 {
  margin: 12px 0 8px;
  color: #172c3c;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.2;
}

.course-detail__heading p,
.course-modal-heading p {
  margin: 0 0 20px;
  color: #607080;
  font-family: "Nunito Sans", sans-serif;
  line-height: 1.6;
}

.course-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e3f1fa;
  color: #055592;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-source--cultura {
  background: #f0eafa;
  color: #68449b;
}

.course-source--gastronomia {
  background: #fff0e2;
  color: #9a5423;
}

.course-detail__grid,
.course-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.course-detail-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #e4eaf0;
  border-radius: 12px;
  background: #fbfcfe;
}

.course-detail-card > i {
  color: #1780bb;
  text-align: center;
}

.course-detail-card span,
.course-detail-card strong {
  display: block;
  font-family: "Nunito Sans", sans-serif;
}

.course-detail-card span {
  margin-bottom: 2px;
  color: #7c8995;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.course-detail-card strong {
  color: #223544;
  font-size: 0.9rem;
  line-height: 1.35;
}

.course-detail__pricing,
.course-modal-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, #eef7fc, #f7fbfd);
}

.course-detail__pricing span,
.course-detail__pricing strong,
.course-modal-pricing span,
.course-modal-pricing strong {
  display: block;
  font-family: "Nunito Sans", sans-serif;
}

.course-detail__pricing span,
.course-modal-pricing span {
  color: #6d7e8d;
  font-size: 0.75rem;
}

.course-detail__pricing strong,
.course-modal-pricing strong {
  color: #055592;
  font-size: 1.15rem;
}

.course-detail__pricing p,
.course-modal-pricing p {
  flex-basis: 100%;
  margin: 0;
  color: #667785;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.8rem;
}

.course-detail__actions,
.iicm-modal__footer,
.boton-inscribirse {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.course-action,
.iicm-btn,
.btn-inscribirse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.course-action:hover,
.iicm-btn:hover,
.btn-inscribirse:hover {
  transform: translateY(-2px);
}

.course-action--primary,
.iicm-btn--primary,
.btn-inscribirse {
  background: #ce3f48;
  color: #ffffff;
}

.course-action--primary:hover,
.iicm-btn--primary:hover,
.btn-inscribirse:hover {
  background: #b72f38;
  color: #ffffff;
}

.course-action--secondary,
.iicm-btn--ghost {
  border-color: #cbd7e0;
  background: #ffffff;
  color: #315069;
}

.modal-curso,
.iicm-modal {
  position: fixed;
  inset: 0;
  z-index: 15000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 21, 37, 0.78);
  backdrop-filter: blur(7px);
}

.iicm-modal.is-open {
  display: flex;
}

.iicm-modal__backdrop {
  position: absolute;
  inset: 0;
}

.modal-contenido,
.iicm-modal__dialog {
  position: relative;
  width: min(760px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  animation: courseModalEnter 0.26s ease-out;
}

.course-modal-header,
.iicm-modal__header {
  position: relative;
  padding: 28px 76px 24px 30px;
  background: linear-gradient(120deg, #055592, #0a769e);
  color: #ffffff;
}

.course-modal-header h3,
.iicm-modal__title {
  margin: 4px 0 0;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.course-modal-body,
.iicm-modal__body {
  padding: 26px 30px 6px;
}

.iicm-modal__footer,
.boton-inscribirse {
  padding: 0 30px 28px;
}

@media (max-width: 991px) {
  .mobile-navbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mobile-navbar-action {
    gap: 8px;
  }

  .mobile-search-button {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .course-search-modal {
    align-items: flex-end;
    padding: 0;
  }

  .course-search-modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
  }

  .course-search-modal__header {
    padding: 24px 58px 20px 20px;
  }

  .course-search-modal__form {
    grid-template-columns: auto 1fr;
  }

  .course-search-modal__form button {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  .course-search-modal__content {
    display: block;
    overflow-y: auto;
  }

  .course-search-modal__results {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid #dfe6ee;
  }

  .course-search-modal__detail {
    overflow: visible;
    padding: 22px 20px 28px;
  }

  .course-detail__grid,
  .course-modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-curso,
  .iicm-modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-contenido,
  .iicm-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }

  .course-modal-body,
  .iicm-modal__body {
    padding: 22px 20px 4px;
  }

  .iicm-modal__footer,
  .boton-inscribirse {
    padding: 0 20px 24px;
  }
}

@media (max-width: 576px) {
  .mobile-navbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mobile-navbar-action {
    min-width: 84px;
  }

  .mobile-search-button,
  .hamburger-button {
    width: 36px;
    height: 38px;
  }

  .mobile-search-button {
    font-size: 0.92rem;
  }

  .hamburger-button span {
    width: 27px;
  }

  .course-detail__actions,
  .iicm-modal__footer,
  .boton-inscribirse {
    flex-direction: column;
  }

  .course-action,
  .iicm-btn,
  .btn-inscribirse {
    width: 100%;
  }
}

.whatsapp-floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.whatsapp-floating img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.whatsapp-floating__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b5f35;
  font-family: "Nunito Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.whatsapp-floating:hover,
.whatsapp-floating:focus-visible {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px) scale(1.03);
}

.whatsapp-floating:hover .whatsapp-floating__label,
.whatsapp-floating:focus-visible .whatsapp-floating__label {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

@media (max-width: 576px) {
  .whatsapp-floating {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .whatsapp-floating img {
    width: 38px;
    height: 38px;
  }

  .whatsapp-floating__label {
    display: none;
  }
}
