/**
 * Footer SEO Optimizado - Clínica Raúl González
 */

/* ========================================
   Variables
   ======================================== */
:root {
    --footer-bg: #1a1a1a;
    --footer-text: #b0b0b0;
    --footer-heading: #ffffff;
    --footer-link: #d0d0d0;
    --footer-link-hover: var(--primary-color, #AF997F);
    --footer-border: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Footer Principal
   ======================================== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 14px;
    line-height: 1.7;
}

.footer-main {
    padding: 70px 0 50px;
}

.footer-col {
    margin-bottom: 30px;
}

/* ========================================
   Columna de Marca
   ======================================== */
.footer-brand {
    padding-right: 30px;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.footer-description {
    color: var(--footer-text);
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================
   Redes Sociales
   ======================================== */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--footer-link);
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color, #AF997F);
    color: #fff;
    transform: translateY(-3px);
}

/* ========================================
   Títulos de Columnas
   ======================================== */
.footer-title {
    color: var(--footer-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color, #AF997F);
}

/* ========================================
   Lista de Enlaces
   ======================================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-link-hover);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-link-hover);
    padding-left: 5px;
}

.footer-links a:hover::before {
    width: 100%;
}

/* ========================================
   Información de Contacto
   ======================================== */
.footer-contact {
    color: var(--footer-text);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}

.contact-item > span {
    color: var(--primary-color, #AF997F);
    font-size: 18px;
    margin-top: 2px;
    min-width: 20px;
}

.contact-item a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--footer-link-hover);
}

.contact-item div {
    line-height: 1.6;
}

/* ========================================
   Footer Bottom
   ======================================== */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid var(--footer-border);
}

.footer-bottom .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.copyright {
    margin: 0;
    color: var(--footer-text);
    font-size: 13px;
}

.credits {
    margin: 0;
    color: var(--footer-text);
    font-size: 13px;
}

.text-right {
    text-align: right;
}

/* ========================================
   Scroll to Top
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.scroll-top-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color, #AF997F);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.scroll-top-inner:hover {
    background: var(--primary-color-dark, #8a7a64);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.scroll-top-inner span {
    font-size: 18px;
}

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (max-width: 992px) {
    .footer-main {
        padding: 50px 0 30px;
    }

    .footer-brand {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .footer-col {
        margin-bottom: 35px;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 20px;
    }

    .footer-logo {
        max-width: 180px;
    }

    .footer-title {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .footer-bottom .row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-bottom .col-md-6 {
        width: 100%;
    }

    .text-right {
        text-align: center;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
    }

    .scroll-top-inner {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   Responsive - Small Mobile
   ======================================== */
@media (max-width: 480px) {
    .footer-main {
        padding: 30px 0 15px;
    }

    .footer-logo {
        max-width: 160px;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .contact-item {
        gap: 12px;
    }

    .contact-item > span {
        font-size: 16px;
    }
}
