/* ============================================
   CECIM - Componente Footer
   ============================================ */

.footer-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0 0 0;
    font-family: var(--font-body);
}

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

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-teal);
    border-radius: 2px;
}

.location-block {
    margin-bottom: 20px;
}

.location-block p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.phone-number {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
}

.hours {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-style: italic;
}

/* Logo y redes */
.footer-logo { margin-bottom: 15px; }

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-social { margin-top: 10px; }

.footer-social h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-teal);
    transform: translateY(-3px);
}

/* Listas del footer */
.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul li a::before {
    content: '›';
    font-size: 1.1rem;
    color: var(--accent-teal);
}

.footer-column ul li a:hover {
    color: var(--accent-teal);
    padding-left: 5px;
}

/* Divisor y bottom */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom {
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.footer-legal a:hover { color: var(--accent-teal); }

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

/* Botón scroll top */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-teal);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(76,159,135,0.4);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--accent-teal-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76,159,135,0.6);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 0 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px 30px;
    }

    .footer-column {
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding-bottom: 25px;
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .social-links a {
        width: 34px;
        height: 34px;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
}
