/* ==========================================================================
   Programas para Windows (/programas y /programas/{slug})
   Fondo oscuro de la marca + guiños a Windows (ventanas, barra de tareas).
   Cada programa tiñe su ficha con --c (su color de acento).
   ========================================================================== */
:root {
    --pg-bg: #05070e;
    --pg-bg2: #0a0f1d;
    --pg-ink: #f2f6ff;
    --pg-mute: rgba(226, 236, 255, .64);
    --pg-faint: rgba(226, 236, 255, .4);
    --pg-line: rgba(255, 255, 255, .08);
    --pg-cyan: #00d4ff;
    --pg-green: #22e39a;
    --pg-amber: #fbbf24;
    --pg-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---- Cabecera ---- */
.pg-hero {
    --c: #6d63f5;
    position: relative;
    overflow: hidden;
    padding: 100px 0 90px;
    background:
        radial-gradient(50% 60% at 80% 30%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%),
        radial-gradient(45% 55% at 0% 100%, rgba(0, 212, 255, .12), transparent 70%),
        var(--pg-bg);
    isolation: isolate;
}
.pg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 80%);
    mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 80%);
}
.pg-hero-glow {
    position: absolute;
    right: -10%;
    top: 10%;
    width: 640px;
    height: 640px;
    max-width: 90vw;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 65%);
    filter: blur(60px);
    opacity: .55;
    z-index: -1;
    animation: pg-breathe 9s ease-in-out infinite;
}
@keyframes pg-breathe { 50% { transform: scale(1.12); opacity: .8; } }

.pg-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    margin-bottom: 24px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--pg-ink);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .14);
}
.pg-pill i { color: var(--pg-cyan); font-size: 14px; }

.pg-title {
    color: var(--pg-ink);
    font-weight: 700;
    font-size: clamp(36px, 5.2vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 0 0 20px;
    text-wrap: balance;
}
.pg-grad {
    background: linear-gradient(100deg, var(--pg-cyan), #8b7bff 55%, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pg-lead {
    color: var(--pg-mute);
    font-size: 18px;
    line-height: 1.65;
    max-width: 560px;
    margin: 0 0 30px;
    text-wrap: pretty;
}
@media (max-width: 991px) { .pg-lead { margin-left: auto; margin-right: auto; } }
.pg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
@media (max-width: 991px) { .pg-hero-actions { justify-content: center; } }
.pg-hero .breadcrumb-style-01 ul li,
.pg-hero .breadcrumb-style-01 ul li a { color: var(--pg-faint); }
.pg-hero .breadcrumb-style-01 ul li a:hover { color: var(--pg-cyan); }

/* ---- Botones ---- */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c, #6d63f5) 90%, #fff 10%), color-mix(in srgb, var(--c, #6d63f5) 75%, #000 25%));
    box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--c, #6d63f5) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .4s var(--pg-ease), box-shadow .4s var(--pg-ease), filter .3s;
}
.pg-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.pg-btn:focus-visible { outline: 2px solid var(--pg-cyan); outline-offset: 3px; }
.pg-btn-ghost {
    color: var(--pg-ink);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: none;
}
.pg-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.pg-btn-sm { padding: 11px 18px; font-size: 14px; border-radius: 12px; }
.pg-btn-xl { padding: 16px 28px 16px 24px; text-align: left; }
.pg-btn-xl > i { font-size: 22px; }
.pg-btn-xl small { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; opacity: .75; }

/* ---- Ventana de Windows dibujada ---- */
.pg-desk {
    position: relative;
    height: 400px;
    max-width: 560px;
    margin: 0 auto;
}
.pg-win {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(18, 22, 38, .82);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .4);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.pg-win-back {
    left: 0; top: 10px;
    width: 62%; height: 230px;
    opacity: .55;
    transform: rotate(-3deg);
}
.pg-win-front {
    right: 0; top: 70px;
    width: 82%;
    animation: pg-float 7s ease-in-out infinite;
}
@keyframes pg-float { 50% { transform: translateY(-8px); } }
.pg-win-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 0 0 12px;
    font-size: 12px;
    color: var(--pg-mute);
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid var(--pg-line);
}
.pg-win-bar img { width: 16px; height: 16px; }
.pg-win-bar span { flex: 1; }
/* minimizar · maximizar · cerrar, al estilo Windows */
.pg-win-bar i {
    position: relative;
    width: 44px;
    height: 100%;
    flex: 0 0 44px;
}
.pg-win-bar i::before {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
}
.pg-win-bar i:nth-of-type(1)::before { width: 10px; height: 1px; background: var(--pg-mute); }
.pg-win-bar i:nth-of-type(2)::before { width: 9px; height: 9px; border: 1px solid var(--pg-mute); }
.pg-win-bar i:nth-of-type(3)::before,
.pg-win-bar i:nth-of-type(3)::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 12px; height: 1px;
    background: var(--pg-mute);
    transform: translate(-50%, -50%) rotate(45deg);
}
.pg-win-bar i:nth-of-type(3)::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pg-win-body { padding: 18px; }
.pg-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pg-files span {
    height: 52px;
    border-radius: 8px;
    background: linear-gradient(160deg, rgba(251, 191, 36, .5), rgba(251, 191, 36, .2));
}
.pg-mock { display: flex; gap: 16px; min-height: 230px; }
.pg-mock-side { display: flex; flex-direction: column; gap: 10px; width: 42px; }
.pg-mock-side b { height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.pg-mock-side b.on { background: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 50%, transparent); }
.pg-mock-main {
    flex: 1;
    border-radius: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--pg-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pg-mock-main small { color: var(--pg-faint); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.pg-mock-main strong {
    display: block;
    color: var(--pg-ink);
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    margin: 4px 0 14px;
    text-shadow: 0 0 30px color-mix(in srgb, var(--c) 60%, transparent);
}
.pg-mock-main strong.pg-mock-name { font-size: 20px; line-height: 1.3; letter-spacing: 0; }
.pg-mock-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 16px; }
.pg-mock-bar span {
    display: block;
    height: 100%;
    width: 64%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 50%, #fff));
    animation: pg-progress 12s linear infinite;
}
@keyframes pg-progress { from { width: 72%; } to { width: 18%; } }
.pg-mock-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-mock-chips em {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 7px;
    color: var(--pg-mute);
    background: rgba(255, 255, 255, .06);
}
.pg-mock-chips em:first-child { color: #fff; background: color-mix(in srgb, var(--c) 60%, transparent); }
.pg-mock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pg-mock-list li { display: flex; gap: 10px; align-items: center; color: var(--pg-ink); font-size: 14px; }
.pg-mock-list i { color: var(--c); }

.pg-taskbar {
    position: absolute;
    left: 6%; right: 6%; bottom: 0;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    background: rgba(20, 24, 40, .85);
    border: 1px solid var(--pg-line);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.pg-taskbar > i { color: #4cc2ff; font-size: 18px; margin-right: 6px; }
.pg-taskbar span {
    position: relative;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    background: color-mix(in srgb, var(--c) 30%, transparent);
}
.pg-taskbar span img { width: 22px; height: 22px; }
.pg-taskbar span.on { background: rgba(255, 255, 255, .1); }
.pg-taskbar span.on::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 50%;
    width: 14px; height: 3px;
    margin-left: -7px;
    border-radius: 3px;
    background: #4cc2ff;
}
.pg-taskbar time { position: absolute; right: 14px; font-size: 11px; color: var(--pg-mute); font-variant-numeric: tabular-nums; }
.pg-desk-solo { height: auto; }
.pg-desk-solo .pg-win-front { position: relative; width: 100%; top: 0; }

/* ---- Franja de confianza ---- */
.pg-trust {
    background: var(--pg-bg);
    border-top: 1px solid var(--pg-line);
    border-bottom: 1px solid var(--pg-line);
}
.pg-trust ul {
    list-style: none;
    margin: 0;
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 34px;
}
.pg-trust li { display: flex; align-items: center; gap: 9px; color: var(--pg-mute); font-size: 14px; font-weight: 500; }
.pg-trust i { color: var(--pg-cyan); }

/* ---- Zonas ---- */
.pg-zone { background: var(--pg-bg); padding: 80px 0; position: relative; }
.pg-zone + .pg-zone { padding-top: 0; }
.pg-zone-steps { background: var(--pg-bg2); padding-top: 80px !important; }
.pg-zone-plans { padding-top: 80px !important; background: linear-gradient(180deg, var(--pg-bg2), var(--pg-bg)); }
.pg-zone-more { padding-top: 80px !important; }
.pg-section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.pg-section-head h2, .pg-h2 {
    color: var(--pg-ink);
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.12;
    margin-bottom: 14px;
}
.pg-section-head p { color: var(--pg-mute); font-size: 17px; margin: 0; }
.pg-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--c, var(--pg-cyan));
}

/* ---- Filtros ---- */
.pg-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 40px;
    padding: 5px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--pg-line);
}
.pg-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pg-mute);
    background: transparent;
    transition: background .3s, color .3s;
}
.pg-tabs button b { font-size: 11px; padding: 1px 7px; border-radius: 100px; background: rgba(255, 255, 255, .08); color: var(--pg-ink); }
.pg-tabs button:hover { color: var(--pg-ink); }
.pg-tabs button.is-on { color: #fff; background: rgba(255, 255, 255, .1); }

/* ---- Tarjetas ---- */
/* columnas de ancho acotado y centradas: con pocos programas no queda un hueco a la derecha */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 380px)); justify-content: center; gap: 24px; }
.pg-card {
    --c: #6d63f5;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: 22px;
    background:
        radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%),
        linear-gradient(170deg, #10152a, #0a0d1a);
    border: 1px solid var(--pg-line);
    transition: transform .5s var(--pg-ease), border-color .4s, box-shadow .5s var(--pg-ease);
    animation: pg-in .8s var(--pg-ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}
.pg-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--c) 45%, transparent);
    box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--c) 55%, transparent);
}
.pg-card[hidden] { display: none; }
@keyframes pg-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: none; } }
/* toda la tarjeta lleva a la ficha; los botones quedan por encima */
.pg-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pg-card-actions { position: relative; z-index: 2; }
.pg-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }

.pg-icon {
    width: 72px; height: 72px;
    flex: 0 0 72px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 20px;
    background: color-mix(in srgb, var(--c) 14%, #0b1020);
    border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
    box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--c) 70%, transparent);
    transition: transform .6s var(--pg-ease);
}
.pg-card:hover .pg-icon { transform: rotate(-6deg) scale(1.05); }
.pg-icon img { width: 78%; height: 78%; object-fit: contain; }
.pg-icon span { font-size: 32px; font-weight: 800; color: #fff; }
.pg-icon-xl { width: 96px; height: 96px; flex-basis: 96px; border-radius: 26px; }
.pg-icon-xl span { font-size: 44px; }

.pg-badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pg-badge-free { color: var(--pg-green); background: rgba(34, 227, 154, .12); border: 1px solid rgba(34, 227, 154, .35); }
.pg-badge-paid { color: color-mix(in srgb, var(--c) 60%, #fff); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.pg-badge-soon { color: var(--pg-amber); background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .35); }

.pg-card-name { color: var(--pg-ink); font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin: 0 0 6px; }
.pg-card-tag { color: var(--pg-mute); font-size: 15px; line-height: 1.55; margin: 0 0 18px; }
.pg-card-feats { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.pg-card-feats li { display: flex; gap: 10px; align-items: flex-start; color: rgba(226, 236, 255, .8); font-size: 14px; line-height: 1.45; }
.pg-card-feats i { color: var(--c); margin-top: 3px; }
.pg-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: auto;
    padding: 16px 0;
    border-top: 1px solid var(--pg-line);
    font-size: 12px;
    color: var(--pg-faint);
}
.pg-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pg-card-meta i { color: #4cc2ff; }
.pg-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pg-more { color: var(--pg-ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pg-more i { transition: transform .4s var(--pg-ease); }
.pg-more:hover { color: var(--c); }
.pg-more:hover i { transform: translateX(4px); }

/* ---- Pasos de instalación ---- */
.pg-steps {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: none;
}
.pg-steps li {
    padding: 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--pg-line);
}
.pg-steps b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--pg-cyan), #6d63f5);
}
.pg-steps h3 { color: var(--pg-ink); font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.pg-steps p { color: var(--pg-mute); font-size: 14px; line-height: 1.55; margin: 0; }
.pg-steps-col { grid-template-columns: 1fr; gap: 12px; }
.pg-steps-col li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.pg-steps-col b { flex: 0 0 38px; margin: 0; background: color-mix(in srgb, var(--c, #6d63f5) 70%, #000); }
.pg-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 820px;
    margin: 0 auto;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pg-mute);
    background: rgba(76, 194, 255, .07);
    border: 1px solid rgba(76, 194, 255, .2);
}
.pg-note i { color: #4cc2ff; margin-top: 4px; }
.pg-note b { color: var(--pg-ink); }

/* ---- Ficha ---- */
.pg-hero-detail { padding-top: 60px; }
.pg-id { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.pg-title-detail { font-size: clamp(40px, 5.4vw, 66px); margin: 10px 0 0; }
.pg-download { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.pg-compat { display: flex; align-items: center; gap: 9px; color: var(--pg-mute); font-size: 14px; }
.pg-compat i { color: #4cc2ff; font-size: 16px; }
.pg-shots { display: grid; gap: 12px; }
.pg-shot-main, .pg-shot-thumbs a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
    cursor: zoom-in;
}
.pg-shot-main img, .pg-shot-thumbs img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.pg-shot-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pg-desc { color: var(--pg-mute); font-size: 16px; line-height: 1.75; }
.pg-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pg-feats li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 14px;
    color: var(--pg-ink);
    font-size: 15px;
    line-height: 1.45;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--pg-line);
    animation: pg-in .7s var(--pg-ease) both;
    animation-delay: calc(var(--i, 0) * 50ms);
}
.pg-feats i {
    flex: 0 0 24px;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    background: color-mix(in srgb, var(--c) 55%, transparent);
}

/* planes */
.pg-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.pg-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    border-radius: 20px;
    background: linear-gradient(170deg, #10152a, #0a0d1a);
    border: 1px solid var(--pg-line);
}
.pg-plan.is-hi {
    border-color: color-mix(in srgb, var(--c) 60%, transparent);
    box-shadow: 0 30px 60px -26px color-mix(in srgb, var(--c) 70%, transparent);
    background:
        radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
        linear-gradient(170deg, #10152a, #0a0d1a);
}
.pg-plan-flag {
    position: absolute;
    top: -12px; left: 24px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: var(--c);
}
.pg-plan h3 { color: var(--pg-ink); font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.pg-plan-note { color: var(--pg-faint); font-size: 13px; margin: 0 0 16px; }
.pg-plan-price { color: var(--pg-ink); font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 18px; }
.pg-plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.pg-plan li { display: flex; gap: 9px; color: rgba(226, 236, 255, .8); font-size: 14px; line-height: 1.4; }
.pg-plan li i { color: var(--c); margin-top: 3px; }
.pg-plan .pg-btn { margin-top: auto; }

/* panel de versión e integridad */
.pg-panel {
    border-radius: 20px;
    padding: 8px 24px 24px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--pg-line);
}
.pg-panel-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--pg-line); font-size: 14px; }
.pg-panel-row span { color: var(--pg-faint); }
.pg-panel-row b { color: var(--pg-ink); font-weight: 600; text-align: right; }
.pg-panel-notes { padding: 16px 0; border-bottom: 1px solid var(--pg-line); }
.pg-panel-notes span, .pg-panel-hash > span { display: flex; justify-content: space-between; align-items: center; color: var(--pg-faint); font-size: 13px; margin-bottom: 8px; }
.pg-panel-notes p { color: var(--pg-ink); font-size: 14px; line-height: 1.6; margin: 0; }
.pg-panel-hash { padding-top: 16px; }
.pg-panel-hash code {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
    word-break: break-all;
    color: color-mix(in srgb, var(--c) 50%, #fff);
    background: rgba(0, 0, 0, .35);
    border: 1px solid var(--pg-line);
}
.pg-panel-hash small { display: block; margin-top: 10px; color: var(--pg-faint); font-size: 12px; line-height: 1.6; }
.pg-panel-hash small code { display: inline; padding: 2px 6px; background: rgba(255, 255, 255, .06); border: 0; color: var(--pg-mute); }
.pg-panel-hash button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--pg-line);
    border-radius: 8px;
    font-size: 12px;
    color: var(--pg-ink);
    background: rgba(255, 255, 255, .05);
}
.pg-panel-hash button:hover { background: rgba(255, 255, 255, .1); }

/* otros programas */
.pg-grid-mini { grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); }
.pg-mini {
    min-width: 0; /* deja que el resumen se corte con "…" en vez de ensanchar la página */
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--pg-line);
    transition: border-color .3s, transform .4s var(--pg-ease);
}
.pg-mini:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.pg-mini .pg-icon { width: 54px; height: 54px; flex-basis: 54px; border-radius: 15px; }
.pg-mini .pg-icon span { font-size: 24px; }
.pg-mini > div:not(.pg-icon) { flex: 1; min-width: 0; }
.pg-mini b { display: block; color: var(--pg-ink); font-size: 17px; }
.pg-mini small { display: block; color: var(--pg-faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-mini > i { color: var(--pg-faint); }

/* vacío */
.pg-empty { text-align: center; padding: 40px 0; }
.pg-empty i { font-size: 54px; color: #4cc2ff; margin-bottom: 20px; }
.pg-empty h2 { color: var(--pg-ink); font-size: 34px; }
.pg-empty p { color: var(--pg-mute); }

/* aviso al descargar */
.pg-toast {
    position: fixed;
    left: 50%; bottom: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100vw - 32px);
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    color: var(--pg-ink);
    background: rgba(16, 21, 42, .96);
    border: 1px solid rgba(34, 227, 154, .35);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
    transform: translate(-50%, 20px);
    opacity: 0;
    transition: transform .5s var(--pg-ease), opacity .4s;
}
.pg-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.pg-toast i { color: var(--pg-green); font-size: 18px; }

/* entrada */
.pg-rise { animation: pg-rise .9s var(--pg-ease) both; }
.pg-rise:nth-child(2) { animation-delay: .08s; }
.pg-rise:nth-child(3) { animation-delay: .16s; }
.pg-rise:nth-child(4) { animation-delay: .24s; }
@keyframes pg-rise {
    from { opacity: 0; transform: translateY(16px); filter: blur(5px); }
    to { opacity: 1; transform: none; filter: none; }
}

/* ---- Móvil ---- */
@media (max-width: 991px) {
    .pg-hero { padding: 70px 0 60px; text-align: center; }
    .pg-hero-detail { text-align: left; }
    .pg-desk { height: 340px; }
    .pg-steps { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .pg-title { letter-spacing: -1px; }
    .pg-lead { font-size: 16px; }
    .pg-desk { height: 300px; }
    .pg-win-back { display: none; }
    .pg-win-front { width: 100%; top: 0; }
    .pg-mock { min-height: 190px; }
    .pg-mock-main strong { font-size: 36px; }
    .pg-taskbar { left: 0; right: 0; }
    .pg-zone { padding: 56px 0; }
    .pg-zone-steps, .pg-zone-plans, .pg-zone-more { padding-top: 56px !important; }
    .pg-grid, .pg-grid-mini { grid-template-columns: minmax(0, 1fr); }
    .pg-card { padding: 22px; }
    .pg-tabs { width: 100%; }
    .pg-tabs button { flex: 1; justify-content: center; padding: 9px 8px; font-size: 13px; }
    .pg-id { gap: 16px; }
    .pg-icon-xl { width: 76px; height: 76px; flex-basis: 76px; border-radius: 22px; }
    .pg-download .pg-btn { width: 100%; }
    .pg-feats { grid-template-columns: 1fr; }
    .pg-trust ul { gap: 10px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .pg-hero-glow, .pg-win-front, .pg-mock-bar span, .pg-card, .pg-feats li, .pg-rise { animation: none !important; }
    .pg-card, .pg-icon, .pg-btn { transition: none; }
}

/* ---- Portada gráfica de cada tarjeta (captura real o gráfico del programa) ---- */
.pg-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 460px)); }
.pg-cover { margin-bottom: 22px; }
.pg-cover img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid var(--pg-line); }
.pg-cover .pg-art { box-shadow: none; }
/* misma altura de portada en todas las tarjetas, para que icono y nombre queden alineados */
.pg-cover { display: flex; min-height: 236px; }
.pg-cover > * { width: 100%; }
.pg-cover .pg-art { display: flex; flex-direction: column; }
.pg-cover .pg-art-body { flex: 1; align-content: center; }

/* ---- Enlace al sistema afín (RGUARD -> RCOLE) ---- */
.pg-zone-afin { padding: 0 0 30px !important; }
.pg-afin {
    display: flex; align-items: center; gap: 18px; max-width: 860px; margin: 0 auto; padding: 22px 26px;
    border-radius: 18px; border: 1px solid var(--pg-line); background: linear-gradient(170deg, #10152a, #0a0d1a);
    transition: border-color .2s, transform .2s;
}
.pg-afin:hover { border-color: var(--c); transform: translateY(-2px); }
.pg-afin-ico {
    flex: none; width: 56px; height: 56px; border-radius: 16px; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.pg-afin-txt { flex: 1; display: grid; gap: 2px; }
.pg-afin-txt small { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--pg-faint); }
.pg-afin-txt strong { font-size: 20px; color: var(--pg-ink); }
.pg-afin-txt em { font-style: normal; font-size: 14.5px; color: var(--pg-mute); }
.pg-afin-go { flex: none; font-weight: 600; color: var(--pg-ink); white-space: nowrap; }
@media (max-width: 640px) {
    .pg-afin { flex-wrap: wrap; }
    .pg-afin-go { width: 100%; }
}

/* ---- Título con el cian-azul de la marca (antes un degradado morado) ---- */
.pg-grad { background-image: linear-gradient(100deg, #00d4ff, #4f8dff); }
/* ==========================================================================
   TEMA CLARO (va al final: redefine lo de arriba)
   La sección era toda oscura y contrastaba con el resto del sitio, que es claro.
   Ahora el fondo es blanco y lo oscuro queda solo dentro de las "pantallas"
   dibujadas (ventanas de Windows y gráficos de los programas), que así se leen
   como imágenes sobre la página.
   ========================================================================== */
:root {
    --pg-bg: #ffffff;
    --pg-bg2: #f4f6fb;
    --pg-ink: #0d1424;
    --pg-mute: rgba(13, 20, 36, .68);
    --pg-faint: rgba(13, 20, 36, .5);
    --pg-line: rgba(13, 20, 36, .1);
    --pg-cyan: #0099c2;
    --pg-green: #0f9d6b;
    --pg-amber: #b45309;
}
/* Dentro de las ventanas dibujadas siguen los colores de pantalla oscura */
.pg-desk {
    --pg-ink: #f2f6ff;
    --pg-mute: rgba(226, 236, 255, .64);
    --pg-faint: rgba(226, 236, 255, .4);
    --pg-line: rgba(255, 255, 255, .08);
}

/* ---- Cabecera ---- */
.pg-hero {
    background:
        radial-gradient(58% 78% at 4% 2%, color-mix(in srgb, var(--c) 20%, transparent), transparent 62%),
        radial-gradient(52% 72% at 98% 92%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%),
        linear-gradient(160deg, #fff 0%, #f1f5fb 100%);
}
.pg-hero::before {
    background-image:
        linear-gradient(rgba(13, 20, 36, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 20, 36, .045) 1px, transparent 1px);
}
.pg-hero-glow { opacity: .3; }
.pg-pill { background: #fff; border-color: var(--pg-line); box-shadow: 0 4px 14px rgba(16, 24, 40, .05); }
.pg-grad { background-image: linear-gradient(100deg, #0099c2, #2563eb); }
.pg-btn-ghost { color: var(--pg-ink); background: #fff; border-color: rgba(13, 20, 36, .16); }
.pg-btn-ghost:hover { color: var(--pg-ink); background: #f4f6fb; }
.pg-win { box-shadow: 0 34px 70px -24px rgba(13, 20, 36, .5), 0 0 0 1px rgba(13, 20, 36, .25); background: rgba(18, 22, 38, .96); }
.pg-taskbar { background: rgba(20, 24, 40, .96); }
.pg-compat i, .pg-card-meta i, .pg-note i { color: #0099c2; }

/* ---- Filtros ---- */
.pg-tabs { background: rgba(13, 20, 36, .05); }
.pg-tabs button b { background: rgba(13, 20, 36, .08); }
.pg-tabs button.is-on { color: #fff; background: #0d1424; }
.pg-tabs button.is-on b { color: #fff; background: rgba(255, 255, 255, .18); }

/* ---- Tarjetas: portada de color arriba, con el gráfico del programa asomando ---- */
.pg-card {
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
}
.pg-card:hover { box-shadow: 0 26px 50px -22px color-mix(in srgb, var(--c) 55%, transparent); }
.pg-cover {
    align-items: stretch; height: 300px; min-height: 0;
    margin: -28px -28px 24px; padding: 26px 26px 0; overflow: hidden;
    border-radius: 21px 21px 0 0;
    background:
        radial-gradient(70% 90% at 85% 10%, color-mix(in srgb, var(--c) 55%, #fff), transparent 70%),
        linear-gradient(150deg, color-mix(in srgb, var(--c) 34%, #fff), color-mix(in srgb, var(--c) 14%, #fff));
}
.pg-cover .pg-art { border-radius: 14px 14px 0 0; border-bottom: 0; box-shadow: 0 -8px 40px -8px color-mix(in srgb, var(--c) 70%, #0d1424); }
.pg-cover img { border-radius: 14px 14px 0 0; border: 0; box-shadow: 0 -8px 40px -8px color-mix(in srgb, var(--c) 70%, #0d1424); }
.pg-icon { background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--c) 70%, transparent); }
.pg-icon span { color: var(--c); }
.pg-badge-paid { color: color-mix(in srgb, var(--c) 72%, #000); }
.pg-card-feats li, .pg-plan li { color: rgba(13, 20, 36, .78); }

/* ---- Pasos ---- */
.pg-steps li { background: #fff; box-shadow: 0 8px 24px rgba(16, 24, 40, .05); }
.pg-steps b { width: 52px; height: 52px; border-radius: 15px; font-size: 22px; background: linear-gradient(135deg, #00b8de, #2563eb); }
.pg-steps-col b { width: 38px; height: 38px; border-radius: 12px; font-size: 16px; }
.pg-step-n { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pg-faint); }
.pg-note { background: rgba(0, 153, 194, .06); border-color: rgba(0, 153, 194, .22); }

/* ---- Ficha ---- */
.pg-hero-detail .pg-art { box-shadow: 0 34px 70px -24px color-mix(in srgb, var(--c) 60%, #0d1424); }
.pg-shot-main, .pg-shot-thumbs a { border-color: var(--pg-line); box-shadow: 0 26px 50px -24px rgba(13, 20, 36, .4); }
.pg-feats li { background: #fff; box-shadow: 0 6px 18px rgba(16, 24, 40, .04); }
.pg-feats i { background: var(--c); }
.pg-plan { background: #fff; box-shadow: 0 10px 30px rgba(16, 24, 40, .05); }
.pg-plan.is-hi {
    background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), #fff;
    box-shadow: 0 26px 50px -26px color-mix(in srgb, var(--c) 70%, transparent);
}
.pg-panel { background: #fff; box-shadow: 0 10px 30px rgba(16, 24, 40, .05); }
.pg-panel-hash code { color: color-mix(in srgb, var(--c) 70%, #000); background: #f4f6fb; }
.pg-panel-hash small code { background: rgba(13, 20, 36, .06); }
.pg-panel-hash button { background: #fff; }
.pg-panel-hash button:hover { background: #f4f6fb; }
.pg-mini, .pg-afin { background: #fff; box-shadow: 0 8px 24px rgba(16, 24, 40, .05); }
.pg-toast { color: #f2f6ff; }

@media (max-width: 767px) {
    .pg-cover { margin: -22px -22px 20px; padding: 20px 20px 0; height: 290px; }
}
