.pagos-general {
    position: fixed;
    bottom: 2.3rem;
    right: 1.7rem;
    width: clamp(150px, 35vw, 230px);
    /* tamaño responsivo */
    z-index: 1000 !important;
}

.tiktok-general {
    position: fixed;
    bottom: 2.15rem;
    right: 15.4rem;
    width: clamp(190px, 46vw, 301px);
    /* tamaño responsivo */
    z-index: 1000 !important;
}

@media (max-width: 455px) {
    .tiktok-general {
        right: 11.4rem;
    }
}

.marca-agua {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: clamp(10px, 2.5vw, 15px);
    /* tamaño responsivo */
    z-index: 1000 !important;
    /* por encima de fondo, pero debajo de UI */
    pointer-events: none;
    /* no interfiere con clics */
    user-select: none;
}

@font-face {
  font-family: 'SF-Pro-Display-Light';
  src: url('fonts/SF-Pro-Display-Light.OTF') format('opentype');
}

.light {
  font-family: 'SF-Pro-Display-Light', sans-serif;
  font-weight: 200;
}

@font-face {
  font-family: 'SFProDisplay-Medium';
  src: url('fonts/SFProDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'SFProDisplay-Regular';
  src: url('fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
  font-weight: 400;
  font-style: normal;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.custom-bgpiepagina {
  background-color: #f5f5f7;
  color: #333;
  font-family: 'SF-Pro-Display-Light', sans-serif;
  letter-spacing: 0.5px;
}

.custom-bgpiepagina h3 {
  font-family: 'SFPRODISPLAYREGULAR', sans-serif;
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 15px;
  color: #000;
  letter-spacing: 0.5px;
}


.custom-bgpiepagina ul li a {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 200;
  transition: color 0.3s;
}

.custom-bgpiepagina ul li a:hover {
  color: #0077cc;
}

.footer-col-offset {
  padding-top: 38px;
}

.img-edificio-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
}

.img-piepagina {
  position: relative;
  z-index: 1;
  background: none;
  padding-bottom: 1rem;
}

.img-piepagina h3 {
  margin-bottom: 0.3rem;
  /* Reduce espacio debajo del título */
  line-height: 1;
  /* Ajusta la altura del texto */
}

.img-piepagina p {
  margin-bottom: 0.4px;
  /* Reduce espacio entre párrafos */
  line-height: 1.35;
  /* Compacta un poco las líneas */
}

.max-small {
  font-size: 12px;
}

@media (max-width: 1024px) {
  .overlay {
    display: none !important;
  }

  .curso-img {
    cursor: pointer;
  }
}

.curso-container {
  position: relative;
  display: inline-block;
}

.curso-img {
  width: 100%;
  cursor: pointer;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.curso-container:hover .overlay,
.curso-container.active .overlay {
  opacity: 1;
}

.overlay p {
  color: #fff;
  font-size: 18px;
  margin-bottom: 15px;
}

.botn {
  background: #0066cc;
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  margin: 6px;
  border-radius: 50px;
  font-size: 16px;
}

.botn:hover {
  background: #004999;
}

.imagen-informacion2 {
  width: clamp(100px, 23.4vw, 230px);
  height: auto;
}

.imagen-informacion2:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  display: inline-block;
}

/* margen de anclaje*/
.titulos-general {
  scroll-margin-top: clamp(3.5rem, 7vw, 6rem);
}

.sticky-menu {
  z-index: 1000 !important;
  position: sticky;
  top: 0;
  background: #f5f5f7;
  transition: background 0.3s ease;
  pointer-events: none;
}

.sticky-menu.visible {
  background: white;
  /* cuando aparece */
  pointer-events: auto;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* El contenido interno empieza invisible */
.sticky-menu .container {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sticky-menu.visible .container {
  opacity: 1;
}

@media (max-width: 991.98px) {
  body {
    overflow-x: hidden;
  }

  .sticky-menu {
    display: none;
    /* Oculta el menú sticky en móviles y tablets pequeñas */
  }
}

.enlaces-secundarios {
  padding-top: 2.7rem;
}

.forta {
  position: relative;
}

.forta::before {
  content: "";
  display: block;
  height: clamp(1rem, 10vw, 20rem);
}

.prueba-contenedor {
  font-family: 'SF Pro Display Thin', sans-serif;
  font-weight: 200;
  gap: 0.5rem;
  font-size: clamp(0.95rem, 1.1vw, 1.3rem);
  height: clamp(3rem, 6vw, 5rem);
  /* Altura visible */
}

.espacio-dinamico {
  padding-bottom: clamp(2rem, 27vw, 40rem);
}

.espacio-dinamico2 {
    padding-bottom: clamp(2rem, 5vw, 10rem);
}

.custom-bg {
  background-image: url("/images/nuevoproyecto/prininstec.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  padding-top: 3rem;
}


.titulos-general {
  display: inline-block;
  transform-origin: left center;
  z-index: 10;
  position: relative;
  font-size: clamp(2rem, 4vw, 5rem);
  font-family: "SF Pro Display", sans-serif;
  font-weight: bold;
  text-align: start;
}

html {
  overflow-x: hidden;
}

.contenedor-animado {
  overflow: visible;
  position: relative;
  display: inline-block;
}

.imagen-informacion {
  width: 16vw;
  min-width: 70px;
  max-width: 400px;
  height: auto;
}

.logo-fixed {
  position: fixed;
  top: 0;
  right: clamp(10px, 5vw, 50px);
  z-index: 1050;
  width: 280px;
  max-width: 25vw;
  height: auto;
  padding: 0px;
}

@media (max-width: 767px) {
  .logo-fixed {
    max-width: 25vw;
  }
}


.secciones {
  padding-bottom: clamp(1rem, 6vw, 2rem);
}


@media (max-width: 768px) {
  .espacio-horizontal-sm {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.btn-cerrar-hogar {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1055;
  background: transparent;
  border: none;
}

@media (max-width: 768px) {
  .btn-cerrar-hogar {
    top: 0.5rem;
  }
}

/* Modal dialog general */
#popupModalPanaderia .modal-dialog,
#popupModalCocina .modal-dialog,
#popupModalModisteria .modal-dialog,
#popupModalBelleza .modal-dialog,
#popupModalManualidades .modal-dialog {
  width: 55% !important;
  max-width: 600px;
  margin: 5vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ajuste especial para celulares */
@media (max-width: 768px) {

  #popupModalPanaderia .modal-dialog,
  #popupModalCocina .modal-dialog,
  #popupModalModisteria .modal-dialog,
  #popupModalBelleza .modal-dialog,
  #popupModalManualidades .modal-dialog {
    width: 90% !important;
    max-width: 95%;
  }
}

/* Modal content transparente */
#popupModalPanaderia .modal-content,
#popupModalCocina .modal-content,
#popupModalModisteria .modal-content,
#popupModalBelleza .modal-content,
#popupModalManualidades .modal-content {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Modal body sin scroll interno */
#popupModalPanaderia .modal-body,
#popupModalCocina .modal-body,
#popupModalModisteria .modal-body,
#popupModalBelleza .modal-body,
#popupModalManualidades .modal-body {
  overflow: hidden;
  padding: 0;
}

/* Control del iframe general */
#popupModalPanaderia .modal-body iframe,
#popupModalCocina .modal-body iframe,
#popupModalModisteria .modal-body iframe,
#popupModalBelleza .modal-body iframe,
#popupModalManualidades .modal-body iframe {
  width: 100%;
  height: 85vh;
  max-height: 85vh;
  border: none;
  object-fit: contain;
}

@media (max-height: 700px) {

  #popupModalPanaderia .modal-body iframe,
  #popupModalCocina .modal-body iframe,
  #popupModalModisteria .modal-body iframe,
  #popupModalBelleza .modal-body iframe,
  #popupModalManualidades .modal-body iframe {
    height: 80vh;
    max-height: 80vh;
  }
}

@media (max-height: 600px) {

  #popupModalPanaderia .modal-body iframe,
  #popupModalCocina .modal-body iframe,
  #popupModalModisteria .modal-body iframe,
  #popupModalBelleza .modal-body iframe,
  #popupModalManualidades .modal-body iframe {
    height: 75vh;
    max-height: 75vh;
  }
}

@media (max-height: 500px) {

  #popupModalPanaderia .modal-body iframe,
  #popupModalCocina .modal-body iframe,
  #popupModalModisteria .modal-body iframe,
  #popupModalBelleza .modal-body iframe,
  #popupModalManualidades .modal-body iframe {
    height: 70vh;
    max-height: 70vh;
  }
}

.btn-cerrar-ingles {
  position: absolute;
  top: 78%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

@media (max-width: 768px) {
  .btn-cerrar-ingles {
    top: 35%;
  }
}

.menu-line {
  border-bottom: 1px solid #dadadc;
  display: inline-flex;
  padding-bottom: 3px;
}

.menu-title {
  font-family: "SF Pro Display", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.submenu {
  font-family: "SF Pro Display", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(0.8rem, 2vw, 1.2rem);
}

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

.menu-title {
  padding-left: 0rem;
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: clamp(1.3rem, 2vw, 2rem);
  padding-right: 0.5rem;
}

.menu.collapsed .toggle-icon {
  transform: rotate(0deg);
}

.menu:not(.collapsed) .toggle-icon {
  transform: rotate(180deg);
}

.modal.fade .modal-dialog {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.fade.show .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.botones-wrapper {
  position: relative;
  display: inline-block;
}

.btn-overlay {
  position: absolute;
  width: 48px;
  height: 48px;
  background-color: transparent;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn1 {
  top: 53%;
  left: 67%;
}

.btn2 {
  top: 36%;
  left: 76%;
}

@media (max-width: 768px) {
  .btn-overlay {
    width: 73px;
    height: 20px;
  }

  .btn1 {
    top: 53%;
    left: 58%;
  }

  .btn2 {
    top: 37%;
    left: 66%;
  }
}

.modal-dialog.modal-custom {
  max-width: 1100px !important;
  width: 90% !important;
}

.modal-content {
  max-height: 90vh;
  border-radius: 20px;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.modal-body iframe {
  height: 57vh;
  width: 100%;
  border: none;
  display: block;
}

.btn-close {
  z-index: 1055;
}

.cursoslibres-container {
  position: relative;
  width: 100%;
  margin: auto;
}

.cursoslibres-container img {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.point {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  background-color: transparent;
  z-index: 10;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.point1 {
  top: 37.9%;
  left: 84.3%;
}

.point2 {
  top: 55.1%;
  left: 84.5%;
}

.point3 {
  top: 89.35%;
  left: 84.8%;
}

.point4 {
  top: 72%;
  left: 84.65%;
}

@media (max-width: 768px) {
  .point {
    width: 20px;
    height: 20px;
  }
}

@font-face {
  font-family: "SF Pro Display";
  src: url("../fonts/SFPRODISPLAYREGULAR.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("../fonts/SFPRODISPLAYBOLD.OTF") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("../fonts/SFPRODISPLAYBLACKITALIC.OTF") format("opentype");
  font-weight: 900;
  font-style: italic;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("/fonts/SFPRODISPLAYSEMIBOLDITALIC.OTF") format("opentype");
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("/fonts/SF-Pro-Display-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

body {
  font-family: "SF Pro Display", sans-serif;
}

.programas-title {
  padding-top: clamp(3rem, 10vw, 20rem);
  padding-bottom: clamp(1rem, 4vw, 3rem);
  overflow: hidden;
  /* permite que el h1 salga si escala */
  position: relative;
}

#cursoslibres {
  margin-bottom: 8rem;
}

#cursoslibres-municipios {
  margin-bottom: 8rem;
  background-color: #ffffff;
}

.scroll-bg {
  background-color: #f5f5f7;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 60px;
  padding: 8px;
  padding-bottom: 34px;
  background-color: #f5f5f7;

  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.05) rgba(0, 0, 0, 0.01);
}

.scroll-container a.disabled-link {
  cursor: default;
  pointer-events: none;
}

.scroll-item {
  aspect-ratio: 2.7 / 5;
  width: clamp(10rem, 25vw, 18rem);
  transition: width 0.4s ease, height 0.4s ease;
}

#scrollContainer2 {
  background-color: #f5f5f7;


}

.scroll-item2 {
  aspect-ratio: 1 / 1;
  width: 30vw;
  max-width: 30rem;
  min-width: 13rem;
  transition: width 0.4s ease, height 0.4s ease;
}

@media (max-width: 768px) {
  .p2 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-top: -0.7rem;
    text-align: center;
  }
}

#municipios-bg {
  background-color: white;
}

.img-portada img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
}

.custom-container-padding {
  padding-top: clamp(3rem, 6.5vw, 12rem);
}

.container {
  margin-top: 0;
  padding-top: 0;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  padding: 2rem 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1040;
  overflow-y: auto;
}

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

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu a {
  text-decoration: none;
  color: #000;
  font-size: 1.2rem;
}


#menu-toggle {
  position: fixed !important;
  top: 1.5rem !important;
  right: 1rem !important;
  width: 50px !important;
  height: 30px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1050;
}

#menu-toggle.open {
  gap: 2px !important;
}

#menu-toggle .bar {
  width: 28px !important;
  height: 4px !important;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center !important;
}

/* Estado abierto: desaparecer barras de los extremos y cruzar las centrales */
#menu-toggle.open .bar:nth-child(1),
#menu-toggle.open .bar:nth-child(4) {
  opacity: 0;
  /* desaparecen */
}

#menu-toggle.open .bar:nth-child(2) {
  transform: rotate(45deg);
  width: 50px !important;
}

#menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg);
  width: 50px !important;
}

/* Ajustes responsivos */
@media (max-width: 634px) {
  #menu-toggle {
    font-size: 1rem;
    top: 3.5rem;
  }
}

@media (min-width: 768px) and (max-width: 813px) {
  #menu-toggle {
    top: 5rem;
  }
}

/* Quitar borde y fondo del botón */
.btn.btn-outline-secondary {
  border: none;
  background: none !important;
  box-shadow: none;
}

/* Evitar cambio de color al hacer clic o hover */
.btn.btn-outline-secondary:hover,
.btn.btn-outline-secondary:focus,
.btn.btn-outline-secondary:active {
  background: none !important;
  color: inherit;
  /* Mantiene el color del texto */
}

/* Transición suave entre íconos */
#menu-toggle {
  transition: transform 0.3s ease;
}

.custom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  color: black;
  background-color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  z-index: 1056;
}

body.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
  /* evita que se mueva el contenido */
}

#popupModal .modal-content img {
  width: 100%;
  height: auto;
  display: block;
}