/* ==========================================================================
   FOOTER STYLES - OpaNoticias
   Optimizado para SEO y accesibilidad
   ========================================================================== */

/* Footer General */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
    color: #ffffff;
    margin-top: 80px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e63946 0%, #4cc9f0 100%);
}

/* Footer Top */
.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #e63946;
    border-radius: 2px;
}

.footer-about p {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Redes Sociales */
.footer-social .social-title {
    color: #94a3b8;
    font-size: 14px;
    margin: 0 0 12px;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e63946;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Listas de enlaces */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 6px 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #4cc9f0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Información de contacto */
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
}

.contact-icon {
    width: 18px;
    height: 18px;
    fill: #e63946;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
}

/* Newsletter */
.footer-newsletter {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
}

.newsletter-form {
    margin-bottom: 8px;
}

.form-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-button {
    background: #e63946;
    border: none;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.newsletter-button:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.newsletter-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.newsletter-help {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.newsletter-message {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    display: none;
}

.newsletter-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: block;
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

/* Footer Middle - Enlaces Legales */
.footer-middle {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4cc9f0;
    transition: width 0.3s ease;
}

.legal-links a:hover {
    color: #ffffff;
}

.legal-links a:hover::after {
    width: 100%;
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.copyright {
    flex: 1;
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.copyright p {
    margin: 0 0 8px;
}

.copyright .disclaimer {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin: 8px 0 0;
    max-width: 600px;
}

.developer {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

.developer a {
    color: #4cc9f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Botón Volver Arriba */
.back-to-top {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    flex-shrink: 0;
}

.back-to-top:hover {
    background: #e63946;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .legal-nav {
        justify-content: flex-start;
    }
    
    .legal-links {
        gap: 16px;
        justify-content: center;
    }
    
    .copyright .disclaimer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .newsletter-button {
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* Mejoras de accesibilidad */
.back-to-top:focus {
    outline: 2px solid #4cc9f0;
    outline-offset: 2px;
}

.newsletter-input:focus-visible {
    outline: 2px solid #4cc9f0;
    outline-offset: 2px;
}

/* Imágenes cargadas */
img.loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}