body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    box-sizing: border-box;
}

header,
#title,
footer {
    width: 100%;
    margin: 0;
}

header {
    display: flex;
    flex-direction: row;
    height: auto;
    justify-content: space-around;
    margin-top: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

header img {
    width: 130px;
    height: auto;
    justify-content: center;
    align-items: center;
}

header div {
    display: flex;
    flex-direction: row;
}

#datos {
    width: 40%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: auto;
    text-align: center;
    color: #858585;
    font-size: small;
}

#redes {
    width: 10%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

header hr {
    height: 30%;
    color: rgb(231, 231, 231);
}

.icono:hover {
    color: rgb(204, 214, 31);
    cursor: pointer;
}

#title {
    display: flex;
    background-color: #212735;
    width: 100%;
    height: 6%;
    padding: 5px 0;
    color: white;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#title.sticky {
    background-color: #243746;
    box-shadow: 0 4px 10px rgb(204, 214, 31, .5);
}

#formulario,
#respuesta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-self: center;
    width: 50%;
}

small {
    text-align: center;
}

h2,
h3 {
    color: #212735;
    text-decoration: underline;
    text-decoration-color: rgb(204, 214, 31);
    text-decoration-thickness: 3px;
    text-underline-offset: 10px;
}

fieldset,
#respuesta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    border: 2px solid rgb(33, 39, 53);
    border-radius: 15px;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

label {
    margin-left: 10%;
}

select {
    align-self: center;
    width: 80%;
    padding: 15px;
    margin: 10px;
    border-color: rgb(204, 214, 31);
    border-radius: 10px;
    outline: none;
}

button {
    align-self: center;
    width: 40%;
    padding: 15px;
    background-color: rgb(204, 214, 31);
    color: #212735;
    border-radius: 5px;
    border: none;
    outline: none;
    font-weight: bold;
}

button:hover {
    background-color: rgb(33, 39, 53);
    color: white;
    cursor: pointer;
}

#respuesta {
    display: none;
}

#loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

#enlace {
    display: none;
    justify-self: flex-end;
    align-items: center;
    margin-right: 10%;
    margin-top: 10px;

    color: #212735;
    text-decoration: none;

    position: relative;

    transition: color 0.3s ease;
}


#enlace::after {
    content: "";
    position: absolute;

    left: -2px;
    bottom: -2px;

    width: 105%;
    height: 1px;

    color: #c7c400;
    background-color: #c7c400;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 0.3s ease;
}

#enlace:hover {
    color: #c7c400;
}

#enlace:hover::after {

    transform: scaleX(1);
    transform-origin: left;
}

#boton:disabled {
    background-color: #8c8c8c;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.spinner {
    position: relative;
    width: 70px;
    height: 70px;
}

/* aro exterior verde */
.spinner-outer {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;

    border: 3px solid transparent;
    border-bottom-color: #c7c400;
    border-left-color: #c7c400;

    animation: giroHorario 1.6s linear infinite;
}

/* aro interior azul */
.spinner-inner {
    position: absolute;

    width: 45px;
    height: 45px;

    top: 12.5px;
    left: 12.5px;

    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #22314a;
    border-right-color: #22314a;

    animation: giroAntihorario 1.2s linear infinite;
}

@keyframes giroHorario {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes giroAntihorario {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/*FOOTER*/
footer {
    background-color: #243746;
    margin: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    margin: 80px 0 0 0;
}

#foot {
    height: auto;
    padding: 10px;
    display: flex;
    flex-direction: row;
}

#estiloFooter {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 100px;
    justify-content: center;
    margin: 10px 60px;
    padding: 40px;
}


#foot img {
    width: 120px;
    height: auto;
}

#foot h3 {
    color: #c7c400;
    text-decoration: none;
}

.direccion {
    display: flex;
    flex-direction: row;
    color: white;
    font-weight: bold;
    align-items: center;
    letter-spacing: 0.5px;
    width: 320px;
}

.enlaces {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    gap: 30px;
}

.enlaces a {
    display: flex;
    position: relative;
    flex-direction: column;
    color: white;
    justify-content: center;
    text-decoration: none;
}


.enlaces a::after {
    content: "";
    position: absolute;
    left: -2px;
    bottom: -2px;

    width: 105%;
    height: 1px;

    background-color: white;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 0.3s ease;
}

.enlaces a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#footerRedes a {
    color: white;
}

.enlacesRedes {
    display: flex;
    flex-direction: row;
    width: 150px;
    margin-top: 50px;
    margin-left: 5px;
    gap: 50px;
}

.icono svg {
    transition: transform 0.4s ease;
}

.icono:hover svg {
    transform: scaleX(-1);
    color: #c7c400;
}

footer hr {
    width: 70%;
    height: 0.5px;
    background-color: rgba(231, 231, 231, 0.4);
    border: none;
}

footer p {
    display: flex;
    justify-content: center;
    color: white;
    align-items: center;
    padding: 20px;
}

footer *:last-child {
    margin-bottom: 0;
}


/* =====================================
   TABLET
   ===================================== */
@media (max-width: 1024px) {

    #datos {
        width: 55%;
        font-size: 0.75rem;
    }

    #redes {
        width: 15%;
    }

    #formulario,
    #respuesta {
        width: 75%;
    }

    #estiloFooter {
        gap: 50px;
        margin: 10px 20px;
    }

}

/* =====================================
   MÓVIL
   ===================================== */
@media (max-width: 768px) {

    /* HEADER */

    #datos {
        display: none;
    }

    header {
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    header img {
        width: 90px;
        height: auto;
    }

    #redes {
        width: auto;
        gap: 20px;
    }

    /* FORMULARIO */

    #formulario,
    #respuesta {
        width: 95%;
    }

    fieldset,
    #respuesta {
        padding: 15px;
    }

    label {
        margin-left: 0;
    }

    select {
        width: 100%;
        margin: 10px 0;
    }

    button {
        width: 100%;
    }

    /* FOOTER */

    #foot {
        flex-direction: column;
    }

    #estiloFooter {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        margin: 0;
        padding: 20px;
    }

    .direccion {
        width: 100%;
        justify-content: center;
    }

    .enlaces {
        width: 100%;
    }

    .enlacesRedes {
        justify-content: center;
        margin: 20px auto;
    }

}