﻿.section-title {
    position: relative;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e73be; /* azul de tu marca */
    letter-spacing: .5px;
}

    .section-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -0.5rem;
        width: 80px;
        height: 4px;
        background: #1e73be;
        border-radius: 2px;
    }


/* Contenedor de sellos */
.section-seals {
    padding-top: .5rem;
}

/* Card y contención */
.sello-card {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
}

.sello-img-wrap {
    padding: 1rem 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* caja con proporción estable para evitar “saltos” */
    aspect-ratio: 4 / 3; /* ajusta si lo prefieres: 1/1, 3/2, etc. */
}

/* Imagen: nunca se sale */
.sello-img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Opcional: alturas algo mayores en pantallas grandes */
@media (min-width: 1200px) {
    .sello-img-wrap {
        aspect-ratio: 5 / 3;
    }
}

/* HERO ULTRA IMPORTANTE — limpieza visual */
.section-hero-important {
    padding: 0 0 2.5rem;
}

.np-hero-img {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    display: block;
}

.np-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.7));
}

/* badge centrado, pill */
.np-hero-badge {
    position: absolute;
    left: 50%;
    top: 1.25rem;
    transform: translateX(-50%);
    background: #ff7a00;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    z-index: 3;
    letter-spacing: .2px;
}

/* contenido */
.np-hero-body {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.np-hero-panel {
    width: 100%;
    max-width: 980px;
    color: #fff;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 45px rgba(0,0,0,.25);
    backdrop-filter: saturate(120%) blur(6px);
}

.np-hero-title {
    font-weight: 800;
    font-size: 2rem;
    margin: 0 0 .5rem;
}

.np-hero-sub {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    line-height: 1.5;
}

/* botones consistentes */
.btn-hero {
    background: #ffffff;
    color: #111;
    border: 0;
    font-weight: 700;
    padding: .75rem 1.1rem;
    border-radius: 12px;
    line-height: 1;
}

    .btn-hero:hover {
        background: #eaeaea;
        color: #111;
    }

.btn-hero-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.65);
    font-weight: 700;
    padding: .75rem 1.1rem;
    border-radius: 12px;
    line-height: 1;
}

    .btn-hero-ghost:hover {
        border-color: #fff;
        background: rgba(255,255,255,.08);
    }

/* responsive */
@media (min-width: 768px) {
    .np-hero-body {
        padding: 2rem;
    }

    .np-hero-panel {
        padding: 2rem 2.5rem;
    }

    .np-hero-title {
        font-size: 2.4rem;
    }

    .np-hero-sub {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .np-hero-body {
        padding: 3rem 4rem;
    }

    .np-hero-title {
        font-size: 2.8rem;
    }
}

/* Secciones */
.section-wrap {
    padding: 2.5rem 0;
    border-top: 1px solid #e9ecef;
}

    .section-wrap:first-of-type {
        border-top: 0;
    }

/* Cards base */
.np-card.card {
    border: 1px solid #dee2e6;
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}

.np-card .card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.np-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12);
}

/* Badge opcional (para “Nuevo”, “Importante”, etc.) */
.np-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 2;
}

/* ============================
   Limpieza de estilos inline
   ============================ */

/* Alert importante (VeriFactu) */
.np-alert-important {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.18);
    background: linear-gradient(180deg,#ffe5e5,#f8d7da);
    position: relative;
}

.np-alert-important__badge {
    position: absolute;
    top: -10px;
    left: 20px;
    transform: translateY(-50%);
    box-shadow: 0 .35rem .9rem rgba(0,0,0,.15);
    font-size: .85rem;
}

.np-img-soft {
    border-radius: 12px;
    box-shadow: 0 .35rem .9rem rgba(0,0,0,.15);
}

.np-text-alert-title {
    color: #004a75;
}

.np-text-alert-body {
    color: #003953;
    font-size: 1rem;
}

.np-btn-rounded {
    border-radius: 10px;
}

/* Botón cerrar sin borde/outline feo en Bootstrap 4 */
.np-close-clean,
.np-close-clean:focus {
    outline: none;
    box-shadow: none;
}

/* Imagen con ancho fluido y tope 640px */
.np-img-max-640 {
    width: 100%;
    max-width: 640px;
    height: auto;
}
