:root {
    --fuentePrincipal: 'Lato', sans-serif;
    --primario: #da595e;
    --oscuro: #484848;
    --claro: #ffffff;
    --hospedaje: #275154;
    --cocina: #598dda;
    --paseo: #940ad4;
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

body {
    font-family: var(--fuentePrincipal);
}

img {
    max-width: 100%;
}

h1 {
    font-size: 2.6rem;
    font-weight: 400;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.8rem;
}

.main__boton {
    padding: 1rem;
    display: block;
    font-weight: 400;
    font-size: 1.2rem;
    border-radius: 10px;
    color: var(--oscuro);
    text-decoration: none;
    background-color: var(--claro);
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 13px 19px -10px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0px 13px 19px -10px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 0px 13px 19px -10px rgba(0, 0, 0, 0.4);
}

.main__boton:hover {
    color: var(--claro);
    background-color: var(--primario);
}


/* COLORES */

.main__concierto {
    color: var(--primario);
}

.main__cocina {
    color: var(--cocina);
}

.main__paseo {
    color: var(--paseo);
}

.main__hospedaje {
    color: var(--hospedaje);
}

.contenedor {
    max-width: 1100px;
    margin: 0 auto;
}


/* HERO */

.hero {
    display: grid;
    height: 100vh;
    background-size: cover;
    grid-template-rows: 1fr 2fr;
    background-repeat: no-repeat;
    background-image: url('../img/arriba.jpg');
}

.hero__header {
    width: 100%;
    display: flex;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.hero__nav--item {
    margin-right: 1rem;
    color: var(--claro);
    text-decoration: none;
}

.hero__nav--item:last-child {
    margin-right: 0;
}

.hero__contenido {
    display: grid;
    grid-template-columns: 5% auto 5%;
    grid-template-rows: max-content auto;
}

.hero__contenido h1 {
    color: var(--claro);
    grid-column: 2 / 3;
}

.hero__contenido form {
    height: 3rem;
    display: flex;
    grid-column: 2 / 3;
    position: relative;
}

.hero__contenido form input[type='text'] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.2rem;
    padding-left: 2.8rem;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-image: url(../img/lupa.png);
    background-position: calc(-4% + 1rem) calc(-145% + 0.8rem);
}

.hero__contenido form input[type='submit'] {
    top: .1rem;
    right: .1rem;
    border: none;
    outline: none;
    font-size: 1.2rem;
    position: absolute;
    color: var(--claro);
    padding: 0.7rem 2rem;
    border-radius: 10px;
    text-transform: uppercase;
    background-color: var(--primario);
}

.hero__contenido form input[type='submit']:hover {
    cursor: pointer;
}


/* CONTENIDO PRINCIPAL */


/* QUE HACER */

.main__contenido {
    padding: 0 0.3rem;
}

.main h2 {
    margin: 1rem 0;
}


/* Auto-fit se distribuye en todo el espacio dando la misma media a todos los elementos */

.main__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1rem;
}


/* Se Asigna Todo El Ancho A La Imagen Para QUe Ocupe Todo El Ancho Del Contenedor Padre (IMPORTANTE) */

.main__card img {
    width: 100%;
}

.main__categoria {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
}

.main__titulo {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0;
}

.main__precio {
    color: var(--oscuro);
    font-size: 0.9rem;
}


/* HOSPEDAJE PREMIUM */


/* Elimino los estilos de grid de la propiedad main__cards, con la palabara unset*/

.main__premium {
    height: 30rem;
    background-size: cover;
    grid-template-columns: unset;
    background-position: center right;
    background-image: url('../img/hospedaje-pro.jpg');
}

.main__info {
    display: flex;
    padding: 1rem;
    flex-direction: column;
    justify-content: center;
}

.main__info h3,
.main__info a {
    text-align: center;
}

.main__info h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}


/* DESTINOS POPULARES */

.main__destinos .main__cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 0.5rem;
}

.main__destinos .main__card {
    position: relative;
}

.main__destinos--caption {
    left: 1rem;
    bottom: 1rem;
    position: absolute;
}

.main__destinos--caption p {
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--claro);
}


/* FOOTER */

.footer {
    width: 100%;
    bottom: -165%;
    padding: 3rem 0;
    position: fixed;
    transition: all .1s ease-in;
    background-color: var(--claro);
    box-shadow: 0px -13px 24px -10px rgba(0, 0, 0, 0.32);
    -moz-box-shadow: 0px -13px 24px -10px rgba(0, 0, 0, 0.32);
    -webkit-box-shadow: 0px -13px 24px -10px rgba(0, 0, 0, 0.32);
}

.footer.activo {
    bottom: 0;
}

.footer {
    margin-top: 1.5rem;
}

.footer__nav {
    padding: 1rem;
}

.footer__nav h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer__menu a {
    display: block;
    color: var(--oscuro);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer__menu a:last-child {
    margin-bottom: 0;
}


/** REDES SOCIALES **/

.footer__sociales ul {
    display: flex;
    flex: 1 0 auto;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 1rem;
    justify-content: flex-end;
    /* justify-content: center; */
    /* justify-content: flex-start; */
    /* justify-content: space-around; */
    /* justify-content: space-between; */
}

.footer__sociales ul li {
    margin-right: 1rem;
}

.footer__sociales ul li:last-of-type {
    margin-right: 0;
}

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

.footer__sociales ul li a:before {
    font-family: 'Font Awesome 5 Brands';
    color: var(--oscuro);
    font-size: 1.8rem;
}

.footer__sociales ul li a[href*='facebook.com']::before {
    content: '\f39e';
}

.footer__sociales ul li a[href*='twitter.com']::before {
    content: '\f099';
}

.footer__sociales ul li a[href*='instagram.com']::before {
    content: '\f16d';
}

.footer__sociales ul li span {
    display: none;
}


/* BOTON FLOTANTE */

.btn__flotante {
    right: 1rem;
    bottom: 1rem;
    position: fixed;
    padding: .5rem 2rem;
    color: var(--oscuro);
    text-decoration: none;
    transition: all .3s ease;
    background-color: var(--claro);
    box-shadow: 0px 13px 19px -10px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0px 13px 19px -10px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 0px 13px 19px -10px rgba(0, 0, 0, 0.4);
}

.btn__flotante.activo,
.btn__flotante:hover {
    color: var(--claro);
    background-color: var(--primario);
}


/* MEDIA QUERYS DETALLES ESPECIFICOS DE UN ELEMENTO ESPECIFICO */

@media screen and (max-width: 322px) {
    .hero__nav--item {
        margin-right: .8rem;
    }
}

@media screen and (min-width: 440px) {
    .hero__contenido form input[type='text'] {
        background-position: calc(-3% + 1rem) calc(-145% + 0.8rem);
    }
}

@media screen and (min-width: 585px) {
    .hero__contenido form input[type='text'] {
        background-position: calc(-2% + 1rem) calc(-145% + 0.8rem);
    }
}

@media screen and (min-width: 768px) {
    .hero__header {
        height: 13vh;
        flex-direction: row;
        justify-content: space-between;
    }
    .hero__contenido form {
        height: 4rem;
    }
    .hero__contenido form input[type='text'] {
        padding-left: 5rem;
        background-position: calc(1% + 1rem) calc(1% + 0.8rem);
    }
    .hero__contenido form input[type='submit'] {
        top: 0.6rem;
        right: 1rem;
    }
    .main__premium {
        grid-template-columns: auto 30%;
    }
    .main__info {
        grid-column: 2 / 3;
    }
}