* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --mainColor: #0a2447;
  --color1: #b5458d;
  --color2: #5aaa31;
  --color3: #66b2d6;
  --color4: #f59c00;
  --color5: #d32a17;
}
@font-face {
  font-family: futura-std;
  src: url(../font/Futura_Std_Book.otf);
  font-display: swap;
}
a{
  color:#2f4186;
  text-decoration: none;
}
body{
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.container {
  color: #333333;
  width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
/*:::::::::: HEADER :::::::::::::*/

.header {
  width: 100%;
  background-color: var(--mainColor);
  display: grid;
  position: relative;
  z-index: 999;
  grid-template-columns: 1fr;
  grid-template-rows: 110px 5px;
  grid-template-areas:
    "content"
    "colors";
}
.header__content {
  grid-area: content;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "logo search"
    "logo slogan";
}
.logo {
  grid-area: logo;
}
.search {
  grid-area: search;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 30px;
}
.search__box {
  position: relative;
  margin-top: 15px;
}
.search__label {
  position: absolute;
  top: 5px;
  left: 7px;
  color: #384d9f;
  font-size: 13px;
  font-weight: bold;
}
.search__input {
  padding-left: 25px;
  height: 24px;
  border: 2px solid #c6ccdc;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}
.search__input:focus {
  width: 250px;
  background-color: #fff;
  color: #000;
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%),
    0 0 8px rgb(102 175 233 / 60%);
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(102 175 233 / 60%);
}
.slogan {
  grid-area: slogan;
  font-family: futura-std;
  font-size: 18px;
  color: white;
  align-self: center;
  justify-self: end;
  padding-right: 30px;
}
.header__colors {
  grid-area: colors;
  width: 100%;
  height: 8px;
  display: flex;
  flex-direction: row;
}
.color {
  width: 20%;
}
.color:nth-child(1) {
  background-color: var(--color1);
}
.color:nth-child(2) {
  background-color: var(--color2);
}
.color:nth-child(3) {
  background-color: var(--color3);
}
.color:nth-child(4) {
  background-color: var(--color4);
}
.color:nth-child(5) {
  background-color: var(--color5);
}

/*:::::::::::::: MENU NAV ::::::::::::::::::::*/

.nav {
  width: 100%;
  height: 32px;
  background-color: #384d9f;
  border: 1px solid #2f4186;
  border-left: 0;
  border-right: 0;
  padding: 0px 10px;
  color: white;
  position: relative;
  z-index: 99;
}
.nav i {
  font-size: 10px;
}
.menu-toggle {
  display: none;
}
.menu {
  list-style: none;
  display: flex;
  height: 100%;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  background-color: #384d9f;
}
.menu > li {
  height: 100%;
  font-size: 15px;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 7px;
  padding: 0px 10px;
  cursor: pointer;
  position: relative;
}
.menu > li:first-child {
  padding: 0px 20px;
}
.menu li:hover,
.menu li.active {
  background-color: rgba(255, 255, 255, 0.096);
}


.submenu{
  position: absolute;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  color: black;
  z-index: -1;
  top: 100%;
  right: 0;
  width: 210px;
  opacity: 0;
  cursor: auto;
  font-size: 14px;
  pointer-events: none;
  transition: opacity 400ms;
}
.submenu>ul{
  list-style: none;
  padding: 10px 20px;
  margin-top: -100%;
  transition: margin 400ms;
  display: flex;
  flex-direction: column;
}
.submenu a{
  padding: 8px;
  display: block;
  transition: background .2s;
}
.dropdown{
  position: relative;
}
.dropdown i{
  position: absolute;
  right: -8px;
  bottom: calc(50% - 7px);
  color:#2f4186;
  font-size: 14px;
  /* scale: -1; */
}
.dropdown:hover i{
  color: white;
}
.dropdown__menu{
  position: absolute;
  background-color: white;
  border: 0px solid rgba(0, 0, 0, 0.15);
  transition: border .25s;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  max-width: 200px;
  left: 100%;
  top: 0;
  overflow: hidden;
}
.dropdown__menu ul{
  list-style: none;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  width: 200px;
  overflow: hidden;
  margin-left: -200px;
  transition: margin .2s;
}
.dropdown:hover ul{
  margin-left: 0;
}
.dropdown:hover .dropdown__menu{
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.submenu a:hover{
  background-color: #6c7ee2;
  color: white;
}
.menu li:hover .submenu{
  opacity: 1;
  pointer-events: visible;
}
.menu li:hover .submenu ul{
  margin-top: 0;
}

/*::::::::::::::::: MAIN :::::::::::::::::::::*/

.main {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.banner img {
  width: 100%;
  height: auto;
}
.block__title {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/*::::::::: SLIDER ::::::::::::::*/

.slider {
  position: relative;
  width: 100%;
  height: 290px;
}
.slider__item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 1s;
  object-fit: cover;
}
.slider__item.active {
  opacity: 1;
}
.prev-btn,
.next-btn {
  position: absolute;
  top: 123px;
  z-index: 1;
  font-size: 24px;
  font-weight: bold;
  color: #222;
  background-color: #ffffff6e;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.5s ease;
}
.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}
.prev-btn:hover,
.next-btn:hover {
  background-color: rgba(255, 255, 255, 0.822);
}
.slider__nav {
  z-index: 1;
  display: flex;
  flex-direction: row;
  gap: 5px;
  position: absolute;
  bottom: 20px;
  right: 20px;
}
.slider__nav .slide-icon {
  z-index: 999;
  color: #e9e9e9;
  cursor: pointer;
}
.slider__nav .slide-icon.active {
  color: #838383;
}

/*:::::::::::::: Bloque Tabs ::::::::::::::::::::*/

.tabs {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.tabs__options {
  height: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  color: #5c5c5c;
  border-bottom: 1px solid #b0b7cb;
}
.tabs__options div {
  border-right: 1px solid #e2e7f2;
  border-left: 1px solid #e2e7f2;
  border-top: 1px solid #e2e7f2;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: white;
}
.tabs__options .active {
  background-color: #e2e7f2;
}
.tabs__content {
  background-color: #e2e7f2;
  padding: 25px 0px;
  display: flex;
}
.agenda {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: 30px;
}
.agenda p {
  font-size: 14px;
}
.agenda a {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}
.agenda a:hover {
  text-decoration: underline;
}

/*:::::::::::::::: novedades ::::::::::::::::::::*/

.novedades {
  display: none;
  justify-content: space-evenly;
  width: 100%;
  flex-direction: row;
}
.novedades a {
  height: 165px;
  width: 270px;
}
.novedades img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*:::::::::::::::: noticias ::::::::::::::::::::*/

.noticias {
  display: none;
  width: 100%;
  justify-content: space-evenly;
  position: relative;
  padding-bottom: 20px;
}
.news {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news a {
  width: 200px;
  height: 120px;
}
.news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news__title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}
.news__excerpt {
  font-size: 14px;
}
.news__more {
  position: absolute;
  bottom: -10px;
  right: 20px;
}

/*:::::::::::::::: Departamentos ::::::::::::::::::::*/

.departamentos {
  display: none;
  width: 100%;
  flex-direction: row;
  justify-content: space-evenly;
}
.sector {
  width: 200px;
  height: 170px;
}
.sector img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*:::::::::::::::: videos ::::::::::::::::::::*/

.videos {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
}
.videos div {
  display: flex;
  flex-direction: column;
}
.videos iframe {
  width: 300px;
  height: 170px;
}

/*:::::::::::::::: bloque 2 columnas ::::::::::::::::::::*/

.block-col-2 {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}
/*:::::::::::::::: bloque 4 columnas ::::::::::::::::::::*/

.block-col-4 {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}
/*:::::::::::::::: bloque 5 columnas ::::::::::::::::::::*/

.block-col-5 {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
}
.selected {
  display: flex;
}

/*:::::::::::::::: FOOTER ::::::::::::::::::::*/

.footer {
  display: flex;
  flex-direction: column;
}
.footer section:nth-child(1) {
  background-color: #00204b;
  border-color: #0d1d34;
  height: 50px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  padding: 0px 15px;
}
.footer section:nth-child(1) i {
  color: #00204b;
  font-size: 25px;
  font-weight: bold;
  background-color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__btn {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  transition: background 0.2s;
}
.footer__btn:hover {
  background-color: #0d1d34;
  transition: background 0.2s;
}
.footer section:nth-child(2) {
  height: 30px;
  width: 100%;
  font-size: 10px;
  font-weight: bold;
  align-self: center;
  background: #0d1d34;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer section:nth-child(3) {
  background-color: #0e162d;
  height: 160px;
  padding: 20px;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.footer section:nth-child(3) img {
  max-height: 64px;
  margin-top: 10px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    width: 768px;
  }
  .slogan {
    font-size: 16px;
  }
  .nav {
    padding: 0px 5px;
  }
  .menu {
    gap: 5px;
  }
  .menu > li {
    font-size: 13px;
    gap: 5px;
    padding: 0px 5px;
  }
  .nav i {
    font-size: 9px;
  }
  .novedades a {
    height: 135px;
    width: 220px;
  }
  .news {
    width: 160px;
  }
  .news a {
    width: 160px;
    height: 100px;
  }
  .news__title {
    font-size: 15px;
  }
  .news__excerpt {
    font-size: 13px;
  }
  .sector {
    width: 160px;
    height: 135px;
  }
  .videos iframe {
    width: 240px;
    height: 135px;
  }
}

@media (max-width: 767px) {
  .container {
    width: 100%;
  }
  .search,
  .slogan {
    display: none;
  }
  .main {
    gap: 10px;
  }
  .nav {
    height: unset;
    padding: 0;
  }
  .nav i {
    font-size: 13px;
  }
  .menu-toggle {
    display: flex;
    justify-content: flex-end;
    padding: 4px 15px;
  }
  .menu-toggle i {
    font-size: 16px;
    padding: 5px;
    cursor: pointer;
  }
  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.3s;
  }
  .mostrar {
    height: 306px;
    visibility: visible;
  }
  .menu > li:first-child {
    padding: 10px 20px;
  }
  .menu > li {
    width: 100%;
    padding: 8px 20px;
    justify-content: space-between;
    border-top: 1px solid #2f4186;
  }
  .slider {
    height: 50vw;
  }
  .prev-btn,
  .next-btn {
    top: calc(50% - 22px);
  }
  .prev-btn {
    left: 10px;
  }
  .next-btn {
    right: 10px;
  }
  .banner img {
    height: 30vw;
    object-fit: cover;
  }
  .tabs__options {
    grid-template-columns: 40% 1fr 30% 1fr;
    color: #000;
  }
  .tabs__options div {
    font-size: 10px;
  }
  .tabs__content {
    justify-content: center;
  }
  .novedades {
    flex-direction: column;
    align-items: center;
    width: 90%;
    gap: 10px;
  }
  .novedades a {
    height: 60vw;
    width: 100%;
  }
  .noticias {
    width: 90vw;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4vw;
  }
  .news {
    width: 100%;
  }
  .news a {
    width: 100%;
    height: 50vw;
  }
  .departamentos {
    width: 90vw;
    flex-wrap: wrap;
    gap: 2vw;
  }
  .sector {
    width: 100%;
    height: 60vw;
  }
  .agenda {
    margin-left: unset;
  }
  .block-col-2 {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 15px 0px;
    gap: 10px;
  }
  .block-col-2 div {
    flex-direction: column;
    width: 90%;
  }
  .block-col-2 img {
    width: 100%;
    height: auto;
  }
  .videos {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px 0px;
  }
  .videos div {
    flex-direction: column;
    width: 90%;
  }
  .videos iframe {
    width: 100%;
    height: 50vw;
  }
  .block-col-4 {
    width: 90vw;
    margin: 10px auto;
    gap: 2vw;
  }
  .block-col-4 a {
    width: 44vw;
  }
  .block-col-4 img {
    width: 100%;
    height: auto;
  }
  .block-col-5 {
    width: 90vw;
    margin: 0px auto;
    margin-bottom: 10px;
    gap: 2vw;
  }
  .footer section:nth-child(3) {
    flex-direction: column;
    height: unset;
    align-items: center;
  }
  .footer section:nth-child(3) div {
    text-align: center;
    margin-bottom: 10px;
  }
}
