/* ================================================================
   BALLESTA MKT — COMPONENTS CSS
   Botones, cards, formularios, badges, alerts, modales
================================================================ */

/* ─── BOTONES ────────────────────────────────────────────────── */
.bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--bm-font);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--bm-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--bm-transition);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    box-sizing: border-box;
}

/* Primary */
.bm-btn--primary {
    background: var(--bm-cyan);
    color: #000;
    border-color: var(--bm-cyan);
}
.bm-btn--primary:hover {
    background: var(--bm-cyan-dark);
    border-color: var(--bm-cyan-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(12,165,196,0.35);
}

/* Blue */
.bm-btn--blue {
    background: var(--bm-blue);
    color: #fff;
    border-color: var(--bm-blue);
}
.bm-btn--blue:hover {
    background: var(--bm-blue-dark);
    border-color: var(--bm-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,91,151,0.35);
}

/* Outline */
.bm-btn--outline {
    background: transparent;
    color: var(--bm-blue);
    border-color: var(--bm-blue);
}
.bm-btn--outline:hover {
    background: var(--bm-blue);
    color: #fff;
}

/* Outline white (para fondos oscuros) */
.bm-btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.bm-btn--outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Ghost */
.bm-btn--ghost {
    background: transparent;
    color: var(--bm-text);
    border-color: var(--bm-border);
}
.bm-btn--ghost:hover {
    background: var(--bm-bg-alt);
}

/* WhatsApp */
.bm-btn--wa {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}
.bm-btn--wa:hover {
    background: #1ebe5a;
    border-color: #1ebe5a;
    transform: translateY(-2px);
}

/* Tamaños */
.bm-btn--sm  { font-size: 13.5px; padding: 8px 18px; }
.bm-btn--lg  { font-size: 17px;   padding: 16px 36px; }
.bm-btn--xl  { font-size: 18px;   padding: 18px 44px; }
.bm-btn--full { width: 100%; }

@media (max-width: 768px) {
    .bm-btn {
        padding: 12px 20px;
        font-size: 14.5px;
    }
    .bm-btn--sm {
        font-size: 13px;
        padding: 8px 14px;
    }
    .bm-btn--lg {
        font-size: 15px;
        padding: 14px 20px;
    }
    .bm-btn--xl {
        font-size: 16px;
        padding: 15px 24px;
    }
}

/* Estado loading */
.bm-btn--loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ─── BADGES / PILLS ─────────────────────────────────────────── */
.bm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: var(--bm-radius-full);
}

.bm-badge--cyan    { background: rgba(12,165,196,0.12);  color: var(--bm-cyan-dark); }
.bm-badge--blue    { background: rgba(0,91,151,0.10);    color: var(--bm-blue); }
.bm-badge--success { background: rgba(34,197,94,0.12);   color: #15803d; }
.bm-badge--warning { background: rgba(245,158,11,0.12);  color: #b45309; }
.bm-badge--danger  { background: rgba(239,68,68,0.12);   color: #b91c1c; }
.bm-badge--muted   { background: rgba(100,116,139,0.10); color: var(--bm-text-muted); }

/* ─── CARDS GENÉRICAS ────────────────────────────────────────── */
.bm-card {
    background: var(--bm-bg);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    overflow: hidden;
    transition: box-shadow var(--bm-transition), transform var(--bm-transition);
}

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

.bm-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.bm-card__body {
    padding: var(--bm-space-lg);
}

.bm-card__eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--bm-cyan-dark);
    margin-bottom: 8px;
}

.bm-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--bm-text);
}

.bm-card__text {
    font-size: 14px;
    color: var(--bm-text-muted);
    line-height: 1.55;
    margin-bottom: var(--bm-space-md);
}

.bm-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--bm-text-light);
    margin-bottom: var(--bm-space-md);
}

.bm-card__meta i {
    font-size: 13px;
}

/* Grid de cards */
.bm-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bm-space-lg);
}

.bm-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bm-space-lg);
}

.bm-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bm-space-lg);
}

/* ─── FORMULARIOS ────────────────────────────────────────────── */
.bm-form__group,
.bm-form-group {
    margin-bottom: var(--bm-space-lg);
}

.bm-form__label,
.bm-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-text);
    margin-bottom: 6px;
}

.bm-form__label--required::after {
    content: ' *';
    color: var(--bm-danger);
}

.bm-form__input,
.bm-form__textarea,
.bm-form__select,
.bm-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14.5px;
    font-family: var(--bm-font);
    color: var(--bm-text);
    background: #ffffff;
    border: 1.5px solid var(--bm-border);
    border-radius: var(--bm-radius-sm);
    transition: border-color var(--bm-transition), box-shadow var(--bm-transition);
    outline: none;
    display: block;
}

.bm-form__input:focus,
.bm-form__textarea:focus,
.bm-form__select:focus,
.bm-input:focus {
    border-color: var(--bm-blue);
    box-shadow: 0 0 0 3px rgba(0, 91, 151, 0.12);
}

.bm-form__input.error,
.bm-form__textarea.error,
.bm-form__select.error,
.bm-input.error {
    border-color: var(--bm-danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.bm-form__textarea,
textarea.bm-input {
    resize: vertical;
    min-height: 100px;
}

.bm-form__error {
    display: block;
    font-size: 12.5px;
    color: var(--bm-danger);
    margin-top: 5px;
}

.bm-form__hint {
    display: block;
    font-size: 12.5px;
    color: var(--bm-text-muted);
    margin-top: 5px;
}

/* Checkbox y radio personalizados */
.bm-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--bm-text);
    line-height: 1.4;
}

.bm-check input[type="checkbox"],
.bm-check input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--bm-cyan);
    margin-top: 2px;
    cursor: pointer;
}

/* ─── ALERTS ─────────────────────────────────────────────────── */
.bm-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--bm-radius-sm);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: var(--bm-space-lg);
}

.bm-alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.bm-alert--success { background: rgba(34,197,94,0.10);  border: 1px solid rgba(34,197,94,0.3);  color: #15803d; }
.bm-alert--error   { background: rgba(239,68,68,0.10);  border: 1px solid rgba(239,68,68,0.3);  color: #b91c1c; }
.bm-alert--info    { background: rgba(56,189,248,0.10); border: 1px solid rgba(56,189,248,0.3); color: #0369a1; }
.bm-alert--warning { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.3); color: #92400e; }

/* ─── SEPARADORES / DIVISORES ────────────────────────────────── */
.bm-divider {
    border: none;
    border-top: 1px solid var(--bm-border);
    margin: var(--bm-space-xl) 0;
}

/* ─── ICONOS FEATURE ─────────────────────────────────────────── */
.bm-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--bm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: rgba(12,165,196,0.12);
    color: var(--bm-cyan-dark);
    margin-bottom: var(--bm-space-md);
}

.bm-icon-box--blue {
    background: rgba(0,91,151,0.10);
    color: var(--bm-blue);
}

/* ─── CTA SECTION ────────────────────────────────────────────── */
.bm-cta-section {
    background: linear-gradient(135deg, var(--bm-bg-dark) 0%, var(--bm-bg-dark-2) 100%);
    padding: var(--bm-space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bm-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(12,165,196,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.bm-cta-section .container {
    position: relative;
}

.bm-cta-section__title {
    color: #fff;
    margin-bottom: var(--bm-space-md);
}

.bm-cta-section__text {
    color: rgba(241,245,249,0.75);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto var(--bm-space-xl);
}

.bm-cta-section__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bm-space-md);
    flex-wrap: wrap;
}

/* ─── RESPONSIVE GRIDS ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .bm-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 540px) {
    .bm-grid-3,
    .bm-grid-2,
    .bm-grid-4 { grid-template-columns: 1fr; }
}

/* ─── BM-GRID MODIFIER CLASSES (alias con doble guión) ──────── */
/* Usadas en landing.php, servicios.php, contacto.php, etc.      */
.bm-grid {
    display: grid;
    width: 100%;
    box-sizing: border-box;
}

.bm-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bm-space-lg);
}

.bm-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bm-space-lg);
}

.bm-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bm-space-lg);
}

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

@media (max-width: 768px) {
    .bm-grid--2,
    .bm-grid--3,
    .bm-grid--4 {
        grid-template-columns: 1fr;
        gap: var(--bm-space-md);
    }
}

/* ================================================================
   BALLESTA MKT — HOME LAYOUT COMPONENT STYLES
   (Basado en inicio.md y diseño visual inicio-layout.png)
================================================================ */

/* ─── PILL BADGES ────────────────────────────────────────────── */
.bm-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: var(--bm-radius-full);
    background: rgba(12, 165, 196, 0.10);
    color: var(--bm-blue);
    border: 1px solid rgba(12, 165, 196, 0.25);
    line-height: 1.4;
}

.bm-pill-tag--blue {
    background: rgba(0, 91, 151, 0.08);
    color: var(--bm-blue);
    border-color: rgba(0, 91, 151, 0.2);
}

.bm-pill-tag--cyan {
    background: rgba(12, 165, 196, 0.12);
    color: var(--bm-cyan-dark);
    border-color: rgba(12, 165, 196, 0.3);
}

.bm-pill-tag--dark {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.bm-pill-tag__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* ─── HERO LIGHT SECTION (Diseño Moderno) ─────────────────────── */
.bm-hero-home {
    padding-top: calc(var(--bm-header-h) + 2.5rem);
    padding-bottom: 4rem;
    background: #ffffff;
    position: relative;
}

.bm-hero-home__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.bm-hero-home__title {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--bm-text);
    margin-block: 1rem 1.25rem;
    letter-spacing: -0.5px;
}

.bm-hero-home__title span {
    color: var(--bm-blue);
}

.bm-hero-home__desc {
    font-size: 1.05rem;
    color: var(--bm-text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* Lista con checks del Hero */
.bm-hero-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.bm-hero-checkitem {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--bm-text);
    line-height: 1.5;
}

.bm-hero-checkitem i {
    color: var(--bm-blue);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.bm-hero-checkitem strong {
    color: var(--bm-text);
    font-weight: 700;
}

/* Acciones y alternancia baja fricción */
.bm-hero-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

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

.bm-hero-wa-alt {
    font-size: 0.9rem;
    color: var(--bm-text-muted);
}

.bm-hero-wa-alt a {
    color: var(--bm-blue);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--bm-transition);
}

.bm-hero-wa-alt a:hover {
    color: var(--bm-cyan-dark);
}

/* Barra de métricas / Trust stats del Hero */
.bm-hero-stats-bar {
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid var(--bm-border);
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

.bm-hero-stat-col strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--bm-blue);
    font-family: var(--bm-font-display);
    line-height: 1.1;
}

.bm-hero-stat-col span {
    font-size: 0.8rem;
    color: var(--bm-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card visual interactiva del Hero */
.bm-hero-visual-card {
    background: #0f172a;
    border-radius: var(--bm-radius-xl);
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.bm-hero-visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.bm-hero-visual-img {
    width: 100%;
    border-radius: var(--bm-radius);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.bm-hero-visual-badge-floating {
    position: absolute;
    bottom: -15px;
    left: 20px;
    background: linear-gradient(135deg, var(--bm-blue), #003659);
    border: 1px solid rgba(12, 165, 196, 0.4);
    padding: 10px 18px;
    border-radius: var(--bm-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--bm-shadow-lg);
    font-size: 0.9rem;
    font-weight: 700;
}

/* ─── 6 PILARES DEL ECOSISTEMA ───────────────────────────────── */
.bm-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bm-pillar-card {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: transform var(--bm-transition), box-shadow var(--bm-transition), border-color var(--bm-transition);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.bm-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bm-shadow);
    border-color: var(--bm-cyan);
}

.bm-pillar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.bm-pillar-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bm-text-muted);
}

.bm-pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--bm-radius-sm);
    background: rgba(12, 165, 196, 0.12);
    color: var(--bm-cyan-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.bm-pillar-card:nth-child(2) .bm-pillar-icon { background: rgba(0, 91, 151, 0.1); color: var(--bm-blue); }
.bm-pillar-card:nth-child(3) .bm-pillar-icon { background: rgba(12, 165, 196, 0.12); color: var(--bm-cyan-dark); }
.bm-pillar-card:nth-child(4) .bm-pillar-icon { background: rgba(0, 91, 151, 0.1); color: var(--bm-blue); }
.bm-pillar-card:nth-child(5) .bm-pillar-icon { background: rgba(12, 165, 196, 0.12); color: var(--bm-cyan-dark); }
.bm-pillar-card:nth-child(6) .bm-pillar-icon { background: rgba(0, 91, 151, 0.1); color: var(--bm-blue); }

.bm-pillar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--bm-text);
}

.bm-pillar-desc {
    font-size: 0.9rem;
    color: var(--bm-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.bm-pillar-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bm-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--bm-transition);
}

.bm-pillar-card:hover .bm-pillar-link {
    gap: 10px;
    color: var(--bm-cyan-dark);
}

/* ─── 3 SERVICIOS PRINCIPALES (CARDS DESTACADAS) ─────────────── */
.bm-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.bm-service-featured-card {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-xl);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--bm-shadow-sm);
    transition: transform var(--bm-transition), box-shadow var(--bm-transition);
}

.bm-service-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bm-shadow);
}

.bm-service-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--bm-radius-full);
    background: rgba(12, 165, 196, 0.1);
    color: var(--bm-cyan-dark);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.bm-service-featured-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.bm-service-featured-card p {
    font-size: 0.925rem;
    color: var(--bm-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.bm-service-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.bm-service-checklist li {
    font-size: 0.9rem;
    color: var(--bm-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-service-checklist li i {
    color: var(--bm-cyan-dark);
    font-size: 1rem;
}

/* ─── RUTA CRÍTICA / ASÍ FUNCIONA EL SISTEMA ─────────────────── */
.bm-flow-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

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

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

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

.bm-flow-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

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

.bm-flow-step-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.bm-flow-step-card p {
    font-size: 0.875rem;
    color: var(--bm-text-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

/* Caja de Ejemplo Práctico */
.bm-example-box {
    background: #ffffff;
    border: 1px dashed var(--bm-border);
    border-radius: var(--bm-radius-lg);
    padding: 2rem;
    margin-top: 2.5rem;
}

.bm-example-flow-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-block: 1.25rem;
}

.bm-example-step-node {
    background: var(--bm-bg-alt);
    border: 1px solid var(--bm-border);
    padding: 8px 14px;
    border-radius: var(--bm-radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--bm-text);
    white-space: nowrap;
}

.bm-example-arrow {
    color: var(--bm-cyan-dark);
    font-weight: bold;
}

/* ─── CTA INTERMEDIO (DIAGNÓSTICO BANNER) ─────────────────────── */
.bm-diag-banner {
    background: linear-gradient(135deg, #004578 0%, #002642 100%);
    border-radius: var(--bm-radius-xl);
    padding: 3.5rem 3rem;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--bm-shadow-lg);
    border: 1px solid rgba(12, 165, 196, 0.3);
}

@media (max-width: 900px) {
    .bm-diag-banner {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.75rem;
        text-align: center;
    }
}

.bm-diag-banner h2 {
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-block: 0.75rem;
    line-height: 1.25;
}

.bm-diag-banner p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.bm-diag-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ─── TESTIMONIOS (SOCIAL PROOF) ─────────────────────────────── */
.bm-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.bm-testimonial-card {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-xl);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--bm-shadow-sm);
}

.bm-stars {
    color: #f59e0b;
    font-size: 1rem;
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.bm-testimonial-quote {
    font-size: 0.95rem;
    color: var(--bm-text);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.bm-impact-metric-pill {
    background: rgba(0, 91, 151, 0.06);
    border-left: 3px solid var(--bm-blue);
    padding: 8px 12px;
    border-radius: 0 var(--bm-radius-sm) var(--bm-radius-sm) 0;
    margin-bottom: 1.5rem;
}

.bm-impact-metric-pill small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bm-text-muted);
}

.bm-impact-metric-pill strong {
    font-size: 1rem;
    color: var(--bm-blue);
    font-weight: 800;
}

.bm-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--bm-border);
    padding-top: 1.25rem;
}

.bm-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bm-bg-alt);
    border: 1px solid var(--bm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--bm-blue);
}

.bm-testimonial-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bm-text);
}

.bm-testimonial-role {
    font-size: 0.8rem;
    color: var(--bm-text-muted);
}

/* ─── PORTAFOLIO SELECCIONADO ────────────────────────────────── */
.bm-portfolio-featured {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    padding: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    align-items: center;
}

@media (max-width: 900px) {
    .bm-portfolio-featured {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

.bm-portfolio-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--bm-bg-alt);
    padding: 1.25rem;
    border-radius: var(--bm-radius);
    margin-block: 1.5rem;
    border: 1px solid var(--bm-border);
}

.bm-metric-box small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bm-text-muted);
    margin-bottom: 2px;
}

.bm-metric-box strong {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--bm-blue);
    font-family: var(--bm-font-display);
}

.bm-portfolio-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.bm-portfolio-mini-card {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-xl);
    padding: 2rem;
}

/* ─── CTA FINAL & FORMULARIO PRIORITARIO ─────────────────────── */
.bm-final-box {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-xl);
    padding: 3.5rem;
    box-shadow: var(--bm-shadow);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .bm-final-box {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }
}

.bm-final-form-card {
    background: var(--bm-bg-alt);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-lg);
    padding: 2rem;
}

.bm-fast-input {
    width: 100%;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: border-color var(--bm-transition);
}

.bm-fast-input:focus {
    outline: none;
    border-color: var(--bm-blue);
}

/* ─── FAQ ACCORDION ──────────────────────────────────────────── */
.bm-faq-list {
    max-width: 850px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bm-faq-item {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-lg);
    overflow: hidden;
    transition: border-color var(--bm-transition);
}

.bm-faq-item[open] {
    border-color: var(--bm-blue);
}

.bm-faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--bm-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bm-faq-question::-webkit-details-marker {
    display: none;
}

.bm-faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--bm-blue);
    transition: transform var(--bm-transition);
}

.bm-faq-item[open] .bm-faq-question::after {
    content: '−';
}

.bm-faq-answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--bm-text-muted);
    line-height: 1.65;
}

/* ─── DIAGRAMA DE SISTEMA DEL HERO ───────────────────────────── */
.bm-hero-system-diagram {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--bm-radius-xl);
    padding: 2rem 1.75rem;
    box-shadow: var(--bm-shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.bm-sys-node {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--bm-radius);
    padding: 0.9rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--bm-transition);
}

.bm-sys-node:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--bm-cyan);
    transform: translateY(-2px);
}

.bm-sys-node--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
}

.bm-sys-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--bm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bm-sys-title {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 2px;
}

.bm-sys-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
}

.bm-sys-arrow {
    text-align: center;
    color: var(--bm-cyan);
    font-size: 1rem;
    padding-block: 4px;
    opacity: 0.8;
}

/* ─── FLUJO VISUAL DE 6 ETAPAS (SECCIÓN 14) ──────────────────── */
.bm-flow-6-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .bm-flow-6-grid {
        grid-template-columns: 1fr;
    }
}

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

.bm-flow-6-card--highlight {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.02);
}

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

.bm-flow-6-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--bm-text);
}

.bm-flow-6-card p {
    font-size: 0.9rem;
    color: var(--bm-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.bm-flow-6-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--bm-blue);
    background: rgba(0, 91, 151, 0.08);
    border: 1px solid rgba(0, 91, 151, 0.2);
    padding: 4px 10px;
    border-radius: var(--bm-radius-full);
    display: inline-block;
    align-self: flex-start;
}

@media (max-width: 992px) {
    .bm-hero-home__grid,
    .bm-pillars-grid,
    .bm-services-grid,
    .bm-testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── CANALES Y FORMULARIO DE CONTACTO ───────────────────────── */
.bm-contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
    .bm-contact-channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.bm-contact-channel-card {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform var(--bm-transition), border-color var(--bm-transition), box-shadow var(--bm-transition);
    box-shadow: var(--bm-shadow-sm);
}

.bm-contact-channel-card:hover {
    transform: translateY(-3px);
    border-color: var(--bm-cyan);
    box-shadow: var(--bm-shadow);
}

.bm-contact-channel-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--bm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    background: rgba(0, 91, 151, 0.08);
    color: var(--bm-blue);
}

.bm-contact-channel-icon--wa {
    background: rgba(37, 211, 102, 0.12);
    color: #16a34a;
}

.bm-contact-channel-icon--cyan {
    background: rgba(12, 165, 196, 0.12);
    color: var(--bm-cyan-dark);
}

.bm-contact-channel-body {
    min-width: 0;
    flex: 1;
}

.bm-contact-channel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bm-text);
    margin-bottom: 2px;
    line-height: 1.2;
}

.bm-contact-channel-sub {
    font-size: 0.8rem;
    color: var(--bm-text-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tarjeta del formulario de contacto */
.bm-contact-form-card {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-xl);
    padding: 2.75rem 2.5rem;
    box-shadow: var(--bm-shadow);
}

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

.bm-contact-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-xl);
    padding: 2rem;
    box-shadow: var(--bm-shadow-sm);
    margin-bottom: 1.75rem;
}



