/* Reset global */
@font-face {
  font-family: "Coolvetica";
  src: url("./../assets/fonts/CoolveticaRg.otf") format("opentype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  --azul: #01579b;
}

.nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 !important;
}

nav .nav-wrapper {
  height: 80px !important;
  width: 100%;
}

nav ul a {
  padding: 10px 10px;
}

.nav-wrapper {
  background-color: var(--azul);
  padding: 0 40px;
}

.nav-title {
  padding: 10px 10px !important;

  color: whitesmoke;
  font-size: 30px;
  font-weight: bold;
  text-shadow: 2px 2px 3px black;
}

.registro {
  background-color: var(--azul) !important;
  height: 80px !important;
}

/* Estilos adicionales existentes */
.page-footer {
  margin-top: auto;
}
.titulo {
  text-shadow: 2px 2px 4px black !important;
}
.contenido {
  flex: 1;
  background-image: url("./../assets/images/library-with-books.jpg") !important;
  background-attachment: fixed;
  background-size: cover;
}
.fondo {
  background-color: transparent;
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  color: white;
}
h1 {
  color: white;
  text-shadow: 3px 2px 4px var(--azul) !important;
  background-color: #01589b5c;
  backdrop-filter: blur(10px);
  padding: 20px;
  margin: 15px 0 0;
}
.descripcion {
  color: white;
  text-shadow: 3px 2px 4px var(--azul) !important;
  background-color: #7b7b7b5c;
  backdrop-filter: blur(10px);
  padding: 20px 15%;
  margin: 0 !important;
}
.collapsible-header {
  background: rgba(255, 255, 255, 0.716) !important;
  backdrop-filter: blur(10px);
}
h2 {
  color: var(--azul);
  text-shadow: 4px 4px 4px black !important;
}
p {
  text-align: justify;
  font-size: 18px;
}
.lista {
  padding: 0 40px !important;
  font-size: 18px;
}
.lista li {
  list-style-type: disc !important;
}
.col {
  padding: 10px 40px !important;
  height: 100% !important;
}
.valign {
  display: flex;
  flex-direction: column;
  min-height: 50vh;
  justify-content: center;
}
.icon {
  font-size: 30px;
  padding: 10px;
  color: var(--azul);
}
.card {
  transition: all 0.2s ease-in-out;
}
.tecnicos .card:hover {
  transform: translateY(-5px);
  opacity: 50%;
}
.titlulo-recursos {
  font-weight: 00;
  padding-left: 10px;
}
.collapsible-body {
  backdrop-filter: blur(20px);
}
.cards-container {
  display: flex;
  flex-wrap: wrap;
}
.cards {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  max-width: 220px;
  height: 500px !important;
  border-radius: 25px;
  margin: 15px;
  overflow: hidden;
  background-color: aliceblue;
  border-left: 5px solid var(--azul);
  border-bottom-left-radius: 25px;
}
.opciones {
  display: flex;
  justify-content: center;
  padding: 20px 40px;
}
.opciones a {
  background-color: var(--azul);
  padding: 5px 10px;
  margin: 5px;
  color: aliceblue;
  font-weight: 500;
  border-radius: 25px;
  border: 2px ridge var(--azul);
}
.cards-body {
  border-top: 1px dotted var(--azul);
  padding: 2px 16px;
  color: black;

  position: relative;
}
.cards-body h4 {
  font-size: 20px;
}
.cards:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
.row {
  margin-bottom: 0px !important;
}
h5 {
  font-weight: bold;
}
.icon {
  text-shadow: 2px 2px 3px white !important;
}

/*Logeo*/

.logeo {
  display: flex;
  height: 100vh;
  width: 100vw;
  justify-content: center;
  align-items: center;
  font-family: "Coolvetica", sans-serif;
  box-shadow: 2px 2px 3px black !important;
}

.logeo h3 {
  color: deepskyblue;
  text-shadow: 2px 2px 3px black !important;
}

.logeo form {
  width: max-content;
  padding: 40px 0;
}
.logeo form button {
  background: deepskyblue;
}

.logeo form input {
  color: aliceblue !important;
}

.formulario {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #01589b4d;
  backdrop-filter: blur(5px);
  color: white;
  text-align: center;
  border-radius: 30px;
  padding: 20px 0;
  border-left: 9px ridge #01579b;
  border-bottom: 4px ridge #01579b;
  font-size: 30px;
}
.formulario label {
  font-size: 15px;
}
input + label {
  color: grey !important;
}

.logeo .formulario .ing h3 {
  margin: 0 !important;
}

input + label {
  text-shadow: 2px 2px 3px black !important;
}

input:focus {
  border-bottom: 1px solid grey !important;
  box-shadow: 0 1px 0 0 grey !important;
}

input:focus + label {
  color: grey !important;
}

@media (max-width: 600px) {
  .no-valign-mobile {
    align-items: unset !important;
    display: block !important;
  }
  .formulario {
    justify-content: center;
    align-items: unset !important;
    display: block !important;
  }
  form {
    width: 300px !important;
  }
}

@media (max-width: 992px) {
  /* Forzamos nav a crecer y nav-wrapper a columna */
  nav {
    height: auto !important;
    min-height: auto !important;
  }

  nav .nav-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
    height: 120px !important;
  }

  /* 1) Logo en fila 1, centrado */
  nav .nav-wrapper .brand-logo {
    order: 1 !important;
    margin: 0.5rem 0 !important;
  }

  /* Quitamos cualquier margin-top inline */
  nav .nav-wrapper .brand-logo img {
    margin-top: 0 !important;
  }

  /* 2) Título en fila 2, siempre estático */
  nav .nav-wrapper .nav-title {
    order: 2 !important;
    position: static !important;
    transform: none !important;
    margin: 3.5rem 0 0 !important;
  }

  /* 3) Hamburguesa en fila 3, anclada a la izquierda */
  nav .nav-wrapper .sidenav-trigger {
    order: 3 !important;
    align-self: flex-start !important;
    margin: 0.5rem 1rem !important;
  }

  /* Ocultamos el menú de escritorio */
  nav .nav-wrapper .right.hide-on-med-and-down {
    display: none !important;
  }
  .titulo {
    font-size: 2rem;
    margin: 0 !important;
  }
  .col {
    padding: 0 !important;
  }
  .sedes {
    text-align: center;
  }
  .card-content {
    overflow: hidden !important;
  }
  .container {
    width: 100% !important;
  }
}
