:root {
    --primario: #ffbd00;
    --blanco: white;
    --negro: black;
    --fontPrincipal: 'Futura Extra Black Condensed Regular';
    --fontPrincipalAlternativo: 'Futura Condensed Bold';
    --fontCursiva: 'SignPainter HouseScript Regular'
}

@font-face {
    font-family: 'Futura Condensed Bold';
    src: url('Futura\ Condensed\ Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Futura Extra Black Condensed Regular';
    src: url('Futura\ Extra\ Black\ Condensed\ Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SignPainter HouseScript Regular';
    src: url('SignPainter\ HouseScript\ Regular.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html {
    box-sizing: border-box; /*permite trabajar con tamaños exactos sin batallar con padding*/
    scroll-snap-type: y mandatory;
}

*, *:before, *:after { 
    box-sizing: inherit;
}

h1 {
    font-family: var(--fontPrincipal);
    font-size: 3.8rem;
    text-transform:uppercase;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

h1, h2, h3 {
    text-align: center;
    font-family: var(--fontPrincipal);
}

p {
    margin: 0;
    font-family: var(--fontPrincipal);
}

.header {
    background-color: var(--primario);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    overflow: hidden;
}

.header__logo {
    height: 180px;
    margin-left: 3rem;
}

.enlaces {
    max-width: 60%;
}

.enlace {
    padding: 1.5rem;
    font-family: var(--fontPrincipal);
    text-transform: uppercase;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--negro);
}

.enlace__activo {
    color: var(--blanco);
}

.enlace:hover {
    color: var(--blanco)
}

.section {
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.section h1 {
    font-size: 4rem;
    margin: 0 0;
}

.section h3 {
    font-size: 3.5rem;
    font-family: var(--fontCursiva);
    color: var(--primario);
    margin-bottom: 2.5rem;
}

.cards {
    height: auto;
    display: flex;
    justify-content: space-evenly;
}

.card {
    width: 20%;
    padding: 1rem;
    border: none;
    border-radius: 20px;
    background-color: var(--blanco);
    position: relative;
}

.card-item {
    border: 4px solid black;
    border-radius: 20px;
    padding: 1rem;
    z-index: 3;
    position: relative;
}

.card-img {
    width: 95%;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.card-item p {
    text-transform: uppercase;
    margin-top: 14rem;
    margin-bottom: 1rem;
}

.item__enlace {
    text-decoration: none;
    color: var(--blanco);
    font-family: var(--fontPrincipal);
    text-transform: uppercase;
    padding: 0.5rem;
    display: block;
    margin: 0.5rem auto;
    background-color: var(--negro);
    border-radius: 15px;
    width: 8rem;
}

.item__enlace:hover{
    background-color: var(--primario);
    color: var(--black);
}

.footer {
    background-color: var(--primario);
    height: 10rem;
    display: flex;
    z-index: 1;
}

.contenedor-izquierdo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
}

.footer__img {
    height: 150px;
}

.datos {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

.datos h3 {
    font-family: var(--fontPrincipal);
    text-transform: uppercase;
    margin: 0;
}

.datos p {
    font-family: var(--fontPrincipalAlternativo);
}

.contenedor-derecho {
    display: flex;
    justify-content: right;
    align-items: center;
    width: 53%;
}

.footer_enlace {
    margin: 1rem;
}

.footer__enlace--img {
    height: 40px;
}

@media(max-width: 1200px) {

    .header {
        height: 80px;
    }
    .enlace {
        padding: 1rem;
        font-size: 1.2rem;
    }

    .card {
        width: 25%;
    }

    .card-item p {
        margin-top: 12rem;
        min-height: 100px;
    }

}

@media(max-width: 860px) {

    .header {
        height: 60px;
    }

    .header__logo {
        margin-left: 1rem;
        height: 130px;
    }

    .enlace {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .section {
        height: 190vh;
    }

    .card {
        width: 30%;
    }

    .card-img {
        width: 70%;
        top: -15px;
    }

    .card-item p {
        margin-top: 9rem;
    }

    .datos h3 {
        font-size: 1.2rem;
        text-align: left;
    }
    .footer_enlace {
        margin: 0.5rem;
    }
}

@media(max-width: 780px) {

    .enlaces {
        margin-right: 1rem
    }

    .section {
        height: 65vh;
    }

    .card {
        width: 35%;
    }

    .card-img {
        width: 95%;
        top: -30px;
    }

    .card-item p {
        margin-top: 13rem;
    }

    .datos h3 {
        font-size: 1rem;
        text-align: left;
    }
}

@media(max-width: 450px) {
    .header {
        height: 50px;
    }

    .header__logo {
        margin-left: 0.1rem;
        height: 90px;
    }

    .enlaces {
        min-width: 75%;
    }

    .enlace {
        padding: 0.2rem;
        font-size: 0.7rem;
    }

    .section {
        height: 70vh;
    }

    .section h1 {
        font-size: 2rem;
    }

    .section h3 {
        font-size: 1.8rem;
    }

    .card {
        width: 50%;
    }

    .card-img {
        width: 70%;
        top: -5px;
    }

    .card-item p {
        margin-top: 7rem;
        font-size: 0.8rem;
        margin-bottom: 0rem;
        min-height: 80px;
    }


    .item__enlace {
        width: 70%;
        font-size: 0.7rem;
        padding: 0.2rem;
    }

    .footer {
        height: 7rem;
    }

    .contenedor-izquierdo {
        width: 55%;
    }

    .footer__img {
        height: 80px;
    }

    .datos h3 {
        font-size: 0.9rem;
    }

    .datos p {
        font-size: 0.8rem;
    }

    .contenedor-derecho {
        padding-right: 20px;
    }

    .footer_enlace {
        margin: 0.3rem;
    }

    .footer__enlace--img {
        height: 25px;
    }

}