/* =====================================================
   Inmobiliaria Regueira — Footer
   Fondo oscuro (#1a1a1a), rojo solo como acento
   ===================================================== */

   :root {
    --footer-bg: #1a1a1a;
    --footer-bottom-bg: rgba(0, 0, 0, 0.35);
    --white: #FFFFFF;
    --accent: #CC0000;
    --accent-hover: #ff4444;
}

/* ─── Footer principal ─── */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 64px 0 0;
    position: relative;
}

.footer-top .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Grid de widgets ─── */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
}

.footer-widget {
    padding: 0 8px;
    text-align: center;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    border-bottom: 1px solid rgba(204, 0, 0, 0.45);
    padding-bottom: 12px;
    text-align: center;
    display: inline-block;
}

/* ─── Widget: About ─── */
.about-widget {
    text-align: center;
}

.about-widget .footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.about-widget .footer-logo img {
    max-width: 170px;
    border-radius: 12px;
}

.about-widget p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.88em;
    line-height: 1.7;
}

/* ─── Social links ─── */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.07);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ─── Links ─── */
.footer-links {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    padding: 3px 0;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

/* ─── Widget: Contacto ─── */
.contact-widget .contact-info {
    margin-top: 16px;
    text-align: center;
}

.contact-itemm {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 14px;
    gap: 10px;
}

.contact-itemm i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-itemm p {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: left;
}

.contact-itemm a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.25s ease;
    font-size: 0.88rem;
}

.contact-itemm a:hover {
    color: var(--white);
}

/* ─── Footer bottom ─── */
.footer-bottom {
    background-color: var(--footer-bottom-bg);
    padding: 20px 0;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.84rem;
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ─── Botón volver arriba ─── */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 22px;
    background-color: var(--accent);
    color: var(--white);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.35);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #a80000;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(204, 0, 0, 0.45);
}

/* ─── WhatsApp flotante ─── */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
    padding: 4px;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .about-widget {
        grid-column: span 2;
    }

    .about-widget p {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 48px 0 0;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-widget {
        grid-column: span 1;
    }

    .about-widget p {
        max-width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 88px;
        right: 16px;
    }

    .whatsapp-float {
        bottom: 18px;
        right: 16px;
    }

    .whatsapp-float img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .footer-widget {
        padding: 0;
    }

    .about-widget .footer-logo img {
        max-width: 140px;
    }

    .contact-itemm {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-itemm p,
    .contact-itemm a {
        text-align: center;
    }

    .contact-itemm i {
        margin-top: 0;
    }

    .footer-bottom {
        padding: 16px 0;
    }
}