@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  height: auto;
  color: var(--color-dark-gray);
}

header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  box-shadow: 0 4px 25px -22px black;
  z-index: 10;
}

.header-content{
  max-width: 1500px; /*----------------------------------------------------------------------------------------------------------------------------*/
  margin: auto;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.logo{
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo h1 b{
  font-size: 35px;
  color: #1b597d;
}

.logo h1{
  font-size: 35px;
  color: #080808;
}
.menu {
  height: 80px;
  margin-right: 60px;
}

.menu nav{
  height: 100%;
}

.menu nav ul{
  height: 100%;
  display: flex;
  list-style: none;
}

.menu nav ul li{
  height: 100%;
  margin: 0px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.menu-selected:before{
  content: '';
  width: 100%;
  height: 4px;
  background: #1b597d;
  position: absolute;
  top: 0;
  left: 0;
}

.menu nav ul li a{
  color: #777777;
  font-size: 18px;
  transition: color 300ms;
}

.menu nav ul li a:hover{
  color: #1b597d;
}

.menu .text-menu-selected{
  color: #1b597d;
}

.menu nav ul li a i{
  display: none;
}

#icon-menu{
  width: 50px;
  height: 50px;
  position: absolute;
  right: 20px;
  top: 16px;
  padding: 10px;
  font-size: 20px;
  background: #eeeeeefa;
  border-radius: 100%;
  color: #787878;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#icon-menu:hover{
  opacity: 0.8;
}



/*Buscador de contenido*/

#ctn-icon-search{
  position: absolute;
  right: 20px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#ctn-icon-search i{
  font-size: 18px;
  color: #777777;
  cursor: pointer;
  transition: all 300ms;
}

#ctn-icon-search i:hover{
  color: #1b597d;
}


#ctn-bars-search{
  position: fixed;
  top: -10px;
  width: 100%;
  background: #fff;
  padding: 20px;
  z-index: 9;
  transition: all 600ms;
}

#ctn-bars-search input{
  display: block;
  width: 1200px;
  margin: auto;
  padding: 10px;
  font-size: 18px;
  outline: 0;
}

#box-search{
  position: fixed;
  top: 165px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  background: #fff;
  z-index: 8;
  overflow: hidden;
  display: none;
}

#box-search li a{
  display: block;
  width: 1200px;
  color: #777777;
  padding: 12px 20px;
}

#box-search li a:hover{
  background: #f3f3f3;
}

#box-search li a i{
  margin-right: 10px;
  color: #777777;
}


#cover-ctn-search{
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  background: rgba(0,0,0,0.5);
  z-index: 7;
  display: none;
}

:root {
  --color-white: #ffffff;      
  --color-black: #000000;      
  --color-dark-gray: #333333; 
  --color-primary: #1b597d;    
}

.parallax {
  height: 100vh;
  background-size: cover;
  background-attachment: fixed;
  background-color: var(--color-white);
  border: 2px solid var(--color-black);
  opacity: 0;
  transform: translateY(30px); 
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out; 
}

.parallax1 {
  margin-top: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: var(--color-primary);
  background-blend-mode: overlay;
  position: relative;
  overflow: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.section {
  opacity: 0; 
  transform: translateY(0px); 
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out; 
}

.section.visible {
  opacity: 1; 
  transform: translateY(0); 
}

/* CSS DEL CARROUSEL DE IMAGENES DE BRYAN */

.carousel {
  display: flex;
  align-items: center;
  justify-content:center;
  flex-direction: column;
  height: 80%;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  position: relative;
  margin-bottom: 0; 
}

.carousel2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 650px;
  margin: 0; 
  overflow: hidden;
  position: relative;
}

.slide,
.slide2 {
  opacity: 0; 
  transition: opacity 1s ease-in-out; 
  position: absolute;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  display: flex; 
  visibility: hidden; 
}

.slide.active,
.slide2.active {
  opacity: 1;
  visibility: visible; 
}

.slide img {
  width: 100%;
  max-width: 1200px; 
  max-height: 650px; 
  object-fit: cover; 
  border-radius: 15px;
}

.slide2 img {
  height: 100%;
  width: 100%;
  max-width: 650px; 
  max-height: 350px; 
  object-fit: cover; 
  border-radius: 15px;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  text-align: center;
  z-index: 2;
}

.text-overlay h2 {
  font-size: 3em;
  margin: 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9); 
}

.text-overlay p {
  font-size: 2em;
  margin: 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9); 
}

.prev2,
.carousel .prev,
.next2,
.carousel .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--color-white);
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border: none;
  z-index: 3;
}

.prev2,
.carousel .prev {
  left: 10px;
}

.next2,
.carousel .next {
  right: 10px;
}

/* Contenedor de las miniaturas debajo del carrusel */
.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 0%;
  margin-bottom: 50px;
}

.thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
  border: 2px solid transparent; 
  box-sizing: border-box; 
  border-radius: 15px;
}

.thumbnail:hover {
  opacity: 1;
  transform: scale(1.1); 
}

.thumbnail.active {
  border: 2px solid var(--color-white);
}
/* FIN CARROUSEL */

/* CAROUSEL 2 */
.carousel-thumbnails2 {
  display: flex;
  justify-content: center;
  margin-top: 450px;
  gap: 15px;
}

.thumbnail2-img {
  width: 60px;
  height: 60px;
  margin: 0 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent; 
  box-sizing: border-box; 
  border-radius: 15px;
  object-fit: cover;
}

.thumbnail2-img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.active-thumbnail2 {
  border: 2px solid var(--color-primary);
  opacity: 1 !important;
}

/* FIN */
.cont2Plan {
  display: flex;
  align-items: center;
  justify-content: center; 
  height: 100%;
  gap: 100px;
  width: 100%; 
}

.img1plan {
  max-width: 600px;
  height: auto;
}

.text1plan {
  width: 50%;
  max-width: 400px;
  text-align: left;
  z-index: 1;
  margin-left: 0;
}

.conttextsup {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-bottom: 80px;
}

.text1plan h2,
.conttextsup h2 {
  margin: 0;
  font-size: 45px;
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 2px;
}

.conttextsup h3,
.directorio h3 {
  margin: 0;
  font-size: 25px;
  color: var(--color-primary);
  font-weight: 300;
}

.text1plan p {
  margin-top: 20px;
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 18px;
}

.text1plan span {
  font-weight: 500;
  color: var(--color-primary);
}

.boton1plan {
  cursor: pointer;
  position: relative;
  padding: 10px 24px;
  font-size: 18px;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 34px;
  background-color: transparent;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.boton1plan::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  scale: 0;
  z-index: -1;
  background-color: var(--color-primary);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.boton1plan:hover::before {
  scale: 1;
}

.boton1plan:hover {
  color: var(--color-white);
  scale: 1.1;
  box-shadow: 0 0px 20px var(--color-primary);
}

.boton1plan:active {
  scale: 1;
}

.botonsubir {
  position: fixed;     
  bottom: 20px;        
  right: 20px;          
  padding: 10px 20px;
  background-color: var(--color-primary);
  color: var(--color-white);    
  border: 2px solid var(--color-black);      
  border-radius: 5px;  
  cursor: pointer;     
  z-index: 1000;       
}

.botonsubir:hover {
  background-color: var(--color-black);
}

.contdirec {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
}

.directorio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 90px;
  justify-items: center;
  align-items: center;
}

.directorio > :nth-child(4) {
  grid-column: 1; /
}

.directorio > :nth-child(5) {
  grid-column: 3; /* Coloca el quinto elemento en la tercera columna */
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease; 
}

.item:hover {
  transform: scale(1.1);
}

.item i {
  font-size: 40px;
  margin-bottom: 10px;
  color: var(--color-primary);
}

/* MEDIA QUERIES DE BRYAN RESPONSIVE */ 

/* TELEFONOS */ 
@media screen and (min-width: 310px) and (max-width: 768px) {
  .parallax1 {
    max-height: 100vh;
    max-width: 100%;
    gap: 0;
  }
  .carousel {
    max-width: 95%;
    height: 60%;
    margin: 0;
    padding: 0;
  }

  .text-overlay h2 {
    font-size: 2em;
  }

  .text-overlay p{
    font-size: 1em;
  }

  .thumbnail-container {
    width: 95%;
  }

  .thumbnail { 
    margin: 0;
    padding: 0;
    width:60px;
    height: 60px;
  }

  .conttextsup {
    padding: 20px;
    text-align: center;
  }

  .directorio {
    width: 100%;
    gap: 0;
  }

  .item {
    padding: 10px;
  }

  .slide img {
    padding: 10px;
    max-width: 100%;
    height: 350px;
    border-radius: 10px;
  }

  .text1plan h2 {
    font-size: 1.5em;
  }
  
  .text1plan p {
    font-size: 1em;
  }

  .cont2Plan {
    flex-direction: column;
    align-items: center;
    gap: 15px; 
    max-height: 100%;
  }
  
  .text1plan,
  .carousel2 {
    width: 90%;
    max-width: 100%;
    margin: 0; 
    padding: 0;
  }

  .text1plan {
    max-height: 60%;
  }

  .carousel2 { 
    max-height: 40%;
  }

  .carousel-thumbnails2 {
    display: none;
  }

  .slide2 img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 10px;
  }
}

/* TABLETS */
@media screen and (min-width: 769px) and (max-width: 1026px) {
  .parallax1 {
    max-height: 100%;
    gap: 0;
  }
  .carousel {
    height: 60%;
    margin: 0;
    padding: 0;
  }

  .thumbnail-container { 
    margin: 0;
    padding: 0;
  }

  .slide img {
    padding: 10px;
    max-width: 100%;
    height: 450px;
    border-radius: 10px;
  }

  .text-overlay h2 {
    font-size: 2em;
  }
  
  .text-overlay p {
    font-size: 1em;
  }

  .cont2Plan {
    flex-direction: column;
    align-items: center;
    gap: 15px; 
    max-height: 100%;
  }
  
  .text1plan,
  .carousel2 {
    width: 90%;
    max-width: 100%;
    margin: 0; 
    padding: 0;
  }

  .text1plan {
    max-height: 60%;
  }

  .carousel2 { 
    max-height: 40%;
  }

  .carousel-thumbnails2 {
    display: none;
  }

  .slide2 img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 10px;
  }
}

/* Responsive Design - adaptable a dispositivos moviles*/

@media screen and (max-width: 1220px){

    .header-content,
    .container-footer footer{
        max-width: 1000px;
        padding: 0 20px;
    }

    #ctn-bars-search,
    #ctn-bars-search input,
    #box-search{
        width: 100%;
    }

}



@media screen and (max-width: 800px), screen and (max-width: 768px){

  .header-content{ 
    width: 100%;
  }
    .container-all{
        transition: all 300ms cubic-bezier(1,0,0,1);
    }

    .move-container-all{
        transform: translateX(300px);
    }

    .menu{
        width: 0px;
        height: 100vh;
        position: fixed;
        top: 80px;
        left: 0;
        background: #fff;
        overflow: hidden;
        transform: translateX(-350px);
        box-shadow: 10px 0 20px -25px black;
        transition: all 300ms cubic-bezier(1,0,0,1);
    }

    .show-lateral {
        width: 300px;
        transform: translateX(0px);
    }

    .menu nav ul {
        flex-direction: column;
    }

    .menu nav ul li{
        max-width: 200px;
        height: 50px;
        justify-content: flex-start;
    }

    .menu-selected:before{
        width: 0;
    }

    .menu nav ul li a{
        margin-top: 40px;
        color: #858585;
    }

    .menu nav ul li a i{
        width: 20px;
        display: inline-block;
        margin-right: 10px;
        color: #1b597d;
    }

    #icon-menu{
        display: flex;
        right: 60px;
    }

    .container-aside{
        flex-wrap: wrap;
    }

}

@media screen and (max-width: 600px), screen and (max-width: 396px){
  #icon-menu{
    display: flex;
    right: 40px;
}
}
/* Estilo general */
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin: 8px 0; /* Ajusta el espaciado entre los elementos */
  padding: 5px; /* Asegura espacio interno */
}

.item:hover {
  transform: scale(1.1);
}

.item i {
  font-size: 25px; /* Ajusta el tamaño del ícono */
  margin-bottom: 8px; /* Reduce el espacio debajo del ícono */
  color: var(--color-primary);
}

.item span {
  font-size: 15px; /* Reduce el tamaño del texto */
}

/* Responsividad para pantallas <= 450px */
@media screen and (max-width: 450px) {
  .container {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se ajusten automáticamente */
    justify-content: center;
    gap: 10px; /* Espaciado entre los elementos */
  }

  .item {
    flex: 1 1 calc(50% - 10px); /* Ocupa el 50% del ancho con margen */
    max-width: 120px; /* Limita el ancho máximo de cada elemento */
  }
  .item h3{
    font-size: 15px; /* Reduce aún más el tamaño del ícono */
  }

  .item i {
    font-size: 30px; /* Reduce aún más el tamaño del ícono */
  }

  .item span {
    font-size: 2px; /* Texto más pequeño para evitar desbordamiento */
  }
  .logo h1 b{
    font-size: 25px;
    color: #1b597d;
  }
  
  .logo h1{
    font-size: 25px;
    color: #080808;
  }
}
