/* ==========================================================================
   Buyesia Pay — Frontend design system
   Marca rojo/amarillo, tema claro y oscuro, header, footer, cookies y landing.
   ========================================================================== */

:root {
    --bp-bg: #FFFFFF;
    --bp-canvas: #F5F6FA;
    --bp-canvas-2: #EEF0F6;
    --bp-surface: #FFFFFF;
    --bp-surface-2: #F2F4F9;
    --bp-ink: #0C1220;
    --bp-ink-2: #33415C;
    --bp-muted: #5C6678;
    --bp-line: #E5E8F0;
    --bp-line-2: #D5DBE8;

    --bp-brand: #E23A2E;
    --bp-brand-2: #C42B20;
    --bp-brand-soft: rgba(226, 58, 46, .10);
    --bp-accent: #FFC400;
    --bp-accent-2: #FFDA5C;
    --bp-accent-soft: rgba(255, 196, 0, .16);

    --bp-ok: #0E9F6E;
    --bp-ok-soft: rgba(14, 159, 110, .12);
    --bp-violet: #6C4BF4;
    --bp-violet-soft: rgba(108, 75, 244, .12);

    --bp-radius-sm: 10px;
    --bp-radius: 16px;
    --bp-radius-lg: 24px;
    --bp-radius-xl: 32px;
    --bp-pill: 999px;

    --bp-shadow-1: 0 1px 2px rgba(12, 18, 32, .05), 0 12px 32px rgba(12, 18, 32, .07);
    --bp-shadow-2: 0 34px 80px rgba(12, 18, 32, .16);
    --bp-header-bg: rgba(255, 255, 255, .82);
    --bp-header-line: rgba(12, 18, 32, .08);

    --bp-ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}

html.dark {
    --bp-bg: #070B14;
    --bp-canvas: #070B14;
    --bp-canvas-2: #0B1220;
    --bp-surface: #0E1524;
    --bp-surface-2: #141E31;
    --bp-ink: #F2F5FB;
    --bp-ink-2: #C7D2E4;
    --bp-muted: #93A1B8;
    --bp-line: #1E2A40;
    --bp-line-2: #2A3A56;

    --bp-brand: #FF5A4C;
    --bp-brand-2: #FF7A6E;
    --bp-brand-soft: rgba(255, 90, 76, .16);
    --bp-accent: #FFC400;
    --bp-accent-soft: rgba(255, 196, 0, .16);

    --bp-ok-soft: rgba(14, 159, 110, .20);
    --bp-violet-soft: rgba(108, 75, 244, .22);

    --bp-shadow-1: 0 1px 2px rgba(0, 0, 0, .45), 0 16px 38px rgba(0, 0, 0, .4);
    --bp-shadow-2: 0 38px 90px rgba(0, 0, 0, .6);
    --bp-header-bg: rgba(7, 11, 20, .8);
    --bp-header-line: rgba(255, 255, 255, .08);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body.bpay-page {
    margin: 0;
    background: var(--bp-bg);
    color: var(--bp-ink);
    transition: background-color .35s var(--bp-ease), color .35s var(--bp-ease);
}

.bpl {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--bp-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

:where(.bpl) h1, :where(.bpl) h2, :where(.bpl) h3, :where(.bpl) h4, :where(.bpl) h5 {
    font-family: "Manrope", "Inter", sans-serif;
    letter-spacing: -.025em;
    line-height: 1.12;
    margin: 0 0 12px;
    color: var(--bp-ink);
}

:where(.bpl) p { margin: 0 0 14px; }
:where(.bpl) img { max-width: 100%; display: block; }
:where(.bpl) a { color: var(--bp-brand); text-decoration: none; transition: color .18s var(--bp-ease); }
:where(.bpl) a:hover { color: var(--bp-brand-2); }
.bpl ::selection { background: var(--bp-accent); color: #0C1220; }

.bp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.bp-narrow { max-width: 720px; }
.bp-muted { color: var(--bp-muted); }

/* ---------- Buttons ---------- */

.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: var(--bp-pill);
    border: 1px solid transparent;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s var(--bp-ease), background-color .18s var(--bp-ease), border-color .18s var(--bp-ease), color .18s var(--bp-ease), box-shadow .18s var(--bp-ease);
}
.bp-btn:active { transform: translateY(1px); }
.bp-btn svg { width: 18px; height: 18px; }

.bp-btn-primary { background: var(--bp-brand); color: #fff; box-shadow: 0 14px 30px rgba(226, 58, 46, .3); }
.bp-btn-primary:hover { background: var(--bp-brand-2); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 38px rgba(226, 58, 46, .36); }

.bp-btn-ghost { background: var(--bp-surface); border-color: var(--bp-line); color: var(--bp-ink); }
.bp-btn-ghost:hover { border-color: var(--bp-line-2); color: var(--bp-ink); transform: translateY(-2px); }

.bp-btn-dark { background: var(--bp-ink); color: var(--bp-bg); }
.bp-btn-dark:hover { background: var(--bp-ink); color: var(--bp-bg); transform: translateY(-2px); }

.bp-btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

.bp-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.bp-link-arrow svg { width: 17px; height: 17px; transition: transform .2s var(--bp-ease); }
.bp-link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Eyebrow / section heads ---------- */

.bp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--bp-pill);
    background: var(--bp-brand-soft);
    color: var(--bp-brand);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.bp-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.bp-head { max-width: 720px; margin-bottom: 48px; }
.bp-head.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
.bp-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 850; margin: 16px 0 14px; }
.bp-head p { color: var(--bp-muted); font-size: 17px; margin: 0; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    padding: 12px 0;
    background: transparent;
    transition: padding .3s var(--bp-ease);
}
.site-header.is-scrolled { padding: 8px 0; }
.site-topbar { max-height: 44px; overflow: hidden; transition: max-height .3s var(--bp-ease), opacity .3s var(--bp-ease); }
.site-header.is-scrolled .site-topbar { max-height: 0; opacity: 0; }

.site-topbar { color: var(--bp-muted); font-size: 12.5px; }
.site-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; }
.site-topbar-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--bp-muted); }
.site-topbar-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--bp-brand); box-shadow: 0 0 0 4px var(--bp-brand-soft); }
.site-topbar-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-topbar-nav a { color: var(--bp-muted); font-weight: 600; white-space: nowrap; }
.site-topbar-nav a:hover { color: var(--bp-ink); }
.site-topbar-nav a.is-external::after { content: "↗"; margin-left: 5px; font-size: 11px; }
.site-topbar-note { color: var(--bp-muted); font-weight: 600; white-space: nowrap; }

.header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 6px 10px 6px 22px;
    border-radius: var(--bp-pill);
    background: var(--bp-header-bg);
    border: 1px solid var(--bp-header-line);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 12px 32px rgba(12, 18, 32, .07);
    transition: box-shadow .3s var(--bp-ease);
}
.site-header.is-scrolled .header-inner { box-shadow: 0 18px 44px rgba(12, 18, 32, .16); }
html.dark .site-header.is-scrolled .header-inner { box-shadow: 0 22px 54px rgba(0, 0, 0, .6); }

.bpl:not(.no-header) .main { padding-top: 118px; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }
html.dark .brand-logo { filter: brightness(1.08); }

.nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px 0 15px;
    border-radius: var(--bp-pill);
    border: 1px solid var(--bp-line);
    background: var(--bp-surface);
    color: var(--bp-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: border-color .2s var(--bp-ease), background-color .2s var(--bp-ease), color .2s var(--bp-ease);
}
.nav-menu-toggle:hover { border-color: var(--bp-line-2); }
.nav-menu-toggle[aria-expanded="true"] { background: var(--bp-ink); border-color: var(--bp-ink); color: var(--bp-bg); }
.nav-burger { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--bp-ease), opacity .2s var(--bp-ease); }
.nav-menu-toggle[aria-expanded="true"] .nav-burger i:first-child { transform: translateY(6px) rotate(45deg); }
.nav-menu-toggle[aria-expanded="true"] .nav-burger i:nth-child(2) { opacity: 0; }
.nav-menu-toggle[aria-expanded="true"] .nav-burger i:last-child { transform: translateY(-6px) rotate(-45deg); }

.header-nav { display: flex; align-items: center; gap: 2px; }
.header-nav-link {
    position: relative;
    padding: 9px 15px;
    border-radius: var(--bp-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--bp-muted);
    white-space: nowrap;
    transition: color .2s var(--bp-ease), background-color .2s var(--bp-ease);
}
.header-nav-link:hover { color: var(--bp-ink); background: var(--bp-surface-2); }
.header-nav-link.is-active { color: var(--bp-ink); background: var(--bp-surface-2); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: var(--bp-pill);
    border: 1px solid var(--bp-line);
    background: var(--bp-surface);
    color: var(--bp-ink-2);
    cursor: pointer;
    transition: transform .2s var(--bp-ease), border-color .2s var(--bp-ease), color .2s var(--bp-ease);
}
.header-icon-btn:hover { transform: translateY(-1px); border-color: var(--bp-line-2); color: var(--bp-ink); }
.header-icon-btn svg { width: 18px; height: 18px; }

.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: var(--bp-pill);
    border: 1px solid var(--bp-line);
    background: var(--bp-surface);
    color: var(--bp-ink-2);
    cursor: pointer;
    transition: transform .2s var(--bp-ease), border-color .2s var(--bp-ease), color .2s var(--bp-ease);
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--bp-line-2); color: var(--bp-ink); }
.theme-toggle svg { width: 18px; height: 18px; }

.header-login { font-size: 14px; font-weight: 650; color: var(--bp-ink-2); padding: 9px 12px; border-radius: var(--bp-pill); }
.header-login:hover { color: var(--bp-ink); background: var(--bp-surface-2); }

.header-cta { flex: none; }
.header-mobile-note { display: block; text-align: center; color: var(--bp-muted); font-size: 13px; padding: 6px 0; }

/* Mega menú */
.header-mega {
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 clamp(20px, 5vw, 40px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .28s var(--bp-ease), transform .28s var(--bp-ease), visibility .28s;
}
.site-header.nav-open .header-mega { pointer-events: auto; opacity: 1; visibility: visible; transform: none; }
.header-mega-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px;
    border-radius: var(--bp-radius-lg);
    background: var(--bp-surface);
    border: 1px solid var(--bp-line);
    box-shadow: var(--bp-shadow-2);
}
.header-mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.header-mega-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: var(--bp-ink);
    transition: background-color .2s var(--bp-ease), border-color .2s var(--bp-ease), transform .2s var(--bp-ease);
}
.header-mega-item:hover { background: var(--bp-surface-2); border-color: var(--bp-line); transform: translateY(-2px); color: var(--bp-ink); }
.header-mega-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--bp-brand-soft); color: var(--bp-brand); }
.header-mega-item:nth-child(3n+2) .header-mega-icon { background: var(--bp-violet-soft); color: var(--bp-violet); }
.header-mega-item:nth-child(3n) .header-mega-icon { background: var(--bp-accent-soft); color: #A16207; }
.header-mega-icon svg { width: 20px; height: 20px; }
.header-mega-copy { flex: 1; min-width: 0; }
.header-mega-copy b { display: block; font-size: 14.5px; font-family: "Manrope", sans-serif; }
.header-mega-copy small { display: block; color: var(--bp-muted); font-size: 12.5px; line-height: 1.45; }
.header-mega-arrow { width: 16px; height: 16px; color: var(--bp-muted); opacity: 0; transform: translateX(-4px); transition: opacity .2s var(--bp-ease), transform .2s var(--bp-ease); flex: none; }
.header-mega-item:hover .header-mega-arrow { opacity: 1; transform: none; }
.header-mega-aside {
    border-radius: 18px;
    padding: 26px 24px;
    background: linear-gradient(160deg, #0C1220, #1B2A44);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.header-mega-aside-kicker { font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--bp-accent); }
.header-mega-aside b { font-size: 20px; margin: 10px 0 8px; color: #fff; }
.header-mega-aside p { color: rgba(255, 255, 255, .74); font-size: 13.5px; margin-bottom: 18px; }
.header-mega-aside .bp-btn { background: var(--bp-accent); color: #0C1220; box-shadow: 0 12px 26px rgba(255, 196, 0, .3); }
.header-mega-aside .bp-btn:hover { background: var(--bp-accent-2); color: #0C1220; }

/* Buscador */
.search-overlay {
    position: fixed; inset: 0; z-index: 120;
    padding: 110px 24px 40px;
    background: rgba(8, 12, 22, .64);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s var(--bp-ease), visibility .25s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
body.has-overlay { overflow: hidden; }
.search-overlay-inner { width: 100%; max-width: 640px; margin: 0 auto; }
.search-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 6px 8px 6px 18px;
    border-radius: var(--bp-pill);
    background: var(--bp-surface);
    border: 1px solid var(--bp-line);
    box-shadow: var(--bp-shadow-2);
    transform: translateY(-10px);
    transition: transform .3s var(--bp-ease);
}
.search-overlay.is-open .search-bar { transform: none; }
.search-bar svg { width: 20px; height: 20px; color: var(--bp-muted); flex: none; }
.search-input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--bp-ink); }
.search-close { border: 1px solid var(--bp-line); background: var(--bp-surface-2); color: var(--bp-muted); border-radius: 9px; padding: 6px 10px; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.search-results { margin-top: 18px; }
.search-results-label { display: block; color: rgba(255, 255, 255, .65); font-size: 11.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.search-chips { display: grid; gap: 8px; }
.search-chip { display: block; padding: 13px 16px; border-radius: 14px; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .2s var(--bp-ease), border-color .2s var(--bp-ease), transform .2s var(--bp-ease); }
.search-chip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); transform: translateX(4px); color: #fff; }
.search-chip b { display: block; font-size: 14px; }
.search-chip small { color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.search-chip.is-hidden { display: none; }
.search-empty { color: rgba(255, 255, 255, .65); font-size: 13.5px; text-align: center; margin-top: 14px; }

/* Panel móvil del menú */
.header-mobile { display: none; }

/* ==========================================================================
   Landing
   ========================================================================== */

.bpl-landing { overflow: clip; }

.bp-hero { padding: clamp(40px, 6vw, 84px) 0 0; }

.bp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 54px; align-items: center; }
.bp-hero-title { font-size: clamp(38px, 5.6vw, 68px); font-weight: 850; letter-spacing: -.04em; line-height: 1.02; margin: 20px 0 20px; }
.bp-hero-title .grad {
    background: linear-gradient(100deg, var(--bp-brand) 0%, #FF8A3D 45%, var(--bp-brand) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: bp-shimmer 7s linear infinite;
}
.bp-hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--bp-muted); max-width: 560px; margin-bottom: 28px; }

.bp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.bp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--bp-pill); background: var(--bp-surface); border: 1px solid var(--bp-line); font-size: 13.5px; font-weight: 650; color: var(--bp-ink-2); }
.bp-chip svg { width: 15px; height: 15px; color: var(--bp-ok); }

.bp-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.bp-appstores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.bp-appstore { display: inline-flex; border-radius: var(--bp-radius-sm); overflow: hidden; box-shadow: var(--bp-shadow-1); border: 1px solid var(--bp-line); transition: transform .2s var(--bp-ease), box-shadow .2s var(--bp-ease); background: var(--bp-surface); }
.bp-appstore:hover { transform: translateY(-3px); box-shadow: var(--bp-shadow-2); }
.bp-appstore img { height: 48px; width: auto; }

/* Visual del hero */
.bp-hero-visual { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; }
.bp-hero-media { position: relative; width: min(470px, 100%); will-change: transform; }
.bp-hero-media img { width: 100%; height: auto; filter: drop-shadow(0 40px 80px rgba(12, 18, 32, .32)); animation: bp-float 9s ease-in-out infinite; }
html.dark .bp-hero-media img { filter: drop-shadow(0 40px 90px rgba(0, 0, 0, .6)); }

.bp-float {
    position: absolute;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 15px;
    border-radius: 14px;
    background: var(--bp-surface);
    border: 1px solid var(--bp-line);
    box-shadow: var(--bp-shadow-2);
    font-size: 12.5px;
    font-weight: 650;
    color: var(--bp-ink);
    animation: bp-float 7s ease-in-out infinite;
}
.bp-float small { display: block; font-weight: 550; color: var(--bp-muted); font-size: 11px; }
.bp-float-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--bp-brand-soft); color: var(--bp-brand); }
.bp-float-icon.ok { background: var(--bp-ok-soft); color: var(--bp-ok); }
.bp-float-icon.accent { background: var(--bp-accent-soft); color: #A16207; }
.bp-float-icon svg { width: 16px; height: 16px; }
.bp-float-1 { top: 8%; left: -4%; }
.bp-float-2 { bottom: 16%; right: -6%; animation-delay: .8s; }
.bp-float-3 { bottom: 2%; left: 4%; animation-delay: 1.6s; }

/* Tasas P2P */
.bp-rates { margin-top: clamp(40px, 6vw, 72px); }
.bp-rates-panel {
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius-lg);
    background: var(--bp-surface);
    box-shadow: var(--bp-shadow-1);
    padding: 18px 0;
    overflow: hidden;
    position: relative;
}
.bp-rates-panel::before, .bp-rates-panel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.bp-rates-panel::before { left: 0; background: linear-gradient(90deg, var(--bp-surface) 30%, transparent); }
.bp-rates-panel::after { right: 0; background: linear-gradient(270deg, var(--bp-surface) 30%, transparent); }
.bp-rates__viewport { width: 100%; }
.bp-rates__status { padding: 16px; text-align: center; color: var(--bp-muted); font-size: 14px; }
.bp-rates__status.is-error { color: var(--bp-brand); }
.bp-rates__track { display: flex; gap: 14px; width: max-content; padding: 0 20px; animation: bp-marquee 34s linear infinite; }
.bp-rates-panel:hover .bp-rates__track { animation-play-state: paused; }
.bp-rate-card { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: var(--bp-radius); border: 1px solid var(--bp-line); background: var(--bp-surface-2); min-width: 250px; }
.bp-rate-card__asset { display: flex; align-items: center; gap: 10px; }
.bp-rate-card__logo { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--bp-surface); border: 1px solid var(--bp-line); font-weight: 800; font-size: 13px; color: var(--bp-brand); flex: none; }
.bp-rate-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.bp-rate-card__name { display: block; font-size: 13.5px; font-weight: 750; }
.bp-rate-card__pair { display: block; font-size: 11.5px; color: var(--bp-muted); }
.bp-rate-card__rates { display: grid; grid-template-columns: auto auto; gap: 2px 12px; margin-left: auto; font-size: 12px; color: var(--bp-muted); }
.bp-rate-card__value { font-weight: 750; color: var(--bp-ink); text-align: right; font-variant-numeric: tabular-nums; }

/* Métricas */
.bp-metrics { margin-top: clamp(48px, 7vw, 88px); }
.bp-metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.bp-metric { padding: 26px 24px; border-radius: var(--bp-radius-lg); background: var(--bp-surface); border: 1px solid var(--bp-line); box-shadow: var(--bp-shadow-1); transition: transform .3s var(--bp-ease), border-color .3s var(--bp-ease); }
.bp-metric:hover { transform: translateY(-5px); border-color: var(--bp-line-2); }
.bp-metric strong { display: block; font-family: "Manrope", sans-serif; font-size: clamp(30px, 3.6vw, 44px); font-weight: 850; letter-spacing: -.03em; background: linear-gradient(120deg, var(--bp-brand), var(--bp-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bp-metric span { display: block; font-weight: 700; font-size: 14px; margin-top: 4px; }
.bp-metric small { color: var(--bp-muted); font-size: 12.5px; }

/* Secciones */
.bp-section { position: relative; padding: clamp(64px, 8vw, 110px) 0 0; scroll-margin-top: 120px; }
.bp-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1200px, calc(100% - 40px));
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bp-line-2), transparent);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 1.1s var(--bp-ease);
}
.bp-section.is-in-view::before { transform: translateX(-50%) scaleX(1); }

.bp-value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.bp-value {
    position: relative;
    padding: 30px 26px;
    border-radius: var(--bp-radius-lg);
    background: var(--bp-surface);
    border: 1px solid var(--bp-line);
    box-shadow: var(--bp-shadow-1);
    overflow: hidden;
    transition: transform .3s var(--bp-ease), box-shadow .3s var(--bp-ease), border-color .3s var(--bp-ease);
}
.bp-value:hover { transform: translateY(-7px); box-shadow: var(--bp-shadow-2); border-color: var(--bp-line-2); }
.bp-value h3 { font-size: 18px; margin-bottom: 8px; }
.bp-value p { color: var(--bp-muted); font-size: 14.5px; margin: 0; }
.bp-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; background: var(--bp-brand-soft); color: var(--bp-brand); }
.bp-icon.accent { background: var(--bp-accent-soft); color: #A16207; }
.bp-icon.violet { background: var(--bp-violet-soft); color: var(--bp-violet); }
.bp-icon.ok { background: var(--bp-ok-soft); color: var(--bp-ok); }
.bp-icon svg { width: 24px; height: 24px; }
.bp-value-list { list-style: none; margin: 16px 0 0; padding: 0; }
.bp-value-list li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--bp-muted); margin-bottom: 7px; }
.bp-value-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--bp-brand); }

/* Pasos */
.bp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: bpstep; }
.bp-step { position: relative; padding: 34px 26px 26px; border-radius: var(--bp-radius-lg); background: var(--bp-surface); border: 1px solid var(--bp-line); box-shadow: var(--bp-shadow-1); transition: transform .3s var(--bp-ease), border-color .3s var(--bp-ease); }
.bp-step:hover { transform: translateY(-6px); border-color: var(--bp-line-2); }
.bp-step::before { counter-increment: bpstep; content: "0" counter(bpstep); position: absolute; top: -18px; left: 26px; font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 800; color: #0C1220; background: var(--bp-accent); border-radius: var(--bp-pill); padding: 6px 14px; box-shadow: 0 10px 22px rgba(255, 196, 0, .38); }
.bp-step h3 { font-size: 18px; margin: 6px 0 8px; }
.bp-step p { color: var(--bp-muted); font-size: 14.5px; margin: 0; }

/* Split */
.bp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 54px; align-items: center; }
.bp-split.reverse .bp-split-media { order: -1; }
.bp-list { list-style: none; margin: 20px 0 0; padding: 0; }
.bp-list li { display: flex; gap: 12px; padding: 12px 0; font-size: 15px; color: var(--bp-ink-2); border-bottom: 1px dashed var(--bp-line); }
.bp-list li:last-child { border-bottom: 0; }
.bp-list svg { width: 20px; height: 20px; color: var(--bp-ok); flex: none; margin-top: 2px; }
.bp-list b { color: var(--bp-ink); }
.bp-split-media { position: relative; }
.bp-media-card { border-radius: var(--bp-radius-lg); overflow: hidden; border: 1px solid var(--bp-line); background: var(--bp-surface); box-shadow: var(--bp-shadow-2); }
.bp-media-card img { width: 100%; height: auto; }

/* Band CTA */
.bp-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--bp-radius-xl);
    padding: clamp(36px, 5vw, 62px);
    background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .16), transparent 55%), linear-gradient(120deg, #0C1220 0%, #1B2A44 55%, #0C1220 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    flex-wrap: wrap;
}
.bp-band::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 0, .35), transparent 65%); animation: bp-float 10s ease-in-out infinite; }
.bp-band h2 { font-size: clamp(24px, 3vw, 36px); color: #fff; margin-bottom: 8px; }
.bp-band p { color: rgba(255, 255, 255, .74); margin: 0; max-width: 540px; }
.bp-band-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.bp-band .bp-btn-primary { background: var(--bp-accent); color: #0C1220; box-shadow: 0 14px 30px rgba(255, 196, 0, .3); }
.bp-band .bp-btn-primary:hover { background: var(--bp-accent-2); color: #0C1220; }
.bp-band .bp-btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.bp-band .bp-btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* FAQ */
.bp-faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.bp-faq-item { border: 1px solid var(--bp-line); border-radius: var(--bp-radius); background: var(--bp-surface); overflow: hidden; transition: border-color .25s var(--bp-ease), box-shadow .25s var(--bp-ease); }
.bp-faq-item.is-open { border-color: var(--bp-line-2); box-shadow: var(--bp-shadow-1); }
.bp-faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: 0; font: inherit; font-family: "Manrope", sans-serif; font-size: 16px; font-weight: 700; color: var(--bp-ink); text-align: left; cursor: pointer; }
.bp-faq-icon { position: relative; width: 22px; height: 22px; flex: none; }
.bp-faq-icon::before, .bp-faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--bp-brand); transform: translate(-50%, -50%); transition: transform .25s var(--bp-ease); }
.bp-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.bp-faq-item.is-open .bp-faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.bp-faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s var(--bp-ease); }
.bp-faq-answer-inner { padding: 0 22px 22px; color: var(--bp-muted); font-size: 15px; }
.bp-faq-item.is-open .bp-faq-answer { max-height: 640px; }

/* Final CTA */
.bp-final { padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 84px); }
.bp-final-box { text-align: center; max-width: 820px; margin: 0 auto; }
.bp-final-box h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 850; }
.bp-final-box p { color: var(--bp-muted); font-size: 18px; margin-bottom: 30px; }
.bp-final-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { margin-top: 0; border-top: 1px solid var(--bp-line); background: transparent; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding: 64px 0 44px; }
.footer-brand .brand-logo { height: 38px; margin-bottom: 18px; }
.footer-brand p { color: var(--bp-muted); font-size: 14px; max-width: 320px; }
.footer-title { font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--bp-ink); margin: 0 0 16px; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 11px; }
.footer-menu a, .footer-menu span { color: var(--bp-muted); font-size: 14px; }
.footer-menu a:hover { color: var(--bp-brand); }
.footer-apps { margin-top: 20px; }
.footer-apps-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bp-muted); margin-bottom: 12px; }
.footer-apps .bp-appstore img { height: 42px; }
.footer-bottom { border-top: 1px solid var(--bp-line); padding: 22px 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; color: var(--bp-muted); font-size: 13.5px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--bp-line); color: var(--bp-muted); background: var(--bp-surface); transition: color .2s var(--bp-ease), border-color .2s var(--bp-ease), transform .2s var(--bp-ease); }
.footer-social a:hover { color: var(--bp-brand); border-color: var(--bp-brand); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-status { color: var(--bp-muted); font-size: 12px; margin-top: 28px; display: inline-flex; gap: 10px; align-items: center; }
.footer-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--bp-ok); box-shadow: 0 0 0 4px var(--bp-ok-soft); }

/* ==========================================================================
   Cookie consent
   ========================================================================== */

.cookie-banner {
    position: fixed;
    left: 22px;
    bottom: 22px;
    transform: translateY(140%);
    z-index: 200;
    width: min(430px, calc(100% - 44px));
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--bp-radius-lg);
    background: var(--bp-surface);
    border: 1px solid var(--bp-line);
    box-shadow: var(--bp-shadow-2);
    opacity: 0;
    transition: transform .45s var(--bp-ease), opacity .45s var(--bp-ease);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
body:has(.buyesia-app-banner.is-visible) .cookie-banner { bottom: 104px; }
.cookie-banner-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bp-brand-soft); color: var(--bp-brand); flex: none; }
.cookie-banner-icon svg { width: 24px; height: 24px; }
.cookie-banner-copy b { display: block; font-family: "Manrope", sans-serif; font-size: 15px; margin-bottom: 3px; }
.cookie-banner-copy p { margin: 0; color: var(--bp-muted); font-size: 13px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; grid-column: 1 / -1; }

.cookie-modal { position: fixed; inset: 0; z-index: 210; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(8, 12, 22, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cookie-modal.is-open { display: flex; }
.cookie-dialog { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bp-surface); border: 1px solid var(--bp-line); border-radius: var(--bp-radius-lg); box-shadow: var(--bp-shadow-2); padding: 30px; animation: bp-pop .3s var(--bp-ease); }
.cookie-dialog h3 { font-size: 22px; }
.cookie-dialog > p { color: var(--bp-muted); font-size: 14px; }
.cookie-option { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--bp-line); }
.cookie-option b { display: block; font-size: 14.5px; }
.cookie-option span { display: block; color: var(--bp-muted); font-size: 13px; }
.cookie-switch { position: relative; width: 46px; height: 26px; flex: none; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--bp-line-2); transition: background-color .2s var(--bp-ease); pointer-events: none; }
.cookie-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s var(--bp-ease); }
.cookie-switch input:checked + i { background: var(--bp-brand); }
.cookie-switch input:checked + i::after { transform: translateX(20px); }
.cookie-switch input:disabled + i { opacity: .55; }
.cookie-dialog-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.cookie-dialog-actions .bp-btn { flex: 1; min-width: 150px; }

/* ==========================================================================
   Legal documents
   ========================================================================== */

.bp-doc-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 40px); }
.bp-doc-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 850; margin-bottom: 12px; }
.bp-doc-hero p { color: var(--bp-muted); font-size: 17px; max-width: 780px; margin: 0; }

.bp-doc-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding-bottom: clamp(64px, 8vw, 110px);
}
.bp-doc-layout--single { grid-template-columns: minmax(0, 1fr); }
.bp-doc-aside { position: sticky; top: 130px; }
.bp-doc-aside-title { display: block; font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--bp-muted); margin-bottom: 14px; }
.bp-doc-nav { display: grid; gap: 2px; }
.bp-doc-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--bp-muted); font-size: 14px; font-weight: 600; }
.bp-doc-nav a:hover { background: var(--bp-surface-2); color: var(--bp-ink); }

.bp-doc-main { max-width: 860px; min-width: 0; }
.bp-doc-section { padding: 26px 0; border-top: 1px solid var(--bp-line); scroll-margin-top: 130px; }
.bp-doc-section:first-child { border-top: 0; padding-top: 0; }
.bp-doc-main h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px; }
.bp-doc-main h3 { font-size: 18px; margin: 22px 0 8px; }
.bp-doc-main h4 { font-size: 15.5px; margin: 0 0 8px; color: var(--bp-ink); }
.bp-doc-main p, .bp-doc-main li { color: var(--bp-muted); font-size: 15.5px; line-height: 1.75; }
.bp-doc-main ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
.bp-doc-main a { color: var(--bp-brand); }

.bp-callout {
    background: var(--bp-surface-2);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    padding: 20px 22px;
    margin: 8px 0 20px;
}
.bp-callout p { margin: 0; }

@media (max-width: 900px) {
    .bp-doc-layout { grid-template-columns: 1fr; gap: 28px; }
    .bp-doc-aside { position: static; }
}

/* ==========================================================================
   Documentation hub
   ========================================================================== */

.bp-docs-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); }
.bp-docs-hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 850; margin: 16px 0 14px; max-width: 900px; }
.bp-docs-hero p { color: var(--bp-muted); font-size: 18px; max-width: 720px; margin: 0; }

.bp-docs-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    max-width: 560px;
    padding: 6px 8px 6px 18px;
    border-radius: var(--bp-pill);
    background: var(--bp-surface);
    border: 1px solid var(--bp-line);
    box-shadow: var(--bp-shadow-1);
}
.bp-docs-search svg { width: 20px; height: 20px; color: var(--bp-muted); flex: none; }
.bp-docs-search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--bp-ink); }

.bp-docs-section { margin-top: clamp(32px, 5vw, 56px); }
.bp-docs-h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 22px; }

.bp-docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.bp-docs-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.bp-docs-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px;
    border-radius: var(--bp-radius-lg);
    background: var(--bp-surface);
    border: 1px solid var(--bp-line);
    box-shadow: var(--bp-shadow-1);
    color: var(--bp-ink);
    transition: transform .22s var(--bp-ease), border-color .22s var(--bp-ease), box-shadow .22s var(--bp-ease);
}
.bp-docs-card:hover { transform: translateY(-4px); border-color: var(--bp-line-2); box-shadow: var(--bp-shadow-2); color: var(--bp-ink); }
.bp-docs-card-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--bp-brand-soft); color: var(--bp-brand); font-size: 20px; margin-bottom: 8px; }
.bp-docs-card-tag { font-size: 10.5px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--bp-muted); }
.bp-docs-card h3 { font-size: 17px; margin: 2px 0 0; }
.bp-docs-card p { color: var(--bp-muted); font-size: 14px; margin: 4px 0 0; }
.bp-docs-card--sm { padding: 18px; }
.bp-docs-card--sm .bp-docs-card-icon { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; }
.bp-docs-card--sm h3 { font-size: 15.5px; }

.bp-docs-cat-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.bp-docs-cat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bp-surface-2); color: var(--bp-ink-2); font-size: 20px; flex: none; }
.bp-docs-cat-head h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 4px; }
.bp-docs-cat-head p { color: var(--bp-muted); font-size: 14.5px; margin: 0; }

.bp-docs-empty { text-align: center; color: var(--bp-muted); padding: 30px 0; }
[data-docs-item].is-hidden, [data-docs-group].is-hidden { display: none; }

.bp-doc-meta { display: inline-block; margin-top: 14px; color: var(--bp-muted); font-size: 13px; }

/* ==========================================================================
   Blog
   ========================================================================== */

.bp-blog { padding: clamp(24px, 4vw, 40px) 0 clamp(64px, 8vw, 110px); }
.bp-blog-head { max-width: 720px; margin-bottom: 30px; }
.bp-blog-head h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 850; margin: 14px 0 10px; }
.bp-blog-head p { color: var(--bp-muted); font-size: 17px; margin: 0; }

.bp-blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.bp-blog-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--bp-pill); border: 1px solid var(--bp-line); background: var(--bp-surface); color: var(--bp-muted); font-size: 13.5px; font-weight: 650; }
.bp-blog-pill:hover { color: var(--bp-ink); border-color: var(--bp-line-2); }
.bp-blog-pill.is-active { background: var(--bp-ink); border-color: var(--bp-ink); color: var(--bp-bg); }
.bp-blog-pill span { font-size: 11.5px; opacity: .7; }

.bp-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.bp-blog-card { display: flex; flex-direction: column; border: 1px solid var(--bp-line); border-radius: var(--bp-radius-lg); overflow: hidden; background: var(--bp-surface); box-shadow: var(--bp-shadow-1); transition: transform .25s var(--bp-ease), box-shadow .25s var(--bp-ease), border-color .25s var(--bp-ease); }
.bp-blog-card:hover { transform: translateY(-5px); box-shadow: var(--bp-shadow-2); border-color: var(--bp-line-2); }
.bp-blog-media { display: block; aspect-ratio: 16 / 9; background: var(--bp-surface-2); overflow: hidden; }
.bp-blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--bp-ease); }
.bp-blog-card:hover .bp-blog-media img { transform: scale(1.04); }
.bp-blog-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--bp-brand), var(--bp-accent)); color: #fff; font-weight: 800; letter-spacing: .12em; }

.bp-blog-body { padding: 20px 22px 24px; }
.bp-blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12.5px; color: var(--bp-muted); }
.bp-blog-badge { display: inline-flex; padding: 4px 10px; border-radius: var(--bp-pill); background: var(--bp-brand-soft); color: var(--bp-brand); font-weight: 750; font-size: 11.5px; }
.bp-blog-card h2 { font-size: 19px; margin: 0 0 8px; }
.bp-blog-card h2 a { color: var(--bp-ink); }
.bp-blog-card h2 a:hover { color: var(--bp-brand); }
.bp-blog-excerpt { color: var(--bp-muted); font-size: 14.5px; margin: 0; }

.bp-blog-empty { padding: 46px 24px; text-align: center; border: 1px dashed var(--bp-line-2); border-radius: var(--bp-radius-lg); color: var(--bp-muted); }
.bp-blog-pagination { display: flex; justify-content: center; margin-top: 42px; }

.bp-blog-back { display: inline-flex; align-items: center; gap: 6px; color: var(--bp-muted); font-weight: 650; font-size: 14px; margin-bottom: 16px; }
.bp-blog-back:hover { color: var(--bp-brand); }
.bp-blog-article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; font-size: 13px; color: var(--bp-muted); }
.bp-blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.bp-blog-featured { border-radius: var(--bp-radius-lg); overflow: hidden; margin-bottom: 28px; border: 1px solid var(--bp-line); }
.bp-blog-featured img { width: 100%; height: auto; }
.bp-blog-content { font-size: 16.5px; line-height: 1.8; }
.bp-blog-content h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 34px 0 12px; }
.bp-blog-content h3 { font-size: 20px; margin: 26px 0 10px; }
.bp-blog-content p { color: var(--bp-muted); margin: 0 0 16px; }
.bp-blog-content ul, .bp-blog-content ol { color: var(--bp-muted); margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.bp-blog-content img { max-width: 100%; height: auto; border-radius: var(--bp-radius); margin: 10px 0; }
.bp-blog-content a { color: var(--bp-brand); }
.bp-blog-content blockquote { margin: 20px 0; padding: 16px 22px; background: var(--bp-surface-2); border: 1px solid var(--bp-line); border-radius: var(--bp-radius); color: var(--bp-ink-2); }
.bp-blog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--bp-line); }

.bp-blog-aside { position: sticky; top: 130px; }
.bp-blog-aside-title { display: block; font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--bp-muted); margin-bottom: 16px; }
.bp-blog-related { display: grid; gap: 14px; }
.bp-blog-related-item { display: flex; gap: 12px; align-items: center; }
.bp-blog-related-copy { flex: 1; min-width: 0; }
.bp-blog-related-category { display: block; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--bp-brand); margin-bottom: 3px; }
.bp-blog-related-title { display: block; font-size: 14px; font-weight: 650; color: var(--bp-ink); line-height: 1.4; }
.bp-blog-related-item time { display: block; font-size: 12px; color: var(--bp-muted); margin-top: 4px; }
.bp-blog-related-media { width: 72px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; background: var(--bp-surface-2); display: grid; place-items: center; }
.bp-blog-related-media img { width: 100%; height: 100%; object-fit: cover; }
.bp-blog-related-media span { font-size: 11px; font-weight: 800; color: var(--bp-muted); }
.bp-blog-related-empty { color: var(--bp-muted); font-size: 14px; }

@media (max-width: 1024px) {
    .bp-blog-layout { grid-template-columns: 1fr; gap: 32px; }
    .bp-blog-aside { position: static; }
}

/* Breadcrumb */
.bp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 13.5px; color: var(--bp-muted); }
.bp-breadcrumb a { color: var(--bp-muted); font-weight: 600; }
.bp-breadcrumb a:hover { color: var(--bp-brand); }
.bp-breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--bp-line-2); }
.bp-breadcrumb li:last-child::after { display: none; }

/* ==========================================================================
   Frontend auth (2FA)
   ========================================================================== */

.bp-auth { display: flex; justify-content: center; padding: clamp(40px, 7vw, 90px) 0 clamp(64px, 8vw, 110px); }
.bp-auth-card { width: 100%; max-width: 440px; background: var(--bp-surface); border: 1px solid var(--bp-line); border-radius: var(--bp-radius-lg); box-shadow: var(--bp-shadow-1); padding: clamp(24px, 4vw, 38px); }
.bp-auth-card h1 { font-size: 23px; margin: 16px 0 10px; }
.bp-auth-card p { color: var(--bp-muted); font-size: 14.5px; }
.bp-auth-strong { color: var(--bp-ink); font-weight: 700; }
.bp-auth-error { min-height: 18px; color: var(--bp-brand); font-weight: 600; font-size: 13px; margin: 0 0 8px; }

.bp-field { margin-bottom: 18px; }
.bp-field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 8px; color: var(--bp-ink-2); }
.bp-auth-input { position: relative; }
.bp-input { width: 100%; min-height: 50px; padding: 10px 16px; border: 1px solid var(--bp-line); border-radius: var(--bp-radius-sm); background: var(--bp-surface); color: var(--bp-ink); font: inherit; font-size: 16px; outline: none; }
.bp-input:focus { border-color: var(--bp-brand); box-shadow: 0 0 0 4px var(--bp-brand-soft); }
.bp-auth-resend { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); border: 1px solid var(--bp-line); background: var(--bp-surface-2); color: var(--bp-muted); border-radius: 9px; padding: 6px 10px; font-size: 12px; font-weight: 650; cursor: pointer; }
.bp-auth-resend:hover { color: var(--bp-brand); border-color: var(--bp-brand); }
.bp-field-error { color: var(--bp-brand); font-size: 13px; margin-top: 6px; }
.bp-checkbox { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--bp-ink-2); margin-bottom: 16px; }
.bp-checkbox input { width: 16px; height: 16px; accent-color: var(--bp-brand); }
.bp-btn-block { width: 100%; }
.bp-auth-back { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; font-size: 13.5px; color: var(--bp-muted); }
.bp-auth-back:hover { color: var(--bp-brand); }

/* ==========================================================================
   Error pages
   ========================================================================== */

.bp-error { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.bp-error-card { width: min(560px, 100%); text-align: center; background: var(--bp-surface); border: 1px solid var(--bp-line); border-radius: var(--bp-radius-xl); box-shadow: var(--bp-shadow-1); padding: clamp(28px, 5vw, 48px); }
.bp-error-brand img { height: 36px; width: auto; margin: 0 auto 18px; }
.bp-error-code { display: block; font-family: "Manrope", sans-serif; font-size: clamp(48px, 10vw, 84px); font-weight: 850; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; background: linear-gradient(120deg, var(--bp-brand), var(--bp-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bp-error-card h1 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 10px; }
.bp-error-card p { color: var(--bp-muted); font-size: 16px; margin-bottom: 26px; }
.bp-error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bp-error-help { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--bp-line); text-align: left; }
.bp-error-help h2 { font-size: 16px; margin-bottom: 10px; }
.bp-error-help a { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 8px 0; color: var(--bp-brand); font-size: 14px; font-weight: 600; }

/* ==========================================================================
   Scroll to top
   ========================================================================== */

.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bp-brand);
    color: #fff;
    box-shadow: 0 14px 30px rgba(226, 58, 46, .36);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s var(--bp-ease), transform .25s var(--bp-ease), visibility .25s;
}
.scroll-top.active { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { color: #fff; transform: translateY(-2px); }
.scroll-top i { font-size: 22px; line-height: 1; }

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--bp-ease), transform .8s var(--bp-ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal-left { transform: translate3d(-40px, 0, 0); }
.reveal-right { transform: translate3d(40px, 0, 0); }
.reveal-zoom { transform: scale(.95); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes bp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes bp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bp-shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes bp-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .bpl *, .bpl *::before, .bpl *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .header-nav { display: none; }
    .nav-menu-toggle { display: inline-flex; }
    .header-mega { display: none; }
    .header-mobile {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 0 clamp(20px, 5vw, 40px);
    }
    .site-header.nav-open .header-mobile { display: block; }
    .header-mobile-inner {
        max-width: 1200px;
        margin: 0 auto;
        background: var(--bp-surface);
        border: 1px solid var(--bp-line);
        border-radius: var(--bp-radius-lg);
        box-shadow: var(--bp-shadow-2);
        padding: 16px;
        max-height: 76vh;
        overflow-y: auto;
    }
    .header-mobile nav { display: grid; gap: 2px; margin-bottom: 14px; }
    .header-mobile nav a { padding: 12px 14px; border-radius: 12px; font-weight: 650; color: var(--bp-ink); }
    .header-mobile nav a:hover { background: var(--bp-surface-2); }
    .header-mobile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .header-mobile-grid .header-mega-item { padding: 12px; }
    .header-mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
    .header-mobile-actions .bp-btn { width: 100%; }

    .bp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .bp-hero-visual { order: -1; min-height: 420px; }
    .bp-float-1 { left: 0; }
    .bp-float-2 { right: 0; }
    .bp-split { grid-template-columns: 1fr; gap: 36px; }
    .bp-split.reverse .bp-split-media { order: 0; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 720px) {
    .site-topbar { display: none; }
    .header-inner { min-height: 58px; padding: 5px 6px 5px 16px; }
    .bpl:not(.no-header) .main { padding-top: 86px; }
    .header-mobile-grid { grid-template-columns: 1fr; }
    .bp-hero { padding-top: 24px; }
    .bp-hero-title { font-size: clamp(32px, 9vw, 44px); }
    .bp-hero-media { width: min(320px, 88%); }
    .bp-float { padding: 10px 12px; font-size: 11.5px; }
    .bp-float-3 { display: none; }
    .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .cookie-banner { grid-template-columns: auto 1fr; }
    .cookie-banner-actions { grid-column: 1 / -1; }
    .cookie-dialog { padding: 22px; }
    .bp-rates__track { animation-duration: 26s; }
}
