/*
 * Web pública de plugins: estética de app de streaming con superficies de vidrio líquido (desenfoque, brillo
 * en los bordes y reflejo que sigue al puntero), auroras de fondo y un iPhone animado en la portada.
 * Oscura por defecto y clara según el sistema. Sin recursos externos ni estilos en línea (la política de
 * seguridad no los admite): todo color o animación vive aquí.
 */
:root {
    --pw-bg: #04050b;
    --pw-bg-2: #070a15;
    --pw-surface: rgba(255, 255, 255, .055);
    --pw-surface-2: rgba(255, 255, 255, .09);
    --pw-surface-solid: #0e1222;
    --pw-border: rgba(255, 255, 255, .1);
    --pw-border-strong: rgba(255, 255, 255, .2);
    --pw-text: #f3f5ff;
    --pw-muted: rgba(228, 233, 255, .7);
    --pw-faint: rgba(228, 233, 255, .48);
    --pw-accent: #7d8dff;
    --pw-accent-2: #b27dff;
    --pw-accent-3: #3fe0c5;
    --pw-success: #4ade9b;
    --pw-warning: #fbc04a;
    --pw-danger: #ff7a93;
    --pw-gradient: linear-gradient(120deg, #6e8bff 0%, #a87bff 46%, #ff7cc6 100%);
    --pw-glow: 0 0 0 1px rgba(150, 140, 255, .28), 0 18px 46px -16px rgba(124, 110, 255, .6);
    --pw-shadow: 0 30px 70px -34px rgba(0, 0, 0, .85);
    /* Vidrio líquido */
    --pw-glass: linear-gradient(150deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035) 42%, rgba(255, 255, 255, .07));
    --pw-glass-solid: rgba(16, 20, 36, .62);
    --pw-glass-edge: rgba(255, 255, 255, .13);
    --pw-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 28px 64px -36px rgba(0, 0, 0, .9);
    --pw-rim: linear-gradient(140deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .07) 28%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .16));
    --pw-shine: rgba(255, 255, 255, .12);
    --pw-blur: 22px;
    --pw-radius: 24px;
    --pw-radius-sm: 15px;
    --pw-max: 1200px;
    --pw-gutter: clamp(16px, 4vw, 32px);
    --pw-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --pw-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --pw-ease: cubic-bezier(.22, .8, .24, 1);
    --pw-spring: cubic-bezier(.34, 1.4, .64, 1);
    color-scheme: dark;
}
@media (prefers-color-scheme: light) {
    :root {
        --pw-bg: #eef1f9;
        --pw-bg-2: #e6eaf6;
        --pw-surface: rgba(255, 255, 255, .62);
        --pw-surface-2: rgba(255, 255, 255, .82);
        --pw-surface-solid: #ffffff;
        --pw-border: rgba(20, 28, 60, .1);
        --pw-border-strong: rgba(20, 28, 60, .2);
        --pw-text: #0c1230;
        --pw-muted: #4b5576;
        --pw-faint: #7a839f;
        --pw-accent: #4561f0;
        --pw-accent-2: #7d4ae6;
        --pw-success: #0b8f5a;
        --pw-warning: #a35d00;
        --pw-danger: #d6264d;
        --pw-glow: 0 0 0 1px rgba(69, 97, 240, .2), 0 18px 40px -20px rgba(69, 97, 240, .5);
        --pw-shadow: 0 26px 60px -34px rgba(20, 28, 60, .45);
        --pw-glass: linear-gradient(150deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, .7));
        --pw-glass-solid: rgba(255, 255, 255, .72);
        --pw-glass-edge: rgba(255, 255, 255, .9);
        --pw-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(20, 28, 60, .04), 0 24px 56px -34px rgba(20, 28, 60, .45);
        --pw-rim: linear-gradient(140deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .3) 30%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .6));
        --pw-shine: rgba(255, 255, 255, .55);
        color-scheme: light;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.pw {
    margin: 0;
    min-height: 100vh;
    background: var(--pw-bg);
    color: var(--pw-text);
    font: 16px/1.6 var(--pw-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
:where(.pw) img { max-width: 100%; display: block; }
:where(.pw) a { color: inherit; }
:where(.pw) :where(h1, h2, h3) { line-height: 1.12; letter-spacing: -.025em; margin: 0; }
:where(.pw) p { margin: 0; }
.pw ::selection { background: rgba(125, 141, 255, .4); color: #fff; }
.pw :focus-visible { outline: 3px solid var(--pw-accent); outline-offset: 3px; border-radius: 12px; }
.pw [hidden] { display: none !important; }
.pw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pw-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--pw-accent); color: #fff; text-decoration: none; transition: top .2s; }
.pw-skip:focus { top: 12px; }
.pw-container { width: 100%; max-width: var(--pw-max); margin: 0 auto; padding: 0 var(--pw-gutter); }
.pw-container--narrow { max-width: 880px; }
.pw-container--reading { max-width: 800px; }
.pw-i { width: 1.15em; height: 1.15em; flex: none; }
.pw-muted { color: var(--pw-muted); }
.pw-main { outline: none; position: relative; z-index: 1; }

/* ---------- Fondo: auroras (solo degradados que se mueven) y grano ---------- */
.pw-backdrop {
    position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    background: radial-gradient(120% 70% at 50% -12%, #141b42 0%, rgba(4, 5, 11, 0) 60%), var(--pw-bg);
}
.pw-backdrop > span { position: absolute; width: 72vmax; height: 72vmax; border-radius: 50%; will-change: transform; animation: pw-aurora 30s ease-in-out infinite alternate; }
.pw-backdrop > span:nth-child(1) { left: -26vmax; top: -34vmax; background: radial-gradient(circle, rgba(84, 108, 255, .5), rgba(84, 108, 255, 0) 64%); }
.pw-backdrop > span:nth-child(2) { right: -30vmax; top: -16vmax; background: radial-gradient(circle, rgba(168, 94, 255, .42), rgba(168, 94, 255, 0) 64%); animation-duration: 36s; animation-delay: -9s; }
.pw-backdrop > span:nth-child(3) { left: 6vmax; bottom: -50vmax; background: radial-gradient(circle, rgba(36, 214, 190, .24), rgba(36, 214, 190, 0) 64%); animation-duration: 42s; animation-delay: -16s; }
.pw-backdrop > span:nth-child(4) { right: -16vmax; bottom: -46vmax; background: radial-gradient(circle, rgba(255, 110, 190, .22), rgba(255, 110, 190, 0) 64%); animation-duration: 48s; animation-delay: -22s; }
.pw-backdrop::after {
    content: ""; position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes pw-aurora {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(7vmax, 5vmax, 0) scale(1.12); }
    100% { transform: translate3d(-5vmax, 9vmax, 0) scale(.94); }
}
@media (prefers-color-scheme: light) {
    .pw-backdrop { background: radial-gradient(120% 70% at 50% -12%, #dfe4ff 0%, rgba(238, 241, 249, 0) 60%), var(--pw-bg); }
    .pw-backdrop > span { opacity: .55; }
    .pw-backdrop::after { opacity: .05; }
}

/* ---------- Vidrio líquido ---------- */
.pw-glass, .pw-header__bar, .pw-eyebrow, .pw-hero__stats > div, .pw-float, .pw-step, .pw-toolbar, .pw-chip, .pw-card, .pw-feature,
.pw-faq__item, .pw-mega, .pw-credits, .pw-panel, .pw-detail__hero, .pw-detail__side, .pw-add-card, .pw-contact__card, .pw-legal__card, .pw-download,
.pw-crumbs, .pw-empty, .pw-rail__item {
    position: relative;
    background: var(--pw-glass);
    border: 1px solid var(--pw-glass-edge);
    box-shadow: var(--pw-glass-shadow);
}
/* Borde que refleja la luz, más claro arriba a la izquierda, como el vidrio de iOS. */
.pw-glass::before, .pw-header__bar::before, .pw-step::before, .pw-toolbar::before, .pw-card::before, .pw-feature::before, .pw-faq__item::before,
.pw-mega::before, .pw-credits::before, .pw-panel::before, .pw-detail__hero::before, .pw-detail__side::before, .pw-add-card::before,
.pw-contact__card::before, .pw-legal__card::before, .pw-float::before, .pw-rail__item::before, .pw-download::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
    background: var(--pw-rim);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Reflejo que sigue al puntero (el JavaScript fija --mx y --my en los elementos con data-pw-shine). */
[data-pw-shine]::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--pw-shine), transparent 42%);
    transition: opacity .35s var(--pw-ease);
}
[data-pw-shine]:hover::after { opacity: 1; }
.pw-header__bar, .pw-eyebrow, .pw-float, .pw-toolbar, .pw-mega, .pw-detail__hero, .pw-add-card, .pw-crumbs {
    -webkit-backdrop-filter: blur(var(--pw-blur)) saturate(180%); backdrop-filter: blur(var(--pw-blur)) saturate(180%);
}

/* ---------- Botones, pastillas y enlaces ---------- */
.pw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 46px; padding: 0 22px; border-radius: 999px; position: relative; overflow: hidden; isolation: isolate;
    border: 1px solid var(--pw-glass-edge); background: var(--pw-glass); color: var(--pw-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 26px -16px rgba(0, 0, 0, .7);
    font: 650 15px/1 var(--pw-font); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
    -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
    transition: transform .3s var(--pw-spring), box-shadow .3s var(--pw-ease), background-color .2s, border-color .2s, filter .2s;
}
.pw-btn:hover { transform: translateY(-2px); border-color: var(--pw-border-strong); }
.pw-btn:active { transform: translateY(0) scale(.97); }
.pw-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.pw-btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.pw-btn--block { width: 100%; }
.pw-btn--primary {
    border-color: rgba(255, 255, 255, .28); color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 52%), var(--pw-gradient);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -8px 18px -10px rgba(40, 20, 120, .45), var(--pw-glow);
}
.pw-btn--primary::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s var(--pw-ease);
}
.pw-btn--primary:hover::after { transform: translateX(120%); }
.pw-btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 1px rgba(160, 150, 255, .35), 0 24px 54px -16px rgba(124, 110, 255, .75); filter: saturate(1.1); }
.pw-btn--ghost { background: var(--pw-glass); }
.pw-btn--ghost:hover { background: var(--pw-surface-2); }
.pw-btn--light { background: linear-gradient(180deg, #ffffff, #e9ecff); color: #10142a; border-color: rgba(255, 255, 255, .9); }
.pw-btn--soon { background: transparent; border-style: dashed; border-color: var(--pw-border-strong); color: var(--pw-muted); cursor: default; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pw-btn--soon:hover { transform: none; }
.pw-pill {
    display: inline-flex; align-items: center; gap: .35em; padding: 5px 11px; border-radius: 999px;
    background: var(--pw-surface); border: 1px solid var(--pw-glass-edge); color: var(--pw-muted);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    font-size: 12.5px; font-weight: 650; line-height: 1.3; white-space: nowrap;
}
.pw-pill .pw-i { width: 14px; height: 14px; }
.pw-pill--accent { color: var(--pw-accent); border-color: color-mix(in srgb, var(--pw-accent) 40%, transparent); background: color-mix(in srgb, var(--pw-accent) 14%, transparent); }
.pw-pill--success { color: var(--pw-success); border-color: color-mix(in srgb, var(--pw-success) 40%, transparent); background: color-mix(in srgb, var(--pw-success) 12%, transparent); }
.pw-pill--warning { color: var(--pw-warning); border-color: color-mix(in srgb, var(--pw-warning) 40%, transparent); background: color-mix(in srgb, var(--pw-warning) 12%, transparent); }
.pw-pill--soon { color: var(--pw-accent-2); border-color: color-mix(in srgb, var(--pw-accent-2) 40%, transparent); background: color-mix(in srgb, var(--pw-accent-2) 14%, transparent); }
.pw-pill--info { color: #7cc7ff; border-color: rgba(124, 199, 255, .4); background: rgba(124, 199, 255, .12); }
/* Destacados del propietario: estrella dorada, legible en claro y oscuro. */
.pw-pill--star { color: #ffd166; border-color: rgba(255, 209, 102, .45); background: linear-gradient(180deg, rgba(255, 209, 102, .22), rgba(255, 170, 51, .1)); }
.pw-pill--star .pw-i { fill: currentColor; }
@media (prefers-color-scheme: light) { .pw-pill--info { color: #0b6bb5; } .pw-pill--star { color: #8a5300; border-color: rgba(214, 140, 0, .45); background: linear-gradient(180deg, rgba(255, 214, 120, .55), rgba(255, 190, 70, .25)); } }
.pw-text-link, .pw-link-danger { display: inline-flex; align-items: center; gap: .4em; color: var(--pw-muted); text-decoration: none; font-weight: 650; font-size: 14px; }
.pw-text-link:hover { color: var(--pw-text); }
.pw-link-danger:hover { color: var(--pw-danger); }
.pw-kicker {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12.5px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase;
    background: var(--pw-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pw-callout {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--pw-radius-sm); margin: 0 0 18px;
    background: color-mix(in srgb, var(--pw-accent) 11%, transparent); border: 1px solid color-mix(in srgb, var(--pw-accent) 30%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); color: var(--pw-text); font-size: 14.5px;
}
.pw-callout .pw-i { color: var(--pw-accent); margin-top: 2px; }
.pw-callout--warning { background: color-mix(in srgb, var(--pw-warning) 11%, transparent); border-color: color-mix(in srgb, var(--pw-warning) 36%, transparent); }
.pw-callout--warning .pw-i { color: var(--pw-warning); }
.pw-callout--danger { background: color-mix(in srgb, var(--pw-danger) 11%, transparent); border-color: color-mix(in srgb, var(--pw-danger) 36%, transparent); }
.pw-callout--danger .pw-i { color: var(--pw-danger); }

/* ---------- Cabecera: barra flotante de vidrio ---------- */
.pw-header { position: sticky; top: 0; z-index: 50; padding: 12px var(--pw-gutter) 0; pointer-events: none; }
.pw-header .pw-header__bar {
    pointer-events: auto; max-width: 1180px; margin: 0 auto; padding: 0 8px 0 16px; min-height: 62px; border-radius: 999px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--pw-glass-solid);
    transition: background-color .3s, box-shadow .3s, transform .4s var(--pw-ease);
}
.pw-header.is-scrolled .pw-header__bar { box-shadow: var(--pw-glass-shadow), 0 18px 50px -24px rgba(0, 0, 0, .9); }
.pw-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 820; font-size: 19px; letter-spacing: -.02em; }
.pw-brand__mark {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%), var(--pw-gradient); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), var(--pw-glow);
}
.pw-brand__mark .pw-i { width: 17px; height: 17px; fill: currentColor; }
.pw-brand__logo { width: 36px; height: 36px; border-radius: 11px; object-fit: cover; }
.pw-nav { display: flex; align-items: center; gap: 14px; }
.pw-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.pw-nav ul a { display: block; padding: 9px 14px; border-radius: 999px; color: var(--pw-muted); text-decoration: none; font-weight: 650; font-size: 15px; transition: color .2s, background-color .2s; }
.pw-nav ul a:hover, .pw-nav ul a[aria-current="page"] { color: var(--pw-text); background: var(--pw-surface-2); }
.pw-menu-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid var(--pw-glass-edge); border-radius: 50%; background: var(--pw-glass);
    color: var(--pw-text); cursor: pointer; align-items: center; justify-content: center;
}
.pw-menu-toggle .pw-i--close { display: none; }
.pw-menu-toggle[aria-expanded="true"] .pw-i--open { display: none; }
.pw-menu-toggle[aria-expanded="true"] .pw-i--close { display: block; }
@media (max-width: 860px) {
    .pw-header .pw-header__bar { position: relative; }
    .pw-menu-toggle { display: inline-flex; }
    .pw-nav {
        position: absolute; left: 0; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; gap: 10px;
        padding: 12px; border-radius: 26px; border: 1px solid var(--pw-glass-edge); background: var(--pw-glass-solid); box-shadow: var(--pw-glass-shadow), var(--pw-shadow);
        -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
        opacity: 0; transform: translateY(-10px) scale(.97); transform-origin: top center; pointer-events: none; visibility: hidden;
        transition: opacity .22s var(--pw-ease), transform .35s var(--pw-spring), visibility .3s;
    }
    .pw-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
    .pw-nav ul { flex-direction: column; }
    .pw-nav ul a { padding: 13px 16px; font-size: 16px; border-radius: 16px; }
    .pw-nav__cta { width: 100%; }
    .pw:not(.pw-js) .pw-nav { position: static; opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
}

/* ---------- Portada ---------- */
.pw-hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.pw-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.pw-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; margin-bottom: 24px;
    color: var(--pw-text); font-size: 13.5px; font-weight: 650;
}
.pw-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pw-success); box-shadow: 0 0 0 0 rgba(74, 222, 155, .6); animation: pw-pulse 2.2s infinite; }
@keyframes pw-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 155, .55); } 70% { box-shadow: 0 0 0 10px rgba(74, 222, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 155, 0); } }
.pw-hero__title {
    font-size: clamp(2.6rem, 6.2vw, 4.9rem); font-weight: 860; letter-spacing: -.048em; line-height: 1.02; max-width: 15ch; text-wrap: balance;
    background: linear-gradient(100deg, #ffffff 0%, #ffffff 38%, #c7cdff 50%, #ffffff 62%, #ffffff 100%); background-size: 240% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: pw-rise .9s var(--pw-ease) forwards, pw-sheen 7s ease-in-out 1.2s infinite;
}
.pw-hero__title.pw-rise { animation: pw-rise .9s var(--pw-ease) .08s forwards, pw-sheen 7s ease-in-out 1.4s infinite; }
@keyframes pw-sheen { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
@media (prefers-color-scheme: light) {
    .pw-hero__title { background-image: linear-gradient(100deg, #0c1230 0%, #0c1230 38%, #5b6cff 50%, #0c1230 62%, #0c1230 100%); }
}
.pw-hero__lead { margin-top: 22px; font-size: clamp(1.06rem, 1.6vw, 1.24rem); color: var(--pw-muted); max-width: 52ch; }
.pw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pw-hero__stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 38px 0 0; }
.pw-hero__stats > div { min-width: 118px; padding: 12px 18px; border-radius: 20px; }
.pw-hero__stats dt { font-size: 12.5px; color: var(--pw-faint); font-weight: 650; }
.pw-hero__stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 820; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pw-rise { opacity: 0; transform: translateY(18px); animation: pw-rise .9s var(--pw-ease) forwards; }
.pw-rise:nth-child(2) { animation-delay: .08s; } .pw-rise:nth-child(3) { animation-delay: .16s; } .pw-rise:nth-child(4) { animation-delay: .24s; } .pw-rise:nth-child(5) { animation-delay: .32s; }
@keyframes pw-rise { to { opacity: 1; transform: none; } }
.pw-hero__visual { position: relative; display: grid; place-items: center; min-height: 600px; perspective: 1600px; }
.pw-hero__image { width: 100%; height: auto; border-radius: 30px; border: 1px solid var(--pw-glass-edge); box-shadow: var(--pw-shadow); }
.pw-hero__halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(125, 141, 255, .45), rgba(178, 125, 255, .18) 45%, transparent 68%); animation: pw-breathe 8s ease-in-out infinite; }
@keyframes pw-breathe { 0%, 100% { transform: scale(.94); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }

/* iPhone de la portada: marco de titanio, Dynamic Island y una app que se usa sola */
.pw-phone {
    position: relative; z-index: 1; width: min(310px, 74vw); aspect-ratio: 9 / 19.4; padding: 11px; border-radius: 56px;
    background: linear-gradient(145deg, #5a6074 0%, #1d2133 18%, #2f3448 46%, #12152a 70%, #4a5066 100%);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), inset 0 0 0 9px #05060b, 0 50px 110px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .6);
    transform-style: preserve-3d; transition: transform .6s var(--pw-ease);
    animation: pw-float 9s ease-in-out infinite;
}
.pw-phone::before, .pw-phone::after { content: ""; position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(180deg, #5d6378, #262a3c); }
.pw-phone::before { left: -3px; top: 21%; height: 9%; box-shadow: 0 64px 0 #3a3f53, 0 116px 0 #3a3f53; }
.pw-phone::after { right: -3px; top: 29%; height: 14%; }
@keyframes pw-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.pw-phone__screen {
    position: relative; height: 100%; border-radius: 46px; overflow: hidden; color: #f3f5ff; font-size: 11px;
    background: radial-gradient(120% 60% at 10% 0%, rgba(98, 110, 255, .5), transparent 55%), radial-gradient(90% 50% at 100% 30%, rgba(236, 107, 214, .28), transparent 60%), #070912;
}
.pw-phone__island { position: absolute; top: 11px; left: 50%; z-index: 6; width: 33%; height: 27px; margin-left: -16.5%; border-radius: 20px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pw-phone__island::after { content: ""; position: absolute; right: 12px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4a8a, #0b0f20 70%); }
.pw-phone__status { position: absolute; top: 14px; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; padding: 0 28px; font-size: 11.5px; font-weight: 700; letter-spacing: -.01em; }
.pw-phone__status i { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.pw-phone__status i::before { content: ""; width: 16px; height: 9px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .7); box-shadow: inset 11px 0 0 rgba(255, 255, 255, .9); }
.pw-app { position: absolute; inset: 52px 0 0; display: flex; flex-direction: column; gap: 9px; padding: 0 14px; }
.pw-app__top { display: flex; align-items: center; justify-content: space-between; }
.pw-app__top strong { font-size: 21px; font-weight: 820; letter-spacing: -.03em; }
.pw-app__avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--pw-gradient); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.pw-app__feature { position: relative; height: 31%; border-radius: 20px; overflow: hidden; background: #111632; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.pw-app__slide { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 9px; padding: 12px; opacity: 0; animation: pw-slide 12s infinite; }
.pw-app__slide:nth-child(2) { animation-delay: 4s; }
.pw-app__slide:nth-child(3) { animation-delay: 8s; }
@keyframes pw-slide { 0% { opacity: 0; transform: scale(1.06); } 4%, 30% { opacity: 1; transform: scale(1); } 36%, 100% { opacity: 0; transform: scale(.98); } }
.pw-app__slide-bg { position: absolute; inset: -40%; width: 180%; height: 180%; max-width: none; object-fit: cover; filter: blur(22px) saturate(1.8); opacity: .85; }
.pw-app__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 18, 0) 30%, rgba(7, 9, 18, .85)); }
.pw-app__slide > :not(.pw-app__slide-bg) { position: relative; z-index: 1; }
.pw-app__slide .pw-app__icon { width: 44px; height: 44px; }
.pw-app__slide span { display: flex; flex-direction: column; min-width: 0; }
.pw-app__slide strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-app__slide small { font-size: 10px; opacity: .72; }
.pw-app__icon { width: 52px; height: 52px; flex: none; border-radius: 14px; object-fit: cover; font-size: 15px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.pw-app__label { margin-top: 2px; font-size: 12px; font-weight: 750; letter-spacing: -.01em; }
.pw-app__rail { overflow: hidden; margin: 0 -14px; padding: 2px 0 2px 14px; -webkit-mask: linear-gradient(90deg, #000 80%, transparent); mask: linear-gradient(90deg, #000 80%, transparent); }
.pw-app__track { display: flex; gap: 9px; width: max-content; animation: pw-marquee 18s linear infinite; }
@keyframes pw-marquee { to { transform: translateX(-50%); } }
.pw-app__posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pw-app__poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.pw-app__poster::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.pw-app__poster i { position: absolute; left: 7px; bottom: 7px; z-index: 1; height: 3px; border-radius: 3px; background: #fff; width: 62%; }
.pw-app__poster:nth-child(2) i { width: 34%; }
.pw-app__poster:nth-child(3) i { width: 81%; }
.pw-app__tabbar {
    position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; justify-content: space-around; padding: 10px 6px; border-radius: 26px;
    background: rgba(28, 32, 56, .45); border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
}
.pw-app__tabbar span { width: 22px; height: 22px; border-radius: 8px; background: rgba(255, 255, 255, .22); }
.pw-app__tabbar span:first-child { background: var(--pw-gradient); box-shadow: 0 0 14px rgba(150, 130, 255, .7); }
/* Ficha de confirmación: sube, se toca «Agregar», se confirma y baja (ciclo de 12 s). */
.pw-app__sheet {
    position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 16px 16px; border-radius: 34px; text-align: center;
    background: linear-gradient(160deg, rgba(60, 66, 110, .62), rgba(22, 25, 46, .72)); border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 -20px 50px -20px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
    transform: translateY(115%); animation: pw-sheet 12s var(--pw-ease) infinite;
}
@keyframes pw-sheet { 0%, 34% { transform: translateY(115%); } 42%, 66% { transform: translateY(0); } 74%, 100% { transform: translateY(115%); } }
.pw-app__grab { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); margin-bottom: 6px; }
.pw-app__sheet strong { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-app__sheet small { font-size: 10.5px; opacity: .7; }
.pw-app__check { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: #7cf0bd; }
.pw-app__check .pw-i { width: 12px; height: 12px; }
.pw-app__button { position: relative; width: 100%; height: 34px; margin-top: 4px; border-radius: 999px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), var(--pw-gradient); font-size: 11.5px; font-weight: 750; }
.pw-app__button span { position: absolute; inset: 0; display: grid; place-items: center; }
.pw-app__button span:last-child { background: linear-gradient(135deg, #34d399, #059669); opacity: 0; animation: pw-added 12s infinite; }
@keyframes pw-added { 0%, 55% { opacity: 0; } 57%, 70% { opacity: 1; } 72%, 100% { opacity: 0; } }
.pw-app__button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px; border-radius: 50%; background: rgba(255, 255, 255, .55); opacity: 0; animation: pw-tap 12s ease-out infinite; }
@keyframes pw-tap { 0%, 52% { opacity: 0; transform: scale(.3); } 54% { opacity: .9; transform: scale(.6); } 58%, 100% { opacity: 0; transform: scale(3); } }
.pw-app__toast {
    position: absolute; top: 46px; left: 50%; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
    background: rgba(20, 24, 44, .7); border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 10.5px; font-weight: 700;
    transform: translate(-50%, -64px) scale(.9); opacity: 0; animation: pw-island 12s var(--pw-spring) infinite;
}
.pw-app__toast .pw-i { width: 12px; height: 12px; color: #7cf0bd; }
@keyframes pw-island { 0%, 72% { opacity: 0; transform: translate(-50%, -64px) scale(.9); } 76%, 90% { opacity: 1; transform: translate(-50%, 0) scale(1); } 95%, 100% { opacity: 0; transform: translate(-50%, -64px) scale(.9); } }
/* Tarjetas de vidrio que flotan alrededor del teléfono */
.pw-float {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 11px 15px 11px 11px; border-radius: 20px;
    font-size: 13px; font-weight: 650; color: var(--pw-text); white-space: nowrap; background: var(--pw-glass-solid); animation: pw-float 7s ease-in-out infinite;
}
.pw-float b { display: block; font-size: 15px; font-weight: 820; }
.pw-float small { display: block; color: var(--pw-muted); font-size: 11.5px; font-weight: 600; }
.pw-float__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), var(--pw-gradient); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.pw-float__icon--ok { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #34d399, #059669); }
.pw-float__icon .pw-i { width: 17px; height: 17px; }
.pw-float--a { left: -2%; top: 18%; animation-delay: -2s; }
.pw-float--b { right: -4%; bottom: 20%; animation-delay: -5s; }
@media (max-width: 900px) {
    .pw-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .pw-hero__visual { min-height: 0; padding: 18px 0 8px; }
    .pw-hero__title { max-width: 17ch; }
    .pw-float--a { left: 0; top: 8%; }
    .pw-float--b { right: 0; bottom: 10%; }
}
@media (max-width: 480px) {
    .pw-float { padding: 8px 12px 8px 8px; font-size: 12px; }
    .pw-float b { font-size: 13.5px; }
    .pw-float__icon { width: 28px; height: 28px; border-radius: 10px; }
    .pw-float--a { left: -6px; }
    .pw-float--b { right: -6px; }
}

/* ---------- Avatares ---------- */
.pw-avatar { display: inline-flex; align-items: center; justify-content: center; font-weight: 820; color: #fff; letter-spacing: .02em; }
.pw-tone-0 { background: linear-gradient(135deg, #6e8bff, #3b4fd8); }
.pw-tone-1 { background: linear-gradient(135deg, #b07cff, #6d3fd6); }
.pw-tone-2 { background: linear-gradient(135deg, #ff7cc6, #b0399f); }
.pw-tone-3 { background: linear-gradient(135deg, #3fe0c5, #0f8f82); }
.pw-tone-4 { background: linear-gradient(135deg, #fbbf4a, #c2410c); }
.pw-tone-5 { background: linear-gradient(135deg, #5cc8ff, #1d6fb8); }
.pw-tone-6 { background: linear-gradient(135deg, #ff8ab5, #e11d48); }
.pw-tone-7 { background: linear-gradient(135deg, #9be15d, #3f7d10); }

/* ---------- Secciones ---------- */
.pw-section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.pw-section--alt::before { content: ""; position: absolute; inset: 8% 0; z-index: -1; background: radial-gradient(60% 50% at 50% 50%, rgba(125, 141, 255, .1), transparent 70%); pointer-events: none; }
.pw-section__head { max-width: 740px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.pw-section__head h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 840; letter-spacing: -.04em; text-wrap: balance; }
.pw-section__head > p:not(.pw-kicker) { margin-top: 14px; color: var(--pw-muted); font-size: 1.1rem; }
/* Sección de plugins (/plugins) */
.pw-directory__head { margin-bottom: clamp(26px, 4vw, 40px); }
.pw-directory__head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 860; letter-spacing: -.045em; text-wrap: balance; }
/* Portada: entrada a la sección de plugins */
.pw-teaser__groups { justify-content: center; flex-wrap: wrap; overflow: visible; margin: 2px 0 0; }
.pw-teaser__groups .pw-chip { display: inline-flex; align-items: center; gap: 8px; }
.pw-teaser__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 16px; text-align: center; }
.pw-teaser__credit { display: flex; gap: 9px; align-items: flex-start; color: var(--pw-muted); font-size: 14px; max-width: 62ch; text-align: left; }
.pw-teaser__credit .pw-i { flex: none; margin-top: 3px; color: var(--pw-accent); }
.pw-teaser__credit a { color: var(--pw-text); font-weight: 650; text-decoration: underline; text-decoration-color: var(--pw-border-strong); text-underline-offset: 3px; }
.pw-section__body { margin-top: 32px; }
[data-pw-reveal] { transition: opacity .8s var(--pw-ease), transform .8s var(--pw-ease); }
.pw-js [data-pw-reveal]:not(.is-visible) { opacity: 0; transform: translateY(26px) scale(.985); }

.pw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.pw-steps::before {
    content: ""; position: absolute; left: 10%; right: 10%; top: 50px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--pw-accent), var(--pw-accent-2), var(--pw-accent-3), transparent); background-size: 200% 100%;
    opacity: .7; animation: pw-flow 6s linear infinite;
}
@keyframes pw-flow { to { background-position: -200% 0; } }
.pw-step { padding: 26px 22px 24px; border-radius: var(--pw-radius); transition: transform .5s var(--pw-spring), opacity .8s var(--pw-ease); }
.pw-step:hover { transform: translateY(-4px); }
.pw-step__number { position: absolute; top: 14px; right: 18px; font-size: 40px; font-weight: 860; line-height: 1; letter-spacing: -.05em; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: light) { .pw-step__number { background-image: linear-gradient(180deg, rgba(12, 18, 48, .2), rgba(12, 18, 48, .03)); } }
.pw-step__icon {
    display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 16px; margin-bottom: 18px; position: relative; z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), var(--pw-gradient); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), var(--pw-glow);
}
.pw-step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.pw-step p { color: var(--pw-muted); font-size: 15px; }
.pw-steps .pw-step:nth-child(2) { transition-delay: .08s; } .pw-steps .pw-step:nth-child(3) { transition-delay: .16s; } .pw-steps .pw-step:nth-child(4) { transition-delay: .24s; }
@media (max-width: 960px) { .pw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pw-steps::before { display: none; } }
@media (max-width: 560px) { .pw-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Directorio ---------- */
.pw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px; margin-bottom: 14px; border-radius: 30px; background: var(--pw-glass-solid); }
.pw-tabs { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
@media (prefers-color-scheme: light) { .pw-tabs { background: rgba(20, 28, 60, .06); box-shadow: inset 0 1px 2px rgba(20, 28, 60, .1); } }
.pw-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; color: var(--pw-muted); text-decoration: none; font-weight: 700; font-size: 14.5px; transition: color .2s, background-color .3s var(--pw-ease), box-shadow .3s; white-space: nowrap; }
.pw-tab.is-active { background: var(--pw-glass); color: var(--pw-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 16px -8px rgba(0, 0, 0, .6), 0 0 0 1px var(--pw-glass-edge); }
.pw-tab__count { font-size: 12.5px; color: var(--pw-faint); font-variant-numeric: tabular-nums; }
.pw-tab .pw-pill { padding: 2px 7px; font-size: 11px; }
.pw-search { flex: 1 1 200px; position: relative; display: flex; align-items: center; min-width: 0; }
.pw-search > .pw-i { position: absolute; left: 16px; color: var(--pw-faint); pointer-events: none; }
.pw-search input {
    width: 100%; min-height: 48px; padding: 0 46px; border-radius: 999px; border: 1px solid transparent; outline: none;
    background: rgba(0, 0, 0, .22); color: var(--pw-text); font: inherit; font-size: 15.5px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); transition: border-color .2s, box-shadow .25s, background-color .2s;
}
@media (prefers-color-scheme: light) { .pw-search input { background: rgba(20, 28, 60, .05); box-shadow: inset 0 1px 2px rgba(20, 28, 60, .08); } }
.pw-search input:focus { border-color: color-mix(in srgb, var(--pw-accent) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pw-accent) 20%, transparent); }
.pw-search input::placeholder { color: var(--pw-faint); }
.pw-search kbd { position: absolute; right: 14px; padding: 1px 8px; border-radius: 8px; border: 1px solid var(--pw-border); color: var(--pw-faint); font: 600 12px var(--pw-mono); }
.pw-select { position: relative; display: inline-flex; align-items: center; }
.pw-select select {
    appearance: none; -webkit-appearance: none; min-height: 48px; padding: 0 40px 0 18px; border-radius: 999px; border: 1px solid var(--pw-glass-edge);
    background: var(--pw-glass); color: var(--pw-text); font: 650 14.5px var(--pw-font); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.pw-select select option { background: var(--pw-surface-solid); color: var(--pw-text); }
.pw-select > .pw-i { position: absolute; right: 15px; pointer-events: none; color: var(--pw-faint); width: 18px; height: 18px; }
.pw-select--block { display: flex; width: 100%; }
.pw-select--block select { width: 100%; border-radius: var(--pw-radius-sm); }
.pw-js .pw-noscript-submit { display: none; }
.pw-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 14px; margin: 0 -2px; scroll-snap-type: x proximity; }
.pw-chips::-webkit-scrollbar { display: none; }
.pw-chip { flex: none; scroll-snap-align: start; padding: 9px 16px; border-radius: 999px; color: var(--pw-muted); text-decoration: none; font-weight: 650; font-size: 14px; transition: color .2s, transform .3s var(--pw-spring), background-color .2s; }
.pw-chip:hover { color: var(--pw-text); transform: translateY(-1px); }
.pw-chip.is-active { background: linear-gradient(180deg, #ffffff, #e6e9ff); color: #10142a; border-color: rgba(255, 255, 255, .9); }
@media (prefers-color-scheme: light) { .pw-chip.is-active { background: linear-gradient(180deg, #2b3566, #10142a); color: #fff; border-color: rgba(16, 20, 42, .9); } }
.pw-results { color: var(--pw-faint); font-size: 14px; font-weight: 650; margin: 6px 0 18px; }
.pw-tabs::-webkit-scrollbar { display: none; }
/* Crédito de la lista de cada grupo */
.pw-group-credit { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; color: var(--pw-muted); font-size: 14px; }
.pw-group-credit .pw-i { margin-top: 3px; color: var(--pw-accent); }
.pw-group-credit a { color: var(--pw-text); font-weight: 650; text-decoration: underline; text-decoration-color: var(--pw-border-strong); text-underline-offset: 3px; }

/* Destacados: carril horizontal como en una app de streaming */
.pw-rail { margin: 4px 0 30px; }
.pw-rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pw-rail__head h3 { font-size: 1.3rem; font-weight: 800; }
.pw-rail__head p { color: var(--pw-faint); font-size: 13.5px; font-weight: 600; }
.pw-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; }
.pw-rail__item { position: relative; display: flex; align-items: flex-end; gap: 14px; min-height: 170px; padding: 18px; border-radius: 26px; overflow: hidden; scroll-snap-align: start; text-decoration: none; isolation: isolate; transition: transform .45s var(--pw-spring); }
.pw-rail__item:hover { transform: translateY(-4px) scale(1.01); }
.pw-rail__bg { position: absolute; inset: -35%; width: 170%; height: 170%; max-width: none; z-index: -2; object-fit: cover; filter: blur(30px) saturate(1.8); opacity: .9; }
.pw-rail__item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 5, 11, 0) 20%, rgba(4, 5, 11, .78)); }
.pw-rail__icon { width: 62px; height: 62px; flex: none; border-radius: 18px; object-fit: cover; font-size: 20px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .16); }
.pw-rail__copy { display: flex; flex-direction: column; min-width: 0; color: #fff; }
.pw-rail__star {
    position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
    background: rgba(10, 13, 24, .5); border: 1px solid rgba(255, 209, 102, .5); color: #ffd166; font-size: 12px; font-weight: 750;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pw-rail__star .pw-i { width: 13px; height: 13px; fill: currentColor; }
.pw-rail__copy strong { font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-rail__copy small { color: rgba(255, 255, 255, .75); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .pw-rail__track { grid-auto-columns: 78%; } }

.pw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1040px) { .pw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pw-grid { grid-template-columns: minmax(0, 1fr); } }

/* Ficha: arte con el icono desenfocado, estado de compatibilidad y crédito de su fuente */
.pw-card { display: flex; flex-direction: column; min-width: 0; border-radius: var(--pw-radius); overflow: hidden; isolation: isolate; transition: transform .5s var(--pw-spring), box-shadow .4s var(--pw-ease), opacity .8s var(--pw-ease); }
.pw-card:hover { transform: translateY(-6px); box-shadow: var(--pw-glass-shadow), 0 34px 70px -34px rgba(0, 0, 0, .95), 0 0 0 1px rgba(150, 140, 255, .18); }
.pw-card--featured { box-shadow: var(--pw-glass-shadow), 0 0 0 1px rgba(178, 125, 255, .28); }
.pw-card__body { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 12px; padding: 0 20px 14px; text-decoration: none; flex: 1; min-width: 0; }
.pw-card__art { position: relative; height: 112px; margin: 0 -20px; overflow: hidden; display: block; }
.pw-card__backdrop { position: absolute; inset: -40%; width: 180%; height: 180%; max-width: none; object-fit: cover; filter: blur(26px) saturate(1.8); opacity: .8; transform: scale(1.05); transition: transform 1.2s var(--pw-ease), opacity .4s; }
.pw-card:hover .pw-card__backdrop { transform: scale(1.18); opacity: 1; }
.pw-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 5, 11, 0) 0%, rgba(4, 5, 11, .1) 45%, var(--pw-card-fade, rgba(10, 13, 24, .92)) 100%); }
@media (prefers-color-scheme: light) { .pw-card { --pw-card-fade: rgba(245, 247, 253, .96); } }
.pw-card__status {
    position: absolute; top: 12px; right: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    background: rgba(10, 13, 24, .45); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(12px) saturate(170%); backdrop-filter: blur(12px) saturate(170%);
}
.pw-card__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pw-card__status--ok { color: #7cf0bd; }
.pw-card__status--browser { color: #8fd3ff; }
.pw-card__status--soon { color: #d4b4ff; }
.pw-card__status--off { color: #ffd27a; }
.pw-card__status--checking { color: #d5dbf2; }
.pw-card__head { position: relative; display: flex; align-items: flex-end; gap: 14px; min-width: 0; margin-top: -38px; }
.pw-card__icon { width: 60px; height: 60px; border-radius: 18px; object-fit: cover; flex: none; font-size: 19px; background-color: var(--pw-surface-2); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .18), 0 0 0 4px rgba(255, 255, 255, .06); }
.pw-card__title { display: flex; flex-direction: column; min-width: 0; padding-bottom: 2px; }
.pw-card__title strong { font-size: 1.08rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-card__author { color: var(--pw-faint); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-card__badge { margin-left: auto; align-self: center; }
.pw-card__desc { color: var(--pw-muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pw-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--pw-faint); font-size: 13px; font-weight: 650; margin-top: auto; }
.pw-card__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.pw-card__meta .pw-i { width: 14px; height: 14px; }
.pw-card__signed { color: var(--pw-success); }
.pw-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-card__tags > span { padding: 3px 10px; border-radius: 999px; background: var(--pw-surface); border: 1px solid var(--pw-border); color: var(--pw-muted); font-size: 12px; font-weight: 650; }
.pw-tag--soft { background: transparent !important; border-style: dashed !important; }
.pw-card__actions { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 0 20px 14px; }
.pw-card__actions .pw-btn { flex: 1; }
/* Origen a la vista: el repositorio o la página (enlace visible) y la lista de la que salió */
.pw-card__origin { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 5px; margin: 0 20px; padding: 11px 0 14px; border-top: 1px solid var(--pw-border); min-width: 0; }
.pw-card__repo { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; color: var(--pw-text); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.pw-card__repo .pw-i { width: 15px; height: 15px; flex: none; color: var(--pw-accent); }
.pw-card__repo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--pw-border-strong); text-underline-offset: 3px; }
.pw-card__repo:hover span { text-decoration-color: currentColor; }
.pw-card__source { color: var(--pw-faint); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-card__source a { color: var(--pw-muted); text-decoration: none; }
.pw-card__source a:hover { color: var(--pw-text); text-decoration: underline; }
.pw-card.is-entering { animation: pw-card-in .6s var(--pw-ease) both; }
@keyframes pw-card-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.pw-empty { text-align: center; padding: 52px 20px; border-radius: var(--pw-radius); color: var(--pw-muted); }
.pw-empty > .pw-i { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--pw-faint); }
.pw-empty h3 { color: var(--pw-text); margin-bottom: 6px; }
.pw-empty p { margin-bottom: 18px; }
.pw-pager { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

/* Crédito de las fuentes del directorio */
.pw-credits { margin-top: 44px; padding: clamp(22px, 4vw, 34px); border-radius: calc(var(--pw-radius) + 4px); }
/* «De dónde salen estos plugins»: el aviso y las fuentes, uno al lado del otro en pantallas anchas */
.pw-provenance { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 36px; margin-top: 44px; scroll-margin-top: 110px; }
/* Aviso de origen bajo el título de la sección de plugins */
.pw-provenance-strip { margin-bottom: 26px; }
.pw-provenance-strip a { color: var(--pw-text); font-weight: 650; text-decoration: underline; text-decoration-color: var(--pw-border-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.pw-provenance-strip a:hover { text-decoration-color: currentColor; }
.pw-provenance__intro h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; }
.pw-provenance__intro > p:not(.pw-kicker) { color: var(--pw-muted); font-size: 14.5px; margin-top: 10px; }
.pw-provenance__line { display: flex; gap: 9px; align-items: flex-start; }
.pw-provenance__line .pw-i { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--pw-accent); }
.pw-provenance__line a { color: var(--pw-text); font-weight: 650; text-decoration: underline; text-decoration-color: var(--pw-border-strong); text-underline-offset: 3px; }
.pw-provenance__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.pw-provenance__item { padding: 12px 0; border-top: 1px solid var(--pw-border); min-width: 0; }
.pw-provenance__item:first-child { border-top: 0; padding-top: 2px; }
.pw-provenance__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; }
.pw-provenance__head span { color: var(--pw-faint); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pw-provenance__about { color: var(--pw-muted); font-size: 13.5px; margin-top: 2px; }
.pw-provenance__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; color: var(--pw-faint); font-size: 13px; font-weight: 600; }
.pw-provenance__meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--pw-accent); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.pw-provenance__meta a:hover { text-decoration: underline; }
.pw-provenance__meta .pw-i { width: 13px; height: 13px; flex: none; }
.pw-provenance .pw-credits__note { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 860px) { .pw-provenance { grid-template-columns: minmax(0, 1fr); } }
.pw-credits__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--pw-faint); font-size: 13.5px; }
.pw-credits__note .pw-i { margin-top: 3px; }
.pw-credits__note a { color: var(--pw-muted); }

/* ---------- Descargas: botones de las tiendas con su código QR ---------- */
.pw-section--tight { padding: clamp(8px, 2vw, 16px) 0 clamp(40px, 6vw, 72px); }
.pw-download { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: clamp(22px, 4vw, 38px); border-radius: calc(var(--pw-radius) + 8px); overflow: hidden; }
.pw-download > * { position: relative; z-index: 3; }
.pw-download__copy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 850; letter-spacing: -.035em; }
.pw-download__copy p:not(.pw-kicker) { margin-top: 8px; color: var(--pw-muted); }
.pw-stores { display: flex; flex-wrap: wrap; gap: 18px; }
.pw-store { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pw-store__button {
    display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 10px 18px 10px 11px; border-radius: 16px; color: #fff; text-decoration: none;
    background: linear-gradient(180deg, #1b1f30, #05060b); border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 30px -16px rgba(0, 0, 0, .9); transition: transform .35s var(--pw-spring), box-shadow .3s;
}
.pw-store__button:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 20px 40px -18px rgba(0, 0, 0, .95); }
.pw-store__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), var(--pw-gradient); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.pw-store__icon .pw-i { width: 18px; height: 18px; }
.pw-store__copy { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.pw-store__copy small { font-size: 11px; opacity: .75; }
.pw-store__copy strong { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.pw-store__qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pw-store__qr figcaption { font-size: 12px; color: var(--pw-faint); font-weight: 600; }
/* El código se lee mejor oscuro sobre blanco: también en modo oscuro. */
.pw-qr { display: block; width: 140px; height: 140px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 16px 34px -18px rgba(0, 0, 0, .85); }
.pw-qr__bg { fill: #ffffff; }
.pw-qr__fg { fill: #0b0f1e; }
.pw-stores--card { justify-content: center; margin: 4px 0 22px; }
.pw-stores--footer { margin-top: 18px; gap: 14px; }
.pw-stores--footer .pw-store { flex-direction: row; gap: 12px; }
.pw-stores--footer .pw-store__button { min-width: 0; }
.pw-stores--footer .pw-qr { width: 84px; height: 84px; border-radius: 12px; }
.pw-stores--footer .pw-store__qr figcaption { display: none; }
@media (max-width: 760px) {
    .pw-download { grid-template-columns: minmax(0, 1fr); }
    .pw-store__qr { display: none; }
    .pw-stores { width: 100%; }
    .pw-store { flex: 1 1 200px; }
    .pw-store__button { width: 100%; justify-content: center; }
}

/* ---------- MegaPlugin ---------- */
.pw-mega {
    overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px; align-items: center;
    padding: clamp(28px, 5vw, 58px); border-radius: calc(var(--pw-radius) + 10px); background: var(--pw-glass-solid);
}
.pw-mega__glow { position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(178, 125, 255, .5), transparent 65%); animation: pw-aurora 18s ease-in-out infinite alternate; pointer-events: none; }
.pw-mega__copy { position: relative; z-index: 3; }
.pw-mega h2, .pw-mega h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 860; letter-spacing: -.045em; background: var(--pw-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.pw-mega__lead { margin-top: 12px; font-size: 1.14rem; color: var(--pw-muted); max-width: 56ch; }
.pw-mega__body { margin-top: 18px; }
.pw-mega__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pw-mega__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pw-mega__badge { position: relative; z-index: 3; display: grid; place-items: center; aspect-ratio: 1; max-width: 250px; width: 100%; justify-self: center; }
.pw-mega__orb {
    position: relative; z-index: 2; display: grid; place-items: center; width: 48%; aspect-ratio: 1; border-radius: 32%; color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 52%), var(--pw-gradient);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 30px 70px -20px rgba(157, 107, 255, .85); animation: pw-float 6s ease-in-out infinite;
}
.pw-mega__orb .pw-i { width: 46%; height: 46%; fill: rgba(255, 255, 255, .18); }
.pw-mega__ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--pw-accent) 45%, transparent); animation: pw-spin 22s linear infinite; }
.pw-mega__ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--pw-accent-3); box-shadow: 0 0 18px var(--pw-accent-3); }
.pw-mega__ring--2 { inset: 22%; animation-duration: 14s; animation-direction: reverse; border-color: color-mix(in srgb, var(--pw-accent-2) 40%, transparent); }
@keyframes pw-spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) { .pw-mega { grid-template-columns: minmax(0, 1fr); } .pw-mega__badge { max-width: 160px; order: -1; } }

/* ---------- Tarjetas de formatos y ventajas ---------- */
.pw-sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pw-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .pw-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pw-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pw-sources, .pw-features { grid-template-columns: minmax(0, 1fr); } }
.pw-feature { padding: 26px 24px; border-radius: var(--pw-radius); overflow: hidden; transition: transform .5s var(--pw-spring), opacity .8s var(--pw-ease); }
.pw-feature:hover { transform: translateY(-4px); }
.pw-feature__icon {
    display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 15px; margin-bottom: 18px; color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), var(--pw-gradient); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), var(--pw-glow);
}
.pw-feature h3 { font-size: 1.1rem; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pw-feature p { color: var(--pw-muted); font-size: 15px; }
.pw-sources .pw-feature:nth-child(2), .pw-features .pw-feature:nth-child(2) { transition-delay: .06s; }
.pw-sources .pw-feature:nth-child(3), .pw-features .pw-feature:nth-child(3) { transition-delay: .12s; }
.pw-sources .pw-feature:nth-child(4), .pw-features .pw-feature:nth-child(4) { transition-delay: .18s; }

/* ---------- Preguntas ---------- */
.pw-faq { display: grid; gap: 12px; }
.pw-faq__item { border-radius: 20px; overflow: hidden; transition: background-color .25s, opacity .8s var(--pw-ease), transform .8s var(--pw-ease); }
.pw-faq__item[open] { background: var(--pw-surface-2); }
.pw-faq__item summary { position: relative; z-index: 3; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; cursor: pointer; font-weight: 720; font-size: 1.03rem; }
.pw-faq__item summary::-webkit-details-marker { display: none; }
.pw-faq__item summary .pw-i { transition: transform .4s var(--pw-spring); color: var(--pw-faint); }
.pw-faq__item[open] summary .pw-i { transform: rotate(180deg); }
.pw-faq__answer { position: relative; z-index: 3; padding: 0 22px 20px; color: var(--pw-muted); }
.pw-faq__answer a, .pw-prose a { color: var(--pw-accent); }

/* ---------- Llamado final y textos ---------- */
.pw-cta {
    position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding: clamp(30px, 5vw, 56px); border-radius: calc(var(--pw-radius) + 10px); color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%), var(--pw-gradient);
    border: 1px solid rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 34px 90px -34px rgba(124, 110, 255, .85);
}
.pw-cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, .28), transparent 60%); pointer-events: none; }
.pw-cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 860; letter-spacing: -.04em; }
.pw-cta p { margin-top: 8px; opacity: .92; font-size: 1.08rem; }
.pw-cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.pw-cta .pw-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }
.pw-text-section { display: grid; gap: 32px; }
.pw-text-section--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 820px) { .pw-text-section--media { grid-template-columns: minmax(0, 1fr); } }
.pw-text-section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.pw-text-section__lead { color: var(--pw-muted); font-size: 1.12rem; margin-bottom: 16px; }
.pw-text-section__image { border-radius: var(--pw-radius); border: 1px solid var(--pw-glass-edge); box-shadow: var(--pw-shadow); width: 100%; height: auto; }
.pw-prose { color: var(--pw-muted); }
.pw-prose > * + * { margin-top: 14px; }
.pw-prose h2, .pw-prose h3, .pw-prose h4 { color: var(--pw-text); margin-top: 30px; }
.pw-prose h2 { font-size: 1.45rem; }
.pw-prose h3 { font-size: 1.2rem; }
.pw-prose ul, .pw-prose ol { padding-left: 1.3em; }
.pw-prose li + li { margin-top: 6px; }
.pw-prose strong { color: var(--pw-text); }
.pw-prose code { font-family: var(--pw-mono); font-size: .9em; padding: 2px 6px; border-radius: 7px; background: var(--pw-surface-2); }
.pw-prose blockquote { margin: 0; padding: 12px 18px; border-left: 3px solid var(--pw-accent); background: var(--pw-surface); border-radius: 0 14px 14px 0; }
.pw-prose hr { border: 0; border-top: 1px solid var(--pw-border); margin: 26px 0; }

/* ---------- Páginas internas ---------- */
.pw-page { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 9vw, 112px); }
.pw-crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; padding: 8px 16px; border-radius: 999px; color: var(--pw-faint); font-size: 14px; font-weight: 650; }
.pw-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--pw-muted); text-decoration: none; }
.pw-crumbs a:hover { color: var(--pw-text); }
.pw-detail__hero {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; overflow: hidden; isolation: isolate;
    padding: clamp(24px, 4vw, 38px); border-radius: calc(var(--pw-radius) + 8px); background: var(--pw-glass-solid);
}
.pw-detail__backdrop { position: absolute; inset: -50%; width: 200%; height: 200%; max-width: none; z-index: -1; object-fit: cover; filter: blur(48px) saturate(1.8); opacity: .55; pointer-events: none; }
@media (prefers-color-scheme: light) { .pw-detail__backdrop { opacity: .35; } }
.pw-detail__icon { position: relative; z-index: 3; width: 104px; height: 104px; border-radius: 28px; object-fit: cover; font-size: 32px; box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .18), 0 0 0 6px rgba(255, 255, 255, .06); }
.pw-detail__title, .pw-detail__actions { position: relative; z-index: 3; }
.pw-detail__title h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 860; letter-spacing: -.04em; overflow-wrap: anywhere; }
.pw-detail__author { display: flex; align-items: center; gap: 6px; color: var(--pw-muted); margin-top: 6px; overflow-wrap: anywhere; }
.pw-detail__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pw-detail__actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
@media (max-width: 820px) {
    .pw-detail__hero { grid-template-columns: auto minmax(0, 1fr); }
    .pw-detail__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
    .pw-detail__actions .pw-btn { flex: 1 1 200px; }
    .pw-detail__icon { width: 76px; height: 76px; border-radius: 22px; font-size: 24px; }
}
.pw-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; margin-top: 22px; align-items: start; }
@media (max-width: 900px) { .pw-detail__grid { grid-template-columns: minmax(0, 1fr); } }
.pw-detail__main { display: grid; gap: 22px; min-width: 0; }
.pw-panel { padding: clamp(20px, 3.5vw, 30px); border-radius: var(--pw-radius); min-width: 0; }
.pw-panel > * { position: relative; z-index: 3; }
.pw-panel > h2 { font-size: 1.22rem; margin-bottom: 14px; }
.pw-detail__desc { color: var(--pw-muted); font-size: 1.04rem; margin-bottom: 16px; overflow-wrap: anywhere; }
.pw-detail__side { position: sticky; top: 96px; padding: 22px; border-radius: var(--pw-radius); display: grid; gap: 16px; min-width: 0; }
.pw-detail__side > * { position: relative; z-index: 3; }
.pw-side-title { font-size: 1.1rem; }
.pw-facts { display: grid; gap: 12px; margin: 0; }
.pw-facts > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--pw-border); }
.pw-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pw-facts dt { display: inline-flex; align-items: center; gap: 8px; color: var(--pw-muted); font-size: 14px; }
.pw-facts dd { margin: 0; font-weight: 720; text-align: right; overflow-wrap: anywhere; }
.pw-facts dd a { color: var(--pw-accent); text-decoration: none; }
.pw-facts--stack > div { flex-direction: column; }
.pw-facts--stack dd { text-align: left; }
.pw-fingerprint { display: block; font-family: var(--pw-mono); font-size: 12.5px; line-height: 1.7; letter-spacing: .04em; color: var(--pw-text); word-spacing: .2em; overflow-wrap: anywhere; }
.pw-detail__disclaimer { color: var(--pw-faint); font-size: 13px; }
.pw-detail__disclaimer a { color: var(--pw-muted); }
.pw-howto { margin: 0 0 18px; padding-left: 1.3em; color: var(--pw-muted); }
.pw-howto li + li { margin-top: 8px; }
.pw-howto strong, .pw-howto em { color: var(--pw-text); }
.pw-copy { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 18px; background: rgba(0, 0, 0, .22); border: 1px solid var(--pw-border); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); min-width: 0; }
@media (prefers-color-scheme: light) { .pw-copy { background: rgba(20, 28, 60, .05); box-shadow: none; } }
.pw-copy code { flex: 1; min-width: 0; font-family: var(--pw-mono); font-size: 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.pw-related { margin-top: 56px; }
.pw-related h2 { font-size: 1.45rem; margin-bottom: 18px; }
.pw-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pw-timeline > li { position: relative; padding-left: 22px; }
.pw-timeline > li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--pw-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pw-accent) 18%, transparent); }
.pw-timeline > li + li::after { content: ""; position: absolute; left: 4px; top: -18px; height: 26px; width: 1px; background: var(--pw-border-strong); }
.pw-timeline__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.pw-timeline__date { color: var(--pw-faint); font-size: 13.5px; margin-left: auto; }
.pw-mega--page { margin-bottom: 4px; }
.pw-mega-page .pw-detail__grid { margin-top: 26px; }

.pw-add-card { text-align: center; padding: clamp(28px, 6vw, 54px); border-radius: calc(var(--pw-radius) + 10px); background: var(--pw-glass-solid); }
.pw-add-card > * { position: relative; z-index: 3; }
.pw-add-card__icon {
    display: inline-flex; width: 68px; height: 68px; align-items: center; justify-content: center; border-radius: 22px; color: #fff; margin-bottom: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 55%), var(--pw-gradient); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), var(--pw-glow);
}
.pw-add-card__icon .pw-i { width: 28px; height: 28px; }
.pw-add-card__icon--success { background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #34d399, #059669); }
.pw-add-card h1 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); letter-spacing: -.035em; margin-bottom: 12px; overflow-wrap: anywhere; }
.pw-add-card__lead { color: var(--pw-muted); max-width: 52ch; margin: 0 auto 24px; }
.pw-add-card .pw-callout { text-align: left; }
.pw-add-card__desktop { display: flex; gap: 10px; text-align: left; margin-top: 16px; color: var(--pw-muted); font-size: 14px; }
.pw-add-card__desktop[hidden] { display: none; }
.pw-add-card__manual { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--pw-border); text-align: left; }
.pw-add-card__manual h2 { font-size: 1.12rem; margin-bottom: 12px; }
.pw-add-card__footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
.pw-missing__code { font-size: 72px; font-weight: 900; letter-spacing: -.05em; background: var(--pw-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 8px; }

.pw-legal__card { padding: clamp(22px, 5vw, 48px); border-radius: calc(var(--pw-radius) + 6px); }
.pw-legal__card > * { position: relative; z-index: 3; }
.pw-legal__head { margin-bottom: 26px; }
.pw-legal__head h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 860; letter-spacing: -.04em; margin-bottom: 12px; }
.pw-legal__summary { font-size: 1.12rem; color: var(--pw-muted); margin-bottom: 8px; }
.pw-legal__body { font-size: 1.02rem; line-height: 1.75; }
.pw-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 30px; }
.pw-contact__card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; text-decoration: none; transition: transform .4s var(--pw-spring); min-width: 0; }
.pw-contact__card:hover { transform: translateY(-3px); }
.pw-contact__card > * { position: relative; z-index: 3; }
.pw-contact__card > .pw-i { color: var(--pw-accent); width: 22px; height: 22px; }
.pw-contact__card span { display: flex; flex-direction: column; min-width: 0; }
.pw-contact__card small { color: var(--pw-muted); overflow: hidden; text-overflow: ellipsis; }

/* ---------- Formulario ---------- */
.pw-form { display: grid; gap: 18px; }
.pw-form fieldset { margin: 0; border: 1px solid var(--pw-border); border-radius: var(--pw-radius-sm); display: grid; gap: 16px; padding: 18px; }
.pw-form legend { font-weight: 800; font-size: 1.08rem; padding: 0 6px; }
.pw-form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 640px) { .pw-form__row { grid-template-columns: minmax(0, 1fr); } }
.pw-field { display: grid; gap: 6px; min-width: 0; }
.pw-field label { font-weight: 720; font-size: 14.5px; }
.pw-field input, .pw-field textarea {
    width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--pw-radius-sm); border: 1px solid var(--pw-border-strong);
    background: rgba(0, 0, 0, .22); color: var(--pw-text); font: inherit; font-size: 15.5px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
    transition: border-color .2s, box-shadow .2s;
}
@media (prefers-color-scheme: light) { .pw-field input, .pw-field textarea { background: rgba(255, 255, 255, .8); box-shadow: inset 0 1px 2px rgba(20, 28, 60, .06); } }
.pw-field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.pw-field input:focus, .pw-field textarea:focus, .pw-select select:focus { outline: none; border-color: var(--pw-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pw-accent) 20%, transparent); }
.pw-field [aria-invalid="true"] { border-color: var(--pw-danger); }
.pw-field__hint { color: var(--pw-faint); font-size: 13px; }
.pw-field__error { color: var(--pw-danger); font-size: 13.5px; font-weight: 650; }
.pw-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--pw-muted); cursor: pointer; }
.pw-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pw-accent); flex: none; }
.pw-check a { color: var(--pw-accent); }
.pw-form__actions { display: flex; justify-content: flex-end; }
.pw-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pw-report__ref { margin: 4px 0 6px; font-size: 1.05rem; }
.pw-report__ref strong { font-family: var(--pw-mono); letter-spacing: .06em; }
.pw-report__done .pw-btn { margin-top: 20px; }

/* ---------- Pie ---------- */
.pw-footer { position: relative; z-index: 1; padding: 64px 0 30px; margin-top: 20px; }
.pw-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pw-border-strong), transparent); }
.pw-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .pw-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pw-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pw-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.pw-footer__brand p { color: var(--pw-muted); margin-top: 12px; max-width: 42ch; }
.pw-footer__note { font-size: 13.5px; color: var(--pw-faint) !important; }
.pw-footer__col h2 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--pw-faint); margin-bottom: 14px; }
.pw-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pw-footer__col a { color: var(--pw-muted); text-decoration: none; font-weight: 650; font-size: 15px; }
.pw-footer__col a:hover { color: var(--pw-text); }
.pw-footer__legal { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--pw-border); display: grid; gap: 8px; color: var(--pw-faint); font-size: 13px; }

/* ---------- Aviso flotante ---------- */
.pw-toast {
    position: fixed; left: 50%; bottom: 22px; z-index: 80; transform: translate(-50%, 24px) scale(.96); opacity: 0; pointer-events: none;
    padding: 13px 20px; border-radius: 999px; background: var(--pw-glass-solid); color: var(--pw-text); border: 1px solid var(--pw-glass-edge);
    box-shadow: var(--pw-glass-shadow), var(--pw-shadow); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    font-weight: 700; font-size: 14px; transition: opacity .25s, transform .45s var(--pw-spring); max-width: calc(100vw - 32px); text-align: center;
}
.pw-toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }

@media (max-width: 560px) {
    .pw-hero__actions .pw-btn, .pw-mega__actions .pw-btn, .pw-cta__actions .pw-btn { width: 100%; }
    .pw-hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pw-hero__stats > div { min-width: 0; padding: 10px 14px; }
    .pw-hero__stats dd { font-size: 22px; }
    .pw-toolbar { gap: 8px; border-radius: 26px; }
    .pw-tabs { width: 100%; }
    .pw-tab { flex: none; padding: 0 13px; font-size: 14px; }
    .pw-select:not(.pw-select--block) { width: 100%; }
    .pw-select:not(.pw-select--block) select { width: 100%; }
    .pw-search kbd { display: none; }
    .pw-search input { padding-right: 18px; }
}

/* Sin desenfoque disponible: el vidrio usa una base más opaca para que el texto se lea igual. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .pw-header .pw-header__bar, .pw-toolbar, .pw-nav, .pw-float, .pw-toast { background: var(--pw-surface-solid); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pw-backdrop > span, .pw-phone, .pw-float, .pw-hero__halo, .pw-app__track, .pw-app__slide, .pw-steps::before, .pw-mega__glow, .pw-mega__orb, .pw-mega__ring,
    .pw-hero__title, .pw-pulse { animation: none !important; }
    .pw-app__slide:first-child { opacity: 1; }
    .pw-app__sheet, .pw-app__toast, .pw-app__button span:last-child, .pw-app__button::after { animation: none !important; }
    .pw-rise { animation: none; opacity: 1; transform: none; }
    .pw-js [data-pw-reveal]:not(.is-visible) { opacity: 1; transform: none; }
    .pw-card, .pw-step, .pw-feature, .pw-btn, .pw-chip, .pw-rail__item { transition: none; }
}
