/* ============================================
   FOOTER.CSS - Estilos del footer
   Diario Costa Tropical
   ============================================ */

.site-footer {
    background: var(--primary, #0d1b2a);
    color: #e8e8e8;
    padding: 40px 20px 25px;
    font-family: var(--font-primary, 'Inter', sans-serif);
    border-top: 3px solid #007887;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Fila superior: logo + social ---------- */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 25px;
}

.footer-brand { flex-shrink: 0; }

.footer-logo-link { display: block; text-decoration: none; }

.footer-logo-img {
    max-width: 150px;   /* ← ANTES: 200px */
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: var(--transition, all 0.3s ease);
}

.footer-logo-img:hover { opacity: 0.85; }

.footer-social {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d8d8d8;
    text-decoration: none;
    transition: var(--transition, all 0.3s ease);
}

.footer-social-icon:hover {
    background: #007887;
    color: #fff;
    border-color: #007887;
    transform: translateY(-2px);
}

.footer-social-icon svg,
.footer-social-icon i {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
    display: block;
}

/* ---------- Columnas ---------- */
.footer-middle {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}

.footer-middle-desktop { display: grid; }

.footer-column-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 12px 0;
}

.footer-column-list { list-style: none; padding: 0; margin: 0; }
.footer-column-list li { margin-bottom: 6px; }

.footer-column-list a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition, all 0.3s ease);
}

.footer-column-list a:hover { color: #ffffff; }

.footer-admin { font-size: 0.7rem; color: #888 !important; }
.footer-admin:hover { color: #bbb !important; }

.link-config { cursor: pointer; }

/* ---------- Copyright ---------- */
.footer-bottom { text-align: center; }

.footer-copy {
    font-size: 0.8rem;
    color: #b0b0b0;
    margin: 0;
}

.footer-copy strong { color: #e0e0e0; }

.footer-ctmedia {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-ctmedia:hover {
    color: #f5f5f0;
    text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
        gap: 10px;
    }
    .footer-middle {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 30px;
    }
}

@media (max-width: 768px) {
    .site-footer { padding: 30px 16px 20px; }
    .footer-middle-desktop { display: none !important; }
    .footer-brand { text-align: center; }
    .footer-logo-img { 
        max-width: 120px;   /* ← ANTES: 150px */
        margin: 0 auto; 
    }

    .footer-social-icon {
        width: 36px;
        height: 36px;
    }
    .footer-social-icon svg,
    .footer-social-icon i {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }

    .footer-copy {
        font-size: 0.75rem;
        line-height: 1.2;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .footer-logo-img { max-width: 100px; }   /* ← ANTES: 120px */
    .footer-copy { font-size: 0.7rem; }

    .footer-social-icon {
        width: 34px;
        height: 34px;
    }
    .footer-social-icon svg,
    .footer-social-icon i {
        width: 15px;
        height: 15px;
        font-size: 15px;
    }
}