/* Hoja de estilo para la vista de la pagina empezando por el navbar o menu. */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

body{
    color: rgb(32, 31, 31);
    font-family: sans-serif;
    margin-top: 120px;
}

.background{
    position: relative;
    background: linear-gradient(170deg, #e8e7e7 35%, white 100%);
   

}
/* Logo*/

.logo img{
    width: 70px;
    margin-right: 1%;
    
}
 
/* Navbar */
.navbar{
    width: 100%;
    margin: auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    top: 0;
    position: fixed;
    font-family: sans-serif;
    background-color: rgb(25, 144, 128);
    
}

.navbar.scrolled{
    background-color: #f8f3f3;
    box-shadow: rgba(134, 134, 134, 0.35) 0 5px 15px;
}

/* Inicio, Quienes somos, Recorridos Virutales, Contacto */
.nav_items{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item{
    display: flex;
    justify-content: center;
}

.nav_items li{
    list-style: none;
    padding: 1em;
}
/* Nav items  tamaño font, color. */
.nav_items li a{
    text-decoration: none;
    transition: 0.3s;
    font-size: 16px;
    font-weight: 600;
    color: rgb(251, 247, 247);
    letter-spacing: 1px;
}
/* Hover effect */
.nav_items li::after{
    content: '';
    width: 0;
    height: 2px;
    background-color: #f8eaea;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav_items li:hover::after{
    width: 100%;
}

.nav_menu{
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav_items {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #444;
        padding: 10px 0;
    }

    .nav_items.active {
        display: flex;
    }

    .nav_menu {
        display: block;
    }

    .nav_items .item {
        flex-direction: column;
        text-align: center;
    }
}
/* Lado izquierdo de la pagina Inicio */
.main{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    width: 90%;
    padding: 12em 2em 4em 2em;
    margin: auto;
}

.main h1{
    font-size: 20px;
    color:black;
    line-height: 1.5;
    padding: 2% 0;
}

.left h2{
    font-size: 40px;
    color: black;
    line-height: 1.5;
}

.left h3{
    font-size: 15px;
    color: rgb(67, 66, 66);
    line-height: 1.5;
}

.left p{
    font-size: 14px;
    line-height: 1.5rem;
    padding: 4% 0;
    color: black;
}
/* Imagen lado derecho superior de al pagina inicio. */
.right{
    display: flex;
    justify-content: center;
    align-items: center;
}

.right img{
    width: 650px;
    max-width: 100%;
    height: auto;
}

  /* Segundo seccion de la pagina */
.container{
    display: flex; 
    align-items: center; 
    gap: 20px; 
    padding: 40px;
}

/* Imagen */
.container img{
    width: 500px; 
    height: auto;
    padding: 60px;
    border-radius: 9px; 
    
}

.text{
    max-width: 600px; 
    font-size: 20px;
    font-family: sans-serif;
    font-weight: 600;
    line-height: 1.5;
    padding: 4% 0;
    color: black;
}

/* Linea horizontal en la pagina */
hr {
    border: none;
    height: 2px;
    background-color: black;
    width: 30%; 
    margin: 20px auto; 
  }

 /* QUIENES SOMOS */
 .sec{
    width: 85%;
    margin: auto;
    text-align: center;
    padding: 9em 0 3em 0;
}

.heading{
    color: rgb(14, 13, 13);
    font-size: 40px;
    letter-spacing: 1px;
    padding-bottom: 12px;
}

.para{
    font-size: 14px;
    color: rgb(67, 66, 66);
}

.box{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2em;
    margin-top: 6em;
}

.boxes{
    height: 300px;
    max-width: 400px;
    margin: auto 1em;
    padding: 25px;
    background-color: #e9e5e5;
    box-shadow: rgb(25, 144, 128) 0 5px 15px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}    

.sub_heading{
    padding-bottom: 13px;
}

.para_1{
    font-size: 13px;
    line-height: 1.9;
    color: rgb(14, 14, 14);
}

.boxes h2{
    margin-top: 1em;
}

.boxes i{
    position: absolute;
    top: 0;
    left: 50%;
    font-size: 2em;
    background-color: rgb(17, 16, 16);
    padding: 20px;
    border-radius: 50%;
    color: rgb(247, 241, 241);
    transform: translate(-50%, -50%);
    transition: all 0.7s linear;
}

.boxes:hover i{
    cursor: pointer;
    border: 10px double rgb(25, 144, 128);
    transform: translate(-50%, -50%) rotateY(40deg);

}

/* Linea horizontal en la pagina */
hr {
    border: none;
    height: 2px;
    background-color: black;
    width: 30%; 
    margin: 20px auto; 
  }

/* Recorridos cards */
  .heading {
    text-align: center; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    margin-top: 30px; 
    padding: 40px;
}

.heading h1 {
    font-size: 40px;
    margin-bottom: 20px; 
}

.heading p {
    font-size: 16px; 
    color: #555; 
}

.container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
} 

.card{
    background: rgb(236, 234, 234);
    width: 300px;
    height: 400px;
    border-radius: 15px 15px 0 0;
    box-shadow: rgb(25, 144, 128) 0 5px 15px;
    
}

.card-image{
    height: 150px;
    margin-top: 15px;
    background-size: cover;
}

.tour-1{
    background-image: url("images/vasconcelos.jpeg");
}

.tour-2{
    background-image: url("images/quetz.jpeg.jpeg");
}

.tour-3{
    background-image: url("images/claparede.jpeg");
}

.tour-4{
    background-image: url("images/froebel.jpeg");
}

.tour-5{
    background-image: url("images/castaneda.jpeg");
}

.tour-6{
    background-image: url("images/albert.jpeg");
}

.card h2{
    padding: 10px;
    text-align: center;
}

.card p{
    padding: 10px;
    text-align: center;
}

.card a{
    background-color: #222;
    color: white;
    padding: 15px 20px;
    display: block;
    text-align: center;
    margin: 20px 50px;

}

.card a:hover{
    background-color: rgb(25, 144, 128);
    transition: 0.5s;
}

/* Contact section o Footer */
.footer {
    margin-top: auto; 
    background-color: rgb(25, 144, 128);
    color: white;
    padding: 10px 0;
    text-align: center;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
    padding: 10px 0;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-col p{
    color: rgb(224, 221, 221);
    text-decoration: none;
    font-size: 14px;
}

.footer-col a{
    color: rgb(250, 248, 248);
    text-decoration: none;
    font-size: 14px;
}

/* Seccion responsiva del sitio */
@media only screen and (max-width: 768px) {
    .recorridos_box {
        grid-template-columns: 1fr; 
        text-align: center; 
    }

    .right_box img {
        max-width: 100%; 
        height: auto;
    }
}

@media (max-width: 768px) {
    .box {
        grid-template-columns: 1fr; 
        text-align: center; 
    }

    .boxes {
        padding: 2em; 
    }
}    

@media (max-width: 768px) {
    .container {
        flex-direction: column; 
        text-align: center;
    }

    .container img {
        max-width: 300px; 
        padding: 10px;
    }

    .text {
        font-size: 16px; 
        max-width: 90%;
    }
}    

@media (max-width: 768px) {
    .main {
        grid-template-columns: 1fr; 
        text-align: center;
    }

    .right img {
        max-width: 90%; 
    }
}

@media (max-width: 768px) {
    .nav_items {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #444;
        padding: 10px 0;
    }

    .nav_items.active {
        display: flex;
    }

    .nav_menu {
        display: block;
    }

    .nav_items .item {
        flex-direction: column;
        text-align: center;
    }
}

