body,
html {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  border: none;
  font-family: "Open Sans Condensed", sans-serif;
  font-size: medium;
}

.contenedor {
  border: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;

  display: grid;

  /*grid-auto-rows: 1fr;*/

  grid-template-columns: 225px 1fr 1fr 1fr;
  /* grid-template-columns: 250px  repeat(3, minmax(200px, 400px));  */

  /*grid-template-rows: repeat(7, 100%);*/
  grid-template-areas:
    "header portada_1 portada_2 portada_3"
    "header seccion_1 seccion_1 seccion_1"
    "header seccion_2 seccion_2 seccion_2"
    "header seccion_3 seccion_3 seccion_3"
    "header seccion_4 seccion_4 seccion_4"
    "header seccion_5 seccion_5 seccion_5"
    "header seccion_6 seccion_6 seccion_6"
    "header seccion_7 seccion_7 seccion_7"
    "header seccion_instalaciones seccion_instalaciones seccion_instalaciones"
    "header seccion_8 seccion_8 seccion_8";
}


.portada_title {
  display: flex;

  position: absolute;
  text-align: center;
  /* background-color: rgb(255, 0, 0, 0.5); */

  justify-content: center;
  align-items: center;
}

.img_container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.portada_title {
  width: 100%;
  height: 20%;
  font-size: 1.75rem;
  color: white;
  text-align: center;
}

.portada_1 {
  grid-area: portada_1;

  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.portada_2 {
  grid-area: portada_2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.portada_3 {
  grid-area: portada_3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.header {
  background-color: #0059ff57;
  grid-area: header;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  flex: 0 1 auto;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  width: 150px;
  height: 90px;
  min-height: 90px;
  flex-shrink: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 51, 102, 0.2);
}

.logo img {
  width: 100%;
  height: auto;
}

.menu {
  display: flex;
  flex-direction: column;
  align-content: center;
  flex: 1 1 auto;
  padding: 0;
  background-color: transparent;
  font-size: 1rem;
}

.menu ul {
  padding-inline-start: 0;
  margin: 0;
}

.menu ul li {
  list-style: none;
}

.menu ul li a:link {
  text-decoration: none;
}

.menu ul li a {
  color: #003366;
  font-weight: 600;
  display: block;
  padding: 0.7rem 1.25rem;
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.menu ul li a:hover {
  color: #005C4B;
  background-color: rgba(0, 51, 102, 0.05);
  border-left-color: #005C4B;
}

/* Language Selector */
.idioma-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  justify-content: center;
  margin-top: auto;
  border-top: 1px solid rgba(0, 51, 102, 0.2);
}

.idioma-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(0, 51, 102, 0.35);
  color: #003366;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.idioma-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: #003366;
  color: #003366;
}

.idioma-btn.active {
  background-color: #003366;
  border-color: #003366;
  color: #fff;
}

.idioma-flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.idioma-code {
  font-size: 0.75rem;
}
















.seccion_5 {
  grid-area: seccion_5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: space-between;
  background-color: rgb(66, 90, 128);
}

.seccion_6 {
  grid-area: seccion_6;
  display: flex;
  flex-direction: column;
  background-color: rgb(66, 110, 128);
}

.seccion_7 {
  grid-area: seccion_7;
  display: flex;
  align-items: space-between;
  background-color: rgb(66, 90, 128);
}

.seccion_8 {
  grid-area: seccion_8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgb(66, 90, 128);
}

h1,
.h1-like {
  font-weight: bold;
  font-size: 1.5rem;
}

h2,
.h2-like {
  font-weight: normal;
  font-size: 1.5rem;
}

.texto {
  flex: 50%;
  padding: 2rem 1rem 0 3rem;
  color: white;
}

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

.cell {
  padding: 2rem;
  flex: 1 1 auto;
}

.cell1 {
  padding-top: 3rem;
  flex: 1 1 auto;

  width: 29%;
  margin: 0 auto;
}

img {
  width: 100%;
  max-width: 100%;
}

iframe {
  padding: 0;
}


.button-nav--toggle {
  display: none;
  background: rgba(207, 159, 159, 0.45);
  height: 48px;
  position: relative;
  -webkit-transition: -webkit-transform 0.4s;
  transition: -webkit-transform 0.4s;
  transition: transform 0.4s;
  transition: transform 0.4s, -webkit-transform 0.4s;
  width: 48px;
}

.button-nav--toggle span {
  background-color: #fff;
  display: block;
  height: 2px;
  left: 14px;
  margin-top: -1px;
  position: absolute;
  top: 50%;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  width: 20px;
}

.button-nav--toggle span:first-child {
  -webkit-transform: translateY(-6px);
  transform: translateY(-6px);
}

.button-nav--toggle span:last-child {
  -webkit-transform: translateY(6px);
  transform: translateY(6px);
}

/* Menu Active */
.button-nav--toggle.active span:first-child {
  -webkit-transform: rotate(45deg) translate(0);
  transform: rotate(45deg) translate(0);
}

.button-nav--toggle.active span:nth-child(2) {
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
}

.button-nav--toggle.active span:last-child {
  -webkit-transform: rotate(-45deg) translate(0);
  transform: rotate(-45deg) translate(0);
}





@media (max-width: 1024px) {

  body,
  html {
    background-color: rgb(234, 240, 232);
    font-size: smaller;
  }

  .portada_title {
    font-size: 2rem;
  }
}








@media (max-width: 600px) {

  body,
  html {
    background-color: rgb(212, 212, 206);
    font-size: smaller;
  }

  .portada_title {
    font-size: 2rem;
  }

  .header {
    grid-area: header;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(212, 212, 206);
    position: relative;
    height: auto;
    overflow-y: visible;
    box-shadow: none;
    padding-bottom: 0.5rem;
  }

  ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    padding-left: 0;
  }

  li {
    text-align: center;
    flex-basis: 100%;
  }

  .menu ul li a {
    justify-content: center;
    text-align: center;
    border-left: none;
    padding: 0.6rem 1rem;
  }

  .logo {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 120px;
    height: auto;
    min-height: unset;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 51, 102, 0.2);
  }

  .button-nav--toggle {
    display: initial;
    margin-left: auto;
    background: rgba(0, 51, 102, 0.05);
  }

  .menu {
    display: none;
    flex-direction: column;
    padding: 0;
    background-color: rgb(185, 185, 176);
  }

  .menu.is-active {
    display: flex;
  }

  .idioma-switcher {
    padding: 0.75rem 0;
    justify-content: center;
    margin-top: 0;
    border-top: 1px solid rgba(0, 51, 102, 0.2);
  }


  .contenedor {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "header    header"
      "portada_1 portada_1"
      "portada_2 portada_2"
      "portada_3 portada_3"
      "seccion_1 seccion_1"
      "seccion_2 seccion_2"
      "seccion_3 seccion_3"
      "seccion_4 seccion_4"
      "seccion_5 seccion_5"
      "seccion_6 seccion_6"
      "seccion_7 seccion_7"
      "seccion_instalaciones seccion_instalaciones"
      "seccion_8 seccion_8";
  }
}