/* Footer moderno para CRM Dentistas iA */

footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 0;
}

.footer-modern {
    position: relative;
    z-index: 1;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo .logo-badge {
    background: linear-gradient(45deg, var(--dental-primary), var(--dental-secondary));
    color: white;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    letter-spacing: -0.5px;
    margin-right: 0.8rem;
}

.footer-logo .logo-text {
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--dental-primary);
    text-decoration: none;
}

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

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    margin-right: 0.8rem;
    color: var(--dental-primary);
    width: 18px;
    text-align: center;
}

/* Teléfono y email del footer: son enlaces reales (tel:, mailto:), así que se
   ven y se comportan como tales sin romper el tono discreto del pie. */
.footer-contact a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: #fff;
    border-bottom-color: var(--dental-primary);
}

.footer-contact a:focus-visible {
    outline: 2px solid var(--dental-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Misma idea en el bloque de contacto del footer clásico (<x-landing.footer>),
   donde los datos van en párrafos y no en lista. */
.footer-contact-inline a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-contact-inline a:hover,
.footer-contact-inline a:focus-visible {
    color: var(--dental-primary, #2B3A67);
    border-bottom-color: currentColor;
}

.footer-contact-inline a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background: var(--dental-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-legal a {
    font-size: 0.85rem;
    transition: all 0.2s;
}

.footer-legal a:hover {
    color: var(--dental-primary);
}

@media (max-width: 767px) {
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Iconos de redes del footer clásico (<x-branding.redes> en x-landing.footer). */
.social-links .social-link {
    color: var(--dental-primary, #2B3A67);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.social-links .social-link:hover,
.social-links .social-link:focus-visible {
    opacity: 0.75;
    transform: translateY(-2px);
}

.social-links .social-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 4px;
}
