/*
 * Footer — Enterprise dark 5-column + pre-footer newsletter
 * NINAKURU PRO — NEXUS PATRIMONIAL Design
 */

/* ══ PRE-FOOTER NEWSLETTER ════════════════════════════════════════════════════ */
.np-prefooter {
    padding: 56px 0;
    background: var(--np-bg-alt);
    border-top: 1px solid rgba(21, 101, 192,0.08);
    border-bottom: 1px solid rgba(16,24,40,0.05);
}

.np-prefooter__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.np-prefooter__copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.np-prefooter__titulo {
    font-family: var(--np-font-headings);
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--np-text-primary);
    margin: 0;
    line-height: 1.25;
}

.np-prefooter__subtitulo {
    font-size: 0.9375rem;
    color: var(--np-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.np-prefooter__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.np-prefooter__input-wrap {
    display: flex;
    gap: 0;
    overflow: hidden;
    background: rgba(16,24,40,0.04);
    border: 1px solid rgba(16,24,40,0.12);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.np-prefooter__input-wrap:focus-within {
    border-color: var(--np-cyan);
    box-shadow: 0 0 0 3px rgba(21, 101, 192,0.08);
}

.np-prefooter__input {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 16px;
    color: var(--np-text-primary);
    font-family: var(--np-font-body);
    font-size: 0.9375rem;
    outline: none;
    min-width: 0;
}

.np-prefooter__input::placeholder {
    color: var(--np-text-muted);
}

.np-prefooter__btn {
    border-radius: 0 10px 10px 0;
    flex-shrink: 0;
    gap: 6px;
}

.np-prefooter__aviso {
    font-size: 0.75rem;
    color: var(--np-text-muted);
    margin: 0;
    line-height: 1.5;
}

.np-prefooter__aviso a {
    color: var(--np-cyan);
    text-decoration: none;
}

.np-prefooter__aviso a:hover {
    text-decoration: underline;
}

.np-prefooter__mensaje {
    min-height: 18px;
    font-size: 0.875rem;
}

.np-prefooter__mensaje.is-success {
    color: var(--np-green);
}

.np-prefooter__mensaje.is-error {
    color: #FF4D4F;
}

/* ══ FOOTER PRINCIPAL ══════════════════════════════════════════════════════════ */
.np-footer {
    background: var(--np-bg-base);
    padding-top: 64px;
    padding-bottom: 0;
    border-top: 1px solid rgba(21, 101, 192,0.08);
    position: relative;
    overflow: hidden;
}

.np-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--np-gradient-primary);
    opacity: 0.15;
}

/* ── Grid 5 columnas ── */
.np-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
}

/* Columna de marca */
.np-footer__col--brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.np-footer__logo-link {
    display: inline-flex;
    text-decoration: none;
}

.np-footer__logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.np-footer__logo-text {
    font-family: var(--np-font-headings);
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--np-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.np-footer__descripcion {
    font-size: 0.875rem;
    color: var(--np-text-secondary);
    line-height: 1.7;
    margin: 0;
    max-width: 280px;
}

.np-footer__ruc {
    font-size: 0.8125rem;
    color: var(--np-text-muted);
    margin: 0;
}

/* Redes sociales */
.np-footer__social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.np-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid rgba(16,24,40,0.1);
    background: rgba(16,24,40,0.04);
    color: var(--np-text-secondary);
    text-decoration: none;
    transition: all 0.25s;
}

.np-footer__social-link:hover {
    border-color: rgba(21, 101, 192,0.3);
    background: rgba(21, 101, 192,0.08);
    color: var(--np-cyan);
    transform: translateY(-2px);
}

/* Títulos de columna */
.np-footer__col-titulo {
    font-family: var(--np-font-headings);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--np-text-primary);
    margin: 0 0 16px;
    letter-spacing: 0.01em;
}

/* Menús del footer */
.np-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.np-footer__link {
    font-size: 0.875rem;
    color: var(--np-text-secondary);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
}

.np-footer__link:hover {
    color: var(--np-cyan);
    padding-left: 4px;
}

/* Datos de contacto */
.np-footer__contacto {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.np-footer__contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--np-text-secondary);
}

.np-footer__contacto-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--np-cyan);
}

.np-footer__contacto-item--horario {
    font-size: 0.8125rem;
    color: var(--np-text-muted);
}

.np-footer__wa-btn {
    margin-top: 16px;
    gap: 8px;
    text-decoration: none;
}

/* ── Divisor y barra inferior ── */
.np-footer__divisor {
    border: none;
    border-top: 1px solid rgba(16,24,40,0.06);
    margin: 0;
}

.np-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.np-footer__copyright {
    font-size: 0.8125rem;
    color: var(--np-text-muted);
    margin: 0;
}

.np-footer__legal-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.np-footer__legal-link {
    font-size: 0.8125rem;
    color: var(--np-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.np-footer__legal-link:hover {
    color: var(--np-cyan);
}

.np-footer__hecho {
    font-size: 0.8125rem;
    color: var(--np-text-muted);
    margin: 0;
}

/* ── RESPONSIVE FOOTER ──────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .np-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    .np-footer__col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .np-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .np-footer__col--brand {
        grid-column: 1 / -1;
    }
    .np-prefooter__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .np-footer__grid {
        grid-template-columns: 1fr;
    }
    .np-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .np-footer__legal-menu {
        justify-content: center;
    }
}
