/* ============================================================
   MBI CORREDORES DE BOLSA — HOME
   Sistema de diseño heredado de landing CDB:
   - Negro + naranjo #FF832A como único acento
   - Poppins: títulos light (300) + palabras clave bold (700)
   - Botones píldora (radius 50px), hover con elevación + glow
   ============================================================ */

:root {
    --mbi-orange: #FF832A;
    --mbi-orange-dark: #d85c15;
    --mbi-dark: #000000;
    --mbi-black: #050505;
    --mbi-panel: #0c0c0c;
    --mbi-border: rgba(255, 255, 255, 0.08);
    --mbi-text-light: #ffffff;
    --mbi-text-muted: #dcdcdc;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    /* Compensa el header sticky en anclas */
    scroll-padding-top: 90px;
}

body {
    background-color: var(--mbi-dark);
    color: var(--mbi-text-light);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* <picture> no genera caja propia: la <img> hija hereda el layout del padre
   (evita que envolver <img> en <picture> altere anchos/aspect-ratio) */
picture { display: contents; }

/* ---------- Utilidades tipográficas ---------- */
.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-bold { font-weight: 700; }
.text-orange { color: var(--mbi-orange) !important; }

/* Título de sección estándar */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* ---------- Animación reveal on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-bg { animation: none !important; }
    .ticker-track { animation: none !important; }
    /* El flotar del teléfono no estaba cubierto (venía de .app-screenshot) */
    .app-trio { animation: none !important; }
}

/* ============================================================
   BLOQUE 1 · HEADER STICKY
   ============================================================ */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    background: transparent;
    transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

/* Estado "scrolled": fondo negro con blur (lo agrega JS) */
.main-header.scrolled {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.7rem 0;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--mbi-border);
}

/* ---------- Logo oficial MBI Inversiones (img/MBI-logo.png,
   fondo transparente: "mbi INVERSIONES | Líderes en Coinversión") ---------- */
.navbar-brand-mbi {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
}

/* Versión compacta para sidebar y footer */
.logo-img-sm {
    height: 46px;
}

@media (max-width: 575px) {
    .logo-img { height: 44px; }
}

/* Links directos visibles (SEO + usabilidad desktop) */
.header-nav {
    gap: 1.8rem;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 400;
    position: relative;
    transition: var(--transition);
}

.header-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--mbi-orange);
    transition: width 0.3s ease;
}

.header-nav a:hover { color: var(--mbi-orange); }
.header-nav a:hover::after { width: 100%; }

/* Botones píldora (idénticos a landing CDB) */
.btn-outline-orange {
    color: #fff;
    border: 1px solid var(--mbi-orange);
    border-radius: 50px;
    padding: 0.5rem 2rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-orange:hover {
    background: var(--mbi-orange);
    color: #fff;
}

.btn-orange {
    background-color: var(--mbi-orange);
    color: #fff;
    border-radius: 50px;
    padding: 0.5rem 2rem;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-orange:hover {
    background-color: var(--mbi-orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 131, 42, 0.4);
}

/* CTA grandes (hero / cta final) */
.btn-lg-cta {
    padding: 0.85rem 2.8rem;
    font-size: 1rem;
}

/* Hamburguesa: 3 líneas naranjas.
   En desktop (>=992px) toda la navegación es visible en .header-nav,
   así que la hamburguesa se oculta; queda solo para tablet/móvil. */
.menu-icon {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
}

.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    color: #FFFFFF;
    padding: 0;
}

.hamburger-btn:hover {
    background: rgba(255, 131, 42, 0.2) !important;
    border-color: #FF832A;
    color: #FF832A;
}

@media (min-width: 992px) {
    .hamburger-btn { display: none !important; }
}

/* ---------- Header CTA Buttons ---------- */
/* ---------- Header Actions Desktop ---------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem !important;
}

.header-btn-login {
    font-size: 0.84rem !important;
    padding: 0.52rem 1.2rem !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 131, 42, 0.6) !important;
    color: #FFFFFF !important;
    background: rgba(255, 131, 42, 0.05) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
}

.header-btn-login:hover {
    background: rgba(255, 131, 42, 0.2) !important;
    border-color: #FF832A !important;
    color: #FF832A !important;
    transform: translateY(-1px);
}

.header-btn-signup {
    font-size: 0.84rem !important;
    padding: 0.52rem 1.35rem !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #FF832A 0%, #E06914 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 14px rgba(255, 131, 42, 0.35) !important;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
}

.header-btn-signup:hover {
    background: linear-gradient(135deg, #E06914 0%, #C45509 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 131, 42, 0.5) !important;
    transform: translateY(-1px);
}

/* ---------- Sidebar Drawer Actions Mobile ---------- */
.sidebar-actions {
    padding: 1.5rem 1.25rem !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
}

.sidebar-actions a {
    width: 100% !important;
    border-radius: 50px !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ---------- Sidebar Drawer (Menú Mobile) ---------- */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    max-width: 85vw;
    height: 100%;
    background: linear-gradient(180deg, rgba(14, 22, 38, 0.98) 0%, rgba(8, 13, 24, 0.99) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-menu.active { right: 0; }

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
}

.sidebar-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    color: #CBD5E1;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 10px;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
}

.sidebar-drawer-link:hover {
    background: rgba(255, 131, 42, 0.08);
    color: #FF832A;
    padding-left: 1.25rem;
}

/* ============================================================
   BLOQUE 2 · HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

/* Fondo skyline con Ken Burns (zoom lento) */
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/hero-skyline-1800.jpg') center bottom / cover no-repeat;
    animation: kenburns 28s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.12) translateY(-1.5%); }
}

/* Si se usa video en vez de imagen */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay para legibilidad (patrón landing CDB) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.45) 50%,
            rgba(0, 0, 0, 0.85) 100%);
}

.hero-content {
    z-index: 2;
    padding: 140px 0 120px;
}

.hero-kicker {
    color: var(--mbi-text-muted);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.02;
    margin-bottom: 1.5rem;
}

.hero-title span { display: block; }

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--mbi-text-muted);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2.2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Ticker de mercado (marquee) ---------- */
.market-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--mbi-border);
    overflow: hidden;
    padding: 0.65rem 0;
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerScroll 42s linear infinite;
}

.market-ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.tick {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.8rem;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--mbi-text-muted);
    border-right: 1px solid var(--mbi-border);
}

.tick b { color: #fff; font-weight: 600; }
.tick i { font-style: normal; font-size: 0.75rem; }
.tick .up { color: #3ddc84; }
.tick .down { color: #ff5a5a; }

/* ============================================================
   HERO DE PÁGINA INTERIOR (compartido: Quiénes Somos,
   Aprendizaje, Academia, Glosario, etc.)
   ============================================================ */
/* ============================================================
   FIX RESPONSIVE · scroll horizontal fantasma en móvil
   ------------------------------------------------------------
   Una .row de Bootstrap con g-5 pone --bs-gutter-x: 3rem, o sea
   margen -1.5rem (-24px) por lado. El .container solo aporta 12px
   de padding, así que la CAJA de la fila se sale 12px y el
   documento scrollea horizontal aunque no se vea nada ahí.
   Bajando el canalón a 1.5rem en móvil el margen (-12px) calza con
   el padding del container. El contenido NO se mueve: la columna
   pasa de 24px a 12px de padding y compensa exacto. La separación
   vertical la sigue dando --bs-gutter-y, que g-5 deja en 3rem.
   ============================================================ */
@media (max-width: 767px) {
    .container .row.g-5 { --bs-gutter-x: 1.5rem; }
}

.page-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #000;
}

/* Fondo placeholder: skyline. Cada página puede sobreescribirlo */
.page-hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/hero-skyline-1800.jpg') center 70% / cover no-repeat;
    animation: kenburns 28s ease-in-out infinite alternate;
    will-change: transform;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.35) 55%,
            rgba(0, 0, 0, 0.92) 100%);
}

.page-hero-content {
    z-index: 2;
    padding: 150px 0 70px;
}

.page-hero-title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.05;
    margin-bottom: 1.2rem;
}

.page-hero-title span { display: inline; }

.page-hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--mbi-text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .page-hero { min-height: 52vh; }
    .page-hero-content { padding: 120px 0 50px; }
    .page-hero-title, .page-hero-sub { text-align: center; }
    .page-hero-sub { margin: 0 auto; }
    .page-hero .hero-kicker { text-align: center; }
}

/* ============================================================
   BLOQUE 3 · CIFRAS CLAVE
   ============================================================ */
.key-figures {
    padding: 90px 0;
    background: #000;
    position: relative;
}

/* Glow naranjo sutil de fondo */
.key-figures::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(255, 131, 42, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 2rem;
    position: relative;
    z-index: 1;
}

/* Cifra destacada ocupa 2 columnas */
.stat-featured { grid-column: span 2; }

.stat-cell {
    padding-top: 1.2rem;
    position: relative;
}

/* Línea naranja superior (patrón benefit-block de landing CDB) */
.stat-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--mbi-orange);
    opacity: 0.7;
}

.stat-cell h2 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-featured h2 { font-size: clamp(3.2rem, 6vw, 5.2rem); }

.stat-cell p {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--mbi-text-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 240px;
}

@media (max-width: 991px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-featured { grid-column: span 2; }
}

@media (max-width: 575px) {
    .stats-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .stat-featured { grid-column: span 1; }
    .stat-cell { text-align: center; }
    .stat-cell p { margin: 0 auto; }
    .stat-cell::before { width: 60%; left: 20%; }
}

/* Nota de fecha bajo las cifras (compartida Home / Quiénes Somos) */
.stats-date {
    margin-top: 2.5rem;
    text-align: right;
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
    .stats-date { text-align: center; }
}

/* ============================================================
   BLOQUE 4 · CÓMO EMPEZAR
   ============================================================ */
.how-to-start {
    padding: 100px 0 80px;
    background: var(--mbi-dark);
}

/* ============================================================
   TRÍO DE PANTALLAS DE MBI TRADING
   Componente compartido: Home (#como-empezar) y Ecosistema (#app).
   Los mockups vienen recortados con alfa, así que la sombra va con
   drop-shadow — box-shadow dibujaría la caja rectangular en vez de
   la silueta del teléfono.
   ============================================================ */
.app-trio {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-trio-phone {
    display: block;
    width: 180px;
    height: auto;
    filter: drop-shadow(0 24px 55px rgba(0, 0, 0, 0.85));
}

/* El del centro manda: más grande, al frente y con el glow naranjo */
.app-trio-c {
    width: 210px;
    z-index: 2;
    filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 55px rgba(255, 131, 42, 0.1));
}

.app-trio-l {
    margin-right: -56px;
    transform: rotate(-8deg) translateY(14px);
    z-index: 1;
}

.app-trio-r {
    margin-left: -56px;
    transform: rotate(8deg) translateY(14px);
    z-index: 1;
}

/* En el Home el teléfono siempre flotó: se conserva el gesto, ahora
   sobre el grupo completo (los hijos ya usan transform para el abanico). */
.how-to-start .app-trio { animation: floatPhone 6s ease-in-out infinite; }

@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

@media (max-width: 575px) {
    .app-trio-phone { width: 132px; }
    .app-trio-c { width: 152px; }
    .app-trio-l { margin-right: -42px; }
    .app-trio-r { margin-left: -42px; }
}

/* --- Pasos 1-2-3 (patrón chapter-item de landing CDB) --- */
.step-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 1.2rem;
    padding: 1.1rem 0;
    align-items: center;
}

.step-number {
    font-size: clamp(3.2rem, 5vw, 4.5rem);
    font-weight: 300;
    color: var(--mbi-orange);
    line-height: 1;
}

.step-text {
    border-bottom: 1px solid var(--mbi-orange);
    padding-bottom: 1.1rem;
}

.step-text h5 {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.step-text p {
    color: var(--mbi-text-muted);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.55;
    margin: 0;
}

/* --- Badges de tiendas (CSS puro) --- */
.store-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    padding: 0.55rem 1.3rem;
    border-radius: 10px;
    transition: var(--transition);
    line-height: 1.15;
    font-size: 0.9rem;
    font-weight: 600;
}

.store-badge small {
    font-size: 0.6rem;
    font-weight: 300;
    color: var(--mbi-text-muted);
}

.store-badge svg { width: 24px; height: 24px; }

.store-badge:hover {
    border-color: var(--mbi-orange);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Botón play (lo reusa .webinar-thumb en ecosistema) --- */
.video-play {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--mbi-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(255, 131, 42, 0.35);
}

.video-play svg {
    width: 34px;
    height: 34px;
    color: #fff;
    margin-left: 4px;
}

/* ============================================================
   BLOQUE 5 · TARJETAS RESUMEN DEL MENÚ
   ============================================================ */
.menu-cards {
    padding: 90px 0;
    background: #000;
}

.m-card {
    background: var(--mbi-panel);
    border: 1px solid var(--mbi-border);
    border-radius: 18px;
    padding: 2.2rem 1.9rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.m-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 131, 42, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.m-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 131, 42, 0.1);
    border: 1px solid rgba(255, 131, 42, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    color: var(--mbi-orange);
}

.m-card-icon svg { width: 26px; height: 26px; }

.m-card h4 {
    font-weight: 600;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.m-card p {
    color: var(--mbi-text-muted);
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.6;
    flex-grow: 1;
}

.m-card-link {
    color: var(--mbi-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.m-card-link:hover { color: var(--mbi-orange-dark); }

/* ============================================================
   BLOQUE 6 · RESEARCH / PUBLICACIONES
   ============================================================ */
.research-section {
    padding: 90px 0;
    background: var(--mbi-dark);
}

.link-more {
    color: var(--mbi-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.link-more:hover { color: var(--mbi-orange-dark); }

.r-card {
    background: var(--mbi-panel);
    border: 1px solid var(--mbi-border);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.r-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 131, 42, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.r-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.r-card-body { padding: 1.5rem 1.6rem 1.7rem; }

.r-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mbi-orange);
    border: 1px solid rgba(255, 131, 42, 0.4);
    border-radius: 50px;
    padding: 0.22rem 0.85rem;
    margin-bottom: 0.9rem;
}

.r-card-body h5 {
    font-weight: 600;
    font-size: 1.02rem;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.r-card-body p {
    color: var(--mbi-text-muted);
    font-weight: 300;
    font-size: 0.83rem;
    line-height: 1.6;
    margin-bottom: 0.9rem;
}

.r-date {
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   BLOQUE 7 · CONFIANZA Y REGULACIÓN
   ============================================================ */
.trust-strip {
    padding: 70px 0;
    background: #000;
    border-top: 1px solid var(--mbi-border);
    border-bottom: 1px solid var(--mbi-border);
}

.trust-heading {
    text-align: center;
    color: var(--mbi-text-muted);
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.06em;
    margin-bottom: 2.5rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.t-badge {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--mbi-text-muted);
}

.t-badge svg {
    width: 34px;
    height: 34px;
    color: var(--mbi-orange);
    flex-shrink: 0;
}

.t-badge span {
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.45;
}

.t-badge b {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Franja de prensa (texto placeholder → reemplazar por logos) */
.press-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--mbi-border);
}

.press-row span {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.press-row span:hover { color: rgba(255, 255, 255, 0.55); }

/* Wordmarks tipográficos de prensa (placeholder monocromo — heredan el gris
   de .press-row span). Cada medio con su propio carácter. Reemplazar por los
   archivos de logo OFICIALES (<img>) cuando estén disponibles. */
.press-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.34em;
    white-space: nowrap;
    letter-spacing: 0;
    line-height: 1;
}
.press-logo i { font-style: normal; }

/* Diario Financiero — monograma "DF" + wordmark */
.pl-df { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem; }
.pl-df .pl-mono {
    font-weight: 800;
    font-size: 0.8em;
    letter-spacing: -0.02em;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    padding: 0.12em 0.28em;
}

/* El Mercurio Inversiones — masthead serif + bajada en versalitas */
.pl-em { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.pl-em i {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.56rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    align-self: center;
}

/* La Tercera Pulso — contraste de peso */
.pl-lt { font-family: 'Poppins', sans-serif; font-weight: 300; font-size: 0.95rem; }
.pl-lt i { font-weight: 800; }

/* Bloomberg Línea — wordmark bold + "Línea" liviana */
.pl-bl { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; }
.pl-bl i { font-weight: 300; letter-spacing: 0.01em; }

/* ============================================================
   BLOQUE 8 · BANNER B2B / API ("modo developer")
   ============================================================ */
.api-banner {
    padding: 90px 0;
    background: var(--mbi-dark);
}

.api-panel {
    background: #070707;
    border: 1px solid var(--mbi-border);
    border-radius: 24px;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    /* Grid sutil de fondo, estilo developer */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 34px 34px;
}

.api-chip {
    font-family: 'Consolas', 'SFMono-Regular', Menlo, monospace;
    font-size: 0.75rem;
    color: var(--mbi-orange);
    letter-spacing: 0.12em;
    display: inline-block;
    margin-bottom: 1rem;
}

.api-panel h3 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 1rem;
}

.api-panel p {
    color: var(--mbi-text-muted);
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 480px;
    margin: 0;
}

/* Terminal decorativa */
.code-window {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.code-dots {
    display: flex;
    gap: 7px;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2e2e2e;
}

.code-dots i:first-child { background: rgba(255, 131, 42, 0.8); }

.code-window pre {
    margin: 0;
    padding: 1.3rem 1.4rem;
    overflow-x: auto;
}

.code-window code {
    font-family: 'Consolas', 'SFMono-Regular', Menlo, monospace;
    font-size: 0.76rem;
    line-height: 1.75;
    color: #c9c9c9;
    white-space: pre;
}

.c-comment { color: rgba(255, 255, 255, 0.35); }
.c-cmd { color: var(--mbi-orange); }
.c-str { color: #e8b26a; }
.c-ok { color: #3ddc84; }

@media (max-width: 768px) {
    .api-panel { padding: 2rem 1.5rem; }
}

/* ============================================================
   BLOQUE 9 · CTA FINAL
   ============================================================ */
.final-cta {
    padding: 110px 0 90px;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* Glow naranjo inferior (patrón cta-download de landing CDB) */
.final-cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: radial-gradient(ellipse at center bottom, rgba(255, 131, 42, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta-title {
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.final-cta-sub {
    color: var(--mbi-text-muted);
    font-weight: 300;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto 2.2rem;
    line-height: 1.65;
}

.account-cta {
    margin-top: 1.8rem;
    color: var(--mbi-text-muted);
    font-size: 0.88rem;
    font-weight: 300;
}

.account-cta a {
    color: var(--mbi-orange);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition);
}

.account-cta a:hover { color: var(--mbi-orange-dark); }

/* ============================================================
   BLOQUE 10 · FOOTER
   ============================================================ */
footer,
footer.footer {
    background: #0c0c0c;
    margin-top: 0 !important;
}

.footer-col-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 18px;
}

.footer-links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--mbi-text-light);
}

.footer-links a {
    color: var(--mbi-text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-links a:hover { color: var(--mbi-orange); }

.footer-addr { font-size: 0.85rem; }

.social-links a {
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover { color: var(--mbi-orange); transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; }

.btn-webinar {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.4rem;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-webinar:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.legal-text { font-size: 0.7rem; line-height: 1.7; }

.border-orange { border-color: var(--mbi-orange) !important; }

/* ============================================================
   RESPONSIVE GENERAL
   ============================================================ */
@media (max-width: 991px) {
    .hero-content { padding: 120px 0 100px; }
}

@media (max-width: 768px) {
    .hero-title,
    .hero-subtitle,
    .hero-kicker {
        text-align: center;
    }

    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }

    .section-title { text-align: center; }

    .step-item { grid-template-columns: 60px 1fr; }
    .step-number { font-size: 2.6rem; }

    .store-badges { justify-content: center; }

    .trust-badges { gap: 1.5rem; flex-direction: column; align-items: center; }
    .press-row { gap: 1.5rem; }

    /* Footer centrado en mobile (patrón landing CDB) */
    footer { text-align: center; }
    footer .col-md-6, footer .col-6, footer .col-12 { text-align: center; }
    .footer-links { display: inline-block; text-align: left; }
    .social-links { justify-content: center; }
}

/* ============================================================
   BANNER DE CONSENTIMIENTO DE COOKIES
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 2rem);
    max-width: 1050px;
    background: rgba(14, 22, 38, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 131, 42, 0.15);
    padding: 1.25rem 1.75rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        padding: 1.2rem;
    }
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .cookie-actions {
        flex-direction: column-reverse;
        width: 100%;
    }
    .cookie-actions .btn {
        width: 100%;
        text-align: center;
    }
}

.btn-cookie-secondary {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-cookie-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.65);
    color: #FFFFFF !important;
}

