/* ---------- Base ---------- */
:root {
  --verde: #15403d;
  --verde-2: #1b5148;
  --amarillo: #ffcc00;
  --fondo: #f4f7fc;
  --gris-seccion: #e3e8ef; /* fondo de secciones alternas: se nota el cambio de sección */
  --texto: #2c4a45;
  --rojo: #e8322f;
  --azul: #1f5faa;
  --wa: #29a8df;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: var(--texto);
  font-family: "Lato", sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.contenedor {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.titulo {
  color: var(--verde-2);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

section {
  scroll-margin-top: 10px;
}

/* Botones y etiquetas */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    filter 0.25s ease;
}

.btn--chico {
  padding: 11px 22px;
  font-size: 13px;
}

.btn--amarillo {
  background: var(--amarillo);
  color: var(--verde);
}

.btn--amarillo:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.btn--borde {
  border-color: rgba(255, 204, 0, 0.7);
  color: #fff;
}

.btn--borde:hover {
  background: var(--amarillo);
  color: var(--verde);
}

.btn--verde {
  background: var(--verde-2);
  color: #fff;
}

.btn--verde:hover {
  background: var(--verde);
  transform: translateY(-2px);
}

.pill {
  display: inline-block;
  padding: 6px 28px;
  border-radius: 10px;
  background: var(--amarillo);
  color: var(--verde);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pill--verde {
  padding: 4px 16px;
  background: var(--verde-2);
  color: #fff;
  border-radius: 6px;
}

.btn_mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 6px;
  background: var(--verde-2);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: transform 0.25s ease;
}

.btn_mas:hover {
  transform: translateY(-2px);
}

.btn_mas--amarillo {
  background: var(--amarillo);
  color: var(--verde);
}

/* ---------- Portada ---------- */
.portada {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  /* Evita que el título, mientras carga la fuente (la de reserva es más ancha), ensanche toda la página en celular */
  overflow: hidden;
  background: var(--verde) url("../../img/hero/fondo.webp") center top / cover
    no-repeat;
  color: #fff;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
}

.nav__logo img {
  width: 104px;
  height: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 56px;
}

.nav__links {
  display: flex;
  gap: 48px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav__links a:hover {
  color: var(--amarillo);
}

.nav__aula {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 38px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 900;
  transition: transform 0.25s ease;
}

.nav__aula:hover {
  transform: translateY(-2px);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: transparent;
}

.nav__toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.portada__cuerpo {
  display: grid;
  flex: 1;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 30px;
  padding-top: 40px;
  padding-bottom: 100px;
}

/* Sin esto, el carrusel (con scroll) ensancha la columna de la grilla en celular */
.portada__texto {
  min-width: 0;
}

.portada__texto h1 {
  font-size: 4.5rem !important;
}

.portada h1 {
  margin-bottom: 22px;
  color: var(--amarillo);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(48px, 6.2vw, 92px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Segunda línea del título: el nombre completo de la institución */
.portada h1 span {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 0.56em;
  letter-spacing: 1px;
}

/* Franja blanca para que los logos (con texto oscuro) se lean sobre el fondo verde */
.portada__convenio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 10px;
  width: fit-content;
  max-width: 100%;
  margin: 26px 0 0;
  padding: 12px 22px;
  border-radius: 12px;
  background: #fff;
}

.portada__convenio span {
  color: var(--verde-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.portada__convenio img:nth-of-type(1) {
  width: 170px;
}

/* Logo horizontal de la PNP (escudo + nombre) */
.portada__convenio img:nth-of-type(2) {
  width: 130px;
  height: auto;
}

.portada__valido {
  margin-top: 20px;
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.portada__botones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Puntos que genera script.js en los carruseles con data-puntos */
.carrusel__puntos {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carrusel__puntos button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.carrusel__puntos button.is-activo {
  width: 22px;
  background: var(--amarillo);
}

/* Foto de los tres policías: apoyada en el borde inferior del banner (anula el padding de .portada__cuerpo) */
.portada__foto {
  display: flex;
  align-self: end;
  justify-content: center;
  margin-bottom: -100px;
}

.portada__foto img {
  width: min(100%, 420px);
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.35));
}

.portada__bajar {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  transition: transform 0.25s ease;
}

.portada__bajar:hover {
  transform: translateX(-50%) translateY(4px);
}

/* ---------- Hoja de calificación ---------- */
.hoja {
  padding: 70px 0 80px;
  text-align: center;
}

.hoja__intro {
  max-width: 820px;
  margin: 0 auto 46px;
  color: var(--verde-2);
  font-size: 21px;
}

.hoja__intro strong {
  display: block;
  margin: 2px 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

.hoja__tarjetas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hoja__tarjetas li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 36px 20px 30px;
  border-radius: 12px;
  background: var(--fondo);
}

.hoja__tarjetas li img {
  height: 87px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.hoja__tarjetas p {
  color: var(--verde-2);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

/* ---------- Curso extrainstitucional (pestañas) ---------- */
.curso {
  padding: 64px 0 80px;
  background: var(--gris-seccion);
  text-align: center;
}

.curso__titulo {
  font-size: 30px;
}

.curso__sub {
  margin-top: 6px;
  color: var(--verde-2);
  font-size: 17px;
}

.tabs {
  margin-top: 34px;
}

/* ---------- Pestañas con muesca animada (idea: "Pure CSS tab indicator animation") ----------
   Menú arriba: la barra verde lleva dos bloques (.duo__top a la izquierda, .duo__bottom a la derecha)
   con un hueco entre ellos. Ese hueco es la pestaña activa y se funde con el panel blanco de abajo.
   Al cambiar de radio, el par de bloques se desplaza una casilla (1/3 del ancho) y el hueco sigue a
   la pestaña. Todo se mide en cqw (ancho de .duo__tabs) para que la muesca calce en cualquier pantalla. */
.duo {
  --borde: 14px;
  --barra: 78px; /* alto de la barra de pestañas */
  position: relative;
  display: grid;
  grid-template-rows: var(--barra) 1fr;
  margin: 38px auto 0;
  max-width: 1040px;
  box-sizing: border-box;
  border: var(--borde) solid var(--verde-2);
  border-radius: 44px;
  background: #fff;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 26px 56px rgba(21, 64, 61, 0.28);
}

.duo__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.duo:has(.duo__radio:focus-visible) .duo__tabs {
  outline: 3px solid var(--amarillo);
  outline-offset: -6px;
}

.duo__tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  container-type: inline-size;
}

.duo__tabs label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.6;
  cursor: pointer;
  user-select: none;
  transition:
    opacity 0.4s ease-in-out,
    color 0.3s ease-in-out;
}

.duo__tabs label:hover {
  opacity: 1;
}

.duo__marker {
  --slot: 33.3333cqw; /* ancho de una pestaña */
  --hueco: min(230px, calc(var(--slot) - 16px)); /* ancho de la muesca */
  position: absolute;
  z-index: 1;
  top: 0;
  /* El bloque izquierdo (100cqw) termina donde empieza el hueco, centrado en la casilla 1 */
  left: calc(-100cqw + (var(--slot) - var(--hueco)) / 2);
  display: flex;
  width: 200cqw;
  height: 100%;
  transition: transform 0.25s ease-in-out;
  pointer-events: none;
}

.duo__top,
.duo__bottom {
  display: block;
  background: var(--verde-2);
  box-shadow: 0 18px 36px rgba(21, 64, 61, 0.16);
}

.duo__top {
  width: 100cqw;
  margin-right: auto;
  border-radius: 0 0 34px 0;
}

.duo__bottom {
  width: calc(100cqw - var(--hueco));
  border-radius: 0 0 0 34px;
}

/* La pestaña activa queda dentro de la muesca (fondo blanco): letra verde y llena */
#ct-duracion:checked ~ .duo__tabs label[for="ct-duracion"],
#ct-programa:checked ~ .duo__tabs label[for="ct-programa"],
#ct-beneficios:checked ~ .duo__tabs label[for="ct-beneficios"] {
  color: var(--verde-2);
  opacity: 1;
}

#ct-duracion:checked ~ .duo__tabs .duo__marker {
  transform: translateX(calc(var(--slot) * 0));
}
#ct-programa:checked ~ .duo__tabs .duo__marker {
  transform: translateX(calc(var(--slot) * 1));
}
#ct-beneficios:checked ~ .duo__tabs .duo__marker {
  transform: translateX(calc(var(--slot) * 2));
}

/* Los 3 paneles comparten la misma celda: el recuadro mide siempre lo del panel más alto
   y no "salta" al cambiar de pestaña. Los inactivos quedan invisibles pero ocupan su lugar. */
.duo__contenido {
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 400px;
  padding: 34px;
}

.duo__panel {
  grid-area: 1 / 1;
  width: 100%;
  visibility: hidden;
}

#ct-duracion:checked ~ .duo__contenido #dp-duracion,
#ct-programa:checked ~ .duo__contenido #dp-programa,
#ct-beneficios:checked ~ .duo__contenido #dp-beneficios {
  visibility: visible;
  animation: duo-entra 0.35s ease both;
}

@keyframes duo-entra {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Las tarjetas internas pasan a gris claro: sobre el panel blanco se distinguen mejor */
.duo .duracion {
  max-width: none;
  gap: 14px;
}

.duo .duracion__tarjeta {
  background: var(--fondo);
  box-shadow: none;
}

.duo .duracion__cuerpo {
  padding: 18px 14px 26px;
  text-align: center;
}

.duo .duracion__cuerpo strong {
  font-size: 104px;
}

/* Barra: se llena según los meses, tomando como tope el curso más largo */
.duracion__barra {
  display: block;
  width: 72%;
  height: 8px;
  margin: 16px auto 0;
  overflow: hidden;
  border-radius: 99px;
  background: #d9e5e1;
}

.duracion__barra::after {
  content: "";
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: var(--verde-2);
}

.duo .duracion__nota {
  text-align: center;
}

/* Programa y Beneficios: tarjetas centradas con ícono */
.ico_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ico_grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}

.ico_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 22px 26px;
  border-radius: 16px;
  background: var(--fondo);
  text-align: center;
}

.ico_card__icono {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--verde-2);
  color: var(--amarillo);
}

.ico_card h3 {
  color: var(--verde-2);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.ico_card p {
  color: var(--texto);
  font-size: 14.5px;
  line-height: 1.55;
}

.tabs__lista {
  display: flex;
  gap: 6px;
  max-width: 800px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 60px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(21, 64, 61, 0.1);
}

.tabs__tab {
  flex: 1;
  padding: 18px 10px;
  border: 0;
  border-radius: 50px;
  background: transparent;
  color: var(--verde-2);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 0.25s ease;
}

.tabs__tab:hover {
  background: #f1f4f2;
}

.tabs__tab.is-activo {
  background: #ececec;
}

.tabs__panel {
  margin-top: 34px;
}

.tabs__panel[hidden] {
  display: none;
}

.duracion {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}

.duracion__tarjeta {
  overflow: hidden;
  border-top: 10px solid var(--amarillo);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(21, 64, 61, 0.08);
}

.duracion__cuerpo {
  padding: 14px 10px 26px;
}

.duracion__nota {
  margin-top: 22px;
  color: var(--verde-2);
  font-size: 15px;
  font-weight: 700;
}

.duracion__cuerpo strong {
  display: block;
  color: var(--verde-2);
  font-family: "Bebas Neue", sans-serif;
  font-size: 120px;
  font-weight: 400;
  line-height: 1.05;
}

.duracion__cuerpo span {
  color: var(--verde-2);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.lista_check {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.lista_check li {
  position: relative;
  margin-bottom: 12px;
  padding: 16px 20px 16px 52px;
  border-radius: 12px;
  background: #fff;
  color: var(--verde-2);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(21, 64, 61, 0.06);
}

.lista_check li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amarillo);
  transform: translateY(-50%);
}

.tabs__aviso {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 34px 20px;
  border-radius: 12px;
  background: #fff;
  color: var(--verde-2);
  font-weight: 700;
}

/* ---------- Certificación ---------- */
.certificacion {
  padding: 70px 0 60px;
  background: linear-gradient(to bottom, var(--gris-seccion) 50%, #fff 50%);
}

.certificacion__bloque {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 56px 56px 56px 64px;
  border-radius: 14px;
  background: var(--verde-2);
  color: #fff;
}

.certificacion h2 {
  margin-bottom: 26px;
  color: var(--amarillo);
  font-weight: 900;
  text-transform: uppercase;
}

.certificacion p {
  margin-bottom: 18px;
  font-size: 21px;
  line-height: 1.45;
}

.certificacion li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
  font-size: 19px;
  line-height: 1.45;
}

.certificacion .btn {
  margin-top: 14px;
}

.certificacion li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.certificacion__imagen img {
  width: 118%;
  max-width: none;
  margin: -8px 0 -16px -6%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

/* ---------- Próximos inicios ---------- */
.inicios {
  padding: 60px 0 70px;
  background: #fff;
}

.inicios__titulo {
  margin-bottom: 36px;
  text-align: center;
}

.inicios .inicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
  overflow: visible;
}

.inicios .inicios__carrusel {
  position: relative;
}

/* Los puntos van sobre fondo claro: se ven en verde, no en blanco */
.inicios__carrusel .carrusel__puntos button {
  background: #c3d2ce;
}

.inicios__carrusel .carrusel__puntos button.is-activo {
  background: var(--verde-2);
}

.inicio_card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: var(--fondo);
}

.inicio_card__foto {
  position: relative;
}

.inicio_card__foto img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.estado {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px); /* si la fecha no cabe en una línea, baja a la siguiente sin salirse de la foto */
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.35;
  text-transform: uppercase;
}

.estado--curso {
  background: var(--amarillo);
  color: var(--verde);
}

.estado--pronto {
  background: #fff;
  color: var(--verde-2);
}

.inicio_card__texto {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 26px;
  text-align: center;
}

.inicio_card .pill {
  padding: 4px 14px;
  background: var(--verde-2);
  color: #fff;
  border-radius: 6px;
}

.inicio_card h3 {
  color: var(--verde-2);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
  text-transform: uppercase;
}

.inicio_card__botones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
}

.enlace_curso {
  color: var(--verde-2);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
}

.enlace_curso:hover {
  color: var(--azul);
}

/* ---------- Listado de cursos ---------- */
.listado {
  background: var(--gris-seccion);
}

.listado__arriba {
  padding: 56px 0 0;
  background: var(--gris-seccion);
}

.listado__cabecera {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 36px;
}

.listado__kicker {
  color: var(--verde-2);
  font-size: 15px;
  font-weight: 700;
}

.listado__carrusel_caja {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  margin-bottom: -150px;
}

.carrusel {
  position: relative;
}

.carrusel__pista {
  display: flex;
  gap: 22px;
  padding: 4px 4px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.carrusel__flecha {
  position: absolute;
  top: 38%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--amarillo);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.carrusel__flecha svg {
  pointer-events: none;
}

.carrusel__flecha[hidden] {
  display: none;
}

.carrusel__flecha--izq {
  left: -34px;
}

.carrusel__flecha--izq svg {
  transform: scaleX(-1);
}

.carrusel__flecha--der {
  right: -34px;
}

.curso_card {
  display: flex;
  flex: 0 0 calc(25% - 17px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(21, 64, 61, 0.16);
  scroll-snap-align: start;
}

.curso_card > img {
  width: 100%;
  aspect-ratio: 298 / 229;
  object-fit: cover;
}

.curso_card__cuerpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 18px 20px;
}

.curso_card h3 {
  color: #1f4f9a;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.45;
  text-transform: uppercase;
}

.listado__abajo {
  padding: 190px 0 60px;
  background: var(--verde-2) url("../../img/cursos/fondo-listado.webp") center /
    cover no-repeat;
  color: #fff;
}

.listado__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr;
  align-items: end;
  gap: 20px;
}

/* Catálogo: dos pestañas (con video / con módulos) sobre el fondo verde */
.catalogo__titulo {
  margin-bottom: 20px;
  color: var(--amarillo);
  font-weight: 900;
  text-transform: uppercase;
}

.catalogo .tabs__lista {
  max-width: 560px;
  margin: 0 0 26px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.catalogo .tabs__tab {
  color: #fff;
  font-size: 13px;
}

.catalogo .tabs__tab:hover {
  background: rgba(255, 255, 255, 0.14);
}

.catalogo .tabs__tab.is-activo {
  background: var(--amarillo);
  color: var(--verde);
}

/* Las dos pestañas ocupan la misma celda: la sección mide siempre lo de la lista más alta.
   Las pestañas ocultas quedan invisibles (visibility) en vez de display:none, así no encogen. */
.catalogo__paneles {
  display: grid;
}

.catalogo .tabs__panel {
  grid-area: 1 / 1;
  margin-top: 0;
}

.catalogo .tabs__panel[hidden] {
  display: block;
  visibility: hidden;
}

.catalogo__lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 30px;
}

.catalogo__lista li {
  position: relative;
  padding: 3px 0 3px 18px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.catalogo__lista li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.catalogo__lista a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalogo__lista a:hover {
  color: var(--amarillo);
}

.chip_ia {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--amarillo);
  color: var(--verde);
  font-size: 10px;
  font-weight: 900;
  vertical-align: 1px;
}

.listado__policia {
  width: min(100%, 320px);
  margin-bottom: -60px;
  justify-self: end;
}

/* ---------- Noticias ---------- */
.noticias {
  position: relative;
  background: #fff;
}

.noticias__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.noticias__etiqueta {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--verde-2);
  color: var(--verde-2);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.noticias h2 {
  margin-bottom: 26px;
  color: var(--rojo);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(46px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.noticias p {
  max-width: 480px;
  color: var(--verde-2);
  font-size: 18px;
  line-height: 1.7;
}

.noticias__imagen img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

/* Banner de avisos: las diapositivas van en fila y la pista se desliza de lado (el script mueve la pista) */
/* La ventana limita por dónde se ve el deslizamiento: solo el espacio entre las flechas, no todo el ancho de la pantalla */
.banner__ventana {
  width: min(1152px, calc(100% - 48px));
  margin: 0 auto;
  overflow: hidden;
}

.banner__pista {
  display: flex;
  will-change: transform;
}

.banner__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.banner__slide > .contenedor {
  width: 100%;
  padding-right: 0;
  padding-left: 0; /* el margen lateral ya lo da la ventana */
}

.banner__aviso {
  width: auto;
  max-width: 100%;
  max-height: 507px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

.banner__flecha {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border: 0;
  border-radius: 50%;
  background: var(--verde-2);
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  transition:
    background 0.25s ease,
    opacity 0.25s ease;
}

.banner__flecha:hover {
  background: var(--verde);
  opacity: 1;
}

/* Las flechas van pegadas al borde del contenido (no al borde de la pantalla) */
.banner__flecha--izq {
  left: calc(50% - 630px);
}

.banner__flecha--der {
  right: calc(50% - 630px);
}

.banner__puntos {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.banner__puntos button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c3d2ce;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.banner__puntos button.is-activo {
  background: var(--verde-2);
  transform: scale(1.25);
}

/* Las flechas van en los márgenes: en pantallas angostas taparían el contenido y se navega con los puntos o deslizando */
/* Celular: el aviso vertical ocupa todo el ancho disponible */
@media (max-width: 768px) {
  .banner__aviso {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 1279px) {
  .banner__flecha {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner__pista {
    transition: none !important;
  }
}

/* ---------- Historias de éxito ---------- */
.historias {
  padding: 60px 0 70px;
  background: var(--gris-seccion);
}

.historias__titulo {
  margin-bottom: 34px;
  text-align: center;
}

.carrusel--azul .carrusel__flecha {
  color: var(--azul);
}

.historias .carrusel__pista {
  gap: 26px;
  padding: 24px 4px;
}

.testimonio {
  display: flex;
  flex: 0 0 min(520px, 86%);
  flex-direction: column;
  gap: 22px;
  padding: 30px 32px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(21, 64, 61, 0.12);
  scroll-snap-align: center;
}

.testimonio__texto {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.65;
}

.testimonio__autor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testimonio__autor img,
.testimonio__inicial {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.testimonio__inicial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amarillo);
  color: var(--verde-2);
  font-weight: 900;
  text-transform: uppercase;
}

.testimonio__autor strong {
  display: block;
  color: #1f2937;
  font-size: 16px;
}

.testimonio__autor span {
  color: var(--azul);
  font-size: 13px;
}

.historias__frase {
  max-width: 780px;
  margin: 34px auto 0;
  padding: 20px 28px;
  border-radius: 8px;
  background: var(--verde-2);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Galería: Nuestros Alumnos nos Respaldan (Carrusel 3 fotos, auto 3s) ---------- */
.galeria {
  padding: 70px 0 65px;
  background: var(--gris-seccion);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.galeria__titulo {
  margin-bottom: 12px;
  font-size: 32px;
  text-align: center;
  color: var(--verde-2, #15403d);
}

.galeria__subtitulo {
  text-align: center;
  font-size: 16px;
  color: #64748b;
  max-width: 720px;
  margin: 0 auto 34px;
  line-height: 1.5;
}

.carrusel--galeria {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 10px;
}

.galeria__pista {
  display: flex;
  gap: 20px;
  padding: 10px 4px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
}

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

/* EXACTAMENTE 3 IMÁGENES VISIBLES A LA VEZ EN PANTALLA */
.galeria__item {
  flex: 0 0 calc((100% - 2 * 20px) / 3);
  scroll-snap-align: start;
  display: flex;
}

.galeria__card {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.galeria__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

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

.galeria__card:hover img {
  transform: scale(1.03);
}

.galeria__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 14px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.galeria__badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(37, 211, 102, 0.95);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Flechas Direccionales para la Galería */
.carrusel--galeria .carrusel__flecha {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--verde-2, #15403d);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carrusel--galeria .carrusel__flecha:hover {
  background: var(--verde-2, #15403d);
  color: #ffffff;
  border-color: var(--verde-2, #15403d);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(21, 64, 61, 0.3);
}

.carrusel--galeria .carrusel__flecha--izq {
  left: -24px;
}

.carrusel--galeria .carrusel__flecha--der {
  right: -24px;
}

/* Puntos indicadores del carrusel */
.carrusel--galeria .carrusel__puntos {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carrusel--galeria .carrusel__puntos button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carrusel--galeria .carrusel__puntos button.is-activo {
  width: 24px;
  border-radius: 10px;
  background: var(--verde-2, #15403d);
}

.galeria__footer {
  text-align: center;
  margin-top: 28px;
}

.galeria__frase {
  font-size: 17px;
  font-style: italic;
  font-weight: 700;
  color: var(--verde-2, #15403d);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .galeria__item {
    flex: 0 0 calc((100% - 16px) / 2); /* 2 fotos en tablets */
  }
  .carrusel--galeria .carrusel__flecha--izq {
    left: -8px;
  }
  .carrusel--galeria .carrusel__flecha--der {
    right: -8px;
  }
}

@media (max-width: 600px) {
  .galeria__titulo {
    font-size: 26px;
  }
  .galeria__subtitulo {
    font-size: 14.5px;
    margin-bottom: 20px;
  }
  .galeria__item {
    flex: 0 0 calc(100% - 20px); /* 1 foto en móviles */
  }
  .galeria__card {
    border-radius: 12px;
  }
  .carrusel--galeria .carrusel__flecha {
    width: 40px;
    height: 40px;
  }
  .carrusel--galeria .carrusel__flecha--izq {
    left: -4px;
  }
  .carrusel--galeria .carrusel__flecha--der {
    right: -4px;
  }
}

/* ---------- Otros cursos ---------- */
.otros {
  padding: 60px 0 70px;
  background: #fff;
}

.otros__titulo {
  margin-bottom: 30px;
  text-align: center;
}

/* Carrusel: 4 tarjetas visibles en escritorio, mismo patrón que .curso_card */
.otros__carrusel {
  margin-bottom: 10px;
}

.otros__carrusel .carrusel__pista {
  padding: 4px 4px 14px;
}

.otro_card {
  display: flex;
  flex: 0 0 calc(25% - 17px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(21, 64, 61, 0.1);
  scroll-snap-align: start;
}

.otro_card > img {
  width: 100%;
  aspect-ratio: 298 / 229;
  object-fit: cover;
}

.otro_card__cuerpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 18px 20px;
}

.otro_card h3 {
  color: var(--verde-2);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.otro_card p {
  margin-bottom: 8px;
  color: var(--verde-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.otro_card .btn_mas {
  margin-top: auto;
}

.convenio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 36px;
  margin-top: 44px;
}

.convenio span {
  color: var(--verde-2);
  font-size: 19px;
  font-weight: 700;
}

.convenio img:nth-of-type(1) {
  width: 115px;
  height: auto;
  object-fit: contain;
}

.convenio img:nth-of-type(2) {
  width: 190px;
  height: auto;
  object-fit: contain;
}

.convenio img:nth-of-type(3) {
  width: 170px;
  height: auto;
  object-fit: contain;
}

/* ---------- Footer ---------- */
.pie {
  background: linear-gradient(to bottom, #fff 60px, var(--verde-2) 60px);
  color: #fff;
}

.pie__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px 40px;
  border-radius: 14px;
  background: var(--wa);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pie__wa p {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
}

.pie__wa_btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 270px;
  padding: 12px 24px;
  border-radius: 10px;
  background: #fff;
  color: var(--verde-2);
  font-size: 16px;
  font-weight: 900;
  transition: transform 0.25s ease;
}

.pie__wa_btn:hover {
  transform: translateY(-2px);
}

.pie__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 50px 0 54px;
}

.pie__marca {
  display: flex;
  gap: 20px;
}

.pie__marca img {
  width: 80px;
  height: auto;
  align-self: flex-start;
}

.pie__marca p {
  font-size: 13px;
  line-height: 1.55;
  text-align: justify;
}

.pie__dato {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pie__fila {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.pie__fila img {
  flex-shrink: 0;
  width: 22px;
  height: auto;
}

.pie__fila a:hover {
  color: var(--amarillo);
}

.pie__barra {
  background: #0c0c0c;
}

.pie__barra_fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 12px;
}

.pie__redes {
  display: flex;
  gap: 10px;
}

.pie__redes a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6ebea;
  transition: background 0.25s ease;
}

.pie__redes a:hover {
  background: var(--amarillo);
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .curso_card {
    flex-basis: calc(33.333% - 15px);
  }

  .carrusel__flecha--izq {
    left: -10px;
  }

  .carrusel__flecha--der {
    right: -10px;
  }

  .otro_card {
    flex-basis: calc(33.333% - 15px);
  }
}

@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px;
    border-radius: 14px;
    background: var(--verde);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  }

  .nav__menu.is-abierto {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    gap: 4px;
  }

  .nav__links a {
    display: block;
    padding: 10px 4px;
  }

  .nav__aula {
    justify-content: center;
  }

  .portada__cuerpo {
    grid-template-columns: 1fr;
    padding-bottom: 0;
    text-align: left;
  }

  .portada__foto {
    margin: 6px auto 0;
  }

  .portada__foto img {
    width: min(78%, 300px);
  }

  .portada__bajar {
    display: none;
  }

  .hoja__tarjetas {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificacion__bloque {
    grid-template-columns: 1fr;
    padding: 40px 28px 30px;
  }

  .certificacion__imagen img {
    width: 100%;
    margin: 0;
  }

  /* En celular las tarjetas van en un carrusel deslizable */
  .inicios .inicios__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 4px 4px 14px;
    max-width: none;
    margin: 0;
  }

  .inicios .inicio_card {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }

  .duracion {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
  }

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

  .listado__policia {
    width: 220px;
    margin: 10px auto -60px;
    justify-self: center;
  }

  .noticias__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .pie__marca {
    grid-column: 1 / -1;
  }
}

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  /* Solo los lados: arriba/abajo lo define cada sección que comparte la clase */
  .contenedor {
    padding-right: 16px;
    padding-left: 16px;
  }

  .portada {
    min-height: 0;
  }

  .portada__botones .btn {
    flex: 1 1 100%;
  }

  /* Título y "Válido 1 punto" centrados. La letra se mide contra el ancho de SU columna (cqw),
     no contra la pantalla (vw): con 48px fijos "EXTRAINSTITUCIONALES" se pasaba unos px, el
     navegador ensanchaba la página y el texto se inflaba aún más. Así siempre cabe. */
  .portada__texto {
    container-type: inline-size;
  }

  /* !important: gana a la regla de escritorio ".portada__texto h1 { font-size: 4.5rem !important }" */
  .portada__texto h1 {
    font-size: clamp(24px, 12.4cqw, 48px) !important;
    text-align: center;
  }

  .portada__valido {
    text-align: center;
  }

  .portada__convenio {
    display: flex;
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
    padding: 12px 14px;
  }

  .portada__convenio span {
    flex-basis: 100%;
    text-align: center;
  }

  .portada__convenio img:nth-of-type(1) {
    width: 150px;
  }

  .portada__convenio img:nth-of-type(2) {
    width: 125px;
    height: auto;
  }

  .hoja {
    padding: 50px 0 56px;
  }

  .hoja__intro {
    font-size: 16px;
  }

  .hoja__intro strong {
    font-size: 21px;
  }

  .hoja__tarjetas {
    gap: 10px;
  }

  .hoja__tarjetas li {
    padding: 26px 12px 22px;
  }

  .hoja__tarjetas p {
    font-size: 13px;
  }

  .curso {
    padding: 48px 0 56px;
  }

  .curso__titulo {
    font-size: 24px;
  }

  .curso__sub {
    font-size: 15px;
  }

  .tabs__lista {
    padding: 5px;
  }

  .tabs__tab {
    padding: 13px 4px;
    font-size: 12px;
  }

  .duracion {
    gap: 12px;
    max-width: 340px;
  }

  .duracion__cuerpo strong {
    font-size: 96px;
  }

  .certificacion {
    padding: 48px 0 40px;
  }

  .certificacion p {
    font-size: 17px;
  }

  .certificacion li {
    font-size: 16px;
  }

  .listado__cabecera {
    flex-direction: column;
    align-items: flex-start;
  }

  .curso_card {
    flex-basis: 78%;
  }

  .carrusel__flecha {
    top: 30%;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 10;
    cursor: pointer;
    touch-action: manipulation;
  }

  .carrusel__flecha--izq {
    left: 8px;
  }

  .carrusel__flecha--der {
    right: 8px;
  }

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

  .catalogo .tabs__tab {
    font-size: 11px;
  }

  .banner__slide {
    padding: 48px 0 68px;
  }

  .banner__flecha {
    display: none;
  }

  .banner__puntos {
    bottom: 24px;
  }

  .noticias p {
    font-size: 16px;
  }

  .testimonio {
    padding: 24px 22px;
  }

  .historias__frase {
    font-size: 13px;
  }

  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Tarjetas de "Otros cursos" en celular: 30 % más pequeñas (ancho, textos y botón) */
  .otro_card {
    flex-basis: 59%;
  }

  .otro_card__cuerpo {
    gap: 10px;
    padding: 14px 12px 14px;
  }

  .otro_card h3 {
    font-size: 14px;
  }

  .otro_card p {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .otro_card .pill {
    padding: 3px 10px;
    font-size: 9px;
  }

  .otro_card .btn_mas {
    padding: 5px 12px;
    font-size: 9px;
  }

  .pie__wa {
    flex-direction: column;
    gap: 18px;
    padding: 26px 20px;
    text-align: center;
  }

  .pie__wa p {
    font-size: 19px;
  }

  .pie__wa_btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .pie__cols {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 36px 0 40px;
  }

  .pie__marca {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pie__marca img {
    align-self: center;
  }

  .pie__marca p {
    text-align: center;
  }

  .pie__dato {
    align-items: center;
    text-align: center;
  }

  .pie__fila {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  .pie__fila img {
    margin: 0 auto;
  }

  .pie__barra_fila {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .pie__barra_fila p {
    text-align: center;
  }

  .pie__redes {
    justify-content: center;
  }
}

/* ---------- Pestañas del curso (.duo): tablet y celular ---------- */
@media (max-width: 860px) {
  .duo {
    --barra: 70px;
  }

  .duo__tabs label {
    font-size: 13px;
  }

  /* En pantalla angosta los paneles se apilan y el más alto dejaría un vacío enorme: se muestra uno a la vez */
  .duo__contenido {
    display: block;
    min-height: 0;
    padding: 28px 22px;
  }

  .duo__panel {
    display: none;
  }

  #ct-duracion:checked ~ .duo__contenido #dp-duracion,
  #ct-programa:checked ~ .duo__contenido #dp-programa,
  #ct-beneficios:checked ~ .duo__contenido #dp-beneficios {
    display: block;
  }

  .duo .duracion {
    grid-template-columns: repeat(2, 1fr);
  }

  .duo .ico_grid {
    grid-template-columns: 1fr 1fr;
  }

  .duo .duracion__cuerpo strong {
    font-size: 84px;
  }
}

@media (max-width: 700px) {
  .duo {
    --borde: 10px;
    --barra: 60px;
    border-radius: 28px;
  }

  .duo__tabs label {
    font-size: 11.5px;
    letter-spacing: 0.2px;
  }

  .duo__top {
    border-bottom-right-radius: 22px;
  }

  .duo__bottom {
    border-bottom-left-radius: 22px;
  }

  .duo__contenido {
    padding: 22px 12px 16px;
  }

  .duo .duracion {
    max-width: 340px;
    margin: 0 auto;
    gap: 10px;
  }

  .duo .duracion__cuerpo strong {
    font-size: 72px;
  }

  .duo .ico_grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .duo__tabs label {
    font-size: 10.5px;
    letter-spacing: 0;
  }
}

/* ==========================================================================
   VISOR 3D / 360° DEL DIPLOMA
   Solo el diploma flotando sobre la página y un botón para salir (sin recuadro).
   Frente = certificado de estudios, reverso = registro académico (img/certificado/*-3d.webp).
   Las dos imágenes son recortes con marco alineado: al voltear, el marco coincide y el birrete
   queda en la esquina opuesta. El grosor se simula con capas negras (.visor-3d__capa).
   ========================================================================== */
.btn--ver-diploma {
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 204, 0, 0.35);
}

.certificacion__botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (max-width: 768px) {
  .certificacion__botones {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
    margin-top: 22px;
  }

  .certificacion__botones .btn {
    width: 100%;
    max-width: 280px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
  }
}

.certificacion__imagen_wrap {
  position: relative;
  width: 100%;
}

.certificacion__overlay_btn {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--amarillo);
  border-radius: 999px;
  background: rgba(21, 64, 61, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.certificacion__overlay_btn:hover {
  background: var(--amarillo);
  color: var(--verde);
  transform: translateX(-50%) scale(1.04);
}

.certificacion__overlay_icono {
  display: inline-block;
  font-size: 14px;
  animation: girarSuave 4s linear infinite;
}

@keyframes girarSuave {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Capa a pantalla completa ---------- */
.modal-diploma {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.modal-diploma[hidden] {
  display: none !important;
}

/* Velo suave: oscurece lo justo para que el diploma resalte, sin tapar la página */
.modal-diploma__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 22, 0.76);
  backdrop-filter: blur(5px);
  animation: fadeInModal 0.25s ease forwards;
}

/* Sin fondo ni borde: solo agrupa el diploma y el botón */
.modal-diploma__contenedor {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 900px;
  animation: popInModal 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popInModal {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-diploma__salir {
  padding: 13px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--amarillo);
  color: var(--verde);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.modal-diploma__salir:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}

/* ---------- Escenario 3D ---------- */
.visor-3d {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 520px;
  perspective: 1600px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.visor-3d:active {
  cursor: grabbing;
}

/* La escena tiene la proporción de las imágenes (1216 x 765) */
.visor-3d__escena {
  position: relative;
  flex: none; /* sin esto el flex la encoge y deja de calzar con la imagen */
  width: 800px;
  height: 503px;
  transform-style: preserve-3d;
}

.visor-3d__objeto {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.05s linear;
}

.visor-3d__objeto.is-animating {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.visor-3d__cara {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.visor-3d__cara img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
}

.visor-3d__cara--frontal {
  transform: translateZ(4px);
}

.visor-3d__cara--trasera {
  transform: rotateY(180deg) translateZ(4px);
}

/* Grosor: la silueta del frente en negro, apilada entre las dos caras */
.visor-3d__capa {
  position: absolute;
  inset: 0;
  background: var(--cara-frente) center / 100% 100% no-repeat;
  filter: brightness(0);
  opacity: 0.9;
  transform: translateZ(var(--z));
}

/* Sombra de piso: fija, no gira con el diploma */
.visor-3d__sombra {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 56%;
  height: 26px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  filter: blur(7px);
  transform: translateX(-50%);
  pointer-events: none;
}

@media (max-width: 860px) {
  .visor-3d {
    height: 430px;
  }

  .visor-3d__escena {
    width: 640px;
    height: 403px;
  }
}

@media (max-width: 640px) {
  .modal-diploma {
    padding: 12px;
  }

  .visor-3d {
    height: 320px;
  }

  /* Más ancha que la pantalla a propósito: los costados son margen transparente de la imagen */
  .visor-3d__escena {
    width: 400px;
    height: 252px;
  }

  .modal-diploma__salir {
    padding: 12px 28px;
    font-size: 13px;
  }
}

/* ---------- Variante Vertical (Certificado de Notas) ---------- */
.visor-3d--vertical {
  height: 580px;
}

.visor-3d__escena--vertical {
  width: 360px;
  height: 510px;
}

.visor-3d__cara--notas {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.visor-3d__cara--blanca {
  background: #fafaf8;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.visor-3d__capa--blanca {
  filter: brightness(0.96) grayscale(1);
  opacity: 0.95;
}

@media (max-width: 860px) {
  .visor-3d--vertical {
    height: 500px;
  }

  .visor-3d__escena--vertical {
    width: 310px;
    height: 440px;
  }
}

@media (max-width: 640px) {
  .visor-3d--vertical {
    height: 440px;
  }

  .visor-3d__escena--vertical {
    width: 250px;
    height: 354px;
  }
}

/* ---------- Widget Flotante Asesoras Atención al Alumno (Dalia & Nicole) ---------- */
.asesora-flotante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: "Lato", sans-serif;
}

/* Globo de diálogo con selector */
.asesora-globo {
  position: relative;
  width: 325px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 16px 18px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.asesora-globo.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Aviso compacto en celular: solo indica que hay un mensaje, sin tapar la landing */
.asesora-globo__mini-aviso {
  display: none;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
}

.asesora-globo__mini-icono {
  font-size: 18px;
  flex-shrink: 0;
}

.asesora-globo__mini-texto {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--verde-2, #15403d);
  line-height: 1.3;
}

.asesora-globo.asesora-globo--mini {
  width: auto;
  max-width: 230px;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.asesora-globo.asesora-globo--mini .asesora-globo__cabecera,
.asesora-globo.asesora-globo--mini .asesora-globo__escribiendo,
.asesora-globo.asesora-globo--mini .asesora-globo__mensaje {
  display: none !important;
}

.asesora-globo.asesora-globo--mini .asesora-globo__mini-aviso {
  display: flex;
}

.asesora-globo__cerrar {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px;
  transition:
    color 0.2s,
    transform 0.2s;
  z-index: 10;
}

.asesora-globo__cerrar:hover {
  color: #111;
  transform: scale(1.15);
}

.asesora-globo__cabecera {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f2f5;
}

.asesora-globo__online {
  width: 10px;
  height: 10px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
  animation: pulsoOnline 2s infinite;
  flex-shrink: 0;
}

@keyframes pulsoOnline {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.asesora-globo__cabecera strong {
  display: block;
  font-size: 14.5px;
  color: var(--verde-2, #15403d);
  font-weight: 900;
  line-height: 1.2;
}

.asesora-globo__cabecera small {
  display: block;
  font-size: 11.5px;
  color: #667781;
  margin-top: 2px;
}

.asesora-intro {
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
  margin: 0 0 12px;
}

/* Estado Escribiendo estilo WhatsApp */
.asesora-globo__escribiendo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
}

.asesora-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f2f5;
  padding: 8px 12px;
  border-radius: 16px;
}

.asesora-typing-dots span {
  width: 7px;
  height: 7px;
  background-color: #25d366;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.4;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.asesora-typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.asesora-typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}
.asesora-typing-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.3;
  }
  40% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.asesora-typing-label {
  font-size: 13px;
  color: #667781;
  font-style: italic;
}

/* Revelado del Selector de Asesoras */
.asesora-globo__mensaje.is-animating-in {
  animation: mensajeEntrada 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mensajeEntrada {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lista de Asesoras (Cards Interactivas) */
.asesoras-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.asesora-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.asesora-item:hover {
  background: #ffffff;
  border-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.18);
}

.asesora-item__avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
}

.asesora-item__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #25d366;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: block;
}

.asesora-item__dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #25d366;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.asesora-item__info {
  flex: 1;
  min-width: 0;
}

.asesora-item__nombre {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.asesora-item__cargo {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  margin-bottom: 4px;
}

.asesora-item__action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #128c7e;
  background: rgba(37, 211, 102, 0.12);
  padding: 3px 8px;
  border-radius: 20px;
  transition:
    background 0.2s,
    color 0.2s;
}

.asesora-item:hover .asesora-item__action {
  background: #25d366;
  color: #ffffff;
}

.asesora-item__arrow {
  font-size: 20px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
  transition:
    transform 0.2s,
    color 0.2s;
}

.asesora-item:hover .asesora-item__arrow {
  transform: translateX(3px);
  color: #25d366;
}

.asesora-globo__pie {
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.asesora-pie__badge {
  font-size: 11px;
  color: #166534;
  font-weight: 600;
  display: inline-block;
}

/* ---------- Botón Flotante Dual (Launcher con 2 Avatares) ---------- */
.asesora-trigger {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.asesora-trigger:hover {
  transform: scale(1.08);
}

.asesora-trigger__stack {
  position: relative;
  width: 92px;
  height: 68px;
  display: flex;
  align-items: center;
}

.asesora-trigger__circle {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  background: #ffffff;
  transition: transform 0.2s ease;
}

/* Dalia (Atrás / Izquierda) */
.asesora-trigger__circle--dalia {
  left: 0;
  top: 6px;
  width: 54px;
  height: 54px;
  z-index: 1;
  border-color: #e2e8f0;
}

/* Nicole (Adelante / Derecha) */
.asesora-trigger__circle--nicole {
  right: 0;
  top: 0;
  width: 62px;
  height: 62px;
  z-index: 2;
  border-color: #25d366;
}

.asesora-trigger:hover .asesora-trigger__circle--dalia {
  transform: translateX(-4px);
}

.asesora-trigger:hover .asesora-trigger__circle--nicole {
  transform: translateX(4px);
}

.asesora-trigger__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asesora-trigger__indicador {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: #25d366;
  border: 2px solid #fff;
  border-radius: 50%;
  z-index: 3;
}

.asesora-trigger__wa-badge {
  position: absolute;
  bottom: -2px;
  left: 20px;
  background: #25d366;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 4;
}

.asesora-trigger__onda {
  position: absolute;
  top: -2px;
  left: 10px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  z-index: 0;
  animation: ondaAvatar 2.2s infinite;
  pointer-events: none;
}

@media (max-width: 600px) {
  .asesora-flotante {
    bottom: 16px;
    right: 16px;
  }
  .asesora-globo {
    width: calc(100vw - 32px);
    max-width: 330px;
  }
  .asesora-trigger__stack {
    width: 82px;
    height: 60px;
  }
  .asesora-trigger__circle--dalia {
    width: 48px;
    height: 48px;
    top: 6px;
  }
  .asesora-trigger__circle--nicole {
    width: 54px;
    height: 54px;
    top: 2px;
  }
}

/* ==========================================================================
   DURACIÓN DEL CURSO (clases pd-)
   Usa la paleta de la página: --verde, --verde-2, --amarillo, --fondo
   ========================================================================== */

.pd {
  padding: 72px 0 80px;
  background: #fff;
}

.pd__cabecera {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.pd__sub {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.pd__sub strong {
  color: var(--verde-2);
}

.pd2__tarjetas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pd2__tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px; /* espacio para las anillas del calendario */
  border: 1px solid #dbe6e3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(21, 64, 61, 0.06);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Cada tarjeta es una hoja de calendario: cabecera verde con anillas, número grande y franja inferior */
.pd2__cabeza {
  position: relative;
  align-self: stretch;
  padding: 16px 10px 12px;
  border-radius: 13px 13px 0 0;
  background: var(--verde-2);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.pd2__cabeza::before,
.pd2__cabeza::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 9px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 5px;
  background: var(--amarillo);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.pd2__cabeza::before {
  left: 24%;
}

.pd2__cabeza::after {
  right: 24%;
}

.pd2__tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(21, 64, 61, 0.12);
}

.pd2__num {
  margin-top: 24px;
  color: var(--verde);
  font-family: "Bebas Neue", sans-serif;
  font-size: 78px;
  font-weight: 400;
  line-height: 1;
}

.pd2__unidad {
  margin-top: 2px;
  margin-bottom: 28px;
  color: var(--verde-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pd2__incluye {
  margin-top: 44px;
  padding: 28px 30px;
  border: 1px solid #dbe6e3;
  border-radius: 14px;
  background: var(--fondo);
}

.pd2__incluye h3 {
  margin-bottom: 20px;
  color: var(--verde-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-align: center;
  text-transform: uppercase;
}

.pd2__lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
}

.pd2__lista li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--verde);
  font-size: 14.5px;
  font-weight: 700;
}

.pd2__lista svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--verde-2);
}

@media (max-width: 1040px) {
  .pd2__tarjetas,
  .pd2__lista {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pd {
    padding: 52px 0 58px;
  }
}

@media (max-width: 560px) {
  .pd2__tarjetas {
    gap: 12px;
  }

  .pd2__num {
    font-size: 60px;
  }

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

/* ==========================================================================
   SECCIÓN INDEPENDIENTE: BENEFICIOS (IMAGEN 1 MOCKUP)
   ========================================================================== */
.seccion-beneficios {
  padding: 70px 0 85px;
  background: #ffffff;
}

.beneficios-header {
  margin-bottom: 50px;
  text-align: center;
}

.beneficios-titulo {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  color: #15403d;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Beneficios: en PC es una cuadrícula de 3 columnas sin carrusel; el carrusel solo se activa en celular (más abajo) */
.beneficios-carrusel {
  margin-top: 56px;
}

.beneficios-carrusel .beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 76px 24px;
  padding: 0;
  overflow: visible;
}

.beneficios-grid .beneficio-card {
  flex: none;
}

/* Flechas bien visibles: círculo verde sólido con flecha blanca (solo se ven cuando hay carrusel) */
.beneficios-carrusel .carrusel__flecha {
  top: 55%;
  width: 52px;
  height: 52px;
  background: var(--verde-2);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(21, 64, 61, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}

.beneficios-carrusel .carrusel__flecha:hover {
  background: var(--amarillo);
  color: var(--verde);
  transform: scale(1.08);
}

.beneficios-carrusel .carrusel__flecha--izq {
  left: 2px;
}

.beneficios-carrusel .carrusel__flecha--der {
  right: 2px;
}

.beneficios-carrusel .carrusel__puntos button {
  background: #c3d2ce;
}

.beneficios-carrusel .carrusel__puntos button.is-activo {
  background: var(--verde-2);
}

.carrusel__puntos[hidden] {
  display: none;
}

.beneficio-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}

/* Flechas bien visibles: círculo verde sólido con flecha blanca */
.beneficios-carrusel .carrusel__flecha {
  top: 55%;
  width: 52px;
  height: 52px;
  background: var(--verde-2);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(21, 64, 61, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}

.beneficios-carrusel .carrusel__flecha:hover {
  background: var(--amarillo);
  color: var(--verde);
  transform: scale(1.08);
}

.beneficios-carrusel .carrusel__flecha--izq {
  left: -26px;
}

.beneficios-carrusel .carrusel__flecha--der {
  right: -26px;
}

.beneficios-carrusel .carrusel__puntos button {
  background: #c3d2ce;
}

.beneficios-carrusel .carrusel__puntos button.is-activo {
  background: var(--verde-2);
}

.beneficio-card {
  background: #ffffff;
  border: 1.5px solid #15403d;
  border-radius: 6px;
  padding: 60px 24px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 4px 16px rgba(21, 64, 61, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.beneficio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(21, 64, 61, 0.12);
  border-color: #006764;
}

.beneficio-card__circulo {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid #e59819;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(229, 152, 25, 0.22);
  z-index: 2;
}

.beneficio-card__circulo svg {
  width: 34px;
  height: 34px;
}

.beneficio-card__titulo {
  font-family: "Lato", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #15403d;
  margin: 0 0 12px;
  line-height: 1.25;
  text-transform: none;
}

.beneficio-card__titulo--bold {
  display: block;
  font-weight: 900;
  font-size: 24px;
  color: #15403d;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.beneficio-card__texto {
  font-family: "Lato", sans-serif;
  font-size: 17px;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

.beneficio-card__texto a {
  color: #1a73e8;
  font-weight: 700;
  text-decoration: underline;
}

/* Beneficios dentro de la sección del curso */
.duracion-bloque {
  margin-top: 56px;
}

.beneficios-bloque {
  margin-top: 72px;
}

/* Responsive de Beneficios */
@media (max-width: 1040px) {
  .beneficios-carrusel .beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Celular: carrusel de 1 tarjeta con autoplay (el script lo mueve) */
@media (max-width: 768px) {
  .beneficios-carrusel .beneficios-grid {
    display: flex;
    grid-template-columns: none;
    gap: 24px;
    padding: 58px 4px 14px;
    overflow-x: auto;
  }

  .beneficios-grid .beneficio-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .beneficios-carrusel .carrusel__flecha {
    width: 46px;
    height: 46px;
  }
}

/* Títulos de sección: un solo tamaño en toda la landing */
.listado__cabecera .titulo,
.catalogo__titulo,
.inicios__titulo,
.historias__titulo,
.galeria__titulo,
.otros__titulo,
.pd__cabecera .titulo,
.beneficios-titulo,
.certificacion h2 {
  font-size: 36px;
}
@media (max-width: 768px) {
  .listado__cabecera .titulo,
  .catalogo__titulo,
  .inicios__titulo,
  .historias__titulo,
  .galeria__titulo,
  .otros__titulo,
  .pd__cabecera .titulo,
  .beneficios-titulo,
  .certificacion h2 {
    font-size: 28px;
  }
}

/* ==========================================================================
   NAVEGACIÓN: ACCIONES (CONTACTO + AULA VIRTUAL)
   ========================================================================== */
.nav__acciones {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__contacto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 10px;
  background: var(--amarillo);
  color: var(--verde);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.4px;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(229, 152, 25, 0.35);
}

.nav__contacto:hover {
  transform: translateY(-2px);
  background: #f7aa28;
  color: var(--verde);
}

@media (max-width: 900px) {
  .nav__acciones {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .nav__contacto,
  .nav__aula {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   SECCIÓN DE CONTACTO & FORMULARIO INSTITUCIONAL IFEEP (PREMIUM STYLING)
   ========================================================================== */
.contacto-seccion {
  padding: 95px 0 100px;
  background: linear-gradient(180deg, #f4f9f7 0%, #e8f4f0 100%);
  position: relative;
  overflow: hidden;
}

.contacto-seccion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #15403d 0%, #e59819 50%, #15403d 100%);
}

.contacto-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 56px;
}

.contacto-header__kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 900;
  color: #c97d09;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(229, 152, 25, 0.14);
}

.contacto-header__titulo {
  font-family: "Lato", sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #15403d;
  line-height: 1.18;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.contacto-header__raya {
  width: 76px;
  height: 4px;
  background: #e59819;
  border-radius: 4px;
  margin: 16px auto 18px;
}

.contacto-header__sub {
  font-family: "Lato", sans-serif;
  font-size: 17.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  align-items: start;
}

/* Columna Izquierda: Información de Asesoras y Garantías */
.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contacto-info__bloque {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 10px 30px rgba(21, 64, 61, 0.08);
  border: 1.5px solid rgba(21, 64, 61, 0.1);
}

.contacto-info__bloque-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #f1f5f9;
}

.contacto-info__icono-top {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fef3c7;
  border: 1.5px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacto-info__titulo {
  font-family: "Lato", sans-serif;
  font-size: 19px;
  font-weight: 900;
  color: #15403d;
  margin: 0 0 2px;
  line-height: 1.25;
}

.contacto-info__sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.contacto-asesoras {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacto-asesora-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.contacto-asesora-card:hover {
  transform: translateY(-2px);
  border-color: #e59819;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(229, 152, 25, 0.18);
}

.contacto-asesora-card__foto-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.contacto-asesora-card__foto {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e59819;
  display: block;
}

.contacto-asesora-card__punto-online {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid #ffffff;
  animation: pulsoVerde 2s infinite;
}

@keyframes pulsoVerde {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.contacto-asesora-card__datos {
  flex: 1;
  min-width: 0;
}

.contacto-asesora-card__datos h4 {
  margin: 0 0 2px;
  font-family: "Lato", sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #15403d;
}

.contacto-asesora-card__cargo {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 5px;
}

.contacto-asesora-card__estado {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #166534;
  background: #dcfce7;
  padding: 3px 9px;
  border-radius: 999px;
}

.contacto-asesora-card__btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.contacto-asesora-card__btn-wa:hover {
  background: #1eb956;
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* Bloque de Garantías Oficiales */
.contacto-garantias-bloque {
  background: #15403d;
  color: #ffffff;
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 8px 24px rgba(21, 64, 61, 0.16);
}

.contacto-garantias-bloque__titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Lato", sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #e59819;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contacto-garantias-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacto-garantias-lista li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  color: #e2e8f0;
}

.contacto-garantias-lista svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contacto-garantias-lista strong {
  color: #ffffff;
}

/* Canales de Contacto Directo */
.contacto-info__canales {
  background: #0d2b29;
  color: #ffffff;
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacto-canal {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contacto-canal__icono {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(229, 152, 25, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contacto-canal strong {
  display: block;
  font-size: 12.5px;
  color: #e59819;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}

.contacto-canal span,
.contacto-canal a {
  font-size: 14.5px;
  color: #ffffff;
  line-height: 1.4;
  text-decoration: none;
}

.contacto-canal a:hover {
  text-decoration: underline;
  color: #f7aa28;
}

/* ==========================================================================
   COLUMNA DERECHA: TARJETA DEL FORMULARIO (ESTILADO PREMIUM)
   ========================================================================== */
.contacto-form-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 42px 44px;
  box-shadow:
    0 20px 45px rgba(21, 64, 61, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.04);
  border: 2px solid rgba(21, 64, 61, 0.1);
  border-top: 6px solid #e59819;
  position: relative;
}

.contacto-form-card__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.contacto-form-card__badge-top {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #15403d;
  background: #fef3c7;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid #fde68a;
  text-transform: uppercase;
}

.contacto-form-card__ssl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
}

.contacto-form-card__header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.contacto-form-card__titulo {
  font-family: "Lato", sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #15403d;
  margin: 0 0 8px;
  line-height: 1.25;
}

.contacto-form-card__bajada {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row--2cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-group label .req {
  color: #dc2626;
  font-weight: 900;
}

.form-group label small {
  font-size: 11.5px;
  color: #64748b;
  text-transform: none;
  font-weight: 500;
}

/* Input con Iconos Integrados */
.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  transition:
    color 0.2s ease,
    stroke 0.2s ease;
  z-index: 2;
}

.form-input-icon--top {
  top: 18px;
  transform: none;
}

.form-input-wrap input,
.form-input-wrap select,
.form-input-wrap textarea {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-family: "Lato", sans-serif;
  font-size: 15.5px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-sizing: border-box;
}

.form-input-wrap input::placeholder,
.form-input-wrap textarea::placeholder {
  color: #94a3b8;
  font-size: 14.5px;
}

.form-input-wrap:focus-within .form-input-icon {
  stroke: #006764;
  color: #006764;
}

.form-input-wrap input:focus,
.form-input-wrap select:focus,
.form-input-wrap textarea:focus {
  border-color: #006764;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 103, 100, 0.14);
}

.form-select-wrap select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2315403d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

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

/* Checkbox Políticas (Ley N° 29733) */
.form-group--checkbox {
  margin: 6px 0 4px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 6px 0;
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox__check {
  width: 22px;
  height: 22px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-checkbox input[type="checkbox"]:focus + .form-checkbox__check {
  box-shadow: 0 0 0 3px rgba(0, 103, 100, 0.2);
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox__check {
  background: #15403d;
  border-color: #15403d;
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox__check::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.form-checkbox__texto {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.45;
}

.btn-link-politicas {
  background: none;
  border: none;
  padding: 0;
  color: #006764;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.btn-link-politicas:hover {
  color: #e59819;
}

/* Botón Submit de Alto Impacto */
.btn--submit {
  padding: 18px 32px;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.8px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #ffcc00 0%, #e59819 100%);
  color: #15403d;
  border: none;
  box-shadow: 0 8px 24px rgba(229, 152, 25, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn--submit:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 30px rgba(229, 152, 25, 0.5);
}

.btn--submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn--submit__texto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn--submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.spinner-svg {
  animation: girarSuave 1s linear infinite;
}

/* Alertas de Respuesta AJAX */
.form-alerta {
  padding: 15px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 600;
}

.form-alerta--exito {
  background: #dcfce7;
  color: #14532d;
  border: 1.5px solid #86efac;
}

.form-alerta--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1.5px solid #fca5a5;
}

.contacto-garantia {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 0;
  text-align: center;
}

.contacto-garantia svg {
  flex-shrink: 0;
}

/* Responsive Sección de Contacto */
@media (max-width: 960px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contacto-header__titulo {
    font-size: 29px;
  }
}

@media (max-width: 640px) {
  .contacto-seccion {
    padding: 60px 0 65px;
  }

  .contacto-form-card {
    padding: 30px 20px 32px;
  }

  .form-row--2cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contacto-header__titulo {
    font-size: 24px;
  }

  .contacto-header__sub {
    font-size: 15px;
  }

  .contacto-asesora-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .contacto-asesora-card__btn-wa {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   MODAL DE POLÍTICAS DE PRIVACIDAD (LEY N° 29733)
   ========================================================================== */
.modal-politicas {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-politicas[hidden] {
  display: none;
}

.modal-politicas__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 28, 0.78);
  backdrop-filter: blur(5px);
}

.modal-politicas__contenedor {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEntrada 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEntrada {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-politicas__cabecera {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
  background: var(--verde, #15403d);
}

.modal-politicas__titulo {
  font-family: "Lato", sans-serif;
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 2px;
}

.modal-politicas__subtitulo {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-weight: 700;
}

.modal-politicas__cerrar {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #edf2f7;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  flex-shrink: 0;
}

.modal-politicas__cerrar:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-politicas__cuerpo {
  padding: 26px 28px;
  overflow-y: auto;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.65;
}

.modal-politicas__alerta {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.modal-politicas__alerta p {
  margin: 0;
  font-size: 14px;
  color: #166534;
}

.modal-politicas__cuerpo h4 {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #15403d;
  margin: 22px 0 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
}

.modal-politicas__cuerpo h4:first-of-type {
  margin-top: 0;
}

.modal-politicas__cuerpo p {
  margin: 0 0 10px;
}

.modal-politicas__cuerpo ul,
.modal-politicas__cuerpo ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.modal-politicas__cuerpo li {
  margin-bottom: 6px;
}

.modal-politicas__pie {
  padding: 16px 28px;
  border-top: 1.5px solid #e2e8f0;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.modal-politicas__pie .btn--borde {
  border-color: #dc2626;
  color: #dc2626;
}

.modal-politicas__pie .btn--borde:hover {
  background: #dc2626;
  color: #ffffff;
}

@media (max-width: 768px) {
  .modal-politicas__cabecera {
    padding: 16px 20px;
  }

  .modal-politicas__titulo {
    font-size: 15px;
    line-height: 1.35;
  }

  .modal-politicas__subtitulo {
    font-size: 12px;
    line-height: 1.4;
  }

  .modal-politicas__cuerpo {
    padding: 20px;
  }

  .modal-politicas__pie {
    padding: 14px 20px;
  }
}

/* ==========================================================================
   MODAL DE CONTACTO RÁPIDO (botón "Contactarme" del header)
   ========================================================================== */
.modal-contacto {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-contacto[hidden] {
  display: none;
}

.modal-contacto__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 28, 0.78);
  backdrop-filter: blur(5px);
}

.modal-contacto__contenedor {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  overflow: visible;
  animation: modalEntrada 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-contacto__titulo {
  font-family: "Lato", sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: var(--verde, #15403d);
  text-align: center;
  line-height: 1.3;
  margin: 0 0 26px;
}

.modal-contacto__cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #dc2626;
  background: #ffffff;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  flex-shrink: 0;
  z-index: 3;
}

.modal-contacto__cerrar:hover {
  background: #dc2626;
  color: #ffffff;
}

.modal-contacto__cuerpo {
  padding: 44px 32px 32px;
  overflow-y: auto;
  max-height: 92vh;
  border-radius: 28px;
}

.contacto-form--simple {
  gap: 14px;
}

.form-input-simple {
  width: 100%;
  padding: 15px 22px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-sizing: border-box;
}

.form-input-simple::placeholder {
  color: #64748b;
  font-weight: 600;
}

.form-input-simple:focus {
  border-color: var(--verde-2, #1b5148);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(27, 81, 72, 0.14);
}

.btn--pill {
  border-radius: 999px;
}

.modal-contacto__cuerpo .btn--submit {
  background: var(--verde-2, #1b5148);
  color: #ffffff;
  border-radius: 999px;
}

.modal-contacto__cuerpo .btn--submit:hover:not(:disabled) {
  box-shadow: 0 12px 30px rgba(27, 81, 72, 0.4);
}

@media (max-width: 560px) {
  .modal-contacto {
    padding: 14px;
    align-items: flex-start;
  }

  .modal-contacto__contenedor {
    max-width: 100%;
    margin-top: 28px;
  }

  .modal-contacto__cuerpo {
    padding: 38px 22px 24px;
  }

  .modal-contacto__titulo {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .form-input-simple {
    padding: 13px 18px;
    font-size: 14.5px;
  }
}

/* ==========================================================================
   Texto justificado: nombres de cursos y párrafos de las secciones
   (va al final para imponerse a los alineados centrados o a la izquierda de arriba)
   ========================================================================== */
.inicio_card h3,
.curso_card h3,
.otro_card h3,
.catalogo__lista li,
.noticias p,
.beneficio-card__texto {
  text-align: justify;
}

/* En las tarjetas de Próximos inicios el título ocupa todo el ancho para poder justificarse */
.inicio_card h3 {
  align-self: stretch;
}

/* Iconos de beneficios 30 % más grandes */
.beneficio-card__circulo svg {
  width: 44px;
  height: 44px;
}
