/* Footer Styles for CursafyHire */

.site-footer {
    background: #002c4e; /* Azul oscuro de la paleta */
    color: #ffffff;
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-content {
    width: 100%;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Company Info Section */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-brand-title {
    font-size: 24px;
    font-weight: 600;
    color: #f7be16; /* Amarillo de la paleta */
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.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: #f7be16;
    color: #002c4e;
    transform: translateY(-3px);
}

/* Footer Sections */
.footer-section h4 {
    color: #f7be16; /* Amarillo de la paleta */
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #f7be16; /* Amarillo de la paleta en hover */
    transform: translateX(3px);
}

/* Newsletter Section */
.footer-newsletter {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px 0;
    margin: 40px 0;
}

.newsletter-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-info {
    flex: 1;
}

.newsletter-title {
    color: #f7be16;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

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

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-button {
    padding: 12px 24px;
    background: #f7be16;
    color: #002c4e;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.newsletter-disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #f7be16;
}

/* Footer Credentials */
.footer-credentials {
    display: flex;
    gap: 30px;
    align-items: center;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.credential-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #f7be16;
    color: #002c4e;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #ffd23e;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 15px;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .footer-credentials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-button {
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Utility class for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}