/* Web pública de plugins (/plugins). Oscura por defecto, clara según el sistema; sin recursos externos. */
:root {
    --pw-bg: #070a13;
    --pw-bg-2: #0b1020;
    --pw-surface: rgba(255, 255, 255, .045);
    --pw-surface-2: rgba(255, 255, 255, .075);
    --pw-surface-solid: #111729;
    --pw-border: rgba(255, 255, 255, .09);
    --pw-border-strong: rgba(255, 255, 255, .18);
    --pw-text: #eef1fb;
    --pw-muted: #a6aec8;
    --pw-faint: #737c99;
    --pw-accent: #6d8dff;
    --pw-accent-2: #a274ff;
    --pw-accent-3: #2dd4bf;
    --pw-accent-ink: #ffffff;
    --pw-success: #34d399;
    --pw-warning: #fbbf24;
    --pw-danger: #fb7185;
    --pw-gradient: linear-gradient(120deg, #5f86ff 0%, #9d6bff 52%, #ec6bd6 100%);
    --pw-glow: 0 0 0 1px rgba(124, 140, 255, .25), 0 18px 50px -18px rgba(109, 141, 255, .55);
    --pw-shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
    --pw-radius: 20px;
    --pw-radius-sm: 13px;
    --pw-max: 1200px;
    --pw-gutter: clamp(16px, 4vw, 32px);
    --pw-font: system-ui, -apple-system, "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);
    color-scheme: dark;
}
@media (prefers-color-scheme: light) {
    :root {
        --pw-bg: #f5f7fc;
        --pw-bg-2: #ecf0fa;
        --pw-surface: #ffffff;
        --pw-surface-2: #f2f5fd;
        --pw-surface-solid: #ffffff;
        --pw-border: rgba(15, 23, 42, .09);
        --pw-border-strong: rgba(15, 23, 42, .18);
        --pw-text: #0d1328;
        --pw-muted: #4a5470;
        --pw-faint: #77809b;
        --pw-accent: #3f64f0;
        --pw-accent-2: #7a4ce8;
        --pw-glow: 0 0 0 1px rgba(63, 100, 240, .18), 0 18px 40px -20px rgba(63, 100, 240, .45);
        --pw-shadow: 0 18px 46px -26px rgba(15, 23, 42, .35);
        color-scheme: light;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.pw {
    margin: 0;
    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.15; letter-spacing: -.02em; margin: 0; }
:where(.pw) p { margin: 0; }
.pw :focus-visible { outline: 3px solid var(--pw-accent); outline-offset: 3px; border-radius: 10px; }
.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: 10px; 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: 860px; }
.pw-container--reading { max-width: 780px; }
.pw-i { width: 1.15em; height: 1.15em; flex: none; }
.pw-muted { color: var(--pw-muted); }
.pw-main { outline: none; }

/* ---------- Botones, pastillas y enlaces ---------- */
.pw-btn {
    --btn-bg: var(--pw-surface-2);
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 44px; padding: 0 20px; border: 1px solid var(--pw-border); border-radius: 999px;
    background: var(--btn-bg); color: var(--pw-text); font: 600 15px/1 var(--pw-font); text-decoration: none;
    cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
    transition: transform .25s var(--pw-ease), box-shadow .25s var(--pw-ease), background-color .2s, border-color .2s;
}
.pw-btn:hover { transform: translateY(-1px); border-color: var(--pw-border-strong); }
.pw-btn:active { transform: translateY(0) scale(.98); }
.pw-btn--sm { min-height: 38px; padding: 0 15px; font-size: 14px; }
.pw-btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.pw-btn--block { width: 100%; }
.pw-btn--primary { background: var(--pw-gradient); border-color: transparent; color: #fff; box-shadow: 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, .35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .7s var(--pw-ease);
}
.pw-btn--primary:hover::after { transform: translateX(120%); }
.pw-btn--primary:hover { box-shadow: 0 0 0 1px rgba(124, 140, 255, .35), 0 22px 50px -16px rgba(124, 110, 255, .7); }
.pw-btn--ghost { background: transparent; }
.pw-btn--ghost:hover { background: var(--pw-surface-2); }
.pw-btn--light { background: #fff; color: #10142a; border-color: transparent; }
.pw-btn--soon { background: transparent; border-style: dashed; color: var(--pw-muted); cursor: default; }
.pw-btn--soon:hover { transform: none; }
.pw-icon-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none;
    border-radius: 50%; border: 1px solid var(--pw-border); color: var(--pw-muted); text-decoration: none;
    transition: color .2s, border-color .2s, background-color .2s;
}
.pw-icon-btn:hover { color: var(--pw-text); border-color: var(--pw-border-strong); background: var(--pw-surface-2); }
.pw-pill {
    display: inline-flex; align-items: center; gap: .35em; padding: 4px 10px; border-radius: 999px;
    background: var(--pw-surface-2); border: 1px solid var(--pw-border); color: var(--pw-muted);
    font-size: 12.5px; font-weight: 600; 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) 35%, transparent); background: color-mix(in srgb, var(--pw-accent) 12%, transparent); }
.pw-pill--success { color: var(--pw-success); border-color: color-mix(in srgb, var(--pw-success) 35%, transparent); background: color-mix(in srgb, var(--pw-success) 10%, transparent); }
.pw-pill--warning { color: var(--pw-warning); border-color: color-mix(in srgb, var(--pw-warning) 35%, transparent); background: color-mix(in srgb, var(--pw-warning) 10%, transparent); }
.pw-pill--soon { color: var(--pw-accent-2); border-color: color-mix(in srgb, var(--pw-accent-2) 35%, transparent); background: color-mix(in srgb, var(--pw-accent-2) 12%, transparent); }
@media (prefers-color-scheme: light) {
    .pw-pill--success { color: #047857; }
    .pw-pill--warning { color: #92400e; }
}
.pw-text-link, .pw-link-danger { display: inline-flex; align-items: center; gap: .4em; color: var(--pw-muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.pw-text-link:hover { color: var(--pw-text); }
.pw-link-danger:hover { color: var(--pw-danger); }
.pw-kicker {
    display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    background: var(--pw-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px;
}
.pw-callout {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--pw-radius-sm);
    background: color-mix(in srgb, var(--pw-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pw-accent) 28%, transparent);
    color: var(--pw-text); font-size: 14.5px; margin: 0 0 18px;
}
.pw-callout .pw-i { color: var(--pw-accent); margin-top: 2px; }
.pw-callout--warning { background: color-mix(in srgb, var(--pw-warning) 10%, transparent); border-color: color-mix(in srgb, var(--pw-warning) 35%, transparent); }
.pw-callout--warning .pw-i { color: var(--pw-warning); }
.pw-callout--danger { background: color-mix(in srgb, var(--pw-danger) 10%, transparent); border-color: color-mix(in srgb, var(--pw-danger) 35%, transparent); }
.pw-callout--danger .pw-i { color: var(--pw-danger); }

/* ---------- Cabecera ---------- */
.pw-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--pw-bg) 72%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.pw-header.is-scrolled { border-bottom-color: var(--pw-border); }
.pw-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.pw-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.pw-brand__mark {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px;
    background: var(--pw-gradient); color: #fff; box-shadow: var(--pw-glow);
}
.pw-brand__mark .pw-i { width: 18px; height: 18px; fill: currentColor; }
.pw-brand__logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.pw-nav { display: flex; align-items: center; gap: 22px; }
.pw-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pw-nav ul a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--pw-muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .2s, background-color .2s; }
.pw-nav ul a:hover { color: var(--pw-text); background: var(--pw-surface-2); }
.pw-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--pw-border); border-radius: 12px; background: transparent; 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-menu-toggle { display: inline-flex; }
    .pw-nav {
        position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); flex-direction: column; align-items: stretch; gap: 10px;
        padding: 12px; border: 1px solid var(--pw-border); border-radius: var(--pw-radius); background: var(--pw-surface-solid); box-shadow: var(--pw-shadow);
        opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; visibility: hidden;
        transition: opacity .2s var(--pw-ease), transform .25s var(--pw-ease), visibility .25s;
    }
    .pw-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
    .pw-nav ul { flex-direction: column; }
    .pw-nav ul a { padding: 12px 14px; font-size: 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; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 100px); }
.pw-hero__aurora { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; filter: blur(70px); opacity: .55; z-index: 0; }
.pw-hero__aurora span { position: absolute; border-radius: 50%; animation: pw-drift 18s ease-in-out infinite alternate; }
.pw-hero__aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -6vw; top: -8vw; background: #3d5afe; }
.pw-hero__aurora span:nth-child(2) { width: 38vw; height: 38vw; right: -4vw; top: 4vw; background: #9b51e0; animation-duration: 22s; animation-delay: -6s; }
.pw-hero__aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 34vw; top: 18vw; background: #14b8a6; opacity: .6; animation-duration: 26s; animation-delay: -12s; }
@media (prefers-color-scheme: light) { .pw-hero__aurora { opacity: .28; } }
@keyframes pw-drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(4vw, 3vw, 0) scale(1.08); } 100% { transform: translate3d(-3vw, 5vw, 0) scale(.95); } }
.pw-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--pw-bg)); pointer-events: none; }
.pw-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.pw-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: var(--pw-surface-2); border: 1px solid var(--pw-border); color: var(--pw-muted); font-size: 13.5px; font-weight: 600; margin-bottom: 22px; }
.pw-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pw-success); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pw-pulse 2.2s infinite; }
@keyframes pw-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.pw-hero__title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 850; letter-spacing: -.035em; max-width: 16ch; text-wrap: balance; }
.pw-hero__lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--pw-muted); max-width: 54ch; }
.pw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pw-hero__stats { display: flex; flex-wrap: wrap; gap: 12px 34px; margin: 38px 0 0; }
.pw-hero__stats div { min-width: 92px; }
.pw-hero__stats dt { font-size: 13px; color: var(--pw-faint); font-weight: 600; }
.pw-hero__stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 800; 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; min-height: 420px; perspective: 1400px; }
.pw-hero__image { width: 100%; height: auto; border-radius: var(--pw-radius); box-shadow: var(--pw-shadow); }
.pw-device { position: absolute; border-radius: 22px; background: linear-gradient(160deg, #1c2340, #0b0f1e); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .5s var(--pw-ease); }
.pw-device--tv { inset: 6% 6% auto 0; aspect-ratio: 16 / 10; padding: 12px; animation: pw-float 9s ease-in-out infinite; transform-style: preserve-3d; }
.pw-device--phone { width: 40%; max-width: 210px; right: 0; bottom: -2%; aspect-ratio: 9 / 18; padding: 9px; border-radius: 28px; animation: pw-float 7s ease-in-out infinite -3s; }
@keyframes pw-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.pw-device__screen { height: 100%; border-radius: 14px; background: #090d1a; overflow: hidden; padding: 14px; display: flex; flex-direction: column; gap: 12px; color: #eef1fb; }
.pw-mock__bar { display: flex; align-items: center; gap: 6px; }
.pw-mock__bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.pw-mock__bar em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .08em; opacity: .7; }
.pw-mock__banner { padding: 16px; border-radius: 12px; min-height: 30%; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(120% 120% at 0% 0%, rgba(98, 126, 255, .65), transparent 60%), radial-gradient(120% 120% at 100% 100%, rgba(236, 107, 214, .5), transparent 55%), #141a33; position: relative; overflow: hidden; }
.pw-mock__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%); animation: pw-shine 5s ease-in-out infinite; }
@keyframes pw-shine { 0%, 40% { transform: translateX(-120%); } 70%, 100% { transform: translateX(120%); } }
.pw-mock__banner strong { font-size: 15px; }
.pw-mock__banner small { font-size: 11px; opacity: .75; }
.pw-mock__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pw-mock__tile { aspect-ratio: 1; width: 100%; border-radius: 10px; object-fit: cover; font-size: 12px; animation: pw-tile 6s ease-in-out infinite; }
.pw-mock__row .pw-mock__tile:nth-child(2) { animation-delay: .4s; } .pw-mock__row .pw-mock__tile:nth-child(3) { animation-delay: .8s; } .pw-mock__row .pw-mock__tile:nth-child(4) { animation-delay: 1.2s; } .pw-mock__row .pw-mock__tile:nth-child(5) { animation-delay: 1.6s; } .pw-mock__row .pw-mock__tile:nth-child(6) { animation-delay: 2s; }
@keyframes pw-tile { 0%, 100% { transform: none; filter: none; } 8% { transform: translateY(-3px); filter: brightness(1.2); } 16% { transform: none; filter: none; } }
.pw-mock__row--wide { grid-template-columns: repeat(3, 1fr); }
.pw-mock__row--wide span { height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.pw-mock__sheet { align-items: center; text-align: center; justify-content: flex-end; gap: 8px; padding-bottom: 18px; background: linear-gradient(180deg, #0d1226 0%, #151b36 100%); }
.pw-mock__grab { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); margin-bottom: auto; }
.pw-mock__icon { width: 54px; height: 54px; border-radius: 15px; object-fit: cover; font-size: 16px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8); }
.pw-mock__sheet strong { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-mock__sheet small { font-size: 10.5px; opacity: .65; }
.pw-mock__check { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: #6ee7b7; }
.pw-mock__check .pw-i { width: 12px; height: 12px; }
.pw-mock__button { width: 100%; padding: 9px 0; border-radius: 999px; background: var(--pw-gradient); font-size: 11.5px; font-weight: 700; position: relative; }
.pw-mock__button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); opacity: 0; animation: pw-tap 4.5s ease-out infinite 1.5s; }
@keyframes pw-tap { 0%, 60% { opacity: 0; transform: scale(.4); } 66% { opacity: 1; } 80%, 100% { opacity: 0; transform: scale(2.2); } }
@media (max-width: 900px) {
    .pw-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .pw-hero__visual { min-height: 0; aspect-ratio: 16 / 12; max-width: 560px; width: 100%; margin: 0 auto; }
    .pw-hero__title { max-width: 18ch; }
}

/* ---------- Avatares ---------- */
.pw-avatar { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; letter-spacing: .02em; }
.pw-tone-0 { background: linear-gradient(135deg, #5f86ff, #3b4fd8); }
.pw-tone-1 { background: linear-gradient(135deg, #a274ff, #6d3fd6); }
.pw-tone-2 { background: linear-gradient(135deg, #ec6bd6, #b0399f); }
.pw-tone-3 { background: linear-gradient(135deg, #2dd4bf, #0f8f82); }
.pw-tone-4 { background: linear-gradient(135deg, #f59e0b, #c2410c); }
.pw-tone-5 { background: linear-gradient(135deg, #38bdf8, #1d6fb8); }
.pw-tone-6 { background: linear-gradient(135deg, #f472b6, #e11d48); }
.pw-tone-7 { background: linear-gradient(135deg, #84cc16, #3f7d10); }

/* ---------- Secciones ---------- */
.pw-section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.pw-section--alt { background: linear-gradient(180deg, transparent, var(--pw-bg-2) 18%, var(--pw-bg-2) 82%, transparent); }
.pw-section__head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.pw-section__head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 820; }
.pw-section__head > p:not(.pw-kicker) { margin-top: 14px; color: var(--pw-muted); font-size: 1.08rem; }
.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(24px); }

.pw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: step; }
.pw-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 46px; height: 2px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--pw-accent) 55%, transparent), transparent); }
.pw-step { position: relative; padding: 26px 22px; border-radius: var(--pw-radius); background: linear-gradient(var(--pw-surface), var(--pw-surface)), var(--pw-bg); border: 1px solid var(--pw-border); }
.pw-step__number { position: absolute; top: 16px; right: 18px; font-size: 13px; font-weight: 800; color: var(--pw-faint); }
.pw-step__icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 14px; background: var(--pw-gradient); color: #fff; box-shadow: var(--pw-glow); margin-bottom: 18px; position: relative; z-index: 1; }
.pw-step h3 { font-size: 1.12rem; 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-directory { background: radial-gradient(60% 40% at 50% 0%, color-mix(in srgb, var(--pw-accent) 9%, transparent), transparent); }
.pw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.pw-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--pw-surface); border: 1px solid var(--pw-border); }
.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 .25s var(--pw-ease); white-space: nowrap; }
.pw-tab.is-active { background: var(--pw-surface-2); color: var(--pw-text); box-shadow: inset 0 0 0 1px var(--pw-border-strong); }
.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 260px; 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 44px; border-radius: 999px; border: 1px solid var(--pw-border);
    background: var(--pw-surface); color: var(--pw-text); font: inherit; font-size: 15.5px; outline: none;
    transition: border-color .2s, box-shadow .25s, background-color .2s;
}
.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) 18%, transparent); }
.pw-search input::placeholder { color: var(--pw-faint); }
.pw-search kbd { position: absolute; right: 14px; padding: 1px 8px; border-radius: 7px; 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-border);
    background: var(--pw-surface); color: var(--pw-text); font: 600 14.5px var(--pw-font); cursor: pointer;
}
.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 12px; margin: 0 -2px; scroll-snap-type: x proximity; }
.pw-chips::-webkit-scrollbar { display: none; }
.pw-chip { flex: none; scroll-snap-align: start; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--pw-border); color: var(--pw-muted); text-decoration: none; font-weight: 600; font-size: 14px; transition: all .2s var(--pw-ease); }
.pw-chip:hover { color: var(--pw-text); border-color: var(--pw-border-strong); }
.pw-chip.is-active { background: var(--pw-text); color: var(--pw-bg); border-color: transparent; }
.pw-results { color: var(--pw-faint); font-size: 14px; font-weight: 600; margin: 8px 0 16px; }
.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); } }
.pw-card {
    position: relative; display: flex; flex-direction: column; border-radius: var(--pw-radius); background: var(--pw-surface);
    border: 1px solid var(--pw-border); overflow: hidden; min-width: 0;
    transition: transform .35s var(--pw-ease), border-color .3s, box-shadow .35s var(--pw-ease), opacity .8s var(--pw-ease);
}
.pw-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--pw-gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.pw-card:hover { transform: translateY(-4px); box-shadow: var(--pw-shadow); border-color: transparent; }
.pw-card:hover::before { opacity: 1; }
.pw-card--featured { background: linear-gradient(160deg, color-mix(in srgb, var(--pw-accent) 10%, var(--pw-surface)), var(--pw-surface) 60%); }
.pw-card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 14px; text-decoration: none; flex: 1; min-width: 0; }
.pw-card__head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pw-card__icon { width: 52px; height: 52px; border-radius: 15px; object-fit: cover; flex: none; font-size: 17px; background-color: var(--pw-surface-2); }
.pw-card__title { display: flex; flex-direction: column; min-width: 0; }
.pw-card__title strong { font-size: 1.06rem; 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: flex-start; }
.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: 600; 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 9px; border-radius: 8px; background: var(--pw-surface-2); color: var(--pw-muted); font-size: 12px; font-weight: 600; }
.pw-tag--soft { background: transparent !important; border: 1px dashed var(--pw-border); }
.pw-card__actions { display: flex; align-items: center; gap: 10px; padding: 0 20px 18px; }
.pw-card__actions .pw-btn { flex: 1; }
.pw-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--pw-border-strong); 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: 28px; }
.pw-directory__note { display: flex; gap: 10px; justify-content: center; align-items: flex-start; margin: 26px auto 0; max-width: 720px; color: var(--pw-faint); font-size: 13.5px; text-align: left; }
.pw-directory__note .pw-i { margin-top: 3px; }
.pw-directory__note a { color: var(--pw-muted); }
.pw-card.is-entering { animation: pw-card-in .55s var(--pw-ease) both; }
@keyframes pw-card-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- MegaPlugin ---------- */
.pw-mega {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px; align-items: center;
    padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--pw-radius) + 8px);
    background: linear-gradient(140deg, color-mix(in srgb, var(--pw-accent) 16%, var(--pw-surface-solid)), var(--pw-surface-solid) 55%, color-mix(in srgb, var(--pw-accent-2) 14%, var(--pw-surface-solid)));
    border: 1px solid var(--pw-border-strong); box-shadow: var(--pw-shadow);
}
.pw-mega__glow { position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pw-accent-2) 45%, transparent), transparent 65%); filter: blur(10px); animation: pw-drift 16s ease-in-out infinite alternate; pointer-events: none; }
.pw-mega__copy { position: relative; }
.pw-mega h2, .pw-mega h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 850; 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.12rem; 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: 26px; }
.pw-mega__badge { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 240px; width: 100%; justify-self: center; }
.pw-mega__orb { position: relative; z-index: 2; display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: 30%; background: var(--pw-gradient); color: #fff; box-shadow: 0 30px 70px -20px rgba(157, 107, 255, .8); animation: pw-float 6s ease-in-out infinite; }
.pw-mega__orb .pw-i { width: 46%; height: 46%; fill: rgba(255, 255, 255, .15); }
.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: 24px; border-radius: var(--pw-radius); background: var(--pw-surface); border: 1px solid var(--pw-border); transition: transform .35s var(--pw-ease), border-color .3s, opacity .8s var(--pw-ease); }
.pw-feature:hover { transform: translateY(-3px); border-color: var(--pw-border-strong); }
.pw-feature__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 13px; margin-bottom: 16px; color: var(--pw-accent); background: color-mix(in srgb, var(--pw-accent) 13%, transparent); border: 1px solid color-mix(in srgb, var(--pw-accent) 26%, transparent); }
.pw-feature h3 { font-size: 1.08rem; 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: var(--pw-radius-sm); background: var(--pw-surface); border: 1px solid var(--pw-border); overflow: hidden; transition: border-color .25s, opacity .8s var(--pw-ease), transform .8s var(--pw-ease); }
.pw-faq__item[open] { border-color: var(--pw-border-strong); }
.pw-faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 1.02rem; }
.pw-faq__item summary::-webkit-details-marker { display: none; }
.pw-faq__item summary .pw-i { transition: transform .3s var(--pw-ease); color: var(--pw-faint); }
.pw-faq__item[open] summary .pw-i { transform: rotate(180deg); }
.pw-faq__answer { padding: 0 20px 18px; 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(28px, 5vw, 52px); border-radius: calc(var(--pw-radius) + 8px); background: var(--pw-gradient); color: #fff; box-shadow: 0 30px 80px -30px rgba(124, 110, 255, .8); }
.pw-cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, .25), transparent 60%); pointer-events: none; }
.pw-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 850; }
.pw-cta p { margin-top: 8px; opacity: .9; 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); }
.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.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.pw-text-section__lead { color: var(--pw-muted); font-size: 1.1rem; margin-bottom: 16px; }
.pw-text-section__image { border-radius: var(--pw-radius); 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: 6px; 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 12px 12px 0; }
.pw-prose hr { border: 0; border-top: 1px solid var(--pw-border); margin: 26px 0; }

/* ---------- Páginas internas ---------- */
.pw-page { padding: clamp(28px, 5vw, 56px) 0 clamp(64px, 9vw, 110px); }
.pw-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--pw-faint); font-size: 14px; font-weight: 600; }
.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: 24px; align-items: center; padding: clamp(22px, 4vw, 34px); border-radius: calc(var(--pw-radius) + 6px); background: var(--pw-surface); border: 1px solid var(--pw-border); }
.pw-detail__icon { width: 96px; height: 96px; border-radius: 26px; object-fit: cover; font-size: 30px; box-shadow: var(--pw-shadow); }
.pw-detail__title h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 850; 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: 210px; }
@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: 72px; height: 72px; border-radius: 20px; font-size: 22px; }
}
.pw-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; 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, 28px); border-radius: var(--pw-radius); background: var(--pw-surface); border: 1px solid var(--pw-border); min-width: 0; }
.pw-panel > h2 { font-size: 1.2rem; 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: 90px; padding: 22px; border-radius: var(--pw-radius); background: var(--pw-surface); border: 1px solid var(--pw-border); display: grid; gap: 16px; min-width: 0; }
.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: 700; 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-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: 14px; background: var(--pw-bg-2); border: 1px solid var(--pw-border); min-width: 0; }
.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.4rem; 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, 52px); border-radius: calc(var(--pw-radius) + 8px); background: var(--pw-surface); border: 1px solid var(--pw-border); box-shadow: var(--pw-shadow); }
.pw-add-card__icon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 20px; background: var(--pw-gradient); color: #fff; margin-bottom: 18px; box-shadow: var(--pw-glow); }
.pw-add-card__icon .pw-i { width: 28px; height: 28px; }
.pw-add-card__icon--success { background: linear-gradient(135deg, #34d399, #059669); }
.pw-add-card h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); 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.1rem; 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: 64px; font-weight: 900; background: var(--pw-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 8px; }

.pw-legal__head { margin-bottom: 26px; }
.pw-legal__head h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 850; 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(210px, 1fr)); gap: 12px; margin-bottom: 30px; }
.pw-contact__card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--pw-radius-sm); background: var(--pw-surface); border: 1px solid var(--pw-border); text-decoration: none; transition: transform .25s var(--pw-ease), border-color .2s; min-width: 0; }
.pw-contact__card:hover { transform: translateY(-2px); border-color: var(--pw-border-strong); }
.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); display: grid; gap: 16px; }
.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: 700; font-size: 14.5px; }
.pw-field input, .pw-field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--pw-radius-sm); border: 1px solid var(--pw-border-strong);
    background: var(--pw-bg-2); color: var(--pw-text); font: inherit; font-size: 15.5px; transition: border-color .2s, box-shadow .2s;
}
.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) 18%, 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: 600; }
.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 { border-top: 1px solid var(--pw-border); padding: 56px 0 30px; background: var(--pw-bg-2); }
.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: 13px; text-transform: uppercase; letter-spacing: .12em; 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: 600; font-size: 15px; }
.pw-footer__col a:hover { color: var(--pw-text); }
.pw-footer__legal { margin-top: 40px; 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%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--pw-text); color: var(--pw-bg); font-weight: 700; font-size: 14px; box-shadow: var(--pw-shadow); transition: opacity .25s, transform .35s var(--pw-ease); max-width: calc(100vw - 32px); text-align: center; }
.pw-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
    .pw-hero__actions .pw-btn, .pw-mega__actions .pw-btn, .pw-cta__actions .pw-btn { width: 100%; }
    .pw-toolbar { gap: 10px; }
    .pw-tabs { width: 100%; }
    .pw-tab { flex: 1; justify-content: center; padding: 0 10px; }
    .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; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .pw-rise { opacity: 1; transform: none; }
    .pw-js [data-pw-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}
