:root {
    --main: #00E8FE;
    --secondaryMain: #0FA9A9;
    --white: #FFF;
    --secondaryWhite: #F7F7F7;
    --gray: #414141;
    --lightGray: #a0a0a0;
    --black: #000;
}

body {
    font-family: "Raleway", sans-serif;
    letter-spacing: 1px;
    background-color: #f4f4f4;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 18px;
}

@media (max-width: 576px) {
    body {
        font-size: 12px;
    }

    .hidden {
        display: none;
        
    }

    header nav, header nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    nav span {
        font-size: 1rem;
    }
    
    #dropdown {
        background-color: var(--secondaryMain);
        padding: 5px;
        border-radius: 5px;
        border: none;
        display: flex !important;
        justify-content: center;
        align-items: center;
    
        & img {
            width: 10px;
        }
    }

    #inicio{
        height: 400px !important;

        & h1 {
            font-size: 2.3rem !important;
        }

        & > div{
            opacity: 1 !important;
            min-width: 320px;

            & p {
                margin-top: 1rem;
                font-size: 1rem;
                width: 70%;
            }
        }
    }

    #carrusel > div {
        opacity: 1 !important;
        font-size: .6rem !important;

        & h1 {
            font-size: 1.8rem !important;
            margin-bottom: .3rem;
        }

        & h2 {
            font-size: 0.8rem !important;
        }
    }

    #inicio > div {
        opacity: 1;
    }

    #contacto {
        padding-bottom: 2rem;

        & article {
            padding: 0 1rem !important;

            & h2 {
                font-size: 1rem;
            }
        }

        

    }

    #empresa {
        font-size: 2.2rem !important;
    }

    .tarjeta-contacto {
        font-size: 1rem !important;
    }

    footer {
        font-size: .8rem !important;    
    }

    footer h4 {
        font-size: 1.2rem !important;
    }
}



@media (max-width: 768px) and (min-width: 578px) {
    body {
        font-size: 14px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    body {
        font-size: 16px;
    }
}

@media (max-width: 1400px) and (min-width: 992px) {
    body {
        font-size: 16px;
    }
}
button {
    cursor: pointer;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    z-index: 30;
    width: 100vw;
    background-color: var(--black);
    color: var(--white);
    padding: 1em 0;
    text-align: center;
}

nav {
    padding: 20px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 569px) {
    nav > span {
        max-width: 200px;
    }
}
nav > span {

    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

nav span > span > span {
    color: var(--main);
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 1em;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
}

nav ul li a:hover, nav ul li a:active {
    color: var(--main);
    text-decoration: none;
    transition: all 300ms ease-in-out;
}

h2 {
    text-align: center;
}

@media (max-width: 576px){
    h2 {
        font-size: 2rem;
    }
}

@media (min-width: 577px){
    h2 {
        font-size: 3rem;
    }
}


main {
    padding: 80px 0 0 0;
}

section {
    padding: 2em;
}

section p {
    font-size: 1.2rem;
    min-width: 320px;
}

.circle {
    border-radius: 50%;
}

#dropdown {
    display: none;
}

#inicio {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 90vh;
    /* background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/Nueva_Fachada_del_AIAAC.jpg/1200px-Nueva_Fachada_del_AIAAC.jpg") rgba(0, 0, 0, 0.568); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}


#inicio p > span {
    font-weight: 700;
    
    & > span {
        color: var(--secondaryMain);
    }
}

#inicio p {
    font-size: 1.2em;
    width: 50%;
}

#carrusel {
    width: 100%;
    position: relative;
    /* z-index: -1; */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* object-fit: fill; */
}

#img-carrusel {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

#carrusel > div {
    position: absolute;
    top: 0;
    flex-direction: column;
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: var(--secondaryWhite);
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.596);
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
    transition: 500ms all ease-out;


    & h1 {

        font-size: 6rem;
        width: 50%;
        font-weight: 800;

        & span {
            color: var(--main);
        }
    }

    & h2 {
        margin-top: 1rem;
        font-size: 1.2rem;
    }

    & a {
        color: var(--main);
        text-decoration: none;
    }
}

#carrusel > div:hover{
    opacity: 1;
}


#btn-left, #btn-right {
    position: absolute;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    top: 50%;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-left img, #btn-right img {
    width: 1rem;
}

#btn-right {
    border-radius: 10px 0 0 10px;
    right: 0;
}

#btn-left {
    border-radius: 0 10px 10px 0;
}

/* seccion de clientes */

#clientes {
    padding-top: 10vh;
}

@media (max-width: 576px) {
    #clientes div img {
        width: 5rem !important;
    }
}

#clientes div {

    display: flex;
    flex-wrap: wrap;
    min-width: 320px;
    margin: 5rem auto;
    gap: 2rem;
    width: 50%;
    align-items: center;
    justify-content: center;
     & img {
        width: 10rem;
    }
}

/* seccion de las marcas */

@media (max-width: 576px) {
    #marcas div {
        gap: 1rem !important;
    }
    #marcas div img {
        height: 4rem !important;
    }
    #marcas div .rentas {
        height: 3rem !important;
    }
    #marcas div .bancos {
        height: 1rem !important;
    }
}

#marcas div {
    padding: 10vh 0;
    min-width: 320px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 2rem;
    width: 60%;

    & img {
        height: 7rem;
    }
    & .bancos {
        height: 2rem;
    }

    & .rentas {
        height: 5rem;
    }
}

#medios-externos, #medios-internos {
    padding: 4rem 0;
}

#medios-externos {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}   


#medios-externos p, #medios-internos p {
    width: 50%;
}


#medios-externos .container-images {
    width: 80%;
    margin: 0 auto;
    gap: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    & figure {
        background-color: #00E8FE;
        width: 100%;
        display: flex;
    }

    & img {
        width: 100%;
        object-fit: cover;
    }
}
@media (max-width: 576px) {
    #medios-externos .container-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    #medios-internos .container-images {
        width: 100% !important;
        padding: 1rem !important;

    }
}


#medios-internos h2 {
    margin: 2rem 0;
}

#medios-internos p {
    margin: 1rem auto;
    text-align: center;
}


#medios-internos .container-images {
    padding: 2rem;
    width: 80%;
    min-width: 320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;

    & figure:nth-child(3) {
        grid-row: span 2;
    }

    & figure:nth-child(4) {
        grid-column: span 2;
    }
    & figure:nth-child(8) {
        grid-column: span 3;
    }
    & figure:nth-child(13) {
        grid-column: span 2;
    }
    & figure:nth-child(17) {
        grid-column: span 2;
    }
    & figure:nth-child(19) {
        grid-row: span 2;
    }
    & figure:nth-child(20) {
        grid-row: span 2;
    }
    
}

#medios-internos .container-images figure {
    width: 100%;
    /* height: 100%; */
    display: flex;

    & img {
        object-fit: cover;
        width: 100%;
    }
}



@media (max-width: 768px) {
    #nosotros{
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px){
    #nosotros {
        grid-template-columns: repeat(3, minmax(0, 500px));
    }
}

#nosotros h2 {
    color: var(--main);
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

#nosotros {
    color: var(--secondaryWhite);
    background-color: var(--gray);
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    text-align: center;
    padding: 7rem 0 7rem;
}


#nosotros p {
    margin: 0 1rem;
}

#nosotros > div {
    /* border: 1px solid white; */
    height: 500px;  
    min-width: 300px;
    /* background-color: #333; */
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

#nosotros > div:hover {
    background-color: #333;
    transition: 500ms all ease-in-out;
    transform: translateY(-20px);

    & h4 {
        color: var(--main);
        transition: 500ms all ease-in-out;
    }
}

#nosotros > div img {
    width: 10rem;
}

#nosotros div ul {
    text-align: left;
    padding-left: 2rem;
    font-size: 1.2rem;
}

#nosotros h4 {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondaryWhite);
}

.columns {
    display: flex;
    justify-content: space-between;
}

.column {
    flex: 1;
    margin: 0 1em;
}


#empresa {
    font-size: 5rem;
    & span {
        color: var(--main);
    }
}

#contacto {
    margin-top: 3rem;
    padding: 0;
    background-color: var(--white);
    display: flex;
    flex-direction: column;

}

#contacto h2 {
    font-size: 1.2rem;
    margin: 1rem 0;
}

#contacto article {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 5rem;
    color: var(--secondaryWhite);
    text-align: center;
    background-color: var(--black);
}


/* #contacto article > h2, #contacto article > h3, #contacto article > span {
    grid-column: span 2;
    } */
    
    #contacto article > span {
        color: #dbdbdb;
        margin-bottom: 2rem;
    }
    
    .contactos {
        width: 60%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        
    }
    
    #contacto article .tarjeta-contacto {
        display: flex;
        gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.4rem;
    
    & img {
        height: 1.4rem;
    }

    & span {
        width: 100%;
    }
}

#contacto iframe {
    margin-top: 7rem;
    align-self: center;
    width: 40%;
    min-width: 320px;
}

#contacto a {
    text-decoration: none;
    color: var(--secondaryWhite);
}

#contacto form {
    display: flex;
    padding: 3rem 0;
    flex-direction: column;
    align-items: center;
    gap: 1rem 2rem; 
    width: 40%;
    min-width: 320px;
    background-color: var(--secondaryWhite);
    margin:  0 auto 5rem auto;
}

#contacto form input {
    min-width: 300px;
}

#contacto label {
    color: rgb(153, 153, 153);
    display: flex;
    flex-direction: column;
    width: 80%;
    min-width: 300px;
}

#contacto input, #contacto textarea {
    padding: 0.5em;
    margin-top: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contacto button {
    margin-top: 1em;
    padding: 0.7em;
    background-color: var(--secondaryMain);
    font-family: inherit;
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}


footer {
    background-color: var(--secondaryWhite);
    color: var(--lightGray);
    text-align: center;
    padding: 5rem 0;
    width: 100%;
    bottom: 0;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

footer > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

footer a {
    text-decoration: none;
}
footer img {
    height: 1rem;
}

footer > span {
    display: block;
}

footer h4 {
    font-size: 2rem;
}