/* ============================================================
   ASESORES DE INVERSIÓN (B2B) — estilos propios
   (base: style-home.css; .faq-item y .article-table vienen de
    style-productos.css, también enlazado en esta página)
   ============================================================ */

.adv-block {
    padding: 85px 0;
    background: var(--mbi-dark);
}

.adv-block-alt {
    background: #000;
    border-top: 1px solid var(--mbi-border);
    border-bottom: 1px solid var(--mbi-border);
}

.adv-copy {
    color: var(--mbi-text-muted);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

/* ---------- Bloque 2: beneficios ---------- */
/* ============================================================
   FOTO DE APOYO (#por-que)
   La columna se estira a la altura de las 4 tarjetas, así que la
   foto se recorta sola con object-fit y no hay que fijarle alto.
   ============================================================ */
.adv-photo {
    position: relative;
    height: 100%;
    min-height: 380px;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--mbi-border);
}

.adv-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Velo que la integra a la paleta: negro abajo + un toque naranjo arriba */
.adv-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top,
            rgba(5, 5, 5, 0.62) 0%,
            rgba(5, 5, 5, 0.12) 55%,
            rgba(255, 131, 42, 0.10) 100%);
}

@media (max-width: 991px) {
    /* Apilada: deja de competir con la altura de las tarjetas */
    .adv-photo {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}

.benefit-card {
    background: var(--mbi-panel);
    border: 1px solid var(--mbi-border);
    border-radius: 18px;
    padding: 2rem 1.7rem;
    height: 100%;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 131, 42, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.benefit-card svg {
    width: 30px;
    height: 30px;
    color: var(--mbi-orange);
    margin-bottom: 1rem;
}

.benefit-card h5 {
    font-weight: 700;
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--mbi-text-muted);
    font-weight: 300;
    font-size: 0.84rem;
    line-height: 1.65;
    margin: 0;
}

/* ---------- Bloque 3: herramientas (patrón chapter-item) ---------- */
.tool-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    column-gap: 1.5rem;
    padding: 1.6rem 0;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
}

.tool-num {
    font-size: clamp(3.5rem, 5vw, 5rem);
    font-weight: 300;
    color: var(--mbi-orange);
    line-height: 1;
    text-align: right;
}

.tool-text {
    border-bottom: 1px solid var(--mbi-orange);
    padding-bottom: 1.6rem;
}

.tool-text h4 {
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.tool-text p {
    color: var(--mbi-text-muted);
    font-weight: 300;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Bloque 4: condiciones ---------- */
.cond-table { min-width: 100%; }

.cond-table td:last-child {
    /* Placeholders [POR DEFINIR] destacados para no publicarlos por error */
    color: rgba(255, 131, 42, 0.85);
    font-style: italic;
}

.cond-note {
    text-align: center;
    color: var(--mbi-text-muted);
    font-weight: 300;
    font-size: 0.82rem;
    margin-top: 1.2rem;
}

/* ---------- Bloque 5: formulario de postulación ---------- */
.apply-form {
    background: var(--mbi-panel);
    border: 1px solid var(--mbi-border);
    border-radius: 20px;
    padding: 2.2rem;
}

.apply-form label {
    display: block;
    color: var(--mbi-text-muted);
    font-size: 0.82rem;
    font-weight: 300;
    margin-bottom: 0.35rem;
}

.apply-form label .opt { opacity: 0.6; }

.apply-form input,
.apply-form select,
.apply-form textarea {
    width: 100%;
    background: #e5e5e5;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.1rem;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    transition: var(--transition);
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 0.25rem rgba(255, 131, 42, 0.25);
}

.apply-form textarea { resize: vertical; }

/* Botón submit (mismo patrón de la landing CDB) */
.btn-cta-submit {
    background-color: var(--mbi-orange);
    color: #fff;
    border-radius: 50px;
    padding: 0.8rem 2.4rem;
    font-weight: 600;
    border: none;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cta-submit:hover {
    background-color: var(--mbi-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 131, 42, 0.4);
}

/* ---------- Subsección API para Desarrolladores & Fintechs ---------- */
.api-dev-section {
    padding: 85px 0;
    background: radial-gradient(circle at 15% 50%, rgba(255, 131, 42, 0.08) 0%, rgba(0, 0, 0, 0.95) 70%, #000 100%);
    border-top: 1px solid var(--mbi-border);
    border-bottom: 1px solid var(--mbi-border);
    position: relative;
    overflow: hidden;
}

.api-dev-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.api-dev-title .text-orange {
    font-weight: 700;
    display: block;
}

.api-dev-desc {
    color: var(--mbi-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 540px;
}

/* Terminal Mockup */
.terminal-window {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 131, 42, 0.06);
    overflow: hidden;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.terminal-header {
    background: #161b22;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    color: #8b949e;
    font-size: 0.75rem;
    margin: 0 auto;
    transform: translateX(-16px);
}

.terminal-body {
    padding: 22px;
    color: #e6edf3;
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
    overflow-x: auto;
}

.terminal-prompt { color: #8b949e; }
.terminal-cmd { color: #ff832a; font-weight: 600; }
.terminal-url { color: #58a6ff; }
.terminal-json-key { color: #ff7b72; }
.terminal-json-str { color: #a5d6ff; }
.terminal-json-num { color: #79c0ff; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .adv-block { padding: 55px 0; }
    .api-dev-section { padding: 55px 0; }

    .tool-item {
        grid-template-columns: 1fr;
        text-align: center;
        row-gap: 0.6rem;
    }

    .tool-num { text-align: center; }

    .apply-form { padding: 1.6rem 1.2rem; }

    .page-hero .d-flex.flex-wrap { justify-content: center; }
}
