/* =========================================================
   Defany Industrial — Bombas Industriales
   Prefix: .bm-
   ========================================================= */

/* === Variables === */
:root {
    --bm-navy:    #02042B;
    --bm-blue:    #1B6CA8;
    --bm-lblue:   #D5EBF8;
    --bm-gray:    #F4F6F8;
    --bm-white:   #FFFFFF;
    --bm-radius:  10px;
    --bm-shadow:  0 4px 24px rgba(2,4,43,.12);
    --bm-trans:   .25s ease;
}

/* === Container === */
.bm-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Buttons === */
.bm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--bm-trans);
    white-space: nowrap;
}
.bm-btn--primary { background: var(--bm-blue); color: var(--bm-white); }
.bm-btn--primary:hover { background: #155d8e; }
.bm-btn--light { background: var(--bm-white); color: var(--bm-navy); }
.bm-btn--light:hover { background: var(--bm-lblue); }
.bm-btn--outline-light { background: transparent; color: var(--bm-white); border: 2px solid rgba(255,255,255,.6); }
.bm-btn--outline-light:hover { background: rgba(255,255,255,.12); }
.bm-btn--outline-dark { background: transparent; color: var(--bm-navy); border: 2px solid rgba(2,4,43,.25); }
.bm-btn--outline-dark:hover { background: var(--bm-gray); }
.bm-btn--wa { background: #25D366; color: var(--bm-white); }
.bm-btn--wa:hover { background: #1fb858; }
.bm-btn--sm { padding: 9px 18px; font-size: .88rem; }

/* === Section header === */
.bm-section-header { text-align: center; margin-bottom: 48px; }
.bm-section-header h2 { font-size: clamp(1.6rem,3vw,2.1rem); font-weight: 700; color: var(--bm-navy); margin: 12px 0 14px; }
.bm-section-header p { color: #555; font-size: .95rem; max-width: 640px; margin: 0 auto; line-height: 1.7; }
.bm-section-header--inv h2 { color: var(--bm-white); }
.bm-section-header--inv p { color: rgba(255,255,255,.75); }
.bm-section-line { width: 52px; height: 4px; background: var(--bm-blue); border-radius: 2px; margin: 0 auto 16px; }
.bm-section-line--inv { background: var(--bm-lblue); }

/* === Badge === */
.bm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bm-lblue);
    color: var(--bm-navy);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.bm-badge--inv {
    background: rgba(213,235,248,.15);
    color: var(--bm-lblue);
}

/* =================================================
   HERO
   ================================================= */
.page-hero--bombas {
    background-image: url('../img/prtada-de-inicio-valvulas.jpg');
}

.bm-hero__sub {
    color: rgba(255,255,255,.88);
    font-size: clamp(.9rem,1.5vw,1.1rem);
    line-height: 1.7;
    max-width: 680px;
    margin: 12px auto 0;
    font-weight: 400;
}

.bm-hero__btns {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =================================================
   INTRO
   ================================================= */
.bm-intro {
    background: var(--bm-white);
    padding: 80px 0;
}

.bm-intro__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.bm-intro__text .bm-badge { margin-bottom: 12px; }

.bm-intro__text h2 {
    font-size: clamp(1.5rem,2.8vw,2rem);
    font-weight: 700;
    color: var(--bm-navy);
    margin: 0 0 16px;
}

.bm-intro__lead {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--bm-navy);
    border-left: 4px solid var(--bm-blue);
    padding-left: 16px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.bm-intro__text p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

.bm-intro__apps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.bm-intro__apps span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bm-gray);
    color: var(--bm-navy);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}
.bm-intro__apps span i { color: var(--bm-blue); }

.bm-intro__img-wrap { display: flex; align-items: center; justify-content: center; }
.bm-intro__img {
    width: 100%;
    max-width: 420px;
    object-fit: contain;
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    transition: transform var(--bm-trans);
}
.bm-intro__img:hover { transform: scale(1.02); }

@media (max-width: 840px) {
    .bm-intro__grid { grid-template-columns: 1fr; }
    .bm-intro__img-wrap { order: -1; }
    .bm-intro__img { max-width: 320px; }
}

/* =================================================
   MARCAS
   ================================================= */
.bm-marcas {
    background: var(--bm-navy);
    padding: 80px 0;
}

.bm-marcas__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bm-marca__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(213,235,248,.12);
    border-radius: var(--bm-radius);
    padding: 28px 20px 22px;
    text-decoration: none;
    color: var(--bm-white);
    transition: all var(--bm-trans);
    cursor: pointer;
    gap: 10px;
}
.bm-marca__card:hover {
    background: rgba(213,235,248,.12);
    border-color: rgba(213,235,248,.3);
    transform: translateY(-4px);
}

.bm-marca__num {
    font-size: 1.6rem;
    font-weight: 800;
    color: rgba(213,235,248,.4);
    line-height: 1;
}

.bm-marca__img-wrap {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bm-marca__img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
}

.bm-marca__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bm-white);
}
.bm-marca__desc {
    font-size: .8rem;
    color: rgba(213,235,248,.7);
    line-height: 1.5;
}

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

/* =================================================
   BRAND SECTIONS
   ================================================= */
.bm-brand {
    background: var(--bm-gray);
    padding: 88px 0;
}
.bm-brand--alt {
    background: var(--bm-white);
}

.bm-brand__inner { position: relative; }

.bm-brand__num-badge {
    position: absolute;
    top: -24px;
    left: 0;
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(2,4,43,.06);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.bm-brand__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
    padding-top: 20px;
}
.bm-brand__grid--rev {
    grid-template-columns: 1.5fr 1fr;
}

.bm-brand__img-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: sticky;
    top: 90px;
}
.bm-brand__img {
    width: 100%;
    max-width: 380px;
    object-fit: contain;
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    transition: transform var(--bm-trans);
}
.bm-brand__img:hover { transform: scale(1.02); }

.bm-brand__content { display: flex; flex-direction: column; gap: 4px; }
.bm-brand__content h2 {
    font-size: clamp(1.5rem,2.6vw,2rem);
    font-weight: 700;
    color: var(--bm-navy);
    margin: 0 0 10px;
}
.bm-brand__content > p {
    color: #444;
    line-height: 1.7;
    font-size: .95rem;
    margin-bottom: 22px;
}

.bm-sub-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--bm-navy);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.bm-sub-title i { color: var(--bm-blue); font-size: .85rem; }

/* Families */
.bm-families { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.bm-family {
    background: rgba(2,4,43,.04);
    border-left: 3px solid var(--bm-blue);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
}
.bm-family__name { font-weight: 700; color: var(--bm-navy); font-size: .9rem; margin-bottom: 4px; }
.bm-family__desc { font-size: .82rem; color: #555; }
.bm-family__series { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.bm-family__series span {
    background: var(--bm-navy);
    color: var(--bm-white);
    padding: 2px 9px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
}
.bm-family__sizes {
    font-size: .8rem;
    color: var(--bm-blue);
    font-weight: 600;
    margin-top: 5px;
}

/* Refacciones chips */
.bm-refac-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.bm-refac-chips span {
    background: var(--bm-lblue);
    color: var(--bm-navy);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}

/* Apps */
.bm-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.bm-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: var(--bm-white);
    border: 1px solid rgba(2,4,43,.08);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    transition: all var(--bm-trans);
}
.bm-brand--alt .bm-app { background: var(--bm-gray); }
.bm-app i { font-size: 1.1rem; color: var(--bm-blue); }
.bm-app span { font-size: .75rem; font-weight: 600; color: var(--bm-navy); }
.bm-app:hover { border-color: var(--bm-blue); transform: translateY(-2px); }

@media (max-width: 860px) {
    .bm-brand__grid,
    .bm-brand__grid--rev { grid-template-columns: 1fr; }
    .bm-brand__img-col { position: static; }
    .bm-brand__img { max-width: 300px; }
    .bm-brand__num-badge { top: -8px; font-size: 3rem; }
}

/* =================================================
   REFACCIONES ESPECIAL
   ================================================= */
.bm-refac-esp {
    background: var(--bm-navy);
    padding: 80px 0;
}

.bm-refac-esp__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.bm-refac-esp__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(213,235,248,.1);
    border-radius: var(--bm-radius);
    padding: 22px 12px;
    text-align: center;
    transition: all var(--bm-trans);
}
.bm-refac-esp__item:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(213,235,248,.25);
    transform: translateY(-3px);
}

.bm-refac-esp__icon {
    width: 48px;
    height: 48px;
    background: rgba(213,235,248,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bm-refac-esp__icon i { font-size: 1.2rem; color: var(--bm-lblue); }

.bm-refac-esp__item span {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    line-height: 1.3;
}

.bm-refac-esp__cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

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

/* =================================================
   CONFIGURADOR
   ================================================= */
.bm-cfg {
    background: var(--bm-gray);
    padding: 80px 0;
}

.bm-cfg__card {
    background: var(--bm-white);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    padding: 44px 40px;
    max-width: 860px;
    margin: 0 auto;
}

.bm-cfg__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.bm-cfg__group { display: flex; flex-direction: column; gap: 6px; }
.bm-cfg__group label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--bm-navy);
    text-transform: uppercase;
    letter-spacing: .4px;
}
.bm-cfg__group input,
.bm-cfg__group select {
    padding: 11px 14px;
    border: 1.5px solid rgba(2,4,43,.15);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    color: var(--bm-navy);
    background: var(--bm-white);
    outline: none;
    transition: border var(--bm-trans);
}
.bm-cfg__group input:focus,
.bm-cfg__group select:focus { border-color: var(--bm-blue); }

.bm-cfg__actions { display: flex; justify-content: center; margin-bottom: 24px; }

.bm-cfg__result {
    background: var(--bm-gray);
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 8px;
}
.bm-cfg__result-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--bm-navy);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.bm-cfg__result-label i { color: var(--bm-blue); }
.bm-cfg__result-text {
    font-family: 'Poppins', monospace;
    font-size: .88rem;
    color: var(--bm-navy);
    white-space: pre-wrap;
    margin: 0 0 16px;
    line-height: 1.6;
}

.bm-cfg__confirm {
    text-align: center;
    padding: 24px;
}
.bm-cfg__confirm-icon { font-size: 2.4rem; color: #25A244; margin-bottom: 10px; }
.bm-cfg__confirm p { color: var(--bm-navy); font-weight: 500; margin-bottom: 18px; }
.bm-cfg__confirm-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
    .bm-cfg__card { padding: 28px 20px; }
    .bm-cfg__fields { grid-template-columns: 1fr; }
}

/* =================================================
   FAQ
   ================================================= */
.bm-faq {
    background: var(--bm-white);
    padding: 80px 0;
}

.bm-faq__list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-faq__item {
    border: 1.5px solid rgba(2,4,43,.1);
    border-radius: var(--bm-radius);
    overflow: hidden;
    transition: border-color var(--bm-trans);
}
.bm-faq__item.is-open { border-color: var(--bm-blue); }

.bm-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bm-white);
    border: none;
    padding: 18px 22px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: .93rem;
    font-weight: 600;
    color: var(--bm-navy);
    cursor: pointer;
    transition: background var(--bm-trans);
}
.bm-faq__q:hover { background: var(--bm-gray); }
.bm-faq__item.is-open .bm-faq__q { background: var(--bm-lblue); color: var(--bm-navy); }
.bm-faq__q i { flex-shrink: 0; transition: transform var(--bm-trans); color: var(--bm-blue); }
.bm-faq__item.is-open .bm-faq__q i { transform: rotate(180deg); }

.bm-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.bm-faq__item.is-open .bm-faq__a { max-height: 320px; }
.bm-faq__a p {
    padding: 16px 22px 20px;
    color: #444;
    font-size: .9rem;
    line-height: 1.75;
    margin: 0;
    background: #FAFBFC;
    border-top: 1px solid rgba(2,4,43,.06);
}

/* =================================================
   CTA FINAL
   ================================================= */
.bm-cta-final {
    background: var(--bm-navy);
    padding: 80px 0;
    text-align: center;
}
.bm-cta-final h2 {
    font-size: clamp(1.4rem,2.8vw,2rem);
    font-weight: 700;
    color: var(--bm-white);
    margin-bottom: 14px;
}
.bm-cta-final p {
    color: rgba(255,255,255,.75);
    font-size: .95rem;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 32px;
}
.bm-cta-final__btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =================================================
   LIGHTBOX
   ================================================= */
.bm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}
.bm-lightbox.is-open { display: flex; }

.bm-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2,4,43,.88);
    backdrop-filter: blur(4px);
}

.bm-lightbox__box {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.bm-lightbox__close {
    position: absolute;
    top: -42px;
    right: 0;
    background: rgba(255,255,255,.12);
    border: none;
    color: var(--bm-white);
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--bm-trans);
}
.bm-lightbox__close:hover { background: rgba(255,255,255,.22); }

.bm-lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--bm-radius);
}

.bm-lightbox__caption {
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    margin-top: 10px;
}

/* =================================================
   RESPONSIVE GLOBAL
   ================================================= */
@media (max-width: 1024px) {
    .bm-brand__grid { gap: 40px; }
}

@media (max-width: 600px) {
    .bm-brand { padding: 60px 0; }
    .bm-marcas { padding: 60px 0; }
    .bm-intro { padding: 56px 0; }
    .bm-refac-esp { padding: 60px 0; }
    .bm-cfg { padding: 60px 0; }
    .bm-faq { padding: 60px 0; }
    .bm-cta-final { padding: 60px 0; }
    .bm-app-grid { grid-template-columns: repeat(2, 1fr); }
}
