:root {
    --footer-background: #2E7D32;
    --text-color: #FAFBFC;
    --text-gray: #FEFEFE;
    --text-heading-gray: #F4F5F6;
    --text-primary: #FAFBFC;
    --button-color: #404652;
    --button-border: #6B707C;
}

html {
    font-size: 16px;
    font-family: 'Red Hat Display', sans-serif;
}

/*? footer reset */
*, *::after, *::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Para que el cuerpo ocupe al menos toda la altura de la ventana */
    margin: 0;
    background: #FAFBFC;
}

.section-footer {
    background: var(--footer-background);
    width: 100vw;
    padding: 1rem 0; /* Espaciado interno en el footer */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente */
}

.footer-wrapper {
    max-width: 80rem; /* Mantén el mismo ancho máximo */
    margin: 0 auto; /* Centra horizontalmente */
    padding: 1rem; /* Espaciado interno */
}

/*? top section */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
    padding: 1rem 0px;
    justify-content: space-between;
}

.footer-line {
    display: block;
    width: 100%;
    height: 0.5rem;
}

/*? footer subscribe */
.footer-subscribe {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-subscribe > input {
    border: 1px solid var(--button-border);
    color: var(--text-color);
    outline: none;
    min-height: 2.25rem;
    background: var(--footer-background);
    font-size: 1.2rem;
    flex: 1 0 120px;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.footer-subscribe > input::placeholder {
    color: var(--text-color);
}

.footer-subscribe > button {
    cursor: pointer;
    background: var(--button-color);
    border-radius: 0.5rem;
    color: white;
    font-size: 1.25rem;
    min-width: 8rem;
    min-height: 2.25rem;
    flex: 1 0 5rem;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    border: 0;
    outline: none;
    border: 1px solid var(--button-border);
}

.footer-columns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between; /* Espacio uniforme entre columnas */
    gap: 1rem; /* Espacio entre columnas */
}

.footer-columns ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-columns ul a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-columns ul a:hover {
    text-decoration: underline;
}

.footer-columns ul li {
    margin-bottom: 1rem;
}

.footer-columns h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-centering {
    margin: 0 auto;
}

.footer-columns > div {
    min-width: 10rem;
}

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    gap: 1rem;
    color: var(--text-color);
    margin-bottom: 4rem;
    margin-top: -42px;
}

.footer-logo svg {
    stroke: var(--text-color);
    stroke-width: 8px;
    width: 3rem;
    height: 3rem;
}

/*? Footer bottom */
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1rem;
    padding: 1rem 0px;
    flex-wrap: wrap;
    justify-content: space-between;
    color: var(--text-gray);
}

.footer-bottom > small {
    margin: 0 0.25rem;
}

.footer-headline > h2 {
    margin: 0;
    color: var(--text-primary);
}

.footer-headline > p {
    color: var(--text-gray);
    margin: 0.25rem 0 1.25rem 0;
}

.footer-line {
    display: block;
    min-width: 2.5rem;
    height: 0.125rem;
    background: var(--text-gray);
}

/*? socials */
.social-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links img {
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.2s ease-in-out;
}

.social-links img:hover {
    transform: scale(1.1);
}

.social-links ul {
    display: flex;
    gap: 0.75rem;
    list-style-type: none;
}

.book-icon {
    width: 104px;
    height: auto;
    position: relative;
    top: 32px;
    left: 5px;
    transition: transform 0.3s;
    margin-top: -59px;
}

/* Ejemplo de efecto al pasar el mouse */
.book-icon:hover {
    transform: scale(1.1); /* Aumenta ligeramente el tamaño al pasar el mouse */
}

.footer-center {
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    text-align: center; /* Alinea el texto en el centro */
    width: 100%; /* Ocupa el ancho completo */
    margin-top: 20px; /* Margen superior */
}

.footer-center small {
    font-size: 14px; /* Tamaño del texto */
    color: #fff; /* Color del texto */
    line-height: 1.5; /* Espaciado del texto */
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    .footer-wrapper {
        padding: 1rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
    }

    .footer-subscribe {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-subscribe > button {
        flex: 0 0 auto;
        min-width: 100%;
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
    }

    .footer-columns > div {
        min-width: 100%;
        text-align: center;
    }

    .footer-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .social-links ul {
        justify-content: center;
    }

    .footer-headline > p {
        margin-bottom: 1rem;
    }
}
