/* INPAY — estilos ligeros para index2 (sin parallax ni plugins pesados) */

#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #4683df;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.1s linear;
    pointer-events: none;
}

/* Banners con imagen fija (sin JS de parallax) */
.banner-quote,
.banner-blog {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    overflow: hidden;
}

.banner-quote {
    background-image: url(../images/bg3.jpg);
}

.banner-blog {
    background-image: url(../images/bg2.jpg);
    position: relative;
}

.banner-blog::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.banner-quote::before,
.banner-blog::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.banner-quote .container,
.banner-blog .container {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .banner-quote,
    .banner-blog {
        background-attachment: fixed;
    }
}

/* Stat circle (reemplaza jQuery Knob) */
.stat-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid #333;
    background: #f5f5f5;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

/* Grid de beneficios con filtro CSS/JS */
.benefits-toolbar {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.benefits-toolbar span {
    margin-right: 0.5rem;
    color: #666;
}

.benefits-toolbar button {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    color: #555;
    cursor: pointer;
    font: inherit;
    transition: color 0.2s;
}

.benefits-toolbar button:hover,
.benefits-toolbar button.is-active {
    color: #4683df;
    font-weight: 600;
}

.benefits-toolbar .sep {
    color: #ccc;
    margin: 0 0.15rem;
    user-select: none;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem 1.25rem;
}

.benefit-card {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.benefit-card.is-hidden {
    display: none;
}

.benefit-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.benefit-card a:hover {
    text-decoration: none;
    color: inherit;
}

.benefit-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.benefit-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.benefit-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Mensajes del formulario */
.form-result .msg {
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
}

.form-result .msg-ok {
    background: #eafaf1;
    color: #1e7e34;
    border: 1px solid #b7e4c7;
}

.form-result .msg-error {
    background: #fff3f3;
    color: #a61b1b;
    border: 1px solid #f1b0b7;
}

#char-counter {
    color: #888;
    font-size: 0.88em;
}

/* Nav activo al scroll */
.navbar-nav .nav-link.is-active {
    font-weight: bold;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}
