@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@500&family=Roboto:wght@300;400&display=swap');
 :root {
    --claro: #decd87ff;
    --medio: #786721ff;
    --oscuro: #31380f;
    --vmedio: #89a02cff;
    --vmedioalfa: rgba(137, 160, 44, 0.904);
    --vclaro: #bcd35fff;
    --blanco: #fff;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--oscuro);
}

main {
    display: flex;
    position: relative;
}

aside {
    background-color: var(--oscuro);
    min-width: 8rem;
    min-height: 100vh;
    box-shadow: 5px 0px 12px rgba(0, 0, 0, 0.493);
    position: fixed;
    z-index: 1;
}

.contenedor {
    margin: 0 0 0 12rem;
    width: 100%;
}

img {
    max-width: 100%;
}

ul {
    padding-top: 2rem;
}

li {
    list-style: none;
    padding: 1rem 0.5rem;
}

a {
    text-decoration: none;
    color: var(--claro);
    margin: auto;
    font-size: 0.8rem;
    font-weight: lighter;
    letter-spacing: 0.2rem;
    border-bottom: solid .1rem #31380f00;
    transition: all .3s ease;
}

a:hover {
    border-bottom: solid .2rem var(--medio);
    letter-spacing: .1rem;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 12rem;
}

.menu {
    max-width: 12rem;
}

.grupos {
    margin-left: 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
}

.redes {
    text-align: center;
    padding: 0 0 2rem;
}

.redes a {
    padding: 0.5rem;
    text-align: center;
    transition: all .2s ease;
}

.redes a:hover {
    color: var(--vclaro);
    font-size: 1.1rem;
}

.hero {
    display: flex;
    min-width: 12rem;
    max-height: 100vh;
    background-size: cover;
    background-position: top-left;
    transition: all .5s ease-in-out;
    background-image: url(/img/2.jpg);
    animation: slider 60s linear infinite;
}

@keyframes slider {
    0% {
        background-position: bottom;
        background-image: url('/img/3.jpg');
    }
    13% {
        background-position: top-right;
        background-image: url('/img/4.jpg');
    }
    25% {
        background-position: top-right;
        background-image: url('/img/5.jpg');
    }
    38% {
        background-image: url('/img/6.jpg');
        background-position: top-right;
    }
    50% {
        background-image: url('/img/7.jpg');
        background-position: top-right;
    }
    63% {
        background-image: url('/img/8.jpg');
        background-position: top-right;
    }
    75% {
        background-image: url('/img/1.jpg');
        background-position: top-right;
    }
    88% {
        background-image: url('/img/2.jpg');
        background-position: top-right;
    }
    100% {
        background-image: url('/img/3.jpg');
        background-position: top-right;
    }
}

.content_hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20rem 10%;
}

.content_hero h1 {
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 3rem;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.479);
}

.btn {
    margin: 4rem;
    padding: 1rem;
    text-transform: uppercase;
    background-color: var(--medio);
    border-radius: 15px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.479);
    transition: all .3s ease;
}

.btn:hover {
    color: var(--vclaro);
    background-color: var(--oscuro);
    box-shadow: 0px 0px #000;
}


/* Sección Nosotros */

.nosotros {
    background-color: var(--oscuro);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1rem;
}

.nosotros h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.479);
}

.virtudes {
    width: 25vw;
    padding: 1rem;
    text-align: center;
}

.virtudes_central {
    display: flex;
    align-items: center;
}

.virtudes_bajo {
    display: flex;
}


/* Sección Commodities */

.commodities {
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    min-height: 100vh;
    background-color: var(--blanco);
}

.cabecera {
    width: 100%;
    height: 163px;
    background-image: url(/img/3.jpg);
    background-position: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.cabecera h1 {
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.479);
}

.cabecera h2 {
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.479);
}

.info_btn {
    background-color: rgba(0, 0, 0, 0.479);
    padding: .5rem;
    border-radius: 15px;
    color: var(--vclaro);
    font-variant: small-caps;
    font-weight: bold;
}

.info_btn:hover {
    background-color: var(--vclaro);
    color: var(--blanco);
    border: none;
}

.contenido {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem;
}

.contenido2 {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1rem;
}

.tarjeta {
    position: relative;
    width: 250px;
    border-radius: 15px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.486);
}

.image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.overlay {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background-color: var(--vmedioalfa);
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    height: 0;
    font-family: 'Josefin Sans', sans-serif;
    transition: .5s ease;
}

.tarjeta:hover .overlay {
    bottom: 0;
    height: 100%;
}

.text {
    white-space: nowrap;
    color: white;
    font-size: 20px;
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.detalles_btn {
    color: #fff;
    font-family: 'Roboto', sans-serif;
}

.detalles_btn:hover {
    border-bottom: solid .2rem #fff;
}


/* Sección Commodities/Alimentos */

.alimentos {
    background-color: var(--oscuro);
    min-height: 100vh;
}

.alimentos .cabecera {
    background-image: url(/img/cañaVW.jpg);
}


/* Sección Commodities/Minerales */

.minerales {
    background-color: var(--oscuro);
    min-height: 100vh;
}

.minerales .cabecera {
    background-image: url(/img/mineria1200px.jpg);
}


/* Sección Commodities/Energéticas */

.energeticas {
    background-color: var(--oscuro);
    min-height: 100vh;
}

.energeticas .cabecera {
    background-image: url(/img/energeticas2VW.jpg.jpg);
}


/* Sección Commodities/Industrtiales */

.industriales {
    background-color: var(--oscuro);
    min-height: 100vh;
}

.industriales .cabecera {
    background-image: url(/img/industrialesVW.jpg);
}


/* Sección Commodities/Financieras */

.financieras {
    background-color: var(--oscuro);
    min-height: 100vh;
}

.financieras .cabecera {
    background-image: url(img/financierasvw.jpeg);
}


/* Contactos */

.contactos {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.contactos .cabecera {
    background-image: url(img/Contact.jpg);
}

.contact_content {
    background-color: var(--oscuro);
    color: var(--claro);
    padding: 10px;
    max-width: 25vw;
    font-size: .8rem;
    border-radius: 15px;
}

.contact_content h2 {
    text-align: center;
}

.ubicacion {
    max-width: 270px;
    padding: 10px;
}

.ubicacion h2 {
    margin-bottom: 10px;
}

.ubicacion iframe {
    margin-bottom: 15px;
}

.contact_btn {
    display: flex;
    background-color: var(--vmedio);
    color: var(--blanco);
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 4px 4px 10px black;
    transition: all ease .3s;
}

.contact_btn:hover {
    box-shadow: 1px 1px 4px rgb(255, 255, 255);
    border: none;
}


/* Formulario de contacto */

div.elem-group {
    padding: 10px 10px;
}

label {
    display: block;
    font-family: 'Roboto';
    padding-bottom: 4px;
    font-size: 1em;
}

input,
select,
textarea {
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
    font-family: 'Roboto';
    max-width: 20vw;
    padding: 5px;
}

textarea {
    height: 100px;
}


/* Footer */

footer {
    font-size: smaller;
    background-color: var(--oscuro);
    color: #fff;
    width: 100%;
    padding: 2rem;
    text-align: center;
}