.footer {
    font-family: var(--font-family);
    background-color: var(--footer-bg);
    color: #fafafa;
    width: 100%;
    padding: 3rem 1.5rem 2rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-links {
    display: flex;
    flex: 2;
    justify-content: space-between;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li a {
    text-decoration: none;
    display: block;
    color: var(--footer-father);
    padding: 0.3rem 0;
    font-size: 0.7rem;
}
.footer-item {
    font-weight: 600;
    color: var(--footer-father);
}
.footer-subitem {
    display: block;
    font-size: 0.7rem;
    color: var(--footer-child) !important;
    text-decoration: none;
}
.footer-list li > a:first-of-type:hover {
    color: #fafafa;
}

.footer-subitem:hover {
    color: #fafafa !important;
}

.footer-logo {
    flex: 1;
    text-align: center;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    width: 100%;
}

.footer-bottom {
    font-size: 0.75rem;
    color: #ccc;
    margin-top: 2rem;
    width: 100%;
}

.footer-bottom-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    color: #ccc;
    align-items: center;
}

.footer-bottom-links li {
    position: relative;
}

.footer-bottom-links li:not(:last-child)::after {
    content: "|";
    margin-left: 0.7rem;
    color: #888;
}

.footer-bottom-links a {
    text-decoration: none;
    color: var(--footer-father);
    font-weight: 600;
}

.footer-bottom-links a:hover {
    color: #fafafa;
}

.footer-region {
    font-style: normal;
    opacity: 0.9;
}

/* -------------------------------
   MÓVIL Y TABLETS PEQUEÑAS
-------------------------------- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-column {
        width: 300px;
        text-align: left;
        padding: 1rem 2rem;
        margin-bottom: 1rem;
        border: 1px solid var(--footer-column-bdr);
        border-radius: 5px;
    }

    .footer-toggle {
        all: unset;
        position: relative;
        cursor: pointer;
        width: 100%;
        text-align: left;
        /*padding-left: 1.5rem;*/
        /*margin-bottom: 0.5rem;*/
    }

    .footer-title {
        font-family: var(--font-family);
        font-weight: 300;
        font-size: 1rem;
        color: var(--footer-title);
        display: inline-block;
        text-align: center;
        width: 100%;
    }
    .footer-list li a {
        font-size: 1.2rem;
        padding: 0.7rem 0;
    }
    .footer-column ul.footer-list li:first-of-type {
        padding-top: 1.5rem;
    }

    .footer-subitem {
        font-size: 1.2rem;
    }
    .footer-toggle::after {
        content: "▼";
        position: absolute;
        left: 0;
        top: -0.5rem;
        font-size: 1.5rem;
        color: var(--footer-father, #fafafa);
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .footer-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

    .footer-list {
        display: none;
    }

    .footer-toggle[aria-expanded="true"] + .footer-list {
        display: block;
    }

    .footer-logo {
        order: 99;
        margin-top: 1rem;
        width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-bottom-container {
        padding: 1rem 1rem 5rem;
        align-items: center;
        text-align: center;
        flex-direction: column;
    }

    .footer-bottom-links {
        justify-content: center;
        font-size: 1rem;
    }
    .footer-region {
        flex: 1;
        text-align: right;
        font-size: 1rem;
        color: #fafafa;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.4rem;
    }
    .footer-region .footer-flag {
        width: 48px;
        height: auto;
        display: inline-block;
    }
    .footer-bottom-left,
    .footer-bottom-links,
    .footer-region {
        padding-bottom: 2rem;
    }
}

/* -------------------------------
   DESKTOP (desde 769px)
-------------------------------- */
@media (min-width: 769px) {
    .footer-toggle {
        all: unset;
        pointer-events: none;
        width: 100%;
        text-align: left;
    }

    .footer-title {
        font-family: var(--font-family);
        font-weight: 300;
        font-size: 0.7rem;
        color: var(--footer-title);
        display: inline-block;
        text-align: left;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .footer-bottom-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #818181;
        width: 100%;
    }

    .footer-bottom-left {
        flex: 1;
        font-size: 0.75rem;
        color: #fafafa;
        white-space: nowrap;
    }

    .footer-bottom-links {
        display: flex;
        gap: 0.7rem;
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 0.75rem;
        color: #ccc;
        align-items: center;
    }

    .footer-bottom-links li {
        position: relative;
    }

    .footer-bottom-links li:not(:last-child)::after {
        content: "|";
        margin-left: 0.7rem;
        color: #818181;
    }

    .footer-bottom-links a {
        text-decoration: none;
        color: var(--footer-father);
        font-weight: 600;
    }

    .footer-bottom-links a:hover {
        color: #fafafa;
    }

    .footer-region {
        flex: 1;
        text-align: right;
        font-size: 0.75rem;
        color: #fafafa;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.4rem;
    }

    .footer-region .footer-flag {
        width: 48px;
        height: auto;
        display: inline-block;
    }
}
