/* Positrom Galáctico — marco visual propio (tokens, órbitas y rayo gamma). */
:root {
    --pg-void: #040812;
    --pg-space: #07111f;
    --pg-nebula: #0a1a33;
    --pg-panel: rgba(10, 26, 51, 0.72);
    --pg-ion: #00ff9c;
    --pg-ion-dim: #0a8f5c;
    --pg-cyan: #14f1d9;
    --pg-cobalt: #1a6bff;
    --pg-plasma: #4d8cff;
    --pg-gamma: #e8fff6;
    --pg-text: #d7f0ff;
    --pg-muted: #7aa0b8;
    --pg-danger: #ff4d6d;
    --pg-ok: #00ff9c;
    --pg-line: rgba(20, 241, 217, 0.22);
    --pg-radius: 20px;
    --pg-font: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
    --pg-mono: "IBM Plex Mono", "ui-monospace", monospace;
    --pg-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --pg-input-bg: #061018;
    --pg-bubble-user: rgba(26, 107, 255, 0.22);
    --pg-bubble-assistant: rgba(0, 255, 156, 0.08);
    --pg-chat-font: 16px;
    --pg-chat-gap: 12px;
    --pg-chat-user-width: 70%;
    --pg-chat-assistant-width: 86%;
    --pg-chat-radius: 16px;
    --pg-surface: rgba(4, 8, 18, 0.55);
    --pg-surface-soft: rgba(4, 8, 18, 0.35);
    --pg-surface-muted: rgba(4, 8, 18, 0.45);
    --pg-inset: rgba(0, 0, 0, 0.22);
    --pg-dialog-bg: var(--pg-space);
    --pg-dialog-backdrop: rgba(2, 8, 12, 0.72);
    --pg-scrim: rgba(4, 8, 18, 0.86);
    --pg-file-badge-bg: #07111f;
    --pg-cloud-bg: rgba(7, 17, 31, 0.35);
    color-scheme: dark;
}

html[data-pg-theme="light"] {
    --pg-void: #f3f6fa;
    --pg-space: #e8eef5;
    --pg-nebula: #dce6f1;
    --pg-panel: rgba(255, 255, 255, 0.92);
    --pg-ion: #0b8f62;
    --pg-ion-dim: #087352;
    --pg-cyan: #0c7d88;
    --pg-cobalt: #1558d6;
    --pg-plasma: #1558d6;
    --pg-gamma: #122033;
    --pg-text: #163047;
    --pg-muted: #5b7388;
    --pg-danger: #c42345;
    --pg-ok: #0b8f62;
    --pg-line: rgba(18, 48, 71, 0.16);
    --pg-shadow: 0 16px 40px rgba(16, 40, 64, 0.12);
    --pg-input-bg: #ffffff;
    --pg-bubble-user: rgba(21, 88, 214, 0.12);
    --pg-bubble-assistant: #ffffff;
    --pg-surface: rgba(255, 255, 255, 0.94);
    --pg-surface-soft: rgba(255, 255, 255, 0.78);
    --pg-surface-muted: rgba(232, 238, 245, 0.96);
    --pg-inset: rgba(18, 48, 71, 0.06);
    --pg-dialog-bg: #ffffff;
    --pg-dialog-backdrop: rgba(16, 40, 64, 0.32);
    --pg-scrim: rgba(16, 40, 64, 0.48);
    --pg-file-badge-bg: #e8eef5;
    --pg-cloud-bg: rgba(255, 255, 255, 0.88);
    color-scheme: light;
}
html[data-pg-theme="light"] .pg-stars,
html[data-pg-theme="light"] .pg-nebula { opacity: 0.12; }
html[data-pg-theme="light"] .pg-banner-err { color: #8a1c32; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.pg-body {
    font-family: var(--pg-font);
    background: var(--pg-void);
    color: var(--pg-text);
    line-height: 1.55;
    overflow-x: hidden;
}
body.pg-body-chat-full,
body.pg-body-app:has(.pg-chat),
.pg-chat,
.pg-chat-main,
.pg-chat-side,
.pg-chat-form {
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

a { color: var(--pg-cyan); text-decoration: none; }
a:hover { color: var(--pg-ion); }
code { font-family: var(--pg-mono); font-size: 0.92em; color: var(--pg-gamma); }

.pg-stars, .pg-nebula {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
}
.pg-stars {
    background:
        radial-gradient(1px 1px at 12% 18%, #fff, transparent),
        radial-gradient(1px 1px at 40% 70%, #14f1d9, transparent),
        radial-gradient(1px 1px at 78% 22%, #00ff9c, transparent),
        radial-gradient(1.4px 1.4px at 88% 80%, #4d8cff, transparent),
        radial-gradient(1px 1px at 22% 88%, #fff, transparent),
        radial-gradient(1px 1px at 61% 40%, #e8fff6, transparent);
    animation: pg-twinkle 8s ease-in-out infinite;
    opacity: 0.7;
}
.pg-stars-dim { opacity: 0.35; }
.pg-nebula {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(26, 107, 255, 0.28), transparent 50%),
        radial-gradient(ellipse at 90% 20%, rgba(0, 255, 156, 0.12), transparent 42%),
        radial-gradient(ellipse at 50% 100%, rgba(20, 241, 217, 0.1), transparent 45%);
    animation: pg-breathe 14s ease-in-out infinite;
}
@keyframes pg-twinkle { 50% { opacity: 0.35; transform: translateY(-8px); } }
@keyframes pg-breathe { 50% { opacity: 0.7; transform: scale(1.04); } }

.pg-nav, main, .pg-foot, .pg-side, .pg-admin-main, .pg-auth-wrap { position: relative; z-index: 1; }

.pg-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 7vw;
    border-bottom: 1px solid var(--pg-line);
    backdrop-filter: blur(12px);
}
.pg-brand { display: flex; align-items: center; gap: 12px; color: var(--pg-gamma); font-weight: 800; letter-spacing: 0.14em; }
.pg-brand img {
    width: 44px;
    height: 44px;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 0 10px rgba(0, 255, 156, 0.45)) drop-shadow(0 0 22px rgba(26, 107, 255, 0.28));
}
.pg-brand-center { justify-content: center; margin-bottom: 18px; }
.pg-nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pg-nav-links a { color: var(--pg-gamma); font-weight: 600; }
.pg-inline { display: inline; }

.pg-hero {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(200px, 0.55fr);
    gap: 20px;
    align-items: center;
    padding: 8vh 7vw;
}
.pg-hero-copy { min-width: 0; max-width: none; }
.pg-kicker { letter-spacing: 0.22em; text-transform: uppercase; color: var(--pg-cyan); font-size: 0.78rem; }
.pg-hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.05; margin: 0 0 16px; }
.pg-hero h1 em { color: var(--pg-ion); font-style: normal; text-shadow: 0 0 24px rgba(0, 255, 156, 0.35); }
.pg-lead { color: var(--pg-muted); font-size: 1.15rem; max-width: 38rem; }
.pg-hero .pg-lead {
    max-width: none;
    width: 100%;
    line-height: 1.45;
}
.pg-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.pg-hero-mark { position: relative; height: 460px; display: grid; place-items: center; }
.pg-hero-logo {
    width: 248px;
    height: 248px;
    animation: pg-logo-float 6.4s ease-in-out infinite;
    filter: drop-shadow(0 0 28px rgba(0, 255, 156, 0.45)) drop-shadow(0 0 64px rgba(26, 107, 255, 0.32));
    z-index: 2;
}
.pg-hero-logo svg { width: 100%; height: 100%; display: block; }
.pg-orbit {
    position: absolute;
    border: 1px solid rgba(26, 107, 255, 0.45);
    border-radius: 50%;
    animation: pg-spin 18s linear infinite;
}
.pg-orbit-a { width: 340px; height: 340px; }
.pg-orbit-b { width: 430px; height: 270px; transform: rotate(18deg); animation-duration: 26s; border-color: rgba(0, 255, 156, 0.3); }
.pg-ray {
    position: absolute;
    width: 140%;
    height: 6px;
    background: linear-gradient(90deg, transparent, #00ff9c, #e8fff6, #1a6bff, transparent);
    transform: rotate(-32deg);
    filter: blur(0.3px);
    animation: pg-ray 2.8s ease-in-out infinite;
}
@keyframes pg-spin { to { transform: rotate(360deg); } }
@keyframes pg-pulse { 50% { transform: scale(1.04); } }
@keyframes pg-logo-float { 50% { transform: translateY(-8px); } }
@keyframes pg-ray { 50% { opacity: 0.45; filter: blur(1.2px); } }

.pg-section { padding: 72px 7vw; }
.pg-section h2 { font-size: 2rem; }
.pg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0; }
.pg-app-main, .pg-prose { padding: 32px 7vw 80px; }
.pg-prose { max-width: 44rem; margin-inline: auto; }
.pg-prose-wide { max-width: 52rem; }
.pg-prose-full { max-width: none; width: 100%; margin-inline: auto; }
.pg-body-full {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.pg-body-full main {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}
.pg-body-full .pg-prose-full {
    flex: 1;
    width: min(1100px, calc(100% - 10vw));
    max-width: 1100px;
    margin-inline: auto;
    padding: 48px 0 80px;
}
.pg-prose h2 { margin-top: 1.6em; font-size: 1.2rem; color: var(--pg-ion); }
.pg-prose h3 { margin-top: 1.2em; font-size: 1.05rem; }
.pg-prose ul, .pg-prose ol { padding-left: 1.2em; }
.pg-prose li { margin: 0.4em 0; }

.pg-card {
    background: var(--pg-panel);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    padding: 24px;
    box-shadow: var(--pg-shadow);
    backdrop-filter: blur(16px);
}
.pg-plan { max-width: 520px; }
.pg-plan-price { display: flex; align-items: baseline; gap: 10px; }
.pg-plan-amount { font-size: 4rem; color: var(--pg-ion); font-weight: 800; }
.pg-list { padding-left: 1.1rem; color: var(--pg-muted); }

.pg-btn {
    appearance: none;
    border: 1px solid var(--pg-cyan);
    background: transparent;
    color: var(--pg-gamma);
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.pg-btn:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(20, 241, 217, 0.25); }
.pg-btn-ion {
        background: linear-gradient(135deg, #00ff9c 0%, #14f1d9 48%, #3d8bff 100%);
        border-color: transparent;
        color: #041018;
        font-weight: 800;
        box-shadow: 0 0 28px rgba(0, 255, 156, 0.28);
    }
.pg-btn-ghost { border-color: var(--pg-line); color: var(--pg-text); }
.pg-btn-sm { padding: 6px 12px; font-size: 0.9rem; }
.pg-btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.pg-btn-danger {
    background: rgba(255, 77, 109, 0.18);
    border-color: var(--pg-danger);
    color: #ffd0d8;
    font-weight: 700;
}
.pg-btn-danger:hover { box-shadow: 0 0 22px rgba(255, 77, 109, 0.28); }
.pg-btn-danger-text { color: var(--pg-danger); }
.pg-btn-danger-text:hover { color: #ffd0d8; border-color: var(--pg-danger); }
.pg-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.pg-form { display: grid; gap: 14px; max-width: 560px; }
.pg-form-wide { max-width: 820px; width: min(820px, 100%); }
.pg-form-section { display: grid; gap: 12px; padding-top: 6px; }
.pg-form-section h2 { margin: 4px 0 0; font-size: 1.05rem; color: var(--pg-ion); }
.pg-form-row, .pg-form-row-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pg-form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.pg-field { display: grid; gap: 6px; color: var(--pg-muted); font-size: 0.92rem; }
.pg-legal-box {
    border: 1px solid var(--pg-line);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(26, 107, 255, 0.08);
    font-size: 0.9rem;
    line-height: 1.45;
}
.pg-auth-legal { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; margin-top: 18px; font-size: 0.85rem; }
.pg-auth-legal a { color: var(--pg-muted); }
.pg-dl { display: grid; gap: 8px; margin: 12px 0 18px; }
.pg-dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px; }
.pg-dl dt { color: var(--pg-muted); margin: 0; }
.pg-dl dd { margin: 0; }
.pg-chat-legal { padding: 0 12px 10px; font-size: 0.8rem; flex-shrink: 0; }
.pg-input, textarea.pg-input, select.pg-input {
    width: 100%;
    background: var(--pg-input-bg);
    color: var(--pg-text);
    border: 1px solid var(--pg-line);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
}
.pg-input:focus { outline: 2px solid var(--pg-ion); border-color: transparent; }
.pg-input:-webkit-autofill,
.pg-input:-webkit-autofill:hover,
.pg-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--pg-text);
    caret-color: var(--pg-text);
    box-shadow: 0 0 0 1000px var(--pg-input-bg) inset;
    transition: background-color 99999s ease-out;
}
.pg-password {
    position: relative;
    display: block;
}
.pg-password .pg-input { padding-right: 44px; }
.pg-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pg-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.pg-password-toggle:hover,
.pg-password-toggle:focus-visible { color: var(--pg-ion); }
.pg-password-toggle:focus-visible { outline: 2px solid var(--pg-ion); outline-offset: 1px; }
.pg-password-toggle.is-on { color: var(--pg-cyan); }
.pg-password-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pg-password-toggle .pg-i-eye[hidden],
.pg-password-toggle .pg-i-eye-off[hidden] { display: none; }
.pg-captcha { display: grid; gap: 8px; justify-items: start; }
.pg-captcha-img {
    display: block;
    width: 228px;
    height: 78px;
    border-radius: 12px;
    border: 1px solid var(--pg-line);
    background: #061018;
    cursor: pointer;
    user-select: none;
}
.pg-check { display: flex; gap: 8px; align-items: flex-start; }
.pg-check input { margin-top: 4px; flex-shrink: 0; }
.pg-terms-accept {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(20, 241, 217, 0.28);
    border-radius: 16px;
    background: rgba(20, 241, 217, 0.06);
}
.pg-terms-accept-head { display: grid; gap: 8px; }
.pg-terms-accept-head h2 { margin: 0; font-size: 1.15rem; }
.pg-check-terms {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    font-weight: 700;
}
.pg-terms-dialog {
    border: 1px solid var(--pg-line);
    border-radius: 18px;
    padding: 0;
    width: min(760px, calc(100vw - 24px));
    max-height: min(86vh, 820px);
    background: var(--pg-dialog-bg);
    color: var(--pg-text);
    box-shadow: var(--pg-shadow);
    color-scheme: inherit;
}
.pg-terms-dialog::backdrop { background: var(--pg-dialog-backdrop); }
.pg-terms-dialog-inner { display: grid; grid-template-rows: auto 1fr auto; max-height: min(86vh, 820px); }
.pg-terms-dialog-head,
.pg-terms-dialog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pg-line);
}
.pg-terms-dialog-foot { border-bottom: 0; border-top: 1px solid var(--pg-line); flex-wrap: wrap; }
.pg-terms-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.pg-terms-dialog-x {
    width: 36px;
    height: 36px;
    border: 1px solid var(--pg-line);
    border-radius: 999px;
    background: transparent;
    color: var(--pg-text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.pg-terms-dialog-body { overflow: auto; padding: 8px 16px 18px; }
.pg-terms-dialog-body .pg-prose { max-width: none; }
.pg-terms-dialog-body h1 { font-size: 1.35rem; }
.pg-confirm-dialog {
    border: 1px solid var(--pg-line);
    border-radius: 16px;
    padding: 0;
    width: min(480px, calc(100vw - 24px));
    background: var(--pg-dialog-bg);
    color: var(--pg-text);
    box-shadow: var(--pg-shadow);
    color-scheme: inherit;
}
.pg-confirm-dialog::backdrop { background: var(--pg-dialog-backdrop); }
.pg-confirm-dialog-inner { display: grid; grid-template-rows: auto 1fr auto; }
.pg-confirm-dialog-head,
.pg-confirm-dialog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pg-line);
}
.pg-confirm-dialog-foot { border-bottom: 0; border-top: 1px solid var(--pg-line); justify-content: flex-end; flex-wrap: wrap; }
.pg-confirm-dialog-head h2 { margin: 0; font-size: 1.05rem; }
.pg-confirm-dialog-body { padding: 12px 16px 16px; display: grid; gap: 10px; line-height: 1.55; }
.pg-confirm-dialog-body p { margin: 0; }
.pg-muted { color: var(--pg-muted); }
.pg-toolbar { display: flex; gap: 10px; margin: 12px 0 20px; }

.pg-banner { border-radius: 12px; padding: 10px 14px; margin: 12px 7vw; }
.pg-app-main .pg-banner, .pg-admin-main .pg-banner, .pg-auth-wrap .pg-banner { margin-left: 0; margin-right: 0; }
.pg-banner-ok { background: rgba(0, 255, 156, 0.12); border: 1px solid var(--pg-ion); }
.pg-banner-err { background: rgba(255, 77, 109, 0.12); border: 1px solid var(--pg-danger); color: var(--pg-text); }

.pg-pill {
    display: inline-block;
    border: 1px solid var(--pg-line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.85rem;
    color: var(--pg-cyan);
}
.pg-meter { height: 8px; background: var(--pg-input-bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--pg-line); }
.pg-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--pg-ion), var(--pg-cobalt)); }
.pg-quota { display: grid; gap: 6px; }
.pg-quota-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pg-quota-head strong { color: var(--pg-ion); }
.pg-quota-head b { margin-left: auto; color: var(--pg-cyan); font-variant-numeric: tabular-nums; }
.pg-quota-tokens { margin: 0; font-variant-numeric: tabular-nums; }
.pg-quota-compact .pg-quota-tokens { font-size: 0.92rem; }
.pg-quota .pg-banner { margin-top: 6px; }

.pg-table { width: 100%; border-collapse: collapse; }
.pg-table th, .pg-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--pg-line); vertical-align: top; }
.pg-table th { color: var(--pg-muted); font-weight: 600; font-size: 0.85rem; }

.pg-foot { display: flex; justify-content: space-between; gap: 16px; padding: 28px 7vw; border-top: 1px solid var(--pg-line); color: var(--pg-muted); flex-wrap: wrap; }
.pg-foot nav { display: flex; gap: 16px; }

.pg-auth-wrap { min-height: 100vh; display: grid; place-content: start center; padding: 32px 16px 64px; }

.pg-chat { display: grid; grid-template-columns: 280px 1fr; grid-template-rows: minmax(0, 1fr); min-height: calc(100vh - 90px); height: calc(100dvh - 90px); max-height: calc(100dvh - 90px); border-top: 1px solid var(--pg-line); overflow: hidden; }
.pg-chat-side { padding: 16px; border-right: 1px solid var(--pg-line); display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; }
.pg-chat-convs { display: flex; flex-direction: column; min-height: 0; flex: 1; gap: 6px; }
.pg-chat-convs-title { margin: 0; font-size: 0.92rem; color: var(--pg-ion); letter-spacing: 0.04em; }
.pg-chat-list { list-style: none; margin: 0; padding: 0; overflow: auto; min-height: 4rem; flex: 1; display: grid; gap: 4px; align-content: start; }
.pg-chat-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center; }
.pg-chat-item-title { display: block; padding: 8px 10px; border-radius: 10px; color: var(--pg-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-chat-item-title.is-on, .pg-chat-item-title:hover { background: rgba(26, 107, 255, 0.18); }
.pg-chat-item-edit {
    appearance: none;
    border: 0;
    background: none;
    color: var(--pg-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    padding: 4px 6px;
    border-radius: 8px;
}
.pg-chat-item-edit:hover { color: var(--pg-ion); background: rgba(0, 255, 156, 0.08); }
.pg-chat-item-input { width: 100%; padding: 6px 8px; font-size: 0.9rem; }
.pg-chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 0;
    flex-shrink: 0;
}
.pg-chat-current-title {
    margin: 0;
    min-width: 0;
    flex: 1;
    font-size: 1.05rem;
    color: var(--pg-gamma);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pg-chat-head-input { flex: 1; min-width: 0; }
.pg-chat-head-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pg-code {
    min-width: 0;
    border: 1px solid var(--pg-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--pg-surface);
}
.pg-code.is-folded .pg-code-bar { border-bottom: 0; }
.pg-code.is-folded .pg-code-panel { display: none; }
.pg-code-bundle {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.pg-code-bundle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px 5px 12px;
    border: 1px solid var(--pg-line);
    border-radius: 12px;
    background: rgba(0, 255, 156, 0.06);
}
.pg-code-bundle-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pg-ion);
}
.pg-code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px 5px 12px;
    border-bottom: 1px solid var(--pg-line);
    background: var(--pg-inset);
}
.pg-code-toggle .pg-i-open { display: none; }
.pg-code.is-open .pg-code-toggle .pg-i-fold { display: none; }
.pg-code.is-open .pg-code-toggle .pg-i-open { display: block; }
.pg-code-panel { min-width: 0; }
.pg-code-lang {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: var(--pg-muted);
}
.pg-code-actions { display: flex; gap: 4px; }
.pg-code-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--pg-cyan);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.pg-code-btn:hover { color: var(--pg-ion); background: rgba(0, 255, 156, 0.08); }
.pg-code-btn.is-ok,
#chat-copy-thread.is-ok { color: var(--pg-ion); }
.pg-code-btn svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pg-md .pg-code pre {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.pg-display-panel {
    border: 1px solid var(--pg-line);
    border-radius: 14px;
    background: var(--pg-panel);
    padding: 0;
    flex-shrink: 0;
}
.pg-display-panel summary {
    cursor: pointer;
    list-style: none;
    padding: 10px 12px;
    font-weight: 700;
    color: var(--pg-ion);
    font-size: 0.92rem;
}
.pg-display-panel summary::-webkit-details-marker { display: none; }
.pg-display-panel summary::after {
    content: "▾";
    float: right;
    color: var(--pg-muted);
    font-weight: 400;
}
.pg-display-panel[open] summary::after { content: "▴"; }
.pg-display-body { display: grid; gap: 10px; padding: 0 12px 12px; }
.pg-display-theme { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.pg-display-theme legend { padding: 0; color: var(--pg-muted); font-size: 0.92rem; }
.pg-theme-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pg-theme-switch button {
    appearance: none;
    border: 1px solid var(--pg-line);
    background: transparent;
    color: var(--pg-text);
    border-radius: 999px;
    padding: 6px 8px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.pg-theme-switch button.is-on {
    border-color: var(--pg-ion);
    color: var(--pg-ion);
    box-shadow: 0 0 12px rgba(0, 255, 156, 0.18);
}
.pg-display-panel .pg-field b {
    float: right;
    color: var(--pg-cyan);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.pg-display-panel input[type="range"] { width: 100%; accent-color: var(--pg-ion); }
.pg-chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.pg-chat-stream {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--pg-chat-gap);
    font-size: var(--pg-chat-font);
    scroll-behavior: smooth;
    transition: gap 0.12s ease, font-size 0.12s ease;
}
#chat-anchor { height: 1px; width: 100%; pointer-events: none; flex-shrink: 0; }
.pg-bubble {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: var(--pg-chat-radius);
    overflow-wrap: anywhere;
    transition: max-width 0.12s ease, border-radius 0.12s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.pg-bubble-user { align-self: flex-end; max-width: var(--pg-chat-user-width); background: var(--pg-bubble-user); }
.pg-bubble-assistant { align-self: flex-start; max-width: var(--pg-chat-assistant-width); background: var(--pg-bubble-assistant); border: 1px solid var(--pg-line); }
.pg-chat-form .pg-input { font-size: var(--pg-chat-font); transition: font-size 0.12s ease; }
.pg-md { display: grid; gap: 0.7em; min-width: 0; }
.pg-md > :first-child { margin-top: 0; }
.pg-md > :last-child { margin-bottom: 0; }
.pg-md h1, .pg-md h2, .pg-md h3 {
    margin: 0.2em 0 0;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: var(--pg-ion);
    text-wrap: pretty;
}
.pg-md h1 { font-size: 1.22em; }
.pg-md h2 { font-size: 1.1em; }
.pg-md h3 { font-size: 1.02em; color: var(--pg-cyan); }
.pg-md p { margin: 0; line-height: 1.58; text-wrap: pretty; }
.pg-md-lead { margin-top: 0.35em; }
.pg-md-lead strong { color: var(--pg-cyan); font-size: 1.02em; }
.pg-md ul, .pg-md ol { margin: 0; padding: 0; display: grid; gap: 0.42em; list-style: none; }
.pg-md li { line-height: 1.5; position: relative; }
.pg-md ul > li { padding-left: 1.15em; }
.pg-md ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pg-cyan);
    box-shadow: 0 0 8px rgba(20, 241, 217, 0.55);
}
.pg-md ol { counter-reset: pgmd; }
.pg-md ol > li { padding-left: 1.7em; counter-increment: pgmd; }
.pg-md ol > li::before {
    content: counter(pgmd) ".";
    position: absolute;
    left: 0;
    color: var(--pg-ion);
    font-weight: 700;
}
.pg-md strong { color: var(--pg-gamma); font-weight: 700; }
.pg-md em { color: var(--pg-cyan); font-style: italic; }
.pg-md code {
    font-size: 0.9em;
    background: var(--pg-surface-muted);
    border: 1px solid var(--pg-line);
    padding: 0.08em 0.38em;
    border-radius: 6px;
}
.pg-md pre {
    margin: 0;
    padding: 10px 12px;
    overflow: auto;
    border-radius: 12px;
    background: var(--pg-surface);
    border: 1px solid var(--pg-line);
}
.pg-md pre code { border: 0; padding: 0; background: none; }
.pg-md blockquote {
    margin: 0;
    padding: 0.15em 0 0.15em 0.9em;
    border-left: 3px solid var(--pg-ion);
    color: var(--pg-gamma);
}
.pg-md hr {
    border: 0;
    height: 1px;
    margin: 0.2em 0;
    background: linear-gradient(90deg, transparent, var(--pg-line), transparent);
}
.pg-md a { font-weight: 600; }
.pg-md a.pg-md-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-weight: 800;
    text-decoration: none;
    width: fit-content;
    max-width: 100%;
}
.pg-md p:has(> .pg-md-cta:only-child),
.pg-md p:has(> .pg-md-cta:last-child) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.pg-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--pg-line);
    border-radius: 12px;
}
.pg-md table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
}
.pg-md th, .pg-md td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--pg-line);
    text-align: left;
    vertical-align: top;
}
.pg-md th {
    color: var(--pg-ion);
    background: rgba(0, 255, 156, 0.06);
    font-weight: 700;
}
.pg-md tr:last-child td { border-bottom: 0; }
.pg-export {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.pg-export-btn {
    appearance: none;
    border: 1px solid var(--pg-line);
    background: var(--pg-surface-soft);
    color: var(--pg-cyan);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
.pg-export-btn:hover {
    color: var(--pg-ion);
    border-color: rgba(0, 255, 156, 0.45);
    background: rgba(0, 255, 156, 0.08);
}
.pg-export .pg-voice-replay { margin-top: 0; margin-left: 2px; }
.pg-export-drop { position: relative; }
.pg-export-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 8;
    min-width: 220px;
    display: grid;
    padding: 6px;
    border: 1px solid var(--pg-line);
    border-radius: 12px;
    background: var(--pg-space);
    box-shadow: var(--pg-shadow);
}
.pg-export-menu[hidden] { display: none; }
.pg-export-menu button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--pg-text);
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
}
.pg-export-menu button:hover { background: rgba(0, 255, 156, 0.08); color: var(--pg-ion); }
.pg-files { display: grid; gap: 10px; margin: 4px 0 12px; }
.pg-file {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--pg-line);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 255, 156, 0.08), rgba(26, 107, 255, 0.08));
}
.pg-file-badge {
    display: grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--pg-file-badge-bg);
    color: var(--pg-ion);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.pg-file-meta { min-width: 0; }
.pg-file-meta strong { display: block; color: var(--pg-gamma); }
.pg-file-meta span { display: block; color: var(--pg-muted); font-size: 0.82rem; }
.pg-file .pg-btn { white-space: nowrap; }
.pg-file.is-audio,
.pg-cloud-item.is-audio,
.pg-file.is-image,
.pg-cloud-item.is-image {
    grid-template-rows: auto auto;
}
.pg-file-thumb {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--pg-line);
    box-shadow: 0 0 0 1px rgba(0, 255, 156, 0.08);
    flex-shrink: 0;
}
.pg-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--pg-surface-muted);
}
.pg-file-preview {
    grid-column: 1 / -1;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--pg-line);
    max-height: min(420px, 70vh);
    background: var(--pg-surface-muted);
}
.pg-file-preview img {
    width: 100%;
    height: auto;
    max-height: min(420px, 70vh);
    object-fit: contain;
    display: block;
    vertical-align: middle;
}
.pg-file-preview:hover,
.pg-file-thumb:hover {
    border-color: rgba(0, 255, 156, 0.45);
}
.pg-audio {
    grid-column: 1 / -1;
    width: 100%;
    height: 40px;
    accent-color: var(--pg-ion);
}
.pg-cloud { display: grid; gap: 8px; }
.pg-cloud-title { margin: 0; font-size: 0.92rem; color: var(--pg-ion); letter-spacing: 0.04em; }
.pg-cloud-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-cloud-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--pg-line);
    border-radius: 14px;
    background: var(--pg-cloud-bg);
}
.pg-cloud-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}
.pg-cloud-actions .pg-btn-sm {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 0.82rem;
}
.pg-cloud-empty { color: var(--pg-muted); font-size: 0.86rem; padding: 4px 0; }
.pg-cloud-page { display: grid; gap: 16px; }
.pg-cloud-page .pg-actions { margin: 0; }
.pg-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) 36px 36px 36px auto; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--pg-line); align-items: center; flex-shrink: 0; }
.pg-chat-form #chat-input { min-height: 38px; max-height: 96px; padding: 8px 14px; resize: none; line-height: 1.4; }
.pg-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
}
.pg-icon-btn svg,
.pg-voice-replay svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#voice-stop svg,
.pg-voice-replay .pg-i-stop { fill: currentColor; stroke: none; }
.pg-icon-btn.is-on { border-color: var(--pg-ion); color: var(--pg-ion); box-shadow: 0 0 14px rgba(0, 255, 156, 0.25); }
.pg-icon-btn.is-speaking { border-color: var(--pg-danger); color: var(--pg-danger); box-shadow: 0 0 14px rgba(255, 77, 109, 0.22); }
.pg-send-btn { min-height: 36px; padding: 7px 16px; font-size: 0.92rem; }
.pg-voice-panel { margin: 0 12px 4px; padding: 14px 16px; border: 1px solid var(--pg-line); border-radius: 16px; background: var(--pg-panel); display: grid; gap: 10px; flex-shrink: 0; }
.pg-voice-panel[hidden] { display: none; }
.pg-voice-panel h3 { margin: 0; font-size: 1rem; color: var(--pg-ion); }
.pg-mic-meter { height: 8px; border-radius: 99px; background: rgba(122, 160, 184, 0.2); overflow: hidden; }
.pg-mic-meter i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--pg-cyan), var(--pg-ion)); transition: width 80ms linear; }
.pg-voice-replay { margin-top: 6px; background: none; border: 0; color: var(--pg-cyan); cursor: pointer; padding: 2px; width: 28px; height: 28px; display: inline-grid; place-items: center; }
.pg-voice-replay:hover { color: var(--pg-ion); }
.pg-voice-replay.is-on { color: var(--pg-danger); }
.pg-voice-replay .pg-i-stop { display: none; }
.pg-voice-replay.is-on .pg-i-speak { display: none; }
.pg-voice-replay.is-on .pg-i-stop { display: block; }
.pg-bubble-assistant,
.pg-bubble-user { display: grid; }
.pg-bubble-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}
.pg-bubble-copy {
    margin: 0;
    background: none;
    border: 0;
    color: var(--pg-cyan);
    cursor: pointer;
    padding: 2px;
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
}
.pg-bubble-copy:hover { color: var(--pg-ion); background: rgba(0, 255, 156, 0.08); }
.pg-bubble-copy.is-ok { color: var(--pg-ion); }
.pg-bubble-copy svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pg-export .pg-bubble-copy { margin-top: 0; }

.pg-body-admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); width: 100%; min-width: 0; min-height: 100vh; }
.pg-side {
    background: rgba(6, 20, 31, 0.9);
    border-right: 1px solid var(--pg-line);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}
.pg-side nav { display: grid; gap: 8px; }
.pg-side nav a { color: var(--pg-text); padding: 8px 10px; border-radius: 10px; }
.pg-side nav a:hover { background: rgba(26, 107, 255, 0.16); }
.pg-admin-main { padding: 16px 20px 40px; min-width: 0; width: 100%; max-width: none; }
.pg-body-admin.is-stats .pg-admin-main { padding: 12px 16px 28px; }
.pg-body-admin.is-stats .pg-admin-bar h1 { margin: 4px 0 10px; font-size: 1.35rem; }
.pg-body-admin.is-flush { height: 100dvh; overflow: hidden; }
.pg-body-admin.is-flush .pg-admin-main { padding: 0; display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: hidden; }
.pg-body-admin.is-flush .pg-admin-bar { padding: 12px 16px; margin: 0; }
.pg-body-admin.is-flush .pg-admin-bar h1 { margin: 0; }
.pg-body-admin.is-flush .pg-banner { margin: 8px 16px; }
.pg-body-admin.is-flush .pg-chat { flex: 1; min-height: 0; border-top: 0; }
.pg-body-chat-full { min-height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.pg-body-chat-full .pg-banner { margin: 8px 16px 0; flex-shrink: 0; }
.pg-body-chat-full .pg-chat { flex: 1; min-height: 0; height: auto; max-height: none; border-top: 0; }
.pg-body-app:has(.pg-chat) { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.pg-body-app:has(.pg-chat) .pg-nav { flex-shrink: 0; }
.pg-body-app:has(.pg-chat) .pg-app-main { flex: 1; min-height: 0; padding: 0; display: flex; flex-direction: column; }
.pg-body-app:has(.pg-chat) .pg-banner { margin: 8px 16px 0; flex-shrink: 0; }
.pg-body-app:has(.pg-chat) .pg-chat { flex: 1; min-height: 0; height: auto; max-height: none; border-top: 0; }
.pg-chat-quota { display: grid; gap: 6px; }
.pg-chat-quota-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.92rem; }
.pg-chat-quota-row span { color: var(--pg-muted); }
.pg-chat-quota-row strong { font-variant-numeric: tabular-nums; color: var(--pg-gamma); }
.pg-admin-bar { display: flex; justify-content: space-between; align-items: center; }
.pg-admin-bar h1 { margin: 8px 0 18px; font-size: 1.6rem; }
.pg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.pg-stat { background: var(--pg-panel); border: 1px solid var(--pg-line); border-radius: 16px; padding: 16px; }
.pg-stat span, .pg-stat small { color: var(--pg-muted); display: block; }
.pg-stat strong { font-size: 1.7rem; color: var(--pg-ion); }
.pg-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; }
.pg-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.pg-bar i { width: 100%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--pg-cobalt), #07111f); min-height: 6px; }
.pg-bars-ion .pg-bar i { background: linear-gradient(180deg, var(--pg-ion), #07111f); }
.pg-bar span { font-size: 0.7rem; color: var(--pg-muted); }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }

.pg-x10-badge {
    position: absolute;
    bottom: 18px;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--pg-ion);
    text-shadow: 0 0 28px rgba(0, 255, 156, 0.55);
    letter-spacing: 0.08em;
    margin: 0;
    animation: pg-pulse 4s ease-in-out infinite;
}
.pg-compare-wrap { overflow-x: auto; }
.pg-compare th.is-win, .pg-compare td.is-win {
    color: var(--pg-ion);
    font-weight: 800;
    background: rgba(0, 255, 156, 0.06);
}
.pg-compare th.is-win { box-shadow: inset 0 2px 0 var(--pg-ion); }
.pg-compare-note { margin-top: 16px; font-size: 0.88rem; }

.pg-side nav a.is-on { background: rgba(0, 255, 156, 0.12); color: var(--pg-ion); }
.pg-an-page { width: 100%; min-width: 0; }
.pg-an-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}
.pg-an-tabs a {
    border: 1px solid var(--pg-line);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--pg-text);
    font-size: 0.88rem;
}
.pg-an-tabs a.is-on, .pg-an-tabs a:hover {
    border-color: var(--pg-ion);
    color: var(--pg-ion);
    background: rgba(0, 255, 156, 0.08);
}
.pg-an-filters {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px 10px;
    align-items: end;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--pg-panel);
    border: 1px solid var(--pg-line);
    border-radius: 16px;
}
.pg-an-filters label { display: grid; gap: 4px; color: var(--pg-muted); font-size: 0.75rem; min-width: 0; }
.pg-an-filters .pg-input { min-width: 0; padding: 8px 10px; }
.pg-an-check { display: flex !important; flex-direction: row; align-items: center; gap: 8px; padding-bottom: 8px; }
.pg-an-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; grid-column: span 2; }
.pg-an-note { margin: 0 0 12px; font-size: 0.86rem; }
.pg-an-kpis {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.pg-an-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-an-mix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.pg-an-kpis article, .pg-an-mix-item {
    min-width: 0;
    background: var(--pg-panel);
    border: 1px solid var(--pg-line);
    border-radius: 14px;
    padding: 12px 14px;
}
.pg-an-kpis span, .pg-an-mix-item span, .pg-an-kpis small { color: var(--pg-muted); display: block; font-size: 0.75rem; }
.pg-an-kpis strong, .pg-an-mix-item strong { font-size: 1.28rem; color: var(--pg-ion); word-break: break-word; }
.pg-an-mix-item { border-top: 3px solid var(--c, var(--pg-ion)); }
.pg-an-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.pg-an-grid > * { min-width: 0; }
.pg-an-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-an-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-an-span2 { grid-column: span 2; }
.pg-an-grid-3 > .pg-an-span2 { grid-column: span 2; }
.pg-an-grid .pg-card h2, .pg-an-grid .pg-card h3 { margin: 0 0 10px; font-size: 1rem; color: var(--pg-gamma); }
.pg-an-svg { width: 100%; height: auto; display: block; }
.pg-an-donut { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); gap: 12px; align-items: center; }
.pg-an-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.85rem; }
.pg-an-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.pg-an-legend span { color: var(--pg-muted); }
.pg-an-hbars { display: grid; gap: 8px; }
.pg-an-hbar { display: grid; grid-template-columns: minmax(4rem, 7.5rem) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 0.85rem; }
.pg-an-hbar i { height: 8px; border-radius: 99px; min-width: 4px; }
.pg-an-hbar em { font-style: normal; color: var(--pg-cyan); }
.pg-an-heat { display: grid; gap: 3px; overflow-x: auto; }
.pg-an-heat-head, .pg-an-heat-row { display: grid; grid-template-columns: 18px repeat(24, minmax(14px, 1fr)); gap: 2px; align-items: center; }
.pg-an-heat-head span, .pg-an-heat-row span { color: var(--pg-muted); font-size: 0.65rem; text-align: center; }
.pg-an-heat-row b {
    display: grid; place-items: center; min-height: 18px; border-radius: 3px;
    background: var(--pg-ion); color: #041018; font-size: 0.6rem; font-weight: 600;
}
.pg-an-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg-an-funnel li { display: grid; gap: 2px; }
.pg-an-funnel-bar { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--pg-ion), var(--pg-cobalt)); }
.pg-an-funnel small { color: var(--pg-muted); }
.pg-an-triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pg-an-triple h3 { font-size: 0.82rem; color: var(--pg-muted); margin: 0 0 4px; }
.pg-an-dual-leg { color: var(--pg-muted); font-size: 0.85rem; margin: 0 0 8px; }
.pg-an-dual-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; }
.pg-an-dual-leg i.is-a { background: #14f1d9; }
.pg-an-dual-leg i.is-b { background: #4d8cff; }
.pg-an-dual-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pg-an-table-wrap { overflow-x: auto; }
.pg-an-table { font-size: 0.88rem; }
.pg-an-clickable tbody tr { cursor: pointer; }
.pg-an-clickable tbody tr:hover { background: rgba(26, 107, 255, 0.12); }
.pg-an-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pg-an-pages a { border: 1px solid var(--pg-line); border-radius: 8px; padding: 4px 8px; color: var(--pg-text); }
.pg-an-pages a.is-on { color: var(--pg-ion); border-color: var(--pg-ion); }
.pg-an-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg-an-timeline li { padding-left: 14px; border-left: 2px solid var(--pg-line); }
.pg-an-timeline li.is-event { border-left-color: var(--pg-ion); }
.pg-an-timeline time { display: block; color: var(--pg-muted); font-size: 0.8rem; }
.pg-an-pager { margin-bottom: 10px; max-width: 140px; }

@media (max-width: 1399px) {
    .pg-an-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pg-an-filters { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .pg-an-filter-actions { grid-column: span 2; }
}
@media (max-width: 1199px) {
    .pg-an-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-an-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .pg-hero, .pg-grid-3, .pg-chat, .pg-body-admin, .pg-stats, .pg-form-row, .pg-form-row-3, .pg-dl div { grid-template-columns: 1fr; }
    .pg-chat { grid-template-rows: auto minmax(0, 1fr); }
    .pg-split { grid-template-columns: 1fr 1fr; }
    .pg-an-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pg-an-grid, .pg-an-grid-3, .pg-an-dual-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-an-triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pg-side { position: relative; height: auto; }
    .pg-chat-side { max-height: 44vh; }
    .pg-chat-form { grid-template-columns: minmax(0, 1fr) 36px 36px 36px auto; }
    .pg-hero { padding-top: 40px; }
    .pg-nav { flex-direction: column; gap: 12px; }
    .pg-hero-mark { height: 320px; }
    .pg-hero-logo { width: 196px; height: 196px; }
}
@media (max-width: 760px) {
    .pg-split, .pg-an-kpis, .pg-an-mix, .pg-an-grid, .pg-an-grid-3, .pg-an-grid-4, .pg-an-triple, .pg-an-dual-charts, .pg-an-donut, .pg-an-filters { grid-template-columns: 1fr 1fr; }
    .pg-an-span2, .pg-an-grid-3 > .pg-an-span2, .pg-an-filter-actions { grid-column: span 2; }
}
@media (max-width: 639px) {
    .pg-split, .pg-an-kpis, .pg-an-mix, .pg-an-grid, .pg-an-grid-3, .pg-an-grid-4, .pg-an-triple, .pg-an-dual-charts, .pg-an-donut, .pg-an-filters { grid-template-columns: 1fr; }
    .pg-an-span2, .pg-an-grid-3 > .pg-an-span2, .pg-an-filter-actions { grid-column: auto; }
}

/* ============================================================
   Landing 2.0 — secciones nuevas y capa de movimiento
   ============================================================ */

/* Scroll reveal */
.pg-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease var(--pg-d, 0s), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--pg-d, 0s);
    will-change: opacity, transform;
}
.pg-reveal.is-in { opacity: 1; transform: none; }

/* Nav pegajosa del layout público */
.pg-nav-top {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(4, 8, 18, 0.55);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pg-nav-top.is-scrolled {
    background: rgba(4, 8, 18, 0.86);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}
html[data-pg-theme="light"] .pg-nav-top { background: rgba(243, 246, 250, 0.7); }
html[data-pg-theme="light"] .pg-nav-top.is-scrolled { background: rgba(243, 246, 250, 0.94); }

/* Palabra rotativa del hero */
.pg-hero-word-wrap { position: relative; display: inline-block; }
.pg-hero-word {
    display: inline-block;
    background: linear-gradient(90deg, var(--pg-ion), var(--pg-cyan), var(--pg-plasma), var(--pg-ion));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pg-gradient-slide 7s linear infinite;
    transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}
.pg-hero-word.is-out { opacity: 0; transform: translateY(-0.45em); filter: blur(6px); }
.pg-hero-word.is-in { animation: pg-gradient-slide 7s linear infinite; }
@keyframes pg-gradient-slide { to { background-position: 300% 0; } }
.pg-hero-caret {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    margin-left: 6px;
    vertical-align: -0.08em;
    background: var(--pg-ion);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 255, 156, 0.6);
    animation: pg-caret 1.1s steps(2) infinite;
}
@keyframes pg-caret { 50% { opacity: 0; } }

/* Lista bajo los CTAs del hero */
.pg-hero-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    color: var(--pg-muted);
    font-size: 0.92rem;
}
.pg-hero-mini li { position: relative; padding-left: 20px; }
.pg-hero-mini li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pg-ion);
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.7);
}

/* Tercera órbita del hero */
.pg-orbit-c {
    width: 500px;
    height: 500px;
    border-style: dashed;
    border-color: rgba(77, 140, 255, 0.22);
    animation-duration: 44s;
    animation-direction: reverse;
}

/* Indicador de scroll */
.pg-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    width: 26px;
    height: 44px;
    border: 2px solid var(--pg-line);
    border-radius: 999px;
    display: grid;
    justify-items: center;
    padding-top: 8px;
}
.pg-scroll-hint span {
    width: 4px;
    height: 9px;
    border-radius: 99px;
    background: var(--pg-ion);
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.7);
    animation: pg-scroll-dot 1.8s ease-in-out infinite;
}
@keyframes pg-scroll-dot {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}
.pg-hero { position: relative; }

/* Cinta marquee de confianza */
.pg-marquee {
    overflow: hidden;
    border-top: 1px solid var(--pg-line);
    border-bottom: 1px solid var(--pg-line);
    background: rgba(10, 26, 51, 0.4);
    backdrop-filter: blur(8px);
    padding: 13px 0;
    position: relative;
    z-index: 1;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pg-marquee-track {
    display: flex;
    align-items: center;
    gap: 34px;
    width: max-content;
    white-space: nowrap;
    animation: pg-marquee 30s linear infinite;
    color: var(--pg-muted);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}
.pg-marquee-track b { color: var(--pg-gamma); font-weight: 700; }
.pg-marquee-track i { color: var(--pg-ion); font-style: normal; text-shadow: 0 0 10px rgba(0, 255, 156, 0.6); }
.pg-marquee:hover .pg-marquee-track { animation-play-state: paused; }
@keyframes pg-marquee { to { transform: translateX(-50%); } }

/* Banda de cifras */
.pg-stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 56px;
    padding-bottom: 56px;
}
.pg-stat-big {
    text-align: center;
    padding: 26px 18px;
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    background: var(--pg-panel);
    backdrop-filter: blur(14px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pg-stat-big:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 156, 0.45);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 156, 0.12);
}
.pg-stat-big strong {
    display: block;
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: var(--pg-ion);
    text-shadow: 0 0 26px rgba(0, 255, 156, 0.4);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    margin-bottom: 8px;
}
.pg-stat-big > span { color: var(--pg-muted); font-size: 0.92rem; }

/* Sección partida: texto + demo */
.pg-split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.pg-checklist { list-style: none; padding-left: 0; display: grid; gap: 10px; margin: 18px 0 8px; }
.pg-checklist li { position: relative; padding-left: 30px; color: var(--pg-text); }
.pg-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 255, 156, 0.14);
    border: 1px solid var(--pg-ion);
    box-shadow: 0 0 12px rgba(0, 255, 156, 0.25);
}
.pg-checklist li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 0.5em;
    width: 8px;
    height: 5px;
    border-left: 2px solid var(--pg-ion);
    border-bottom: 2px solid var(--pg-ion);
    transform: rotate(-45deg);
}

/* Mockup del chat */
.pg-demo {
    border: 1px solid var(--pg-line);
    border-radius: 22px;
    background: rgba(6, 16, 24, 0.82);
    box-shadow: var(--pg-shadow), 0 0 60px rgba(26, 107, 255, 0.14);
    backdrop-filter: blur(18px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    animation: pg-float 7s ease-in-out infinite;
}
@keyframes pg-float { 50% { transform: translateY(-10px); } }
.pg-demo-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pg-line);
    background: rgba(0, 0, 0, 0.28);
}
.pg-demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(122, 160, 184, 0.4); }
.pg-demo-bar i:first-child { background: rgba(255, 77, 109, 0.7); }
.pg-demo-bar i:nth-child(2) { background: rgba(255, 196, 0, 0.65); }
.pg-demo-bar i:nth-child(3) { background: rgba(0, 255, 156, 0.65); }
.pg-demo-bar span {
    margin-left: 10px;
    font-family: var(--pg-mono);
    font-size: 0.75rem;
    color: var(--pg-muted);
}
.pg-demo-stream {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    overflow: hidden;
}
.pg-demo-msg {
    max-width: 84%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pg-demo-msg.is-on { opacity: 1; transform: none; }
.pg-demo-msg.is-user {
    align-self: flex-end;
    background: var(--pg-bubble-user);
    border: 1px solid rgba(26, 107, 255, 0.35);
}
.pg-demo-msg.is-bot {
    align-self: flex-start;
    background: var(--pg-bubble-assistant);
    border: 1px solid var(--pg-line);
}
.pg-demo-msg code {
    display: block;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(4, 8, 18, 0.6);
    border: 1px solid var(--pg-line);
    font-size: 0.8rem;
    white-space: pre;
    overflow-x: auto;
}
.pg-demo-typing {
    align-self: flex-start;
    display: inline-flex;
    gap: 5px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--pg-line);
    background: var(--pg-bubble-assistant);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pg-demo-typing.is-on { opacity: 1; }
.pg-demo-typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pg-cyan);
    animation: pg-typing 1.1s ease-in-out infinite;
}
.pg-demo-typing i:nth-child(2) { animation-delay: 0.15s; }
.pg-demo-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pg-typing { 40% { transform: translateY(-5px); opacity: 0.5; } }
.pg-demo-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 14px 14px;
    padding: 10px 8px 10px 16px;
    border: 1px solid var(--pg-line);
    border-radius: 999px;
    background: var(--pg-input-bg);
    color: var(--pg-muted);
    font-size: 0.88rem;
}
.pg-demo-form b {
    background: linear-gradient(135deg, #00ff9c 0%, #14f1d9 48%, #3d8bff 100%);
    color: #041018;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 999px;
}

/* Tarjetas de características */
.pg-features { margin-top: 30px; }
.pg-feature { position: relative; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.pg-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--pg-mx, 50%) var(--pg-my, 0%), rgba(0, 255, 156, 0.1), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.pg-feature:hover { transform: translateY(-6px); border-color: rgba(0, 255, 156, 0.4); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45); }
.pg-feature:hover::before { opacity: 1; }
.pg-feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(0, 255, 156, 0.16), rgba(26, 107, 255, 0.16));
    border: 1px solid var(--pg-line);
    box-shadow: 0 0 22px rgba(0, 255, 156, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pg-feature:hover .pg-feature-icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 30px rgba(0, 255, 156, 0.3); }
.pg-feature-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--pg-ion);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pg-feature h3 { margin: 0 0 8px; color: var(--pg-gamma); }
.pg-feature p { margin: 0; color: var(--pg-muted); }

/* Timeline de pasos */
.pg-timeline { position: relative; display: grid; gap: 26px; max-width: 760px; margin-top: 34px; }
.pg-timeline::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, var(--pg-ion), var(--pg-cobalt), transparent);
    opacity: 0.5;
}
.pg-tl-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.pg-tl-num {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.25rem;
    color: #041018;
    background: linear-gradient(135deg, var(--pg-ion), var(--pg-cyan));
    box-shadow: 0 0 26px rgba(0, 255, 156, 0.4);
    animation: pg-pulse 4s ease-in-out infinite;
}
.pg-tl-step .pg-card { transition: transform 0.3s ease, border-color 0.3s ease; }
.pg-tl-step .pg-card:hover { transform: translateX(6px); border-color: rgba(0, 255, 156, 0.4); }
.pg-tl-step h3 { margin: 0 0 6px; color: var(--pg-gamma); }
.pg-tl-step p { margin: 0; color: var(--pg-muted); }

/* Tarjetas versus con precio */
.pg-vs-card { display: flex; flex-direction: column; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.pg-vs-card:hover { transform: translateY(-6px); border-color: rgba(77, 140, 255, 0.5); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45); }
.pg-vs-price {
    margin: auto 0 0;
    padding-top: 14px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pg-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 77, 109, 0.7);
}

/* Casos de uso */
.pg-usecases { margin-top: 30px; }
.pg-usecase { display: flex; flex-direction: column; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.pg-usecase:hover { transform: translateY(-6px); border-color: rgba(20, 241, 217, 0.45); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45); }
.pg-usecase h3 { margin: 0 0 8px; color: var(--pg-ion); }
.pg-usecase p { margin: 0; color: var(--pg-muted); }
.pg-usecase-eg {
    margin-top: auto !important;
    padding-top: 14px;
    font-family: var(--pg-mono);
    font-size: 0.82rem;
    color: var(--pg-cyan) !important;
}

/* Fotos en los huecos */
.pg-media-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 40px;
    align-items: stretch;
    margin-top: 30px;
}
.pg-media-split .pg-timeline,
.pg-media-split .pg-faq { max-width: none; margin-top: 0; }
.pg-photo {
    margin: 0;
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--pg-line);
    background: #040812;
    box-shadow: var(--pg-shadow), 0 0 50px rgba(0, 255, 156, 0.08);
    min-height: 420px;
}
.pg-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.pg-photo:hover img { transform: scale(1.03); }
.pg-photo-tall { height: 100%; min-height: 520px; }
.pg-photo-sticky { position: sticky; top: 96px; }

/* Plan destacado */
.pg-plan-wrap {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: stretch;
    margin-top: 28px;
}
.pg-plan-wrap .pg-photo { min-height: 100%; }
.pg-plan-wrap .pg-plan { max-width: none; }
.pg-plan-featured {
    position: relative;
    max-width: 620px;
    width: 100%;
    background: var(--pg-panel);
    border-radius: 26px;
    padding: 36px;
    backdrop-filter: blur(18px);
    box-shadow: var(--pg-shadow), 0 0 70px rgba(0, 255, 156, 0.12);
    border: 1px solid transparent;
    background-clip: padding-box;
    overflow: hidden;
}
.pg-plan-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    padding: 1.5px;
    background: linear-gradient(130deg, var(--pg-ion), transparent 30%, var(--pg-cobalt) 55%, transparent 80%, var(--pg-cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: pg-border-spin 6s linear infinite;
    background-size: 300% 300%;
    pointer-events: none;
}
@keyframes pg-border-spin {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.pg-plan-badge {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #041018;
    background: linear-gradient(135deg, var(--pg-ion), var(--pg-cyan));
    box-shadow: 0 0 22px rgba(0, 255, 156, 0.35);
}
.pg-plan-featured .pg-plan-amount { font-size: 4.6rem; text-shadow: 0 0 34px rgba(0, 255, 156, 0.4); }
.pg-plan-period { color: var(--pg-muted); line-height: 1.25; }
.pg-plan-period small { font-size: 0.78rem; }
.pg-plan-featured .pg-btn { width: 100%; text-align: center; margin-top: 22px; }
.pg-plan-note { margin: 14px 0 0; text-align: center; font-size: 0.82rem; color: var(--pg-muted); }

/* FAQ */
.pg-faq { display: grid; gap: 12px; max-width: 820px; margin-top: 30px; }
.pg-faq-item {
    border: 1px solid var(--pg-line);
    border-radius: 16px;
    background: var(--pg-panel);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.pg-faq-item:hover { border-color: rgba(0, 255, 156, 0.35); }
.pg-faq-item[open] { border-color: rgba(0, 255, 156, 0.5); box-shadow: 0 0 30px rgba(0, 255, 156, 0.08); }
.pg-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    font-weight: 700;
    color: var(--pg-gamma);
    font-size: 1.02rem;
}
.pg-faq-item summary::-webkit-details-marker { display: none; }
.pg-faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--pg-ion);
    border-bottom: 2px solid var(--pg-ion);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    box-shadow: 2px 2px 6px rgba(0, 255, 156, 0.25);
}
.pg-faq-item[open] summary::after { transform: rotate(225deg); }
.pg-faq-body { padding: 0 22px 20px; }
.pg-faq-body p { margin: 0; color: var(--pg-muted); }

.pg-can-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}
.pg-can {
    padding: 20px 18px;
    min-height: 100%;
}
.pg-can h3 { margin: 0 0 8px; color: var(--pg-ion); font-size: 1.05rem; }
.pg-can p { margin: 0; color: var(--pg-muted); }
.pg-gallery-wrap {
    position: relative;
    margin-top: 32px;
    padding: 0 58px;
}
.pg-gallery-viewport {
    overflow: hidden;
    border-radius: 8px;
}
.pg-gallery {
    display: flex;
    width: 100%;
    gap: 22px;
    margin: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.pg-gallery-arrow,
.pg-lightbox-arrow {
    appearance: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--pg-line);
    border-radius: 50%;
    background: var(--pg-panel);
    color: var(--pg-gamma);
    cursor: pointer;
    box-shadow: var(--pg-shadow);
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.pg-gallery-arrow {
    position: absolute;
    top: calc(50% - 36px);
    z-index: 2;
    transform: translateY(-50%);
}
.pg-gallery-arrow.is-prev { left: 0; }
.pg-gallery-arrow.is-next { right: 0; }
.pg-gallery-arrow svg,
.pg-lightbox-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pg-gallery-arrow:hover,
.pg-lightbox-arrow:hover {
    color: var(--pg-ion);
    border-color: var(--pg-ion);
    box-shadow: 0 0 22px rgba(0, 255, 156, 0.22);
}
.pg-gallery-arrow:hover { transform: translateY(-50%) scale(1.06); }
.pg-gallery-arrow:disabled,
.pg-lightbox-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
    transform: translateY(-50%);
}
.pg-gallery-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}
.pg-gallery-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.pg-gallery-dot {
    appearance: none;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(122, 160, 184, 0.45);
    cursor: pointer;
}
.pg-gallery-dot.is-on {
    background: var(--pg-ion);
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.45);
    transform: scale(1.15);
}
.pg-gallery-count,
.pg-lightbox-count {
    margin: 0;
    color: var(--pg-muted);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
}
.pg-shot {
    margin: 0;
    flex: 0 0 calc(50% - 11px);
    min-width: 0;
    border: 1px solid var(--pg-line);
    border-radius: 22px;
    overflow: hidden;
    background: var(--pg-panel);
    box-shadow: var(--pg-shadow);
    display: flex;
    flex-direction: column;
}
.pg-shot-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #040812;
    cursor: zoom-in;
}
.pg-shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: top left;
    background: #040812;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.pg-shot:hover img { transform: scale(1.03); }
.pg-shot figcaption {
    padding: 14px 16px 16px;
    display: grid;
    gap: 4px;
}
.pg-shot figcaption strong { color: var(--pg-gamma); }
.pg-shot figcaption span { color: var(--pg-muted); font-size: 0.92rem; }
.pg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    padding: 72px 88px 36px;
    background: var(--pg-scrim);
    backdrop-filter: blur(10px);
}
.pg-lightbox[hidden] { display: none; }
.pg-lightbox img {
    max-width: min(1100px, 78vw);
    max-height: 72vh;
    width: auto;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--pg-line);
    box-shadow: var(--pg-shadow);
}
.pg-lightbox p {
    margin: 0;
    max-width: 52rem;
    text-align: center;
    color: var(--pg-muted);
}
.pg-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    appearance: none;
    border: 1px solid var(--pg-line);
    background: var(--pg-panel);
    color: var(--pg-gamma);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    z-index: 2;
}
.pg-lightbox-close:hover { color: var(--pg-ion); border-color: var(--pg-ion); }
.pg-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.pg-lightbox-arrow.is-prev { left: 22px; }
.pg-lightbox-arrow.is-next { right: 22px; }
.pg-lightbox-arrow:hover { transform: translateY(-50%) scale(1.06); }
body.pg-lightbox-on { overflow: hidden; }

/* CTA final */
.pg-cta-final { padding-bottom: 96px; }
.pg-cta-panel {
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--pg-line);
    border-radius: 30px;
    padding: 72px 7vw;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(0, 255, 156, 0.14), transparent 55%),
        radial-gradient(ellipse at 50% 120%, rgba(26, 107, 255, 0.18), transparent 55%),
        var(--pg-panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--pg-shadow);
}
.pg-cta-panel h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 10px 0 14px; }
.pg-cta-panel .pg-lead { margin-inline: auto; }
.pg-cta-panel .pg-hero-actions { justify-content: center; }
.pg-ray-wide {
    width: 130%;
    left: -15%;
    top: 26%;
    opacity: 0.5;
}

/* Footer enriquecido */
.pg-foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    width: 100%;
}
.pg-foot-col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.pg-foot-col h4 {
    margin: 0 0 2px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pg-cyan);
}
.pg-foot-col a { color: var(--pg-muted); }
.pg-foot-col a:hover { color: var(--pg-ion); }
.pg-foot-brand { display: flex; align-items: center; gap: 10px; color: var(--pg-gamma); font-weight: 800; letter-spacing: 0.14em; }
.pg-foot-brand img {
    width: 36px;
    height: 36px;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 0 10px rgba(0, 255, 156, 0.4));
}
.pg-foot-desc { margin: 0; max-width: 30ch; font-size: 0.9rem; }
.pg-foot-legal {
    width: 100%;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--pg-line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.82rem;
}

/* Presentación de inicio: texto + audio */
html.pg-intro-lock,
html.pg-intro-lock body { overflow: hidden; }
html.pg-intro-seen .pg-intro { display: none !important; }
.pg-intro {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 28px 7vw;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(26, 107, 255, 0.28), transparent 52%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 255, 156, 0.14), transparent 42%),
        #040812;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}
.pg-intro.is-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.pg-intro-stage {
    width: min(720px, 100%);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 10px;
}
.pg-intro-mark {
    position: relative;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
}
.pg-intro-mark img {
    width: 168px;
    height: 168px;
    z-index: 2;
    filter: drop-shadow(0 0 22px rgba(0, 255, 156, 0.45)) drop-shadow(0 0 48px rgba(26, 107, 255, 0.3));
}
.pg-intro-mark .pg-orbit-a { width: 200px; height: 200px; }
.pg-intro-mark .pg-orbit-b { width: 240px; height: 160px; }
.pg-intro-title {
    margin: 6px 0 0;
    font-size: clamp(1.8rem, 5vw, 3.1rem);
    line-height: 1.1;
    color: var(--pg-gamma);
    min-height: 2.3em;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.pg-intro-sub {
    margin: 0;
    color: var(--pg-muted);
    font-size: 1.12rem;
    max-width: 34rem;
    min-height: 1.7em;
    transition: opacity 0.35s ease;
}
.pg-intro-title.is-swap,
.pg-intro-sub.is-swap {
    opacity: 0;
    transform: translateY(8px);
}
.pg-intro-wave {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 36px;
    margin: 8px 0 4px;
}
.pg-intro-wave[hidden] { display: none; }
.pg-intro-wave i {
    display: block;
    width: 4px;
    height: 10px;
    border-radius: 99px;
    background: linear-gradient(180deg, #00ff9c, #1a6bff);
    transform-origin: center bottom;
}
.pg-intro.is-playing .pg-intro-wave i {
    animation: pg-intro-bar 0.9s ease-in-out infinite;
}
.pg-intro-wave i:nth-child(2) { animation-delay: .08s; }
.pg-intro-wave i:nth-child(3) { animation-delay: .16s; }
.pg-intro-wave i:nth-child(4) { animation-delay: .04s; }
.pg-intro-wave i:nth-child(5) { animation-delay: .2s; }
.pg-intro-wave i:nth-child(6) { animation-delay: .12s; }
.pg-intro-wave i:nth-child(7) { animation-delay: .24s; }
@keyframes pg-intro-bar {
    0%, 100% { height: 8px; opacity: 0.55; }
    50% { height: 34px; opacity: 1; }
}
.pg-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}
.pg-hero-voice {
    display: grid;
    gap: 10px;
    margin: 22px 0 4px;
    max-width: none;
}
.pg-hero-voice-btn {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 28rem);
    padding: 12px 16px;
    border: 1px solid var(--pg-line);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 255, 156, 0.1), rgba(26, 107, 255, 0.1));
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.pg-hero-voice-btn:hover {
    border-color: rgba(0, 255, 156, 0.45);
    box-shadow: 0 0 22px rgba(0, 255, 156, 0.18);
    transform: translateY(-1px);
}
.pg-hero-voice-btn.is-on {
    border-color: var(--pg-ion);
    box-shadow: 0 0 24px rgba(0, 255, 156, 0.22);
}
.pg-hero-voice-copy { display: grid; gap: 2px; min-width: 0; }
.pg-hero-voice-copy strong { color: var(--pg-gamma); }
.pg-hero-voice-copy span { color: var(--pg-muted); font-size: 0.88rem; }
.pg-hero-voice > p { margin: 0; color: var(--pg-muted); font-size: 0.98rem; }
.pg-hero-voice-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 28px;
    height: 22px;
    flex-shrink: 0;
}
.pg-hero-voice-eq i {
    flex: 1;
    height: 7px;
    border-radius: 99px;
    background: #00ff9c;
}
.pg-hero-voice-btn.is-on .pg-hero-voice-eq i {
    animation: pg-intro-bar 0.85s ease-in-out infinite;
}
.pg-hero-voice-eq i:nth-child(2) { animation-delay: .1s; }
.pg-hero-voice-eq i:nth-child(3) { animation-delay: .2s; }
.pg-hero-voice-eq i:nth-child(4) { animation-delay: .06s; }

/* Movimiento reducido: todo visible y quieto */
@media (prefers-reduced-motion: reduce) {
    .pg-reveal { opacity: 1; transform: none; transition: none; }
    .pg-marquee-track { animation: none; }
    .pg-demo { animation: none; }
    .pg-demo-msg, .pg-demo-typing { transition: none; }
    .pg-hero-caret, .pg-scroll-hint span, .pg-tl-num, .pg-orbit, .pg-hero-logo { animation: none; }
    .pg-hero-word { animation: none; color: var(--pg-ion); background: none; -webkit-background-clip: unset; background-clip: unset; }
    .pg-intro { transition: none; }
    .pg-intro-title, .pg-intro-sub { transition: none; min-height: 0; }
    .pg-intro.is-playing .pg-intro-wave i,
    .pg-hero-voice-btn.is-on .pg-hero-voice-eq i { animation: none; height: 16px; }
    .pg-gallery { transition: none; }
}

/* Responsive de lo nuevo */
@media (max-width: 1000px) {
    .pg-stats-band { grid-template-columns: repeat(2, 1fr); }
    .pg-split-hero,
    .pg-media-split,
    .pg-plan-wrap { grid-template-columns: 1fr; }
    .pg-photo-tall { min-height: 320px; max-height: 420px; }
    .pg-photo-sticky { position: static; }
    .pg-foot-grid { grid-template-columns: 1fr 1fr; }
    .pg-can-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .pg-scroll-hint { display: none; }
    .pg-orbit-c { width: 320px; height: 320px; }
}
@media (max-width: 639px) {
    .pg-stats-band { grid-template-columns: 1fr 1fr; }
    .pg-foot-grid { grid-template-columns: 1fr; }
    .pg-tl-step { grid-template-columns: 44px 1fr; gap: 12px; }
    .pg-tl-num { width: 44px; height: 44px; font-size: 1.05rem; }
    .pg-timeline::before { left: 21px; }
    .pg-plan-featured { padding: 26px; }
    .pg-plan-featured .pg-plan-amount { font-size: 3.4rem; }
    .pg-cta-panel { padding: 48px 6vw; }
    .pg-can-grid { grid-template-columns: 1fr; }
    .pg-gallery-wrap { padding: 0 46px; }
    .pg-shot { flex-basis: 100%; }
    .pg-lightbox { padding: 64px 16px 24px; }
    .pg-lightbox img { max-width: 94vw; max-height: 62vh; }
    .pg-lightbox-arrow { width: 40px; height: 40px; }
    .pg-lightbox-arrow.is-prev { left: 8px; }
    .pg-lightbox-arrow.is-next { right: 8px; }
    .pg-intro { padding: 20px 5vw; align-items: start; }
    .pg-intro-mark { width: 168px; height: 168px; }
    .pg-intro-mark img { width: 128px; height: 128px; }
    .pg-intro-mark .pg-orbit-a { width: 150px; height: 150px; }
    .pg-intro-mark .pg-orbit-b { width: 180px; height: 120px; }
    .pg-intro-title { min-height: 0; }
    .pg-intro-actions { flex-direction: column; width: 100%; }
    .pg-intro-actions .pg-btn { width: 100%; }
}

/* ============================================================
   Ajustes 2026-10-18: sin desbordamiento horizontal, menú móvil,
   selector de idioma y detalles de conversión
   ============================================================ */
html { overflow-x: hidden; }
body.pg-body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
.pg-stars, .pg-nebula { max-width: 100vw; overflow: hidden; }
.pg-hero { overflow: hidden; overflow: clip; }
.pg-hero-mark { max-width: 100%; }

/* Cabecera pública */
.pg-nav-top { gap: 16px; flex-direction: row; }
.pg-nav-top .pg-nav-links { flex-wrap: nowrap; gap: 16px; }
.pg-nav-top .pg-nav-links a { white-space: nowrap; }
.pg-theme-pop-trigger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--pg-line);
    border-radius: 12px;
    background: rgba(10, 26, 51, 0.45);
    color: var(--pg-gamma);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.pg-theme-pop-trigger:hover {
    border-color: var(--pg-ion);
    color: var(--pg-ion);
    box-shadow: 0 0 0 1px rgba(0, 255, 156, 0.12);
}
.pg-theme-pop-trigger.is-light-mode { color: #e8a317; }
.pg-theme-pop-trigger.is-light-mode:hover {
    color: #c98600;
    border-color: rgba(201, 134, 0, 0.55);
}
html[data-pg-theme="light"] .pg-theme-pop-trigger { background: rgba(255, 255, 255, 0.85); }
.pg-admin-bar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pg-chat-full-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 14px 0;
    flex-shrink: 0;
}
.pg-nav-links .pg-theme-pop-trigger { margin-right: 2px; }
.pg-auth-legal .pg-theme-pop-trigger { margin-right: 8px; }

.pg-lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--pg-line); border-radius: 999px; }
.pg-lang a { padding: 3px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--pg-muted) !important; }
.pg-lang a.is-on { background: rgba(0, 255, 156, 0.16); color: var(--pg-gamma) !important; }
.pg-nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--pg-line);
    border-radius: 12px;
    background: rgba(10, 26, 51, 0.5);
    cursor: pointer;
    padding: 11px 10px;
    flex-direction: column; justify-content: space-between;
}
.pg-nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--pg-gamma); transition: transform 0.25s ease, opacity 0.2s ease; }
html.pg-nav-open .pg-nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
html.pg-nav-open .pg-nav-toggle span:nth-child(2) { opacity: 0; }
html.pg-nav-open .pg-nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1100px) {
    .pg-nav-top { flex-direction: row !important; padding: 12px 5vw; flex-wrap: nowrap; }
    .pg-nav-toggle { display: flex; }
    .pg-nav-top .pg-nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 5vw 20px;
        background: rgba(4, 8, 18, 0.97);
        border-bottom: 1px solid var(--pg-line);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    html[data-pg-theme="light"] .pg-nav-top .pg-nav-links { background: rgba(243, 246, 250, 0.98); }
    html.pg-nav-open .pg-nav-top .pg-nav-links { display: flex; }
    html.pg-nav-open .pg-nav-top { background: #040812; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 200; }
    html.pg-nav-open .pg-nav-top .pg-nav-links { background: #040812; will-change: transform; transform: translateZ(0); }
    html[data-pg-theme="light"].pg-nav-open .pg-nav-top,
    html[data-pg-theme="light"].pg-nav-open .pg-nav-top .pg-nav-links { background: #f3f6fa; }
    .pg-nav-top .pg-nav-links > a { padding: 11px 4px; border-bottom: 1px solid var(--pg-line); }
    .pg-nav-top .pg-nav-links > a.pg-btn { margin-top: 10px; text-align: center; border-bottom: 0; padding: 12px; }
    .pg-nav-top .pg-lang { align-self: flex-start; margin-top: 10px; }
}

/* Hero: titular sin palabra rotativa */
.pg-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--pg-ion), var(--pg-cyan), var(--pg-plasma)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 639px) {
    .pg-hero { min-height: auto; padding-top: 28px; }
    .pg-hero-mark { height: 220px; }
    .pg-orbit-c { width: 260px !important; height: 260px !important; }
    .pg-compare-wrap { overflow-x: auto; }
}
.pg-compare-note { font-size: 0.82rem; margin: 14px 4px 0; }

/* Formularios cortos (registro y facturación) */
.pg-form-note { font-size: 0.9rem; }
.pg-trial-banner { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.pg-trial-banner p { margin: 0; }
.pg-upgrade-cta { display: inline-flex; margin-top: 12px; }


/* Marca POSITROM AI y titular principal del hero */
.pg-brand-name { white-space: nowrap; }
.pg-brand-ai { font-weight: 900; margin-left: 0.18em; color: var(--pg-ion); text-shadow: 0 0 14px rgba(0, 255, 156, 0.45); }
html[data-pg-theme="light"] .pg-brand-ai { text-shadow: none; }
.pg-hero h1.pg-hero-title { font-size: clamp(2.3rem, 6.2vw, 5.2rem); line-height: 1.02; letter-spacing: -0.01em; font-weight: 900; text-transform: uppercase; margin: 0 0 14px; overflow-wrap: break-word; }
.pg-hero-sub { font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.2; margin: 0 0 16px; color: var(--pg-gamma); }
.pg-hero-sub em { font-style: normal; background: linear-gradient(90deg, var(--pg-ion), var(--pg-cyan), var(--pg-plasma)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 639px) {
    .pg-hero h1.pg-hero-title { font-size: clamp(2.1rem, 10.5vw, 2.9rem); }
    .pg-brand-name { letter-spacing: 0.1em; }
}
