@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

html {
    box-sizing: border-box;
    font-size: 62.5%;
    /* 1 rem = 10px*/
    scroll-behavior: smooth;
}

:root {
    --color-principal: #3773CB;
    --background: #f4f4f4;
    --white: #ffffff;
    --black: #333333;
}

/* Práctica recomendada: Borrar el de Edge y usar tu propio botón JS */
input::-ms-reveal {
    display: none;
}

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

body {
    font-family: "Inter", sans-serif;
    font-size: 1.6rem;
}

/* Globales */
a,
span {
    text-decoration: none;
    color: var(--black);
    display: block;
    padding: 1rem 1.2rem;
}

li {
    list-style: none;
}

/* nav */
.nav__list {
    background-color: var(--background);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__item--logo a {
    background-color: var(--color-principal);
    border-radius: .3rem;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--white);
}

.nav__item--admin .nav__text {
    display: none;
}
.nav__item--admin .nav__icon{
    display: block;
}
.nav__item--admin .nav__link {
    padding: 0;
}

/* fondo */
.hero {
    height: 100dvh;
    background-image:
        linear-gradient(0deg, rgba(55, 115, 203, 0) 0%, rgba(55, 115, 203, 1) 100%),
        url(../image/gec.jpg);
    background-size: cover;
    background-position: center;
}

.hero__container {
    padding: 2.4rem 3.6rem;
    height: inherit;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    justify-content: center;
}

.hero__title {
    font-size: clamp(3.8rem, 4vw, 5.6rem);
    padding-inline: 1rem;
    text-align: center;
    color: var(--white);
}

.hero__text {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    text-align: center;
    color: var(--white);
}

.form, .form__admin {
    width: 100%;
    max-width: 33rem;
    background-color: rgba(255, 255, 255, 0.3);
    margin-inline: auto;
    padding: 2.4rem;
    border-radius: 1.6rem;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.form__title {
    color: var(--white);
    align-self: flex-start;
}

.form__texto {
    color: var(--white);
}

.form__group {
    position: relative;
    width: 100%;
}

.form__input {
    width: inherit;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--white);
    color: var(--white);
    border-radius: 0.8rem;
    padding-block: 0.8rem;
    padding-left: 3rem;
    font-size: 1.6rem;
}
/* administrador input */

label{
    width: 100%;
    display: flex;
    padding-bottom: 1rem;
    color: var(--white);
    flex-direction: column;
    gap: 1rem;
}

.form__admin a{
    color: var(--white);
     padding: 0;
}
.form__admin a:hover{
    text-decoration: underline;
    text-decoration-color: var(--background);
}
.form__admin{
    gap: 1rem;
}
/*  */

.form__input::placeholder {
    color: var(--white);
    opacity: 0.8;
}

.form__input:focus {
    outline: none;
    box-shadow: 0px 0px 5px var(--white);
    background-color: rgba(51, 51, 51, 0.3);
}

.form__icon {
    position: absolute;
    left: 2%;
    bottom: 20%;
}

.form__button {
    background-color: var(--color-principal);
    width: 100%;
    padding: 0.8rem;
    color: var(--white);
    border: none;
    border-radius: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 300ms ease;
}

/* option */
.option {
    background-color: var(--background);
    padding: 6.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.option__group:first-child {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.option__group>h2 {
    font-size: 3.2rem;
    color: var(--color-principal);
}

.option__group>p {
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.5)
}

.option__item {
    width: 40rem;
    background-color: var(--white);
    padding: 2.4rem;
    border-radius: 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 16px 24px -16px rgba(0, 0, 0, 0.16);
    gap: 1.4rem;
    text-align: center;
    transition: all 300ms ease;
}

.option__item p {
    color: rgba(0, 0, 0, 0.5);
}

.option__group:last-child {
    padding: 2.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.6rem;
}

/* footer */
footer {
    background-color: #1B3A66;
    padding: 2.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer__group,
p:last-child {
    width: 100%;
}
.footer__group:first-child{
    padding: 2.4rem;
}

.footer__group {
    display: flex;
    flex-wrap: wrap;
    gap: 5.8rem;
}
.footer__group:last-child{
    border-top: 1px solid #ccc;
}

.footer__group>p {
    padding: 4.8rem 0.2rem;
}

.footer__item{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

footer .footer__item
a,.footer__item h3,
p {
    color: var(--white);
}
.footer__item a {
    padding: 0;
}
.footer__item a:hover{
    text-decoration: underline;
}

.footer__item strong {
    font-size: 2rem;
}

.footer__item:first-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__item div{
    display: flex;
    gap: 1.8rem;
}

.footer__item a{
    position: relative;
}

.footer__item .footer__icon::before{
        position: absolute;
        content: '';
        background-color: var(--background);
        height: 2px;
        width: 0;
        bottom: 0;
        left: 0;
        transition: all 300ms ease;
}

/* responsive */

@media (min-width: 768px) {

    .nav__list {
        justify-content: start;
        gap: 3rem;
    }

    .nav__item--logo {
        margin-right: auto;
    }
    .nav__item:hover{
        text-decoration: underline;
        text-decoration-color: var(--black);
    }

    .nav__item--admin .nav__icon {
        display: none;
    }

    .nav__item--admin .nav__text {
        display: block;
    }

    .form__button:hover {
        background-color: #3773FE;
    }

    .option__item:hover {
        transform: scale(1.1);
    }
     .footer__group {
        justify-content: space-between;
        align-items: center;
    }

    .footer__group p:last-child {
        width: unset;
    }
    .footer__group:last-child{
        justify-content: center;
    }

    .footer__item .footer__icon:hover::before{
        width: 100%;
    }

}

@media (min-width:992px){
     .footer__group {
        flex-wrap: nowrap;
    }
     .footer__item:first-child {
        flex-direction: column;
        width: unset;
    }
}