/* ========================================
   FOOTER PRINCIPAL - Versión industrial
   ======================================== */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--azul-industrial) #4A4A4A;
}

.site-footer {
    background-color: #000000;
    color: #FFFFFF;
    padding: 40px 0 0;
    margin-top: 50px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
    font-family: var(--fuente-principal);
    flex-shrink: 0;
    width: 100%;
}

.footer-container {
    max-width: var(--ancho-maximo-contenedor);
    margin: 0 auto;
    padding: 0 20px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background-color: #000000;
}

.footer-logo img {
    max-height: 100px;
    width: auto;
    display: block;
    filter: none;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-end;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #FFFFFF;
}

.footer-item i {
    font-size: 1.2rem;
    color: #FFFFFF;
}

.instagram-link {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.instagram-link:hover {
    color: var(--azul-industrial);
    text-decoration: underline;
}

/* ========================================
   HORARIOS DE ATENCIÓN
   ======================================== */
.footer-horarios {
    background-color: #000000;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
    padding: 20px 0;
}

.horarios-container {
    max-width: var(--ancho-maximo-contenedor);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.horarios-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #FFFFFF;
}

.horarios-item i {
    font-size: 1.4rem;
    color: var(--azul-industrial);
}

.horarios-texto {
    line-height: 1.5;
}

.horarios-texto strong {
    color: var(--azul-industrial);
    font-weight: 600;
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */
.footer-bottom {
    background-color: whitesmoke;
    color: black;
    text-align: center;
    padding: 15px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-top: 1px solid #CCCCCC;
}

.footer-bottom p {
    margin: 5px 0;
    color: #000000;
}

.footer-bottom .developer a {
    color: #000000;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-bottom .developer a:hover {
    color: var(--azul-industrial);
}

/* ========================================
   STICKY FOOTER
   ======================================== */
.page-content {
    flex: 1 0 auto;
    width: 100%;
}

.page-content> :first-child {
    margin-top: 0;
}

/* ========================================
   BOTONES FLOTANTES
   ======================================== */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background-color: var(--whatsapp-color);
    border-radius: var(--radio-circular);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra-media);
    transition: var(--transicion-base);
    text-decoration: none !important;
    border: none;
    outline: none;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    background-color: var(--whatsapp-color-hover);
}

.whatsapp-button:active {
    transform: scale(0.98);
    background-color: var(--whatsapp-color-active);
}

.whatsapp-icon {
    font-size: 35px;
    color: var(--texto-blanco);
}

/* Scroll personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--azul-industrial);
    border-radius: var(--radio-pill);
}

::-webkit-scrollbar-track {
    background-color: #4A4A4A;
    border-radius: var(--radio-pill);
}

/* ========================================
   BOTÓN SCROLL TO TOP (ARRIBA DEL BADGE DE reCAPTCHA)
   ======================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 95px;          /* ← Posicionado arriba del badge de reCAPTCHA */
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: var(--radio-circular);
    background-color: var(--azul-industrial);
    color: var(--texto-blanco);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    box-shadow: var(--sombra-media);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease, background-color 0.3s ease-in-out, box-shadow 0.3s ease;
    pointer-events: none;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top-btn:not(.visible) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top-btn:hover {
    background-color: var(--gris-humo);
    transform: translateY(-3px);
    box-shadow: var(--sombra-fuerte);
    transition: transform 0.3s ease, background-color 0.3s ease-in-out, box-shadow 0.3s ease;
}

.scroll-to-top-btn:active {
    background-color: var(--texto-principal);
    transform: translateY(0) scale(0.95);
    transition: transform 0.2s ease, background-color 0.3s ease-in-out;
}

/* ========================================
   RESPONSIVE FOOTER
   ======================================== */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-item {
        justify-content: center;
    }

    .horarios-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .horarios-item {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .horarios-texto {
        text-align: left;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }

    .whatsapp-icon {
        font-size: 30px;
    }

    /* Ajuste responsive para el botón scroll */
    .scroll-to-top-btn {
        bottom: 85px;
        width: 36px;
        height: 36px;
        font-size: 20px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .footer-logo img {
        max-height: 50px;
    }

    .footer-item {
        font-size: 0.85rem;
    }

    .horarios-item {
        font-size: 0.9rem;
    }

    .horarios-item i {
        font-size: 1.2rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* Ajuste para móviles muy pequeños */
    .scroll-to-top-btn {
        bottom: 75px;
        width: 32px;
        height: 32px;
        font-size: 18px;
        right: 12px;
    }
}

@media (max-width: 380px) {
    .horarios-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .horarios-texto {
        text-align: center;
    }

    /* Ajuste para pantallas muy pequeñas */
    .scroll-to-top-btn {
        bottom: 70px;
        width: 30px;
        height: 30px;
        font-size: 16px;
        right: 10px;
    }
}