/* ========================================================
   BEST Valencia Course - Monsters University (MU) Theme
   Archivo: SG.css
   ======================================================== */

/* Declaración de fuentes locales */
@font-face {
  font-family: 'MU Collegiate';
  src: url('./Fuentes/MonstersUniversity-Collegiate.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'MU PhysicsLab';
  src: url('./Fuentes/MonstersUniversity-PhysicsLab.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'MU CampusText';
  src: url('./Fuentes/MonstersUniversity-CampusText.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@media all {
  :root {
    --mu_spring_navy: #0B3254;
    --mu_spring_blue: #1472B8;
    --mu_electric_blue: #0EA5E9;
    --mu_gold: #FBB03B;
    --mu_sulley_teal: #1DB9C3;
    --mu_mike_green: #70C13D;
    --mu_cream: #FAF9F6;

    --color_barra: var(--mu_spring_navy);
  }

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

  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--mu_spring_navy);
  }

  h1, h2, h3, h4, h5 {
    font-family: 'MU Collegiate', serif;
    color: var(--mu_cream);
    letter-spacing: 0.5px;
  }

  p {
    color: var(--mu_cream);
    font-family: 'MU CampusText', sans-serif;
    line-height: 1.6;
  }

  .separador_sw {
    display: flex;
    justify-content: center;
    text-align: center;
    height: 6px;
    background: linear-gradient(to right, var(--mu_spring_blue), var(--mu_mike_green), var(--mu_gold));
    width: 100%;
  }

  #separador_2 {
    background: linear-gradient(to left, var(--mu_spring_blue), var(--mu_mike_green), var(--mu_gold));
  }
}

/* ========================================================
   Barra de Navegación Primaveral (Navbar)
   ======================================================== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #092742 0%, #0F4574 50%, #092742 100%);
  padding: 14px 45px;
  width: 100%;
  position: relative;
  z-index: 1000;
  border-bottom: 3.5px solid var(--mu_gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.logo_pequeño {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo_pequeño a {
  display: inline-flex;
  align-items: center;
}

.logo_pequeño img {
  height: 52px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
}

.bloque_derecho {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.bolas {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bolas a {
  display: inline-flex;
}

.bolas a img {
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.bolas a img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 2px 5px rgba(251, 176, 59, 0.6));
}

.lista_barra {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
}

.lista_barra h4 {
  margin: 0;
  font-size: 1.18rem;
  font-family: 'MU CampusText', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lista_barra h4 a {
  text-decoration: none;
  color: var(--mu_gold);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.lista_barra h4 a:hover {
  color: var(--mu_cream);
  text-shadow: 0 0 10px rgba(251, 176, 59, 0.9);
}

.oculto {
  display: none;
}

/* ========================================================
   Sección del Visor PDF
   ======================================================== */
.pdf_page_container {
  width: 100%;
  min-height: calc(100vh - 120px);
  background: 
    linear-gradient(rgba(11, 50, 84, 0.70), rgba(9, 39, 66, 0.92)),
    url('./Imagenes/Turia.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  padding: 60px 4% 90px 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.pdf_header_box h1 {
  font-family: 'MU Collegiate', serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: var(--mu_cream);
  letter-spacing: 2px;
  margin: 0 0 16px 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.pdf_download_btn {
  display: inline-block;
  background-color: var(--mu_gold);
  color: var(--mu_spring_navy);
  font-family: 'MU Collegiate', serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.pdf_download_btn:hover {
  transform: scale(1.05);
  background-color: #ffe699;
}

.pdf_viewer_wrapper {
  width: 100%;
  max-width: 1250px;
  height: 82vh;
  background: rgba(11, 50, 84, 0.5);
  border: 3.5px solid var(--mu_gold);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.pdf_embed_frame {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf_fallback_message {
  color: var(--mu_cream);
  text-align: center;
  padding: 50px 20px;
  font-family: 'MU CampusText', sans-serif;
  font-size: 1.2rem;
}

/* ========================================================
   Footer Centrado y Sin Partición de Líneas
   ======================================================== */
.end {
  display: flex;
  flex-direction: column;
  background: linear-gradient(90deg, #092742 0%, #0F4574 50%, #092742 100%);
  border-top: 4px solid var(--mu_gold);
  padding: 55px 40px 25px 40px;
  width: 100%;
}

.footer_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  gap: 30px;
  align-items: start;
}

.footer_col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.footer_col h2 {
  font-size: 1.6rem;
  color: var(--mu_gold);
  margin: 0 0 25px 0;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
  white-space: nowrap;
}

.footer_socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
}

.footer_socials img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: brightness(0.95);
}

.footer_socials img:hover {
  transform: scale(1.22);
  filter: brightness(1.2) drop-shadow(0 2px 8px rgba(251, 176, 59, 0.6));
}

.footer_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 100%;
}

.footer_list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'MU CampusText', sans-serif;
  font-size: 1.18rem;
  color: var(--mu_cream);
  line-height: 1.45;
  width: 100%;
}

.footer_label {
  font-weight: 700;
  color: var(--mu_gold);
  margin-bottom: 2px;
}

.no-break {
  white-space: nowrap !important;
}

.footer_list a {
  color: var(--mu_cream);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer_list a:hover {
  color: var(--mu_gold);
  text-decoration: underline;
}

/* Copyright en una sola línea centrada con separador */
.copyright {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 15px;
  flex-wrap: wrap;
}

.copyright h5 {
  color: #9BB0C1;
  margin: 0;
  font-size: 13px;
  text-align: center;
}

.copyright-sep {
  color: #9BB0C1;
  font-size: 13px;
  user-select: none;
  opacity: 0.6;
}

/* Adaptación para pantallas intermedias */
@media only screen and (max-width: 950px) {
  .footer_grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .footer_col h2 {
    white-space: normal;
  }
}

/* ========================================================
   Móvil y Tablets
   ======================================================== */
@media only screen and (max-width: 950px) {
  nav {
    padding: 12px 18px;
  }

  .logo_pequeño img {
    height: 42px !important;
  }

  .lista_barra {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .lista_barra h4 {
    font-size: 1.02rem;
  }

  .bolas a img {
    width: 22px !important;
    height: 22px !important;
  }

  .pdf_header_box h1 {
    font-size: 2.2rem;
  }

  .pdf_viewer_wrapper {
    height: 65vh;
  }

  .footer_grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer_col h2 {
    white-space: normal;
  }

  .footer_socials img {
    width: 46px !important;
    height: 46px !important;
  }
}