/* ============================================================
   custom.css — Identidad visual Veno
   Sobreescribe variables CSS de Velzon sin tocar sus archivos
   originales para facilitar actualizaciones futuras.
   IMPORTANTE: Cargar SIEMPRE después de app.min.css
   ============================================================ */

/* ── Variables de marca ── */
:root {
    --vz-primary:           #1A73E8;
    --vz-primary-rgb:       26, 115, 232;
    --vz-secondary:         #00A8D6;
    --vz-dark:              #0D1B2A;
    --vz-body-bg:           #F4F6F9;
    --vz-body-color:        #4A5568;
    --vz-body-font-family:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vz-border-radius:     0.625rem;
    --vz-border-radius-lg:  1rem;
    --vz-success:           #059669;
    --vz-success-rgb:       5, 150, 105;

    /* Altura del navbar fijo — usada en sticky subnav y offsets de hero */
    --veno-navbar-h:        94px;
    /* Altura de la subnav sticky (nav de categorías) — usada en scroll-margin de los targets */
    --veno-subnav-h:        48px;

    /* Gradientes */
    --veno-gradient-hero:   linear-gradient(135deg, #0D1B2A 0%, #1A3A5C 50%, #0D1B2A 100%);
    --veno-gradient-cta:    linear-gradient(135deg, #0D1B2A 0%, #1A4480 100%);
    --veno-gradient-primary: linear-gradient(135deg, rgba(26,115,232,0.12), rgba(0,168,214,0.08));
}

/* ── Scroll offset global (compensa el navbar fijo en todos los anclas del sitio) ── */
html {
    scroll-padding-top: var(--veno-navbar-h);
}

/* Offset adicional para elementos objetivo en páginas con subnav sticky.
 * Se combina con scroll-padding-top del html: total = navbar-h + subnav-h. */
.scroll-target {
    scroll-margin-top: var(--veno-subnav-h);
}

/* ── Tipografía ── */
body {
    font-family: var(--vz-body-font-family);
    color: var(--vz-body-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* ── Navbar landing ──
 * Siempre con fondo oscuro para garantizar legibilidad en todas las páginas.
 * Al llegar al top: semi-transparente con el color del hero (#0D1B2A).
 * Al hacer scroll: opaco con blur. ────────────────────────────────────── */
#navbar-veno.navbar-landing {
    background: rgba(13, 27, 42, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
    transition: padding 0.35s ease;
    padding: 1.1rem 0;
}

#navbar-veno.navbar-landing.scrolled {
    padding: 0.6rem 0;
}

/* Links: siempre claros sobre fondo oscuro.
 * Usar #navbar-veno aumenta especificidad y supera reglas de Velzon. */
#navbar-veno .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

#navbar-veno .nav-link:hover,
#navbar-veno .nav-link.active {
    color: #ffffff !important;
}

/* Botón toggler mobile — visible sobre fondo oscuro */
#navbar-veno .navbar-toggler {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Hero section ── */
.hero-section {
    background: var(--veno-gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(26, 115, 232, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23F4F6F9' d='M0 80L48 74.7C96 69 192 59 288 58.7C384 59 480 69 576 74.7C672 80 768 80 864 74.7C960 69 1056 59 1152 58.7C1248 59 1344 69 1392 74.7L1440 80V120H0Z'/%3E%3C/svg%3E") center bottom/cover no-repeat;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26, 115, 232, 0.15);
    border: 1px solid rgba(26, 115, 232, 0.3);
    color: #93C5FD;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.875rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-mockup {
    border-radius: var(--vz-border-radius-lg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.08);
    width: 100%;
    max-width: 620px;
}

/* ── Sección de métricas ── */
.metrics-section {
    background: #fff;
    padding: 4rem 0;
    border-bottom: 1px solid #E2E8F0;
}

.metric-item {
    text-align: center;
    padding: 1rem;
}

.metric-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--vz-primary);
    line-height: 1;
    display: block;
}

.metric-label {
    font-size: 0.9375rem;
    color: #6B7280;
    margin-top: 0.375rem;
}

.metric-divider {
    width: 1px;
    background: #E2E8F0;
    align-self: stretch;
}

/* ── Feature cards ── */
.feature-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: var(--vz-border-radius-lg);
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(26, 115, 232, 0.12);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--veno-gradient-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--vz-primary);
    margin-bottom: 1.25rem;
}

/* ── Badge "Próximamente" ── */
.badge-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #FFF7ED;
    color: #B45309;
    border: 1px solid #FCD34D;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* ── Feature card con estado "próximamente" ── */
.feature-card.feature-card-soon {
    opacity: 0.82;
    border: 1px dashed #FCD34D !important;
    background: #FFFBF0 !important;
}

/* ── Badge SAT ── */
.badge-sat {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.875rem;
    border-radius: 999px;
}

/* ── Steps / Cómo funciona ── */
.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--vz-primary);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.step-connector {
    width: 2px;
    background: linear-gradient(to bottom, var(--vz-primary), transparent);
    margin-left: 23px;
    height: 40px;
}

/* ── Tarjeta testimonial ── */
.testimonial-card {
    background: #fff;
    border-radius: var(--vz-border-radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    height: 100%;
    border: 1px solid #F0F4F8;
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.testimonial-text {
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

/* ── Pricing cards ── */
.pricing-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: var(--vz-border-radius-lg);
    padding: 2rem;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.pricing-card.popular {
    border: 2px solid var(--vz-primary);
    box-shadow: 0 20px 60px rgba(26, 115, 232, 0.18);
    position: relative;
}

.pricing-badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vz-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--vz-dark);
    line-height: 1;
}

.pricing-price sup {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: top;
    margin-top: 0.35rem;
    color: #6B7280;
}

.pricing-period {
    font-size: 0.875rem;
    color: #6B7280;
}

.pricing-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: #374151;
    padding: 0.375rem 0;
}

.pricing-feature-list li .ri-checkbox-circle-fill {
    color: var(--vz-success);
    font-size: 1rem;
    flex-shrink: 0;
}

.pricing-feature-list li .ri-close-circle-fill {
    color: #D1D5DB;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── Sección CTA final ── */
.cta-final-section {
    background: var(--veno-gradient-cta);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-final-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(26, 115, 232, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-trust-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ── Sección con fondo alterno ── */
.section-alt {
    background: var(--vz-body-bg);
}

/* ── Section heading reutilizable ── */
.section-label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vz-primary);
    margin-bottom: 0.75rem;
    display: block;
}

/* ── Botones ── */
.btn-primary {
    background: var(--vz-primary);
    border-color: var(--vz-primary);
}

.btn-primary:hover {
    background: #1557c0;
    border-color: #1557c0;
}

.btn-outline-primary {
    color: var(--vz-primary);
    border-color: var(--vz-primary);
}

.btn-outline-primary:hover {
    background: var(--vz-primary);
    border-color: var(--vz-primary);
}

/* ── Footer ── */
.footer-veno {
    background: var(--vz-dark);
    color: rgba(255, 255, 255, 0.65);
}

.footer-veno a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-veno a:hover {
    color: #fff;
}

.footer-veno .footer-heading {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 6rem 0 5rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .pricing-card.popular {
        position: relative;
    }
}

@media (max-width: 576px) {
    .cta-final-section {
        padding: 3.5rem 0;
    }
}
