footer.footer-tienda {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--box-border);
    margin-top: 4rem;
}

/* Preguntas Frecuentes: algo de aire respecto al borde en móvil */
.faq-section {
    padding-inline: 1rem;
}
.faq-section .faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
@media (max-width: 576px) {
    .faq-section {
        padding-inline: 1.25rem;
    }
}

.footer-grid {
    margin-bottom: 2rem;
    grid-template-columns: repeat(4, 1fr);
}
.footer-title {
    margin-bottom: 1rem;
}
.footer-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.footer-credits {
    text-align: right;
}
.footer-credits-container {
    color: var(--box-text-muted);
    font-size: 0.85rem;
    text-align: right;
}
.footer-credits-container a {
    font-weight: 600;
    text-decoration: none;
    color: var(--box-brand);
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}
.footer-credits-container a:hover {
    border-bottom-color: var(--box-brand);
    opacity: 0.8;
}
.heart-pulse {
    display: inline-block;
    color: #e74c3c;
    animation: heartBeat 1.5s ease-in-out infinite;
    font-style: normal;
}
@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}
.footer-credits .admin-link {
    margin-top: 0.2rem;
}
.footer-credits .admin-link a {
    font-size: 0.75rem;
    text-decoration: none;
    opacity: 1;
    color: var(--box-text);
}

/* QR Code Styles */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.qr-code {
    display: block;
    margin: 0 auto 0.5rem;
    border-radius: 4px;
    width: 100px;
    height: 100px;
}
.store-url-text {
    font-size: 0.8rem !important;
    color: var(--box-text);
    background: var(--box-surface);
    padding: 0.3rem 1rem;
    border-radius: 8px;
    margin-bottom: 0 !important;
    white-space: nowrap;
    font-weight: 700;
    display: inline-block;
    border: 1px solid var(--box-brand);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-share-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--box-border);
    margin-top: 0;
}

.url-label {
    font-size: 0.85rem;
    color: var(--box-text-muted);
    font-weight: 500;
}

.copy-url-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.copy-btn {
    font-size: 0.75rem !important;
    padding: 0.3rem 1rem !important;
    margin-bottom: 0 !important;
    width: auto;
    border-radius: 20px;
}
.copy-url-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(5px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-5px); }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        margin-bottom: 1rem;
    }
    .footer-section {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .social-links {
        justify-content: center;
    }
    .footer-credits {
        text-align: center;
    }
    .footer-credits-container {
        text-align: center;
    }
    .footer-share-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .copy-url-container {
        justify-content: center;
        width: 100%;
        margin-bottom: 1rem;
    }
    footer.footer-tienda {
        padding: 2rem 1rem !important;
        margin-top: 2rem !important;
    }
    .footer-grid {
        margin-bottom: 1rem;
    }
    .footer-credits {
        text-align: left;
        margin-top: 2rem;
    }
    .footer-credits-container {
        text-align: left;
    }
    .footer-section {
        margin-bottom: 2rem;
    }
    .qr-section {
        align-items: center;
        text-align: center;
    }
    .copy-url-container {
        align-items: center;
    }
}

/* Image Viewer Modal (Lightbox) */
#image-viewer-modal {
    padding: 0;
    background: rgba(0, 0, 0, 0.95);
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10000;
}

#image-viewer-modal .viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-viewer-modal .close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 10001;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#image-viewer-modal .close-viewer:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    color: white;
}

#image-viewer-modal .close-viewer span {
    position: relative;
    top: -2px; /* Ajuste para centrar visualmente la X */
}

#image-viewer-modal img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    cursor: zoom-out;
    transition: transform 0.3s ease;
}

@media (max-width: 576px) {
    #image-viewer-modal .close-viewer {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

