/* ================================================================
   BALLESTA MKT — LANDINGS POR NICHO CSS
   /assets/css/landings.css
   Estilos específicos, modulares y optimizados para conversión.
================================================================ */

/* ─── OVERFLOW-X PREVENTION (landings) ─────────────────────── */
/* Solo overflow-x — NO tocar width/max-width para no romper layout */
body {
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

.container {
    box-sizing: border-box;
}


/* ─── HEADER DE LANDING DE CAMPAÑA (SIN DISTRACCIONES) ────────── */
.bm-landing-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 68px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    left: 0;
    right: 0;
}

.bm-landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.bm-landing-nav__logo img {
    height: 32px;
    width: auto;
}

.bm-landing-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 600px) {
    .bm-landing-header {
        height: 58px;
    }
    .bm-landing-nav__logo img {
        height: 26px;
    }
    .bm-landing-nav-btn-agenda {
        display: none !important;
    }
}

/* ─── HERO DE LANDING ────────────────────────────────────────── */
.bm-landing-hero {
    background: linear-gradient(135deg, #03111C 0%, #004578 50%, #0f172a 100%);
    color: #ffffff;
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bm-landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(12, 165, 196, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.bm-landing-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

@media (max-width: 992px) {
    .bm-landing-hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .bm-landing-hero {
        padding-top: 2rem;
        padding-bottom: 2.75rem;
    }
    .bm-landing-hero__grid {
        gap: 1.75rem;
    }
}

.bm-landing-hero__title {
    color: #ffffff;
    font-size: clamp(1.85rem, 5.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-block: 0.75rem 1rem;
    letter-spacing: -0.5px;
}

.bm-landing-hero__title span {
    color: var(--bm-cyan-light);
}

.bm-landing-hero__sub {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 620px;
}

@media (max-width: 768px) {
    .bm-landing-hero__sub {
        font-size: 0.95rem;
        line-height: 1.55;
    }
}

.bm-landing-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.bm-landing-checkitem {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #f1f5f9;
    line-height: 1.5;
}

.bm-landing-checkitem i {
    color: var(--bm-cyan);
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.bm-landing-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 768px) {
    .bm-landing-hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    .bm-landing-hero-actions .bm-btn {
        width: 100%;
        justify-content: center;
        font-size: 15px;
        padding: 13px 20px;
    }
}

/* Tarjeta visual interactiva del Hero */
.bm-landing-hero-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--bm-radius-xl);
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.bm-landing-hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ─── TARJETAS DE PROBLEMAS ──────────────────────────────────── */
.bm-problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.bm-problem-card {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-left: 4px solid var(--bm-danger);
    border-radius: 0 var(--bm-radius-lg) var(--bm-radius-lg) 0;
    padding: 2rem 1.75rem;
    box-shadow: var(--bm-shadow-sm);
    transition: transform var(--bm-transition), box-shadow var(--bm-transition);
}

.bm-problem-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bm-shadow);
}

.bm-problem-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--bm-radius-sm);
    background: rgba(239, 68, 68, 0.1);
    color: var(--bm-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.bm-problem-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bm-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.bm-problem-desc {
    font-size: 0.9rem;
    color: var(--bm-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ─── BANNER DE SOLUCIÓN Y SISTEMA ───────────────────────────── */
.bm-solution-box {
    background: linear-gradient(135deg, #004578 0%, #002642 100%);
    color: #ffffff;
    border-radius: var(--bm-radius-xl);
    padding: 3.5rem 3rem;
    margin-block: 2rem;
    box-shadow: var(--bm-shadow-lg);
    border: 1px solid rgba(12, 165, 196, 0.3);
}

@media (max-width: 768px) {
    .bm-solution-box {
        padding: 2.25rem 1.25rem;
    }
    .bm-solution-box .bm-btn {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        padding: 14px 16px;
    }
}

/* ─── FLUJO DEL SISTEMA (5 PASOS) ────────────────────────────── */
.bm-landing-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .bm-landing-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .bm-landing-steps-grid {
        grid-template-columns: 1fr;
    }
}

.bm-landing-step-card {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-lg);
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--bm-shadow-sm);
}

.bm-landing-step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bm-blue);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.bm-landing-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bm-text);
}

.bm-landing-step-desc {
    font-size: 0.85rem;
    color: var(--bm-text-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

/* ─── PAQUETE DE OFERTA ──────────────────────────────────────── */
.bm-offer-card {
    background: #ffffff;
    border: 2px solid var(--bm-cyan);
    border-radius: var(--bm-radius-xl);
    padding: 3rem;
    box-shadow: var(--bm-shadow-lg);
    margin-block: 2.5rem;
}

@media (max-width: 768px) {
    .bm-offer-card {
        padding: 1.75rem 1.25rem;
    }
}

.bm-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-block: 1.75rem;
}

@media (max-width: 768px) {
    .bm-offer-grid {
        grid-template-columns: 1fr;
    }
}

.bm-offer-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--bm-text);
}

.bm-offer-item i {
    color: var(--bm-cyan-dark);
    font-size: 1.25rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ─── OBJECIONES Y PREGUNTAS FRECUENTES ──────────────────────── */
.bm-objection-card {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--bm-shadow-sm);
}

.bm-objection-q {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bm-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-objection-a {
    font-size: 0.95rem;
    color: var(--bm-text);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ─── FORMULARIO DE CAPTURA RÁPIDA ───────────────────────────── */
.bm-lead-form-box {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--bm-shadow-lg);
}

@media (max-width: 768px) {
    .bm-lead-form-box {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
}

.bm-hide-on-mobile {
    display: inline;
}

@media (max-width: 500px) {
    .bm-hide-on-mobile {
        display: none !important;
    }
}

/* ─── BARRA STICKY MÓVIL DE CONVERSIÓN ───────────────────────── */
.bm-landing-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    z-index: 850;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .bm-landing-sticky-bar {
        display: flex;
    }
}

.bm-landing-sticky-bar .bm-btn {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 8px;
    border-radius: var(--bm-radius-sm);
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .bm-landing-hero-card {
        padding: 1.25rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .bm-landing-hero-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 0.75rem;
    }
    .bm-sys-node {
        padding: 0.75rem 0.85rem;
        gap: 10px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .bm-sys-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        flex-shrink: 0;
    }
    .bm-sys-title {
        font-size: 0.8rem;
        word-break: break-word;
    }
    .bm-sys-sub {
        font-size: 0.7rem;
        word-break: break-word;
    }
    /* Contenedor de la columna de la card en móvil */
    .bm-landing-hero__grid > div {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Evitar que las grillas de 2 columnas se desborden en formulario */
    .bm-grid.bm-grid--2 {
        grid-template-columns: 1fr !important;
    }
}
