/* ========================================================
   BEST Valencia Course - Monsters University (MU) Spring Theme
   Archivo: index.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 {
    /* Paleta Primaveral Monsters University */
    --mu_spring_navy: #0B3254;        /* Azul marino primaveral */
    --mu_spring_blue: #1472B8;        /* Azul campus radiante */
    --mu_electric_blue: #0EA5E9;      /* Azul cielo de energía */
    --mu_gold: #FBB03B;               /* Amarillo/dorado universitario */
    --mu_sulley_teal: #1DB9C3;       /* Turquesa Sulley */
    --mu_mike_green: #70C13D;         /* Verde brote Mike Wazowski */
    --mu_cream: #FAF9F6;              /* Blanco marfil */

    --color_barra: var(--mu_spring_navy);

    /* Máscara suave idéntica a Valencia */
    --degradado_hero: linear-gradient(to bottom, rgba(14, 165, 233, 0.35), rgba(11, 50, 84, 0.85));

    /* Imágenes de fondo secundarias */
    --img_seccion1: url(./Imagenes/Puente_flores.jpg);
    --img_seccion2: url(./Imagenes/Project_work2.jpg);
    --img_seccion3: url(./Imagenes/Juego_plaza_virgen.JPG);
  }

  *, ::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.7;
    font-size: 1.25rem;
  }

  /* Líneas divisorias primaverales */
  .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;
}

/* ========================================================
   Hero / Cabecera con imagen de fondo
   ======================================================== */
.barra_principio {
  width: 100%;
  min-height: 85vh;
  background: 
    var(--degradado_hero),
    url('./Imagenes/fondo.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

.transparencia_foto_principio {
  width: 100%;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 30px 5%;
}

.logo_central {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo_central div {
  display: flex;
  width: 33%;
  justify-content: center;
  align-items: center;
}

#view_blanco {
  width: 85%;
  max-width: 320px;
  background-color: var(--mu_spring_navy);
  border: 2px solid var(--mu_gold);
  border-radius: 50px;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
  padding: 12px 25px; 
  object-fit: contain; 
}

.logo_central h2 {   
  width: 33%;
  text-align: center;
  font-size: 35px;
  font-weight: 700; 
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.fecha {
  display: flex;
  justify-content: center;
  color: var(--mu_gold) !important;
}

.frase {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

.frase img {
  width: 65%;
  max-width: 750px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.Temporizador {
  display: flex;
  justify-content: space-around;
}

#contador {
  margin: 0;
  text-align: center;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  font-family: 'MU PhysicsLab', monospace;
  font-size: 44px;
  color: var(--mu_gold);
  letter-spacing: 2px;
}

/* ========================================================
   Banner de Bienvenida
   ======================================================== */
.competiciones {
  width: 100%;
  background: 
    var(--degradado_hero),
    url('./Imagenes/Puente_flores.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  padding: 55px 8%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.competiciones_card {
  width: 100%;
  max-width: 1150px;
  background: rgba(11, 50, 84, 0.90);
  border-left: 5px solid var(--mu_gold);
  border-radius: 12px;
  padding: 35px 45px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.competiciones_card h5 {
  color: var(--mu_cream) !important;
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ========================================================
   Cajas de contenido 1, 2 y 3
   ======================================================== */
.caja_competicion1 {
  width: 100%;
  background: 
    var(--degradado_hero),
    url('./Imagenes/Puente_flores.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.caja_competicion2 {
  width: 100%;
  background: 
    var(--degradado_hero),
    url('./Imagenes/Project_work2.jpg') no-repeat center center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.caja_competicion3 {
  width: 100%;
  background: 
    var(--degradado_hero),
    url('./Imagenes/Juego_plaza_virgen.JPG') no-repeat center center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.transparencia_competicion1,
.transparencia_competicion2,
.transparencia_competicion3 {
  width: 100%;
  padding: 70px 8%;
  display: flex;
  justify-content: center; 
  align-items: center;
  background: transparent !important;
}

.competicion1, .competicion2, .competicion3 {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 45px;
  width: 100%;
  max-width: 1300px;
}

.competicion1 img, .competicion2 img, .competicion3 img {
  width: 32%;
  max-width: 360px;
  height: 250px;
  object-fit: cover;
  border: 3.5px solid var(--mu_gold);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.competicion1 img:hover, .competicion2 img:hover, .competicion3 img:hover {
  transform: scale(1.03);
}

.competicion_card_text {
  flex: 1;
  background: rgba(11, 50, 84, 0.90);
  border-left: 5px solid var(--mu_gold);
  border-radius: 12px;
  padding: 30px 38px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.border_right_card {
  border-left: none;
  border-right: 5px solid var(--mu_gold);
}

.competicion_card_text p {
  font-size: 1.25rem;
  line-height: 1.75;
  margin: 0;
  text-align: justify;
}

/* ========================================================
   Sección Partners
   ======================================================== */
.partners-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #071f35 0%, #0B3254 100%);
  padding: 70px 5% 85px 5%;
  width: 100%;
}

.titulo-partners {
  color: var(--mu_gold);
  font-family: 'MU Collegiate', serif;
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 45px;
  text-align: center;
  letter-spacing: 2px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

.partners-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1350px;
  gap: 25px;
  flex-wrap: nowrap;
}

.partner-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 140px;
  padding: 20px;
  background: #ffffff;
  border-radius: 14px;
  border: 2.5px solid var(--mu_gold);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(251, 176, 59, 0.35);
  border-color: var(--mu_cream);
}

.partner-item img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ========================================================
   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: 900px) {
  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;
  }

  .logo_central {
    flex-direction: column;
    gap: 15px;
  }

  .logo_central h2 {
    width: 100%;
    font-size: 24px;
  }

  .logo_central div {
    width: 100%;
  }

  #view_blanco {
    padding: 15px 35px;
  }

  .frase img {
    width: 90%;
  }

  #contador {
    font-size: 28px;
  }

  .competiciones {
    padding: 25px 15px;
  }

  .competiciones_card {
    padding: 20px;
  }

  .competiciones_card h5 {
    font-size: 1.2rem;
  }

  .competicion1, .competicion2, .competicion3 {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .competicion1 img, .competicion2 img, .competicion3 img {
    width: 90%;
    max-width: 100%;
    height: 220px;
  }

  .competicion_card_text {
    width: 100%;
    padding: 20px;
    border-left: 4px solid var(--mu_gold);
    border-right: none;
  }

  .competicion_card_text p {
    font-size: 1.15rem;
    text-align: left;
  }

  .partners-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .partner-item {
    flex: 0 1 45%;
    min-height: 110px;
  }

  .end {
    padding: 35px 20px 20px 20px;
  }

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

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

  .copyright {
    justify-content: center;
    gap: 8px;
  }
}