/* ============================================================
   🏠 BLUBERRY MODELS — HOMEPAGE (Paleta Híbrida)
   Header/Footer navy+oro · Secciones intermedias claras
   ============================================================ */

:root {
    --bm-light-bg:    #f6f5f0;   /* crema suave */
    --bm-light-alt:   #ffffff;
    --bm-ink:         #131c30;   /* texto oscuro navy */
    --bm-ink-soft:    #56607a;
    --bm-blue:        #1a365d;
    --bm-blue-2:      #2b6cb0;
}

/* ── Ancho completo (home + páginas con plantilla) ───────────
   Astra limita el contenido a 1240px y usa display:flex en
   .ast-container (lo que hace que el contenido se encoja al ancho
   del texto). Aquí forzamos ancho completo + block. ─────────── */
body.bm-fw #content,
body.bm-fw #content > .ast-container,
body.bm-fw .site-content > .ast-container,
body.bm-fw #primary,
body.bm-fw #main {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;   /* anula el flex de Astra */
}
body.bm-fw .bm-home,
body.bm-fw .bm-page { width: 100%; }
body.bm-fw { overflow-x: hidden; }

/* Contenedor interno centrado */
.bm-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 2;
}

.bm-home section { position: relative; }

/* Encabezados de sección reutilizables */
.bm-eyebrow {
    display: inline-block;
    font-family: var(--bm-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bm-gold);
    margin-bottom: 14px;
}
.bm-section-title {
    font-family: var(--bm-font-heading);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}
.bm-section-sub {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 680px;
}
.bm-center { text-align: center; }
.bm-center .bm-section-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   ⚡ HERO
   ============================================================ */
.bm-hero {
    background:
        radial-gradient(ellipse at 50% -10%, rgba(201,168,76,0.18) 0%, transparent 55%),
        linear-gradient(160deg, var(--bm-navy-mid) 0%, var(--bm-navy-dark) 55%, var(--bm-navy-deeper) 100%);
    padding: 130px 0 120px;
    text-align: center;
    overflow: hidden;
}
.bm-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bm-light-bg));
}
.bm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--bm-gold-dim);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bm-gold-light);
    background: var(--bm-gold-soft);
    margin-bottom: 28px;
}
.bm-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.08;
    margin: 0 auto 22px;
    max-width: 14ch;
    color: var(--bm-white);
    text-shadow: 0 0 60px rgba(201,168,76,0.2), 0 4px 30px rgba(0,0,0,0.4);
}
.bm-hero h1 .bm-gold-text {
    background: linear-gradient(120deg, var(--bm-gold-light), var(--bm-gold) 60%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bm-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.78);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.75;
}
.bm-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botones */
.bm-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    font-family: var(--bm-font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    cursor: pointer;
    border: 1.5px solid transparent;
}
.bm-btn-gold {
    background: linear-gradient(120deg, var(--bm-gold), var(--bm-gold-light));
    color: var(--bm-navy) !important;
    box-shadow: 0 8px 28px rgba(201,168,76,0.32);
}
.bm-btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(201,168,76,0.45);
}
.bm-btn-ghost {
    background: rgba(255,255,255,0.04);
    color: var(--bm-white) !important;
    border-color: rgba(255,255,255,0.22);
}
.bm-btn-ghost:hover {
    border-color: var(--bm-gold);
    color: var(--bm-gold-light) !important;
    transform: translateY(-3px);
}

/* Stats bajo el hero */
.bm-hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    margin-top: 64px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}
.bm-stat .bm-stat-num {
    font-family: var(--bm-font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--bm-gold);
    line-height: 1;
}
.bm-stat .bm-stat-label {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-top: 8px;
}

/* ============================================================
   📸 FONDOS FOTOGRÁFICOS — foto de modelo + overlay navy
   La clase .has-photo la añade PHP (bluberry_bg_attr) SOLO si
   existe la imagen en /wp-content/uploads/bm-fondos/. La foto
   entra por la variable --bm-bg. El navy va muy por encima
   (azul fuerte · chica sutil): el azul de marca manda y el
   texto dorado/blanco se lee siempre. Sin foto → degradado normal.
   ============================================================ */
.bm-hero.has-photo {
    background:
        radial-gradient(ellipse at 50% -10%, rgba(201,168,76,0.20) 0%, transparent 55%),
        linear-gradient(160deg, rgba(15,38,69,0.86) 0%, rgba(5,14,26,0.90) 55%, rgba(0,7,18,0.95) 100%),
        var(--bm-bg) center 18% / cover no-repeat;
}
.bm-brand-panel.has-photo {
    background:
        radial-gradient(ellipse at 50% 25%, rgba(201,168,76,0.20) 0%, transparent 60%),
        linear-gradient(160deg, rgba(15,38,69,0.82), rgba(0,7,18,0.92)),
        var(--bm-bg) center / cover no-repeat;
}
.bm-dark.has-photo {
    background:
        radial-gradient(ellipse at 80% 0%, rgba(201,168,76,0.10) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0,7,18,0.90) 0%, rgba(5,14,26,0.93) 100%),
        var(--bm-bg) center / cover no-repeat;
}
.bm-mv-card.has-photo {
    background:
        linear-gradient(160deg, rgba(15,38,69,0.88), rgba(5,14,26,0.93)),
        var(--bm-bg) center / cover no-repeat;
}
.bm-cta-final.has-photo {
    background:
        radial-gradient(ellipse at 50% 120%, rgba(201,168,76,0.22) 0%, transparent 55%),
        linear-gradient(160deg, rgba(15,38,69,0.86), rgba(0,7,18,0.93)),
        var(--bm-bg) center / cover no-repeat;
}

/* ============================================================
   ☀️ SECCIONES CLARAS
   ============================================================ */
.bm-light {
    background: var(--bm-light-bg);
    padding: 100px 0;
}
.bm-light.bm-alt { background: var(--bm-light-alt); }
.bm-light .bm-section-title,
.bm-light h2, .bm-light h3 { color: var(--bm-ink); }
.bm-light .bm-section-sub,
.bm-light p { color: var(--bm-ink-soft); }

/* Quiénes somos — split */
.bm-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.bm-split-media {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(19,28,48,0.18);
    aspect-ratio: 4/3;
    position: relative;
}
.bm-split-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.bm-split-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(140deg, rgba(26,54,93,0.15), transparent 60%);
}

/* Panel de marca (reemplaza la foto) */
.bm-brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.18) 0%, transparent 60%),
        linear-gradient(160deg, var(--bm-navy-mid), var(--bm-navy-deeper));
}
.bm-brand-panel::after { display: none; }
.bm-brand-panel .bm-brand-logo {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bm-gold-dim);
    box-shadow: 0 10px 40px rgba(0,0,0,0.45), 0 0 50px rgba(201,168,76,0.2);
}
.bm-brand-panel .bm-brand-tag {
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bm-gold-light);
    font-weight: 600;
}

/* ============================================================
   💎 CARDS — Beneficios / Por qué
   ============================================================ */
.bm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 56px;
}
.bm-card {
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.07);
    border-radius: 18px;
    padding: 38px 32px;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 4px 20px rgba(19,28,48,0.05);
    position: relative;
    overflow: hidden;
}
.bm-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(to right, var(--bm-gold), var(--bm-gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}
.bm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(19,28,48,0.14);
    border-color: rgba(201,168,76,0.3);
}
.bm-card:hover::before { transform: scaleX(1); }
.bm-card-icon {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
    font-size: 1.6rem;
    margin-bottom: 22px;
}
.bm-card h3 {
    font-family: var(--bm-font-heading);
    font-size: 1.3rem;
    margin: 0 0 12px;
    color: var(--bm-ink) !important;
}
.bm-card p { font-size: 0.96rem; line-height: 1.7; margin: 0; }

/* ============================================================
   🛤️ PROCESO — Timeline (sección oscura)
   ============================================================ */
.bm-dark {
    background:
        radial-gradient(ellipse at 80% 0%, rgba(201,168,76,0.08) 0%, transparent 50%),
        var(--bm-navy-deeper);
    padding: 110px 0;
}
.bm-dark .bm-section-title { color: var(--bm-white); }
.bm-dark .bm-section-sub { color: rgba(255,255,255,0.7); }
.bm-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
    counter-reset: step;
}
.bm-step {
    position: relative;
    padding: 34px 26px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    transition: all 0.4s ease;
}
.bm-step:hover {
    background: rgba(201,168,76,0.06);
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-6px);
}
.bm-step-num {
    counter-increment: step;
    font-family: var(--bm-font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--bm-gold);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 16px;
}
.bm-step-num::before { content: '0' counter(step); }
.bm-step h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: var(--bm-white) !important;
}
.bm-step p { color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.65; margin: 0; }

/* ============================================================
   🎯 MISIÓN / VISIÓN
   ============================================================ */
.bm-mv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 50px;
}
.bm-mv-card {
    padding: 44px 40px;
    border-radius: 20px;
    background: linear-gradient(160deg, var(--bm-navy-mid), var(--bm-navy-dark));
    border: 1px solid rgba(201,168,76,0.15);
    position: relative;
    overflow: hidden;
}
.bm-mv-card h3 {
    font-family: var(--bm-font-heading);
    color: var(--bm-gold-light) !important;
    font-size: 1.5rem;
    margin: 0 0 16px;
}
.bm-mv-card p { color: rgba(255,255,255,0.78) !important; font-style: italic; line-height: 1.85; font-size: 1.02rem; margin: 0; }

/* ============================================================
   💬 TESTIMONIOS
   ============================================================ */
.bm-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 56px;
}
.bm-testi {
    background: var(--bm-light-alt);
    border-radius: 18px;
    padding: 34px 30px;
    box-shadow: 0 4px 24px rgba(19,28,48,0.07);
    border: 1px solid rgba(19,28,48,0.06);
}
.bm-testi-stars { color: var(--bm-gold); letter-spacing: 2px; margin-bottom: 16px; font-size: 0.95rem; }
.bm-testi p { font-size: 0.98rem; line-height: 1.75; color: var(--bm-ink-soft); margin: 0 0 22px; font-style: italic; }
.bm-testi-who { display: flex; align-items: center; gap: 14px; }
.bm-testi-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bm-gold), var(--bm-gold-light));
    color: var(--bm-navy); font-weight: 700; font-family: var(--bm-font-heading);
}
.bm-testi-name { font-weight: 700; color: var(--bm-ink); font-size: 0.95rem; }
.bm-testi-role { font-size: 0.8rem; color: var(--bm-ink-soft); }

/* ============================================================
   ❓ FAQ — Accordion
   ============================================================ */
.bm-faq { max-width: 820px; margin: 50px auto 0; }
.bm-faq-item {
    border: 1px solid rgba(19,28,48,0.1);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--bm-light-alt);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.bm-faq-item.open { border-color: rgba(201,168,76,0.4); box-shadow: 0 8px 28px rgba(19,28,48,0.08); }
.bm-faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 22px 26px;
    font-family: var(--bm-font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bm-ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.bm-faq-icon { color: var(--bm-gold); font-size: 1.4rem; transition: transform 0.3s ease; flex-shrink: 0; }
.bm-faq-item.open .bm-faq-icon { transform: rotate(45deg); }
.bm-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 26px;
}
.bm-faq-item.open .bm-faq-a { max-height: 320px; padding: 0 26px 24px; }
.bm-faq-a p { color: var(--bm-ink-soft); line-height: 1.75; margin: 0; }

/* ============================================================
   🏆 MEJORES MARCAS — franja de logos de plataformas (navy)
   ============================================================ */
.bm-brands {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 60%),
        linear-gradient(180deg, var(--bm-navy) 0%, var(--bm-navy-deeper) 100%);
    padding: 90px 0;
    text-align: center;
    border-top: 1px solid rgba(201,168,76,0.12);
}
.bm-brands .bm-section-title { color: var(--bm-white); }
.bm-brands .bm-section-sub { color: rgba(255,255,255,0.7); }
.bm-brands-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 40px 50px;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.bm-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
}
.bm-brand-item img {
    max-width: 100%;
    max-height: 42px;
    width: auto;
    object-fit: contain;
    opacity: 0.72;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.bm-brand-item:hover img {
    opacity: 1;
    transform: scale(1.07);
}
@media (max-width: 620px) {
    .bm-brands { padding: 64px 0; }
    .bm-brands-grid { gap: 32px 36px; }
}

/* ============================================================
   📣 CTA FINAL
   ============================================================ */
.bm-cta-final {
    background:
        radial-gradient(ellipse at 50% 120%, rgba(201,168,76,0.2) 0%, transparent 55%),
        linear-gradient(160deg, var(--bm-navy-mid), var(--bm-navy-deeper));
    padding: 110px 0;
    text-align: center;
}
.bm-cta-final h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: var(--bm-white);
    margin: 0 auto 18px;
    max-width: 18ch;
}
.bm-cta-final p {
    color: rgba(255,255,255,0.78);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 38px;
}

/* ============================================================
   ✨ Reveal on scroll
   ============================================================ */
.bm-reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.bm-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   📱 RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .bm-grid, .bm-testi-grid { grid-template-columns: repeat(2, 1fr); }
    .bm-steps { grid-template-columns: repeat(2, 1fr); }
    .bm-split, .bm-mv { grid-template-columns: 1fr; gap: 40px; }
    .bm-split-media { aspect-ratio: 16/10; }
}
@media (max-width: 620px) {
    .bm-light, .bm-dark, .bm-cta-final { padding: 70px 0; }
    .bm-hero { padding: 90px 0 90px; }
    .bm-grid, .bm-testi-grid, .bm-steps { grid-template-columns: 1fr; }
    .bm-hero-stats { gap: 36px; }
    .bm-stat .bm-stat-num { font-size: 2.1rem; }
    .bm-btn { padding: 14px 30px; }
}

/* ============================================================
   📄 PÁGINAS INTERNAS — componentes compartidos
   ============================================================ */

/* Hero compacto de página — con foto de fondo (playa) velada en navy */
.bm-page-hero {
    background:
        radial-gradient(ellipse at 50% -20%, rgba(201,168,76,0.18) 0%, transparent 55%),
        linear-gradient(160deg, rgba(15,38,69,0.86) 0%, rgba(5,14,26,0.90) 60%, rgba(0,7,18,0.95) 100%),
        url('../../uploads/bm-fondos/pagina.jpeg') center 25% / cover no-repeat;
    padding: 96px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.bm-page-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    color: var(--bm-white);
    margin: 0 auto 16px;
    max-width: 16ch;
    line-height: 1.1;
    text-shadow: 0 0 50px rgba(201,168,76,0.18);
}
.bm-page-hero p {
    color: rgba(255,255,255,0.78);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Lista de valores (check) */
.bm-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 40px;
    margin-top: 30px;
    text-align: left;
}
.bm-value {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.bm-value .bm-check {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bm-gold), var(--bm-gold-light));
    color: var(--bm-navy);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}
.bm-value strong { color: var(--bm-ink); display: block; margin-bottom: 2px; }
.bm-value span { color: var(--bm-ink-soft); font-size: 0.94rem; line-height: 1.6; }

/* Modalidades — 2 cards grandes */
.bm-modes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 56px;
    text-align: left;
}
.bm-mode-card {
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.08);
    border-radius: 20px;
    padding: 44px 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.bm-mode-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 56px rgba(19,28,48,0.14);
    border-color: rgba(201,168,76,0.35);
}
.bm-mode-icon { font-size: 2.6rem; margin-bottom: 18px; }
.bm-mode-card h3 { font-family: var(--bm-font-heading); font-size: 1.7rem; color: var(--bm-ink) !important; margin: 0 0 14px; }
.bm-mode-card > p { color: var(--bm-ink-soft); line-height: 1.75; margin: 0 0 20px; }
.bm-mode-list { list-style: none; margin: 0; padding: 0; }
.bm-mode-list li {
    color: var(--bm-ink-soft);
    padding: 9px 0 9px 30px;
    position: relative;
    border-top: 1px solid rgba(19,28,48,0.06);
    font-size: 0.96rem;
}
.bm-mode-list li::before {
    content: '✦';
    position: absolute; left: 0;
    color: var(--bm-gold);
}

/* ── FORMULARIO ─────────────────────────────────────────────── */
.bm-contact {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    margin-top: 50px;
    text-align: left;
    align-items: start;
}
.bm-contact-info h3 { font-family: var(--bm-font-heading); color: var(--bm-ink) !important; font-size: 1.6rem; margin: 0 0 16px; }
.bm-contact-info p { color: var(--bm-ink-soft); line-height: 1.8; }
.bm-contact-list { list-style: none; margin: 26px 0 0; padding: 0; }
.bm-contact-list li {
    display: flex; gap: 14px; align-items: center;
    padding: 12px 0;
    color: var(--bm-ink);
    font-size: 0.98rem;
    border-bottom: 1px solid rgba(19,28,48,0.07);
}
.bm-contact-list .bm-ci-icon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(201,168,76,0.16), rgba(201,168,76,0.05));
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

.bm-form {
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.08);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(19,28,48,0.08);
}
.bm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bm-field { margin-bottom: 18px; }
.bm-field label {
    display: block; font-size: 0.82rem; font-weight: 600;
    color: var(--bm-ink); margin-bottom: 7px; letter-spacing: 0.3px;
}
.bm-field input,
.bm-field select,
.bm-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(19,28,48,0.14);
    border-radius: 10px;
    font-family: var(--bm-font-body);
    font-size: 0.95rem;
    color: var(--bm-ink);
    background: #fdfdfc;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bm-field input:focus,
.bm-field select:focus,
.bm-field textarea:focus {
    outline: none;
    border-color: var(--bm-gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.bm-field textarea { min-height: 120px; resize: vertical; }
.bm-hp { position: absolute; left: -9999px; opacity: 0; }
.bm-form .bm-btn { width: 100%; justify-content: center; margin-top: 6px; border: none; }

/* Alertas */
.bm-alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
}
.bm-alert-ok { background: rgba(46,160,90,0.12); color: #1c7a45; border: 1px solid rgba(46,160,90,0.3); }
.bm-alert-err { background: rgba(200,60,60,0.1); color: #b13434; border: 1px solid rgba(200,60,60,0.3); }

/* Responsive internas */
@media (max-width: 900px) {
    .bm-values, .bm-modes, .bm-contact { grid-template-columns: 1fr; }
    .bm-contact { gap: 36px; }
}
@media (max-width: 560px) {
    .bm-form { padding: 28px 22px; }
    .bm-form-row { grid-template-columns: 1fr; }
    .bm-page-hero { padding: 70px 0 56px; }
}

/* ============================================================
   🪪 VERIFICACIÓN (KYC) + 💳 MÉTODOS DE PAGO
   ============================================================ */
.bm-kyc-status {
    background: var(--bm-light-alt);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(19,28,48,0.06);
}
.bm-kyc-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: capitalize;
    margin-bottom: 6px;
}
.bm-kyc-status p { margin: 0; color: var(--bm-ink-soft); line-height: 1.6; font-size: 0.95rem; }

.bm-kyc-data { margin-bottom: 8px; }
.bm-kyc-data p { margin: 0 0 8px; color: var(--bm-ink-soft); }
.bm-kyc-data strong { color: var(--bm-ink); }

.bm-kyc-docs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 14px;
}
.bm-kyc-docs figure { margin: 0; }
.bm-kyc-docs figure span {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bm-ink);
    margin-bottom: 8px;
}
.bm-kyc-docs img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(19,28,48,0.12);
    transition: transform 0.25s ease;
}
.bm-kyc-docs a:hover img { transform: scale(1.02); }
.bm-kyc-docs em { color: var(--bm-ink-soft); }

.bm-metodos-group {
    font-weight: 700;
    color: var(--bm-ink);
    margin: 24px 0 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(19,28,48,0.08);
    font-size: 0.98rem;
}
.bm-metodos-group:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }

@media (max-width: 560px) {
    .bm-kyc-docs { grid-template-columns: 1fr; }
}

/* ============================================================
   🎓 RUTA DE APRENDIZAJE (8 fases)
   ============================================================ */
/* Barra de progreso reutilizable */
.bm-progress-track {
    background: rgba(19,28,48,0.1);
    border-radius: 50px;
    height: 9px;
    overflow: hidden;
}
.bm-progress-fill {
    display: block;
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--bm-gold), var(--bm-gold-light));
    transition: width 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

.bm-ruta-global {
    background: linear-gradient(160deg, var(--bm-navy-mid), var(--bm-navy-deeper));
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 26px;
}
.bm-ruta-global-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}
.bm-ruta-global-top strong { color: var(--bm-white); font-size: 1.05rem; }
.bm-ruta-global-top span { color: var(--bm-gold-light); font-weight: 700; font-size: 0.88rem; }
.bm-ruta-global .bm-progress-track { background: rgba(255,255,255,0.12); }

.bm-fases { display: flex; flex-direction: column; gap: 16px; }

.bm-fase-card {
    background: var(--bm-light-alt, #fff);
    border: 1px solid rgba(19,28,48,0.1);
    border-radius: 16px;
    padding: 22px 24px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.bm-fase-card.is-open { box-shadow: 0 6px 22px rgba(19,28,48,0.07); }
.bm-fase-card.is-done { border-color: rgba(46,160,90,0.4); }
.bm-fase-card.is-locked { opacity: 0.7; background: #f3f3ef; }

.bm-fase-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.bm-fase-num {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bm-font-heading);
    font-weight: 700; font-size: 1.15rem;
    background: linear-gradient(135deg, var(--bm-gold), var(--bm-gold-light));
    color: var(--bm-navy);
}
.bm-fase-card.is-locked .bm-fase-num { background: rgba(19,28,48,0.12); color: var(--bm-ink-soft); }
.bm-fase-card.is-done .bm-fase-num { background: linear-gradient(135deg, #1c7a45, #2ea05a); color: #fff; }
.bm-fase-meta { flex: 1; min-width: 0; }
.bm-fase-meta h3 { font-family: var(--bm-font-heading); font-size: 1.2rem; color: var(--bm-ink) !important; margin: 0 0 4px; }
.bm-fase-lock { font-size: 0.9rem; }
.bm-fase-desc { color: var(--bm-ink-soft); font-size: 0.9rem; line-height: 1.55; margin: 0; }
.bm-fase-pct { flex-shrink: 0; font-weight: 700; color: var(--bm-gold); font-size: 0.95rem; }
.bm-fase-card.is-done .bm-fase-pct { color: #1c7a45; }

.bm-fase-count { font-size: 0.82rem; color: var(--bm-ink-soft); margin-top: 8px; }
.bm-fase-hint { font-size: 0.9rem; color: var(--bm-ink-soft); margin: 14px 0 0; font-style: italic; }

.bm-fase-temas { list-style: none; margin: 16px 0 0; padding: 0; }
.bm-fase-temas li { border-top: 1px solid rgba(19,28,48,0.07); }
.bm-fase-temas li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 6px;
    text-decoration: none;
    color: var(--bm-ink);
    font-size: 0.95rem;
    transition: background 0.2s ease, padding-left 0.2s ease;
}
.bm-fase-temas li a:hover { background: rgba(201,168,76,0.07); padding-left: 12px; }
.bm-tema-check { flex-shrink: 0; font-size: 1rem; width: 22px; text-align: center; color: var(--bm-ink-soft); }
.bm-fase-temas li.leido .bm-tema-check { color: #2ea05a; }
.bm-fase-temas li.leido .bm-tema-titulo { color: var(--bm-ink-soft); }
.bm-tema-titulo { flex: 1; min-width: 0; }
.bm-tema-min { flex-shrink: 0; font-size: 0.78rem; color: var(--bm-ink-soft); }

@media (max-width: 560px) {
    .bm-tema-min { display: none; }
    .bm-fase-head { gap: 12px; }
}

/* ============================================================
   📰 BLOG WEBCAM — Ruta pública (8 fases, 10% gratis)
   ============================================================ */
.bm-blog-route { display: flex; flex-direction: column; gap: 18px; max-width: 820px; margin: 0 auto; }
.bm-route-fase {
    background: var(--bm-light-alt, #fff);
    border: 1px solid rgba(19,28,48,0.1);
    border-radius: 16px;
    padding: 24px 26px;
}
.bm-route-fase-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.bm-route-num {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bm-font-heading); font-weight: 700; font-size: 1.1rem;
    background: linear-gradient(135deg, var(--bm-gold), var(--bm-gold-light));
    color: var(--bm-navy);
}
.bm-route-fase-head h3 { font-family: var(--bm-font-heading); font-size: 1.2rem; color: var(--bm-ink) !important; margin: 0 0 4px; }
.bm-route-fase-head p { color: var(--bm-ink-soft); font-size: 0.9rem; line-height: 1.5; margin: 0; }

.bm-route-temas { list-style: none; margin: 0; padding: 0; }
.bm-route-temas li { border-top: 1px solid rgba(19,28,48,0.07); }
.bm-route-temas li a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 6px; text-decoration: none;
    color: var(--bm-ink); font-size: 0.95rem;
    transition: background 0.2s ease, padding-left 0.2s ease;
}
.bm-route-temas li a:hover { background: rgba(201,168,76,0.07); padding-left: 12px; }
.bm-route-tema-ico { flex-shrink: 0; }
.bm-route-tema-tit { flex: 1; min-width: 0; }
.bm-route-tema-min { flex-shrink: 0; font-size: 0.78rem; color: var(--bm-ink-soft); }

.bm-route-locked {
    display: block;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px dashed rgba(201,168,76,0.5);
    border-radius: 10px;
    background: rgba(201,168,76,0.07);
    color: var(--bm-ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
}
.bm-route-locked:hover { background: rgba(201,168,76,0.14); color: var(--bm-ink); }
.bm-route-empty { color: var(--bm-ink-soft); font-size: 0.9rem; font-style: italic; margin: 8px 0 0; }

@media (max-width: 560px) {
    .bm-route-tema-min { display: none; }
}

/* ============================================================
   ⚖️ PÁGINAS LEGALES (Privacidad / Términos)
   ============================================================ */
.bm-legal {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}
.bm-legal h1 { display: none; } /* el título ya está en el page-hero */
.bm-legal h2 {
    font-family: var(--bm-font-heading);
    color: var(--bm-ink) !important;
    font-size: 1.5rem;
    margin: 38px 0 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(19,28,48,0.08);
}
.bm-legal h2:first-of-type { border-top: none; padding-top: 0; }
.bm-legal h3 {
    font-family: var(--bm-font-heading);
    color: var(--bm-ink) !important;
    font-size: 1.18rem;
    margin: 26px 0 10px;
}
.bm-legal p,
.bm-legal li {
    color: var(--bm-ink-soft);
    line-height: 1.85;
    font-size: 1rem;
}
.bm-legal p { margin: 0 0 16px; }
.bm-legal strong { color: var(--bm-ink); }
.bm-legal a { color: var(--bm-blue-2); text-decoration: underline; }
.bm-legal ul,
.bm-legal ol { margin: 0 0 18px; padding-left: 22px; }
.bm-legal li { margin-bottom: 8px; }
.bm-legal hr { border: none; border-top: 1px solid rgba(19,28,48,0.1); margin: 30px 0; }

/* ============================================================
   🔐 ÁREA DE MODELOS — auth, estados y dashboard
   ============================================================ */
.bm-auth-wrap { max-width: 540px; margin: 0 auto; }
.bm-form-narrow { max-width: 460px; margin: 0 auto; }

/* ── Pantalla de login con foto de fondo (la chica de la playa) ── */
.bm-auth-bg {
    background:
        linear-gradient(160deg, rgba(15,38,69,0.80) 0%, rgba(5,14,26,0.88) 60%, rgba(0,7,18,0.92) 100%),
        url('../../uploads/bm-fondos/login.jpeg') center / cover no-repeat;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 0;
}
.bm-auth-bg .bm-wrap { width: 100%; }
.bm-auth-card {
    max-width: 430px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(201,168,76,0.35);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.bm-auth-logo {
    display: block;
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    border: 2px solid var(--bm-gold-dim);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25), 0 0 30px var(--bm-gold-glow);
}
.bm-auth-title {
    font-family: var(--bm-font-heading);
    font-size: 1.6rem;
    color: var(--bm-ink) !important;
    margin: 0 0 6px;
}
.bm-auth-sub {
    color: var(--bm-ink-soft);
    font-size: 0.92rem;
    margin: 0 0 26px;
}
.bm-auth-card #loginform { text-align: left; }

/* ============================================================
   🧭 WIZARD DE APLICACIÓN (encuesta + registro + barra progreso)
   ============================================================ */
.bm-wizard-wrap { max-width: 580px; margin: 0 auto; }

.bm-wiz-head { margin-bottom: 30px; }
.bm-wiz-progress {
    height: 8px;
    border-radius: 50px;
    background: rgba(19,28,48,0.08);
    overflow: hidden;
}
.bm-wiz-bar {
    display: block;
    height: 100%;
    width: 25%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--bm-gold), var(--bm-gold-light));
    transition: width 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}
.bm-wiz-count {
    margin-top: 10px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bm-ink-soft);
}
.bm-wiz-count strong { color: var(--bm-gold); }

.bm-wiz-step { display: none; }
.bm-wiz-step.is-active { display: block; animation: bmWizIn 0.4s ease; }
@keyframes bmWizIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}
.bm-wiz-q {
    font-family: var(--bm-font-heading);
    font-size: 1.5rem;
    color: var(--bm-ink) !important;
    margin: 0 0 8px;
    line-height: 1.25;
}
.bm-wiz-help { color: var(--bm-ink-soft); font-size: 0.95rem; line-height: 1.6; margin: 0 0 22px; }

.bm-wiz-options { display: grid; gap: 12px; margin: 24px 0 30px; }
.bm-wiz-opt { display: block; cursor: pointer; }
.bm-wiz-opt input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.bm-wiz-opt-box {
    display: block;
    padding: 16px 20px;
    border: 1.5px solid rgba(19,28,48,0.14);
    border-radius: 12px;
    background: #fdfdfc;
    font-size: 0.98rem;
    color: var(--bm-ink);
    transition: all 0.22s ease;
    position: relative;
}
.bm-wiz-opt:hover .bm-wiz-opt-box { border-color: var(--bm-gold-dim); }
.bm-wiz-opt input:checked + .bm-wiz-opt-box {
    border-color: var(--bm-gold);
    background: rgba(201,168,76,0.1);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    font-weight: 600;
}
.bm-wiz-opt input:checked + .bm-wiz-opt-box::after {
    content: '✓';
    position: absolute;
    right: 18px; top: 50%; transform: translateY(-50%);
    color: var(--bm-gold);
    font-weight: 700;
}
.bm-wiz-err .bm-wiz-opt-box { border-color: rgba(200,60,60,0.45); }

.bm-wiz-nav {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 24px;
}
.bm-wiz-nav .bm-wiz-back { margin-right: auto; }
.bm-wiz-nav .bm-wiz-next,
.bm-wiz-nav button[type="submit"] { margin-left: auto; }

/* Verificación de código (2FA) */
.bm-verify-icon { font-size: 2.6rem; text-align: center; margin-bottom: 10px; }
.bm-verify { text-align: center; }
.bm-verify .bm-field { text-align: left; }
.bm-code-input {
    text-align: center;
    font-size: 1.6rem !important;
    letter-spacing: 0.5em;
    font-weight: 700;
    padding-left: 0.5em !important;
}

@media (max-width: 560px) {
    .bm-wiz-q { font-size: 1.3rem; }
    .bm-wiz-nav { flex-wrap: wrap; }
}

/* Login de WordPress estilizado */
#loginform { margin: 0; }
#loginform p { margin: 0 0 18px; }
#loginform label {
    display: block; font-size: 0.82rem; font-weight: 600;
    color: var(--bm-ink); margin-bottom: 7px;
}
#loginform input[type="text"],
#loginform input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(19,28,48,0.14);
    border-radius: 10px;
    font-family: var(--bm-font-body);
    font-size: 0.95rem;
    color: var(--bm-ink);
    background: #fdfdfc;
}
#loginform input:focus {
    outline: none;
    border-color: var(--bm-gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
#loginform .login-remember label {
    display: flex; align-items: center; gap: 8px; font-weight: 400;
    color: var(--bm-ink-soft); font-size: 0.9rem;
}
#loginform .login-remember input { width: auto; }
#loginform #wp-submit {
    width: 100%;
    padding: 15px 38px;
    background: linear-gradient(120deg, var(--bm-gold), var(--bm-gold-light));
    color: var(--bm-navy);
    border: none;
    border-radius: 50px;
    font-family: var(--bm-font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 28px rgba(201,168,76,0.3);
}
#loginform #wp-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(201,168,76,0.42); }

.bm-check-field input[type="checkbox"] { accent-color: var(--bm-gold); }

/* Botón ghost sobre fondo claro */
.bm-btn-ghost.bm-btn-dark {
    background: transparent;
    color: var(--bm-ink) !important;
    border-color: rgba(19,28,48,0.25);
    margin-top: 24px;
}
.bm-btn-ghost.bm-btn-dark:hover {
    border-color: var(--bm-gold);
    color: var(--bm-navy) !important;
    background: rgba(201,168,76,0.08);
}

/* Tarjeta de estado (pendiente / suspendido) */
.bm-state-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.08);
    border-radius: 20px;
    padding: 56px 44px;
    box-shadow: 0 12px 40px rgba(19,28,48,0.08);
}
.bm-state-icon { font-size: 3.2rem; margin-bottom: 16px; }
.bm-state-card h2 { font-family: var(--bm-font-heading); color: var(--bm-ink) !important; font-size: 1.7rem; margin: 0 0 14px; }
.bm-state-card p { color: var(--bm-ink-soft); line-height: 1.75; margin: 0; }

/* Dashboard */
.bm-dash { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.bm-dash-nav {
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.08);
    border-radius: 16px;
    padding: 14px;
    display: flex; flex-direction: column; gap: 4px;
}
.bm-dash-link {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--bm-ink-soft) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.25s ease, color 0.25s ease;
}
.bm-dash-link:hover { background: rgba(201,168,76,0.1); color: var(--bm-ink) !important; }
.bm-dash-link.active { background: linear-gradient(120deg, var(--bm-gold), var(--bm-gold-light)); color: var(--bm-navy) !important; font-weight: 700; }
.bm-dash-main { min-width: 0; }
.bm-dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0; }
.bm-dash-card {
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.08);
    border-radius: 16px;
    padding: 26px 24px;
    text-align: center;
}
.bm-dash-card-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--bm-ink-soft); margin-bottom: 10px; }
.bm-dash-card-num { display: block; font-family: var(--bm-font-heading); font-size: 2.2rem; font-weight: 700; color: var(--bm-gold); }
.bm-dash-soon {
    background: linear-gradient(160deg, var(--bm-navy-mid), var(--bm-navy-deeper));
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
}
.bm-dash-soon h3 { font-family: var(--bm-font-heading); color: var(--bm-gold-light) !important; font-size: 1.4rem; margin: 0 0 12px; }
.bm-dash-soon p { color: rgba(255,255,255,0.78) !important; margin: 0; line-height: 1.7; }
.bm-dash-soon strong { color: #fff; }

@media (max-width: 860px) {
    .bm-dash { grid-template-columns: 1fr; }
    .bm-dash-nav { flex-direction: row; flex-wrap: wrap; }
    .bm-dash-cards { grid-template-columns: 1fr; }
}
/* ── Fase 6: Panel responsive mejorado para móviles ────────── */
@media (max-width: 780px) {
    .bm-dash-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding: 10px;
        border-radius: 12px;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .bm-dash-nav::-webkit-scrollbar { display: none; }
    .bm-dash-link {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 10px 14px;
        border-radius: 20px;
        scroll-snap-align: start;
        background: rgba(19,28,48,0.03);
    }
    .bm-dash-link.active {
        background: linear-gradient(120deg, var(--bm-gold), var(--bm-gold-light));
        color: var(--bm-navy) !important;
    }
    .bm-dash-user {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        margin-bottom: 6px;
    }
    .bm-dash-avatar { width: 44px; height: 44px; }
    .bm-dash-avatar-ini { width: 44px; height: 44px; font-size: 1.2rem; }
    .bm-dash-uname { font-size: 0.85rem; text-align: left; }
    .bm-dash-role { font-size: 0.62rem; }
    .bm-dash-title { font-size: 1.4rem; }
}

@media (max-width: 520px) {
    .bm-dash-link { font-size: 0.75rem; padding: 8px 12px; }
    .bm-dash-avatar { width: 36px; height: 36px; }
    .bm-dash-avatar-ini { width: 36px; height: 36px; font-size: 1rem; }
    .bm-dash-uname { font-size: 0.78rem; }
    .bm-dash-title { font-size: 1.25rem; }
    .bm-dash-card { padding: 18px 14px; }
    .bm-dash-card-num { font-size: 1.7rem; }
    /* Formularios responsive */
    .bm-form-group input,
    .bm-form-group select,
    .bm-form-group textarea { font-size: 16px !important; }
    /* Tablas scroll horizontal */
    .bm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .bm-table-wrap table { min-width: 600px; }
}

/* ── Dashboard: usuario, avatar y perfil ────────────────────── */
.bm-dash-user {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 16px 10px 18px; margin-bottom: 8px;
    border-bottom: 1px solid rgba(19,28,48,0.08);
}
.bm-dash-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--bm-gold-dim);
}
.bm-dash-avatar-ini {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bm-gold), var(--bm-gold-light));
    color: var(--bm-navy); font-family: var(--bm-font-heading); font-weight: 700; font-size: 1.6rem;
}
.bm-dash-uname { font-weight: 600; color: var(--bm-ink); font-size: 0.95rem; text-align: center; }
.bm-dash-title { font-family: var(--bm-font-heading); color: var(--bm-ink) !important; font-size: 1.7rem; margin: 0 0 22px; }

.bm-profile-photo { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.bm-profile-pic { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bm-gold-dim); flex-shrink: 0; }
.bm-profile-pic-ini {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bm-gold), var(--bm-gold-light));
    color: var(--bm-navy); font-family: var(--bm-font-heading); font-weight: 700; font-size: 1.9rem;
}
.bm-field input[type="file"] {
    width: 100%; padding: 10px; border: 1.5px dashed rgba(19,28,48,0.2);
    border-radius: 10px; background: #fdfdfc; font-size: 0.9rem; cursor: pointer;
}
.bm-field input:disabled { background: #f0efe9; color: var(--bm-ink-soft); cursor: not-allowed; }

/* ── Mis Horas (Fase 3) ─────────────────────────────────────── */
.bm-sub-title { font-family: var(--bm-font-heading); color: var(--bm-ink) !important; font-size: 1.25rem; margin: 32px 0 16px; }

.bm-clock-box {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.08);
    border-radius: 16px; padding: 22px 26px; margin: 22px 0;
    box-shadow: 0 4px 20px rgba(19,28,48,0.05);
}
.bm-clock-status { color: var(--bm-ink); font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.bm-clock-status.bm-clock-off { color: var(--bm-ink-soft); }
.bm-clock-dot {
    width: 11px; height: 11px; border-radius: 50%; background: #2ea05a;
    box-shadow: 0 0 0 0 rgba(46,160,90,0.6); animation: bmPulse 1.6s infinite;
}
@keyframes bmPulse { 0%{box-shadow:0 0 0 0 rgba(46,160,90,0.5);} 70%{box-shadow:0 0 0 10px rgba(46,160,90,0);} 100%{box-shadow:0 0 0 0 rgba(46,160,90,0);} }
.bm-btn-stop {
    background: linear-gradient(120deg, #c0392b, #e05646); color: #fff !important;
    border: none; box-shadow: 0 8px 24px rgba(192,57,43,0.3);
}
.bm-btn-stop:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(192,57,43,0.42); }

.bm-manual-box {
    background: var(--bm-light-alt); border: 1px solid rgba(19,28,48,0.08);
    border-radius: 16px; padding: 24px 26px; margin-bottom: 10px;
}
.bm-manual-form { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.bm-manual-form .bm-field { margin: 0; flex: 1; min-width: 130px; }
.bm-manual-form .bm-btn { white-space: nowrap; }

.bm-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid rgba(19,28,48,0.08); }
.bm-table { width: 100%; border-collapse: collapse; background: var(--bm-light-alt); font-size: 0.95rem; }
.bm-table thead th {
    text-align: left; padding: 14px 18px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--bm-ink-soft); background: rgba(19,28,48,0.03); border-bottom: 1px solid rgba(19,28,48,0.08);
}
.bm-table tbody td { padding: 14px 18px; color: var(--bm-ink); border-bottom: 1px solid rgba(19,28,48,0.05); }
.bm-table tbody tr:last-child td { border-bottom: none; }
.bm-badge-live { color: #2ea05a; font-weight: 600; font-size: 0.85rem; }
.bm-del { text-decoration: none; font-size: 1.05rem; opacity: 0.7; transition: opacity 0.2s ease; }
.bm-del:hover { opacity: 1; }

@media (max-width: 600px) {
    .bm-table thead { display: none; }
    .bm-table, .bm-table tbody, .bm-table tr, .bm-table td { display: block; width: 100%; }
    .bm-table tr { border-bottom: 1px solid rgba(19,28,48,0.1); padding: 8px 0; }
    .bm-table td { border: none; padding: 6px 16px; display: flex; justify-content: space-between; }
    .bm-table td::before { content: attr(data-l); color: var(--bm-ink-soft); font-size: 0.8rem; font-weight: 600; }
    .bm-manual-form .bm-field { min-width: 100%; }
}

/* ── Mis Ganancias (Fase 4) ─────────────────────────────────── */
.bm-dash-card.bm-card-highlight {
    background: linear-gradient(150deg, var(--bm-navy-mid), var(--bm-navy-deeper));
    border-color: rgba(201,168,76,0.3);
}
.bm-card-highlight .bm-dash-card-label { color: rgba(255,255,255,0.7); }
.bm-card-highlight .bm-dash-card-num { color: var(--bm-gold-light); }
.bm-pill {
    display: inline-block; padding: 4px 12px; border-radius: 50px;
    font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.bm-pill-in { background: rgba(46,160,90,0.12); color: #1c7a45; }
.bm-pill-out { background: rgba(177,52,52,0.1); color: #b13434; }

/* ── Mi Horario (Fase 5) ────────────────────────────────────── */
.bm-days { display: flex; flex-wrap: wrap; gap: 10px; }
.bm-day {
    position: relative; cursor: pointer;
    padding: 12px 18px; border-radius: 12px;
    border: 1.5px solid rgba(19,28,48,0.14); background: #fdfdfc;
    font-weight: 600; font-size: 0.9rem; color: var(--bm-ink-soft);
    transition: all 0.25s ease; user-select: none;
}
.bm-day input { position: absolute; opacity: 0; pointer-events: none; }
.bm-day.is-on,
.bm-day:has(input:checked) {
    background: linear-gradient(120deg, var(--bm-gold), var(--bm-gold-light));
    border-color: var(--bm-gold); color: var(--bm-navy);
    box-shadow: 0 4px 14px rgba(201,168,76,0.28);
}
.bm-day:hover { border-color: var(--bm-gold); }

/* ── Landing de admin en /mi-cuenta/ ────────────────────────── */
.bm-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bm-admin-tools, .bm-admin-preview {
    background: var(--bm-light-alt); border: 1px solid rgba(19,28,48,0.08);
    border-radius: 18px; padding: 30px;
}
.bm-admin-tools h3, .bm-admin-preview h3 {
    font-family: var(--bm-font-heading); color: var(--bm-ink) !important; font-size: 1.3rem; margin: 0 0 18px;
}
.bm-admin-link {
    display: block; padding: 13px 16px; margin-bottom: 8px; border-radius: 10px;
    color: var(--bm-ink) !important; text-decoration: none; font-weight: 500;
    background: rgba(19,28,48,0.03); transition: all 0.2s ease;
}
.bm-admin-link:hover { background: rgba(201,168,76,0.12); color: var(--bm-navy) !important; }
.bm-model-list { list-style: none; margin: 0; padding: 0; }
.bm-model-list li { margin-bottom: 6px; }
.bm-model-list a {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 10px; text-decoration: none;
    color: var(--bm-ink) !important; background: rgba(19,28,48,0.03); font-weight: 500;
    transition: all 0.2s ease;
}
.bm-model-list a:hover { background: rgba(201,168,76,0.12); }
.bm-mini-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; letter-spacing: 0.5px; }
.bm-badge-pendiente { background: rgba(184,134,11,0.15); color: #8a6d10; }
.bm-badge-aprobado { background: rgba(46,160,90,0.15); color: #1c7a45; }
.bm-badge-suspendido { background: rgba(177,52,52,0.12); color: #b13434; }

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

/* ── Panel de administración (frontend) ─────────────────────── */
.bm-dash-role {
    font-size: 0.68rem; color: var(--bm-gold); text-transform: uppercase;
    letter-spacing: 1.5px; font-weight: 700; margin-top: 2px;
}
.bm-kpi-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 26px;
}
.bm-kpi {
    background: var(--bm-light-alt); border: 1px solid rgba(19,28,48,0.08);
    border-radius: 16px; padding: 24px; text-align: center;
    box-shadow: 0 4px 18px rgba(19,28,48,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bm-kpi:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(19,28,48,0.1); }
.bm-kpi-ico { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.bm-kpi-num { display: block; font-family: var(--bm-font-heading); font-size: 1.9rem; font-weight: 700; color: var(--bm-ink); line-height: 1.1; }
.bm-kpi-lbl { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--bm-ink-soft); margin-top: 6px; }
.bm-kpi-gold { background: linear-gradient(150deg, var(--bm-navy-mid), var(--bm-navy-deeper)); border-color: rgba(201,168,76,0.3); }
.bm-kpi-gold .bm-kpi-num { color: var(--bm-gold-light); }
.bm-kpi-gold .bm-kpi-lbl { color: rgba(255,255,255,0.7); }

.bm-admin-quick { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

.bm-row-actions { white-space: nowrap; }
.bm-ra {
    display: inline-block; padding: 6px 12px; margin: 2px 3px; border-radius: 8px;
    font-size: 0.78rem; font-weight: 600; text-decoration: none;
    background: rgba(19,28,48,0.05); color: var(--bm-ink) !important; transition: all 0.2s ease;
}
.bm-ra:hover { background: rgba(201,168,76,0.15); }
.bm-ra-ok:hover { background: rgba(46,160,90,0.15); color: #1c7a45 !important; }
.bm-ra-no:hover { background: rgba(177,52,52,0.12); color: #b13434 !important; }

@media (max-width: 820px) { .bm-kpi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .bm-kpi-grid { grid-template-columns: 1fr; } }

/* ── Gráficas admin ─────────────────────── */
.bm-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.bm-chart-box {
    background: var(--bm-light-alt); border: 1px solid rgba(19,28,48,0.08);
    border-radius: 16px; padding: 24px;
    box-shadow: 0 4px 18px rgba(19,28,48,0.05);
}
.bm-chart-box canvas { max-height: 280px; }
.bm-chart-full { grid-column: 1 / -1; }
.bm-chart-full canvas { max-height: 340px; }

@media (max-width: 820px) { .bm-charts { grid-template-columns: 1fr; } .bm-chart-full { grid-column: 1; } }

/* ── Blog Webcam + Biblioteca Educativa ──────────────────────── */
/* Hero del blog público */
.bm-blog-hero {
    position: relative;
}
.bm-blog-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bm-light-bg), transparent);
    z-index: 1;
}

/* Grid de tarjetas del blog (público) */
.bm-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.bm-blog-card {
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bm-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(19,28,48,0.12);
}

/* Biblioteca privada — grid de tarjetas */
.bm-recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
}

/* Filtros de la biblioteca */
.bm-biblio-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.bm-biblio-search {
    flex: 1;
    min-width: 220px;
    position: relative;
}

/* Chips de categorías */
.bm-biblio-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.bm-chip-cat {
    padding: 7px 16px;
    border: 1.5px solid rgba(19,28,48,0.14);
    border-radius: 20px;
    background: var(--bm-light-alt);
    color: var(--bm-ink-soft);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    user-select: none;
}
.bm-chip-cat:hover,
.bm-chip-cat.active {
    background: var(--bm-gold) !important;
    color: #fff !important;
    border-color: var(--bm-gold) !important;
}

/* Tarjeta de recurso educativo */
.bm-recurso-card {
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
}
.bm-recurso-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(19,28,48,0.1);
}
.bm-recurso-card.leido {
    border-color: rgba(46,204,113,0.5);
}
.bm-recurso-card-img {
    height: 140px;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bm-recurso-card-icon {
    font-size: 3rem;
    opacity: 0.6;
}
.bm-recurso-card-check {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2ecc71;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 2;
}
.bm-recurso-card-body {
    padding: 14px 16px;
}
.bm-recurso-card-nivel {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bm-gold);
    margin-bottom: 6px;
}
.bm-recurso-card-title {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
}
.bm-recurso-card-title a {
    color: var(--bm-ink);
    text-decoration: none;
}
.bm-recurso-card-title a:hover {
    color: var(--bm-gold);
}
.bm-recurso-card-excerpt {
    color: var(--bm-ink-soft);
    font-size: 0.82rem;
    margin: 0 0 10px;
    line-height: 1.5;
}
.bm-recurso-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bm-recurso-card-tiempo {
    font-size: 0.75rem;
    color: var(--bm-ink-soft);
}
.bm-recurso-card-fav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #ccc;
    transition: color 0.2s;
    padding: 4px 8px;
}
.bm-recurso-card-fav.active,
.bm-recurso-card-fav:hover {
    color: #f1c40f;
}

/* Artículo individual en biblioteca */
.bm-articulo-header {
    margin-bottom: 28px;
}
.bm-articulo-contenido {
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.08);
    border-radius: 14px;
    padding: 32px;
    line-height: 1.85;
    color: var(--bm-ink);
    font-size: 1rem;
}
.bm-articulo-contenido h2 {
    font-size: 1.3rem;
    color: var(--bm-ink);
    margin: 1.5em 0 0.6em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid rgba(19,28,48,0.08);
}
.bm-articulo-contenido h3 {
    font-size: 1.1rem;
    color: var(--bm-ink);
    margin: 1.3em 0 0.5em;
}
.bm-articulo-contenido ul,
.bm-articulo-contenido ol {
    padding-left: 1.5em;
    margin: 0.8em 0;
}
.bm-articulo-contenido li {
    margin-bottom: 0.4em;
}
.bm-articulo-contenido blockquote {
    border-left: 3px solid var(--bm-gold);
    margin: 1em 0;
    padding: 0.6em 1.2em;
    background: rgba(201,168,76,0.06);
    border-radius: 0 8px 8px 0;
    color: var(--bm-ink-soft);
    font-style: italic;
}
.bm-articulo-contenido strong {
    color: var(--bm-ink);
}
.bm-articulo-contenido a {
    color: var(--bm-gold);
}
.bm-btn-fav-articulo {
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.14);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--bm-ink);
    transition: all 0.2s;
}
.bm-btn-fav-articulo.active {
    background: #fef3cd !important;
    border-color: #f1c40f !important;
    color: #b8860b !important;
}
.bm-btn-fav-articulo:hover {
    border-color: #f1c40f !important;
}

/* Barra de progreso de la biblioteca */
.bm-biblio-progreso {
    background: var(--bm-light-alt);
    border: 1px solid rgba(19,28,48,0.08);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Responsive: Blog + Biblioteca ─────────────────────────── */
@media (max-width: 860px) {
    .bm-blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
    .bm-recursos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
    }
    .bm-articulo-contenido {
        padding: 22px;
    }
    .bm-biblio-progreso {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .bm-blog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .bm-recursos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bm-biblio-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .bm-biblio-filters select,
    .bm-biblio-filters button {
        width: 100%;
    }
    .bm-biblio-chips {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }
    .bm-blog-hero {
        padding: 60px 0 50px !important;
    }
    .bm-articulo-contenido {
        padding: 18px;
        font-size: 0.93rem;
    }
    .bm-articulo-contenido h2 {
        font-size: 1.15rem;
    }
    .bm-articulo-contenido h3 {
        font-size: 1rem;
    }
}
