/**
 * Estilos para el footer
 */

/* Estilos generales */
footer {
    margin-block-start: 0 !important;
    background-color: #333;
    color: #fff;
    line-height: 1.5;
}

footer * {
    box-sizing: border-box;
    margin-block-start: 0 !important;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer a {
    text-decoration: none;
    color: #eee;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--wp--preset--color--brand, #f43f5e); /* Color dorado */
}

/* Footer principal */
#footer-main {
    background-color: #333;
    padding: 40px 20px;
}

#footer-main-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

/* Eliminados los estilos para h3 */

/* Ediciones */
.footer-editions ul {
    margin: 0;
    padding: 0;
}

.footer-editions li {
    margin-bottom: 8px;
}

.footer-editions a {
    font-size: 14px;
    text-transform: uppercase;
}

/* Categorías */
.footer-categories ul {
    margin: 0;
    padding: 0;
}

.footer-categories li {
    margin-bottom: 8px;
}

.footer-categories a {
    font-size: 14px;
    text-transform: uppercase;
}

/* Categorías con subcategorías */
.footer-categories-with-subcategories {
    width: 100%;
}

.footer-categories-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-categories-column {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
}

.footer-categories-with-subcategories .categories-list {
    margin: 0;
    padding: 0;
}

.footer-categories-with-subcategories .parent-category {
    margin-bottom: 15px;
}

.footer-categories-with-subcategories .parent-category-link {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.footer-categories-with-subcategories .subcategories-list {
    margin: 0 0 0 10px;
    padding: 0;
}

.footer-categories-with-subcategories .subcategory-item {
    margin-bottom: 5px;
}

.footer-categories-with-subcategories .subcategory-item a {
    font-size: 13px;
    color: #ccc;
    text-transform: none;
}

.footer-categories-with-subcategories .subcategory-item a:hover {
    color: var(--wp--preset--color--brand, #f43f5e); /* Color dorado */
}

.footer-categories-with-subcategories .more-link a {
    font-style: italic;
    font-size: 12px;
    color: #999;
}

/* Media queries para categorías con subcategorías */
@media only screen and (max-width: 768px) {
    .footer-categories-columns {
        flex-direction: column;
    }

    .footer-categories-column {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Redes sociales */
.footer-social .social-links-container {
    margin: 0;
}

.footer-social .sites360-social-links {
    justify-content: flex-start;
}

.footer-social .sites360-social-links a {
    background-color: #444;
    margin-right: 10px;
}

.footer-social .sites360-social-links a:hover {
    background-color: var(--wp--preset--color--brand, #f43f5e); /* Color dorado */
}

/* Footer legal */
#footer-legal {
    background-color: #222;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #444;
}

#footer-legal-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-legal .legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.footer-legal .legal-item {
    margin: 0 15px;
    font-size: 14px;
    position: relative;
}

.footer-legal .legal-item:after {
    content: '|';
    position: absolute;
    right: -15px;
    color: #555;
}

.footer-legal .legal-item:last-child:after {
    content: none;
}

.footer-legal .copyright {
    margin-left: auto;
    color: #999;
    font-size: 12px;
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

/* Estilos responsivos para el footer legal */
@media only screen and (max-width: 768px) {
    .footer-legal .legal-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-legal .legal-item {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .footer-legal .legal-item:not(:last-child):after {
        content: '';
    }

    .footer-legal .copyright {
        margin: 15px 0 0 0;
    }
}

/* Media queries */
@media only screen and (max-width: 768px) {
    #footer-main-inner {
        flex-direction: column;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 30px;
    }

    .footer-legal .legal-links {
        flex-direction: column;
    }

    .footer-legal .legal-item {
        margin: 5px 0;
    }

    .footer-legal .copyright {
        margin: 15px 0 0 0;
    }

    .footer-social .sites360-social-links {
        justify-content: center;
    }
}
