@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@600&display=swap");

/* colores web */
:root {
  --color1: #005D90;
  --color2: #AF2B36;
  --color3: #BBC433;
  --color4: #727d73;
  --color5: #FFFFFF;
}

body {
  font-size: 16px;
}

a {
  text-decoration: none;
}

p.line {
  line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Mulish", serif;
}

/* estilos header */
header {
  -moz-box-shadow: 0 3px 3px rgba(94, 94, 94, 0.75);
  -webkit-box-shadow: 0 3px 3px rgba(94, 94, 94, 0.75);
  box-shadow: 0 3px 3px rgba(94, 94, 94, 0.75);
  z-index: 1000;
  background-color: white;
}

header .bar-sup {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 2px 3%;
  background-color: var(--color3);
}
header .bar-sup a {
  color: white;
  font-size: 0.85em;
}

header nav.navbar {
  background-color: var(--color5);
  padding: 0.3rem 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .navbar-brand {
  flex: 0 0 auto;
  margin-right: 0;
}

/* header .navbar-collapse {
  flex-grow: 1;
  display: flex;
  justify-content: center;
} */

header a.nav-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 0.83em;
  text-transform: uppercase;
}

header a.nav-link i {
  font-size: 1.3em;
}

header .navbar-nav .nav-item.active {
  background-color: rgba(32, 34, 85, 0.6);
  border-radius: 5px;
}

header .dropdown-menu {
  background-color: #f6f6f8;
  box-shadow: 0 0 3px rgb(197, 197, 197);
  z-index: 1050;
}

header .dropdown-item {
  font-size: 0.8em;
  padding: 8px 1.5em;
  font-weight: bold;
  text-transform: uppercase;
}

header .dropdown-item:hover,
header .dropdown-item:focus {
  color: #fff;
  background-color: var(--color3) !important;
}

/* header #escudo {
  position: absolute; 
  margin-top: -38px; 
  margin-left: -22px;
} */

header #logotipo {
  font-family: "Mulish", serif;
  margin-left: 4.8em;
  font-size: 1.2em;
  color: #f9f8fc;
}

/* Botón Intranet */
.btn-intranet {
  background-color: var(--color3);
  color: white;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 0.83em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-intranet:hover {
  background-color: #a5b02d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.text-justify {
  text-align: justify;
}

/* estilos footer */
footer {
  background: linear-gradient(rgba(0, 93, 144, 1), rgba(0, 93, 144, 1)),
    url(../../img/back_footer.jpg);
  background-size: 30%;
}

footer .bar-inf {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 6px 7%;
  background-color: var(--color3);
}

footer .bar-inf a {
  color: white;
  font-size: 0.85em;
}

/* mod responsive */
@media only screen and (max-width: 600px) {
  header #escudo {
    height: 58px;
    margin-top: -10px;
    margin-left: 3px;
  }
  header #logotipo {
    margin-left: 20em;
    font-size: 0.2em;
  }
  header nav.navbar {
    background-color: var(--color5);
    padding: 2.7% 3%;
  }
  footer .bar-inf {
    padding: 6px 3%;
  }
  
  /* Intranet button en mobile */
  .btn-intranet {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

/* Portada General */
.portada-general {
    background-color: var(--color1); /* #005D90 */
    position: relative;
    width: 100%;
    height: 150px; /* Reduced from 400px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.portada-title {
    color: white;
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: "Mulish", serif;
    margin: 0;
    padding-top: 2rem; /* Optional: push it down slightly if needed, or keep centered */
}

/* Ondulación (SVG Container) */
.ondulacion {
    width: 100%;
    margin-top: -1px; /* Remove any gap between div and svg */
    line-height: 0; /* Important for removing bottom space in some browsers */
}

.ondulacion svg {
    display: block;
    width: 100%;
    height: auto;
}
