/* ---ESTILOS PRINCIPALES---
    Definen:
    - Atributos globales de todos los elementos
    - Estilos de elementos comunes a todas las páginas (navbar y footer) */

:root {
    --naranja: #FDAC00;
    --azul: #012333;
    --white: #FFFDF6;
}

@font-face {
    font-family: Roboto;
    src: url(../type/roboto/Roboto-Regular.ttf);
}

@font-face {
    font-family: "Roboto Bold";
    src: url(../type/roboto/Roboto-Bold.ttf);
}

@font-face {
    font-family: "Roboto Medium";
    src: url(../type/roboto/Roboto-Medium.ttf);
}

html {
    font-family: Roboto;
}

body {
    background-color: #FFFDF6;
    margin: 0;
    color: var(--azul);
    margin-top: 81.2px;
}

h1 {
    font-family: "Roboto Bold";
}

h3 {
    font-family: "Roboto Medium";
}

a {
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
    margin: 0;
    padding: 0;
    outline: none;
    position: relative;
    color: #001118;
}

a:hover {
    color: #FDAC00 !important;
}


/* ---NAVBAR--- */

.navbar {
    position: fixed;
    background-color: var(--white);
    z-index: 10;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 30px;
    align-items: center;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,.1);
    margin-top: -81.2px !important;
}

#logo {
    width: 12.5%;
    height: 12.5%;
    cursor: pointer;
}

.mobile-nav {
    display: none;
}

.navbar .nav-item {
    display: inline;
    padding: 0 20px;
}

.navbar a {
    text-decoration: none;
    color: var(--azul);
}

#ham {
    display: none;
}

@media only screen and (max-width: 800px) {
    .navbar #logo {
        margin-bottom: 2px;
        margin-left: 0px;
        width: 125px !important;
    }

    #ham {
        display: block;
    }

    .navbar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 0px;
        width: 100%;
    }

    .navbar ul{
        display: none;
    }

    .container h1 {
        font-size: 39px;
        font-weight: 100;
    }
}


/*---FOOTER---*/

.footer {
    padding: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #012333;
    color: white;
    justify-content: space-between;
}

.footer .section1 {
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    align-items: center;
}

.footer .section2 {
    display: flex;
    flex-direction: column;
    width: 20%;
    gap: 45px;
}

.footer .section2 input {
    padding: 10px;
    background: transparent;
    border: 2px solid white;
    border-radius: 25px;
    color: white;
    width: max-content;
}

.footer .section2 img {
    width: 15%;
}

.footer .section3 {
    flex-direction: column;
}

.footer .subsect3 a {
    display: flex;
    gap: 7.5%;
    flex-direction: row !important;
    color: var(--white) !important;
}

.footer .subsect3 a:hover {
    text-decoration: underline;
}

.footer .section2 input:focus {
    border-color: var(--naranja) !important;
    transition: 0.2s;
}


/* ---BOTONES--- */

/* -Botón naranja- */
.botonNaranja {
    background-color: var(--naranja);
    border-radius: 100px;
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-family: Roboto;
    font-size: 1em;
    font-weight: bolder;
    transition-duration: 0.4s;
    border: 2px solid #FDAC00;
    cursor: pointer;
}

.botonNaranja:hover {
    background-color: white;
    color: #FDAC00;
}

/* -Botón azul- */
.botonAzul {
    background-color: var(--azul);
    border-radius: 100px;
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-family: Roboto;
    font-size: 1em;
    font-weight: bolder;
    transition-duration: 0.4s;
    border: 2px solid #001118;
    cursor: pointer;
}

.botonAzul:hover {
    background-color: white;
    color: #001118;
}


/* ---TARJETAS--- 
    Estructura de uso:
    0. card-container
        --> 1. vertical-card-wrapper // horizontal-card-wrapper (dependiendo de qué tarjetas se quieren usar)
            --> 2. vertical-card // horizontal-card
                --> 3.1. (estructura interna vertical-card) card-image + textos (+botones)
                --> 3.2. (estructura interna horizontal-card) card-image + text-content
*/

/* -Contenedor de tarjetas (.card-container)- */
.card-container {
    padding: 5% 6%;
}

.card-container h1 {
    color: var(--naranja);
    padding-bottom: 30px;
    font-size: 2.5em;
}

.card-container .btn-more {
    float: right;
    padding: 10px 15px;
    margin: 30px 0;
    background-color: var(--azul);
    color: white;
    font-family: Roboto;
    font-size: 1em;
    font-weight: bolder;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 7%;
}


/* -Tarjeta vertical (wrapper y tarjeta + estructura interna)- */

.vertical-card-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    /* vvv Estas propiedades controlan que conforme se añadan más tarjetas al div, 
    que se vayan colocando debajo y que tengan un espacio entre ellas vvv */
    flex-wrap: wrap;
    row-gap: 10vh;
    column-gap: 4.75vw;
}

.vertical-card {
    width: 25.5vw;
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--azul);
    background-color: #FFFDFA;
    transition: transform 0.1s linear;
    filter: drop-shadow(1px 1px 6px #01233353);
}

.vertical-card:hover, .horizontal-card:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.vertical-card .card-image {
    width: 100%;
    height: 20vh;
    background-color: #001118;
    background-size: 100%;
}

.vertical-card h3, .vertical-card p {
    margin: 15px 20px;
}

.vertical-card h3, .horizontal-card h3 {
    font-size: 1.65em;
    color: var(--azul);
}

.vertical-card p, .horizontal-card p {
    margin-top: 0;
    color: #012333af;
    text-align: justify;
}

.vertical-card small {
    position: absolute;
    margin-top: -25px;
    color: #012333af;
}

.vertical-card button {
    margin: 30px 0;
    margin-right: 30px !important;
}

/* -Tarjeta horizontal (wrapper y tarjeta + estructura interna)- */

.horizontal-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5vh;
}

.horizontal-card {
    border: 1px solid var(--azul);
    display: flex;
    align-items: center;
    gap: 3%;
    background-color: #FFFDFA;
    transition: transform 0.1s linear;
    filter: drop-shadow(1px 1px 6px #01233353);
}

.horizontal-card .card-image {
    width: 100%;
    height: 30vh;
    background-color: #001118;
    background-size: 100%;
}

.horizontal-card .text-content {
    height: 100%;
    padding-right: 2.5%
}

.horizontal-card .text-content div, .vertical-card div {
    display: flex;
    justify-content: flex-end;
}
.horizontal-card p {
    margin: 0;
}

@media screen and (max-width: 800px) {

    p {
        font-size: 1em !important;
    }

    .navbar {
        padding: 20px;
        width: 90%;
        margin-bottom: -5px;
    }

    .news-box {
        flex-direction: column !important;
        gap: 50px;
    }

    .vertical-card {
        width: 100%;
    }
    
    .footer {
        flex-direction: column;
        align-content: center;
        gap: 25px;
    }
    .footer .section2 {
        width: 80vw;
        text-align: center;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        position: fixed;
        z-index: 100;
        background-color: var(--azul);
        color: white !important;
        right: 0;
        top: 0;
        padding: 20px;
        gap: 100px;
        width: 50%;
        height: 100vh;
    }
    .mobile-nav ul {
        list-style: outside none none;
        text-align: right;
        line-height: 3em;
        font-size: 1.25rem;
    }
    .mobile-nav a {
        color: white;
    }
    .mobile-nav img {
        width: 20%;
    }
}