/* Tipografías personalizadas */
@font-face {
  font-family: "Poppins-SemiBold";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Roboto-Light";
  src: url("../fonts/Roboto-Light_0.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Roboto-Medium";
  src: url("../fonts/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Roboto-Bold";
  src: url("../fonts/Roboto-Bold_0.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Roboto-Regular";
  src: url("../fonts/Roboto-Regular_0.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lato-Light";
  src: url("../fonts/Lato-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Lato-Bold";
  src: url("../fonts/Lato-Black.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Bitter-Bold";
  src: url("../fonts/Bitter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Roboto-Regular", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: #e9e9e9;
  background-image: url("../assets/Fondo_1.png");
  background-repeat: repeat;
  background-size: auto;
}

main {
  overflow: hidden;
}

.section-padding {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Header y navegación */
.navbar-custom {
  background-color: transparent;
  backdrop-filter: none;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.navbar-brand-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand-logos img {
  height: 42px;
  width: auto;
}

.menu-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 255px;
  height: 76px;
  padding: 10px;
  padding-top: 3px;
  border: none;
  background-color: transparent;
  background-image: url("../assets/Boton_Normal.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: "Poppins-SemiBold", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease-out;
}

.menu-button:hover,
.menu-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background-image: url("../assets/Boton_Normal.png");
}

.menu-button:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

.navbar-nav .nav-item + .nav-item {
  margin-left: 0.5rem;
}

@media (min-width: 992px) {
  .navbar-nav .nav-item + .nav-item {
   margin-left: 0.3rem;
  }
}

/* Sección A – Slider */
.hero-slider {
  position: relative;
  min-height: 70vh;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item,
.hero-slider-image {
  height: 70vh;
}

@media (min-width: 768px) {
  .hero-slider .carousel-item {
    min-height: 75vh;
  }

  .hero-slider .carousel,
  .hero-slider .carousel-inner,
  .hero-slider .carousel-item,
  .hero-slider-image {
    height: 75vh;
  }
}

.hero-slider-image {
  position: relative;
  height: 100%;
}

.hero-slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider-overlay {
  position: absolute;
  inset: 0;
  background-image: url("../assets/Filtro_Img_1.png");
  background-repeat: repeat;
  background-size: cover;
  background-color: rgba(0, 70, 140, 0.55);
  opacity: 0.85;
  pointer-events: none;
}

.hero-slider-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-slider-content {
    padding: 0 3rem;
  }
}


.hero-slider-text-wrapper {
  max-width:820px;
  margin: 0 auto;
  text-align: left;
  pointer-events: auto;
}

/* Título del slider */
.hero-title {
  margin: 0;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}

.hero-title-line {
  display: block;
}

.hero-title-top {
  font-family: "Roboto-Light", system-ui, sans-serif;
  font-size: 5.4rem;
  letter-spacing: 0.04em;
}

.hero-title-middle {
  font-size: 8.2rem;
  line-height: 1;
  margin-top: 0.1em;
  margin-bottom: 0.1em;
}

.hero-title-prefix {
  font-family: "Roboto-Medium", system-ui, sans-serif;
  font-size: 0.52em;
  margin-right: 0.15em;
}

.hero-title-main {
  font-family: "Roboto-Bold", system-ui, sans-serif;
}

.hero-title-bottom {
  font-family: "Roboto-Medium", system-ui, sans-serif;
  font-size: 2rem;
}

@media (max-width: 767.98px) {
  .hero-title-top {
    font-size: 1.8rem;
  }

  .hero-title-middle {
    font-size: 3.2rem;
  }

  .hero-title-bottom {
    font-size: 1.6rem;
  }
}

.slider-control {
  width: 86px;
  height: 85px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border: none;
  display: block;
}

.slider-control-prev {
  background-image: url("../assets/Boton_Slider_1.png");
}

.slider-control-next {
  background-image: url("../assets/Boton_Slider_2.png");
}

.slider-control:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.carousel-control-prev,
.carousel-control-next {
  width: auto;
  padding: 0 1rem;
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-prev:focus,
.carousel-control-next:hover,
.carousel-control-next:focus {
  opacity: 1;
}


/* Sección B – Texto + imagen */
.section-b {
  position: relative;
  overflow: visible;
}

.section-b-text-col {
  text-align: left;
}

.section-b-text {
  font-family: "Bitter-Bold", system-ui, serif;
  font-size: 1.1rem;
  color: #002b4f;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}

@media (min-width: 992px) {
  .section-b-text {
    font-size: 1.7rem;
  }
}

.section-b-image img {
  width: 70%;
  height: auto;
}

.section-b-image {
  position: absolute;
  
  text-align: right;
}

.section-b-image img {
  width: 88vw;
  max-width: none;
}

@media (max-width: 991.98px) {
  .section-b {
    display: flex;
    align-items: center;
    min-height: 260px;
  }

  .section-b .row {
    width: 100%;
  }

  .section-b-text-col {
    text-align: center;
  }

  .section-b-image {
    display: none;
  }
}

@media (min-width: 992px) {
  .section-b .row {
    min-height: 320px;
  }

  .section-b-image {
    right: 4vw;
  }

  .section-b-image img {
    width: 62vw;
  }
}

/* Variante resultados – Sección B con filtro */
.section-b-resultados {
  position: relative;
}

.section-b-resultados::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/Filtro_Img_1.png");
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

/* Sección C – Video */
.section-video {
  position: relative;
  color: #ffffff;
}

/* Evita que el padding de section-padding deje ver el fondo general */
.section-video.section-padding {
  padding-top: 0;
  padding-bottom: 0;
}

.section-video-background {
  position: relative;
  min-height: 60vh;
}

.section-video-background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-video-overlay {
  position: absolute;
  inset: 0;
  background-image: url("../assets/Filtro_Img_1.png");
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.9;
}

.section-video-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .section-video-content {
    padding: 3rem;
  }
}

.section-video-play {
  position: absolute;
  top: 30%;
  left: 10vw;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.video-play-button {
  background-color: transparent;
  border: none;
  padding: 0;
}

.video-play-button img {
  width: 300px;
  height: auto;
}

.section-video-text {
  text-align: right;
  margin-right: 10vw;
}

.hero-title-video {
  text-align: right;
}

.hero-title-video .hero-title-top {
  font-size: 3.2rem;
}

.hero-title-video .hero-title-middle {
  font-size: 5.4rem;
}

.hero-title-video .hero-title-bottom {
  font-size: 1.8rem;
}

@media (max-width: 767.98px) {
  .hero-title-video .hero-title-top {
    font-size: 1.6rem;
  }

  .hero-title-video .hero-title-middle {
    font-size: 2.6rem;
  }

  .hero-title-video .hero-title-bottom {
    font-size: 1.4rem;
  }
  .video-play-button img {
    width: 140px;
    height: auto;
  }
}

/* Sección D – Información del programa */
.section-info-title-line-1 {
  font-family: "Roboto-Light", system-ui, sans-serif;
  font-size: 2.8rem;
  text-transform: uppercase;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
  color: #003a70;
}

.section-info-title-line-2 {
  font-family: "Roboto-Bold", system-ui, sans-serif;
  font-size: 3.2rem;
  text-transform: uppercase;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
  color: #003a70;
}

.section-info-body {
  font-family: "Roboto-Regular", system-ui, sans-serif;
  font-size: 0.98rem;
  color: #333333;
}

.section-info-list {
  padding-left: 1.25rem;
}

.section-info-label {
  font-family: "Roboto-Bold", system-ui, sans-serif;
  font-weight: 700;
}

.section-info-title-col {
  padding-left: 0;
}

.section-info-separator {
  display: none;
}

@media (min-width: 768px) {
  .section-info-separator {
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .section-info-separator img {
    width: 7px;
    height: 100%;
    max-height: none;
  }
}

@media (min-width: 992px) {
  .section-info-row {
    align-items: stretch;
  }
}

/* Página de resultados – secciones específicas */

/* Sección D resultados: Problema a intervenir */
.section-problema {
  position: relative;
  color: #ffffff;
}

.section-problema::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/Fondo_Pie_Pagina.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.95;
  z-index: -2;
}

.section-problema::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 40, 0.9),
    rgba(0, 0, 40, 0.7)
  );
  z-index: -1;
}

.section-problema .section-info-body {
  color: #f2f6ff;
}

.section-problema .section-info-body p,
.section-problema .section-info-body li {
  color: #f2f6ff;
}

/* Sección E resultados: Información general */
.section-info-general .section-info-body {
  color: #1f2933;
}

/* Sección F resultados: Objetivos y metodología */
.section-objetivos {
  position: relative;
}

.section-objetivos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/Filtro_Img_1.png");
  background-repeat: repeat;
  background-size: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.section-objetivos .section-info-body {
  color: #1f2933;
}

/* Sección G resultados: Resultados y material complementario */
.section-resultados {
  position: relative;
}

.section-resultados::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/Fondo_2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.95;
  z-index: -2;
}

.section-resultados::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 40, 0.2),
    rgba(0, 0, 40, 0.35)
  );
  z-index: -1;
}

.section-resultados .section-recorrido-title-line-1,
.section-resultados .section-recorrido-title-line-2 {
  color: #ffffff;
}

.section-resultados-popups .popup-card {
  background-color: #2f86d8;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.section-resultados-popups .popup-card .card-title,
.section-resultados-popups .popup-card .card-text {
  color: #ffffff;
}

.section-resultados-popups .popup-card a {
  color: #e5f3ff;
}

.section-resultados-popups .popup-card a:hover,
.section-resultados-popups .popup-card a:focus-visible {
  color: #ffffff;
}

@media (min-width: 992px) {
  /* Distribución tipo arco alrededor de la imagen central */
  .section-resultados-popups .row > div:nth-child(1),
  .section-resultados-popups .row > div:nth-child(5) {
    margin-top: 2.5rem;
  }

  .section-resultados-popups .row > div:nth-child(2),
  .section-resultados-popups .row > div:nth-child(4) {
    margin-top: 1.25rem;
  }
}

/* Sección E – Perfil del egresado */
.section-egresado {
  position: relative;
  color: #ffffff;
}

.section-egresado::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/Fondo_Seccion_1.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -2;
}

.section-egresado::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.section-egresado-title {
  font-family: "Roboto-Light", system-ui, sans-serif;
  font-size: 1.8rem;
}

.section-egresado-text {
  font-family: "Roboto-Light", system-ui, sans-serif;
  font-size: 0.98rem;
  text-align: justify;
}

.section-egresado-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* Sección F – Recorrido curricular */
.section-recorrido-title-line-1 {
  font-family: "Roboto-Light", system-ui, sans-serif;
  font-size: 2.8rem;
  text-transform: uppercase;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
  color: #003a70;
}

.section-recorrido-title-line-2 {
  font-family: "Roboto-Bold", system-ui, sans-serif;
  font-size: 3.2rem;
  text-transform: uppercase;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
  color: #003a70;
}

.section-recorrido-images img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.section-recorrido-images img + img {
  margin-top: 0.2rem;
}

/* Footer */
.footer {
  position: relative;
  color: #ffffff;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/Fondo_Seccion_1.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.95;
  z-index: -2;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;

  z-index: -1;
}

.footer-title {
  font-family: "Lato-Bold", system-ui, sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-text,
.footer-links a {
  font-family: "Lato-Light", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #e5e9f0;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  color: #ffffff;
}

.footer-social-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social-list img {
  width: 28px;
  height: 28px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

/* Utilidades */
.text-small {
  font-size: 0.9rem;
}

.visually-hidden-focusable:active,
.visually-hidden-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Overrides específicos para videos (inicio y resultados) */
.section-video-text,
.section-video-text * {
  color: #ffffff !important;
}
