/* Footer dinámico para todo el sitio */

/* Puedes mover aquí los estilos del footer desde footer.html si quieres centralizar el CSS */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --footer-bg: #101223; /* Más oscuro */
    --footer-text: #ffffff; /* Blanco puro */
    --footer-link: #e0e7ef; /* Más claro */
    --footer-link-hover: #ffd700; /* Amarillo alto contraste */
    --footer-border: #23263a;
    --footer-accent: #1a2a6c;
    --transition: all 0.3s ease;
}

.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-weight: 500;
    padding: 4rem 0 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.footer-col {
    padding: 0 1rem;
}

.footer-logo a {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.footer-logo a:hover {
    color: var(--footer-link-hover);
}

.footer-about {
    color: #a0aec0;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--footer-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--footer-link);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--footer-link-hover);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
    transform: translateX(5px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-contact a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

.footer-contact i {
    color: #25d366;
    margin-right: 10px;
    margin-top: 3px;
    width: 16px;
    text-align: center;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--footer-accent);
    transform: translateY(-3px);
}

.newsletter h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-form {
    display: flex;
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid #2d3748;
    background: #2d3748;
    color: white;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: #a0aec0;
}

.newsletter-form button {
    background-color: var(--footer-accent);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #3a56d4;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    margin-top: 3rem;
    padding: 1.5rem 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}

.footer-legal a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--footer-link-hover);
}

.footer-legal span {
    color: #4a5568;
    font-size: 0.85rem;
}

.footer-social-mobile {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-mobile a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social-mobile a:hover {
    background: var(--footer-accent);
    transform: translateY(-3px);
}

.footer-social-desktop {
    display: none;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-social-mobile {
        display: none;
    }
    .footer-social-desktop {
        display: block;
    }
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col:first-child {
        grid-column: 1 / -1;
    }
    .footer-social-mobile {
        display: flex;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-col {
        padding: 0;
        margin-bottom: 2rem;
    }
    .footer-col:last-child {
        margin-bottom: 0;
    }
}
