/* ========================================================================== */
/* FOOTER EDITORIAL INSPIRADO EN ENSTACKED · N16 STUDIO & LOGOS REALES        */
/* ========================================================================== */
.site-footer {
    position: relative;
    background-color: #f8fafc;
    color: #475569;
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
    padding: 64px 0 32px 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    z-index: 10;
}

[data-theme="dark"] .site-footer {
    background-color: var(--surface-0, #06080E);
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.n16-footer-bg-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.07;
    z-index: 1;
    overflow: hidden;
}

[data-theme="dark"] .n16-footer-bg-map {
    opacity: 0.03;
}

.site-footer .container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* 1. Grid Superior de Columnas: Rejilla ordenada y equilibrada */
.n16-footer-top-grid {
    display: grid;
    grid-template-columns: minmax(320px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.n16-footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
}

.n16-footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo oficial N16 Studio: NÍTIDO y con contraste natural */
.n16-footer-brand-logo {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: none !important;
}

[data-theme="dark"] .n16-footer-brand-logo {
    filter: brightness(0) invert(1) !important;
}

.n16-footer-brand-tagline {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #1e293b;
}

[data-theme="dark"] .n16-footer-brand-tagline {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.n16-footer-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    max-width: 380px;
}

[data-theme="dark"] .n16-footer-desc {
    color: #94a3b8;
}

/* Síguenos & Social Icons */
.n16-footer-social-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.n16-footer-social-label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

[data-theme="dark"] .n16-footer-social-label {
    color: #f8fafc;
}

.n16-footer-social-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.n16-footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: #0F172A !important;
    border: 1px solid rgba(15, 23, 42, 0.12);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

[data-theme="dark"] .n16-footer-social-btn {
    background: #1E293B !important;
    border-color: rgba(255, 255, 255, 0.12);
}

.n16-footer-social-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: #1E293B !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

[data-theme="dark"] .n16-footer-social-btn:hover {
    background: #334155 !important;
}

.n16-footer-social-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.n16-social-fb,
.n16-social-x,
.n16-social-ig,
.n16-social-in,
.n16-social-be,
.n16-social-web,
.n16-social-tiktok,
.n16-social-yt {
    background: #0F172A !important;
}

[data-theme="dark"] .n16-social-fb,
[data-theme="dark"] .n16-social-x,
[data-theme="dark"] .n16-social-ig,
[data-theme="dark"] .n16-social-in,
[data-theme="dark"] .n16-social-be,
[data-theme="dark"] .n16-social-web,
[data-theme="dark"] .n16-social-tiktok,
[data-theme="dark"] .n16-social-yt {
    background: #1E293B !important;
}

/* Columnas de Navegación */
.n16-footer-col {
    display: flex;
    flex-direction: column;
}

.n16-footer-col-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0 0 16px 0;
}

[data-theme="dark"] .n16-footer-col-title {
    color: #f8fafc;
}

.n16-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.n16-footer-links a,
.n16-footer-contact-item {
    font-size: 13.5px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1.4;
}

[data-theme="dark"] .n16-footer-links a,
[data-theme="dark"] .n16-footer-contact-item {
    color: #94a3b8;
}

.n16-footer-links a:hover,
.n16-footer-contact-item:hover {
    color: #0F172A;
}

[data-theme="dark"] .n16-footer-links a:hover,
[data-theme="dark"] .n16-footer-contact-item:hover {
    color: #F8FAFC;
}

.n16-footer-address-text {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

[data-theme="dark"] .n16-footer-address-text {
    color: #94a3b8;
}

.n16-footer-contact-note {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
    display: block;
}

/* Divisores */
.n16-footer-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 32px 0;
    border: none;
}

[data-theme="dark"] .n16-footer-divider {
    background: rgba(255, 255, 255, 0.08);
}

/* 2. Sección Central: Logos REALES de Comercios Registrados */
.n16-footer-badges-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.n16-footer-badges-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
    margin: 0;
}

[data-theme="dark"] .n16-footer-badges-title {
    color: #f8fafc;
}

.n16-footer-badges-badge {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
    background: #e0f2fe;
    color: #0369a1;
}

[data-theme="dark"] .n16-footer-badges-badge {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

.n16-footer-real-merchants-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Tarjeta de comercio real con su logo original subido */
.n16-real-merch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 18px 20px 16px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    flex: 1 1 200px;
    max-width: 260px;
    min-width: 180px;
}

[data-theme="dark"] .n16-real-merch-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.n16-real-merch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.08);
    border-color: #0F172A;
}

[data-theme="dark"] .n16-real-merch-card:hover {
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.4);
    border-color: #94A3B8;
}

.n16-real-logo-box {
    width: 100%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 4px;
}

.n16-real-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.n16-real-merch-card:hover .n16-real-logo-img {
    transform: scale(1.05);
}

.n16-real-merch-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    width: 100%;
}

.n16-real-merch-name {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

[data-theme="dark"] .n16-real-merch-name {
    color: #f1f5f9;
}

.n16-real-merch-meta {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

[data-theme="dark"] .n16-real-merch-meta {
    color: #94a3b8;
}

/* 3. Barra Inferior de Copyright Limpia (Sin sellos de DMCA/SSL/WCAG) */
.n16-footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
    text-align: center;
}

.n16-footer-copy {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

[data-theme="dark"] .n16-footer-copy {
    color: #94a3b8;
}

/* 4. Responsive Breakpoints */
@media (max-width: 992px) {
    .n16-footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .n16-footer-brand-col {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 44px 0 24px 0;
    }
    .n16-footer-top-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .n16-footer-badges-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .n16-footer-real-merchants-row {
        gap: 12px;
    }
    .n16-real-merch-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 140px;
        max-width: 100%;
        padding: 14px 12px;
    }
}

@media (max-width: 480px) {
    .n16-real-merch-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

