@import url("./variables.css");

body {
    background-color: var(--fondo-principal);
    font-family: 'Inter';
}

header img {
    height: 2.5rem;
}

main {
    width: 40%;
    margin: 0 auto;
}

h1 {
    margin-bottom: 0;
}

h2 {
    margin-top: 0;
    color: var(--texto-secundario1);
}

p {
    margin-bottom: 0.3rem;
}

ul {
    margin-top: 0.3rem;
}

input,button {
    box-sizing: border-box;
    width: 100%;
    height: 3rem;
    border-radius: var(--redondeo-borde);
}

input {
    border: 1px solid var(--bordes);
    text-indent: 2%;
    transition: outline 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

input:hover,input:focus {
    border: 2px solid var(--bordes-restaltados1);
}

input:focus {
    outline: 5px solid var(--borders-resatlados2);
}

button {
    background-color: var(--fondo-boton);
    border: none;
    transition: all 0.3s ease;
    font-size: large;
    font-weight: bold;
    margin-top: 1.8rem;
}

button:hover {
    background-color: var(--fondo-boton-resaltado);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

ul + button {
    margin-top: 0;
}

footer {
    width: 40%;
    margin: 0 auto;
}

footer p:last-child {
    margin-top: 0.5rem;
    padding-bottom: 2.5rem;
}

footer a {
    color: var(--resaltado-texto);
    text-decoration: none;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--resaltado-texto);
    transition: width 0.3s ease, left 0.3s ease;
}

footer a:hover::after {
    width: 100%;
    left: 0;
}

