* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
:root {
    --rosa: #F04EAF;
}
main {
    width: 100%;
}

/* Contenedor inicio */
.contenedor-inicio {
    width: 100%;
    height: calc(100vh - 200px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.fondo-contenedor-inicio {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    background-image: url('./imagenes/chichen-foto.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.5);
}

/* Header */
header {
    width: 100%;
    max-width: 800px;
    height: 100px;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
}
.logo {
    height: 100%;
}
.logo img {
    height: 100%;
}
nav {
    display: flex;
    gap: 20px;
}
nav a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* Texto inicio */
/* Animacion Fade Up para el texto de inicio */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(250px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.contenedor-texto-inicio {
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    animation: fadeUp 1.5s ease;
}
.contenedor-texto-inicio h2 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 6rem;
    color: #fff;
    letter-spacing: 2px;
    line-height: 6rem;
}
.contenedor-texto-inicio p {
    background-color: var(--rosa);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 20px;
}

/* Contenedor busqueda */
.contenedor-busqueda {
    width: 100%;
    max-width: 1200px;
    height: 200px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 50px;
    position: absolute;
    bottom: -100px;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}
.campo-busqueda {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 200px;
}
.campo-busqueda label {
    font-weight: 600;
    font-size: 1.2rem;
    margin-left: 2px;
    margin-bottom: 5px;
}
.campo-busqueda input, .campo-busqueda select {
    padding: 10px 0;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #575757;
    background: none;
    outline: none;
}

.contenedor-boton button {
    padding: 15px 50px;
    background-color: var(--rosa);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Grid de categorias */
.contenedor-grid-categorias {
    margin: 200px auto 0 auto;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr 500px;
    grid-template-rows: 300px 300px;
    grid-template-areas: 
    "cenotes parques zonas-arq"
    "cenotes parques playas";
    gap: 10px;
}
.contenedor-grid-categorias a {
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 10px;
    text-decoration: none;
}
.contenedor-grid-categorias img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    z-index: -1;
    filter: brightness(0.6);
    transition: all .5s ease;
}
.contenedor-grid-categorias a:hover img {
    transform: scale(1.05);
}
.contenedor-grid-categorias a h2 {
    color: #fff;
    font-size: 2.5rem;
    line-height: 2.7rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}
.contenedor-grid-categorias .cenotes {
    grid-area: cenotes;
}
.contenedor-grid-categorias .parques {
    grid-area: parques;
}
.contenedor-grid-categorias .zonas-arqueologicas {
    grid-area: zonas-arq;
}
.contenedor-grid-categorias .playas {
    grid-area: playas;
}

/* Tours Populares */
.contenedor-tours-populares {
    width: 100%;
    max-width: 1200px;
    margin: 100px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.contenedor-tours-populares h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background-color: var(--rosa);
    padding: 8px 30px;
}
.grid-tours-populares {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}
/* Tarjeta Tour */
.card-tour {
    width: 100%;
    padding: 16px;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 100px rgba(0,0,0,0.05);
}
.contenedor-imagen-tour {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}
.contenedor-imagen-tour img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.contenedor-texto-tour {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.contenedor-texto-tour h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}
.descripcion-corta-tour {
    font-size: .9rem;
    color: #575757;
    margin-bottom: 5px;
}
.precio {
    font-size: 1.2rem;
    font-weight: 600;
}
.ver-tour {
    margin-top: 20px;
    padding: 8px 30px;
    background-color: var(--rosa);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    align-self: center;
    border-radius: 4px;
}

/* Contenedor Experiencia */
.contenedor-experiencia {
    width: 100%;
    max-width: 1200px;
    margin: 150px auto 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.imagen-experiencia {
    width: 100%;
    max-width: 500px;
    height: 300px;
}
.imagen-experiencia img {
    width: 100%;
}
.texto-experiencia {
    flex: 1;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.texto-experiencia h3 {
    font-size: 2.4rem;
    line-height: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    max-width: 450px;
}
.texto-rosa {
    color: #fff;
    background-color: var(--rosa);
    padding: 0 5px;
}
.texto-experiencia p {
    font-size: 1rem;
    margin-top: 10px;
    max-width: 450px;
    line-height: 1.5rem;
    color: #4d4d4d;
}

/* Media Queries */

@media (max-width: 768px) {

    /* Contenedor Inicio */
    .contenedor-inicio {
        height: calc(100vh - 250px);
        padding: 0 15px;
    }

    /* Header */
    header {
        padding: 5px 30px;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
    }
    nav {
        gap: 20px;
    }
    nav a {
        font-size: .8rem;
    }
    .enlace-linea-doble {
        max-width: 150px;
    }
    .logo {
        height: 30px;
    }

    /* Texto Inicio */
    .contenedor-texto-inicio h2 {
        font-size: 3.2rem;
        line-height: 3rem;
        letter-spacing: 0;
    }
    .contenedor-texto-inicio p {
        font-size: .8rem;
    }

    /* Contenedor Busqueda */
    .contenedor-busqueda {
        width: 90%;
        flex-direction: column;
        justify-content: space-around;
        height: 350px;
        padding: 20px 10px;
        bottom: -250px;
        box-shadow: 0 0 50px rgba(0,0,0,0.2);
    }
    .contenedor-busqueda label {
        font-size: 1rem;
        margin-bottom: 0;
    }
    .campo-busqueda input, .campo-busqueda select {
        padding: 5px 0;
    }
    .contenedor-boton button {
        display: block;
        padding: 12px 80px;
        font-size: .8rem;
    }


    /* Grid de categorias */
    .contenedor-grid-categorias {
        margin: 300px auto 0 auto;
        padding: 0 15px;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
        grid-template-areas:
        "cenotes"
        "parques"
        "zonas-arq"
        "playas";
    }
    .contenedor-grid-categorias a h2 {
        font-size: 1.5rem;
    }

    /* Tours Populares */
    .contenedor-tours-populares h3 {
        margin-bottom: 20px;
    }
    .grid-tours-populares {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    /* Tarjeta de tour */
    .card-tour {
        box-shadow: 0 0 100px rgba(0,0,0,0.1);
    }
    .ver-tour {
        width: 100%;
        text-align: center;
    }

    /* Contenedor Experiencia */
    .contenedor-experiencia {
        margin: 50px auto 0 auto;
        padding: 0 15px;
    }
    .texto-experiencia {
        padding: 0 15px;
    }
    .texto-experiencia h3 {
        font-size: 1.8rem;
        line-height: 2.5rem;
    }
    .texto-experiencia p {
        font-size: .9rem;
    }
}