/* =============================================================
   APPROMOVE — efectos.html
   Loaded after styles.css and pixel.css. Flat pixel theme:
   no gradients/glows, radius <= 6px, VT323 for headings/labels.
   ============================================================= */

.fx-page { padding: 92px 16px 64px; max-width: 1100px; margin: 0 auto; }
.fx-page section { padding: 0; }

/* ---- hero ---- */
.fx-hero { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.fx-hero .tag { display: inline-block; margin-bottom: 14px; }
.fx-hero h1 { font-size: clamp(2.5rem, 7vw, 4rem); color: var(--white); margin: 0 0 14px; }
.fx-hero h1 em { font-style: normal; color: var(--accent-txt); }
.fx-hero p { color: var(--gray); font-size: 1.02rem; line-height: 1.6; margin: 0 auto 10px; }
.fx-hero kbd, .fx-text kbd, .fx-hk kbd {
    font-family: var(--px); font-size: 1.15rem; line-height: 1;
    background: var(--bg-card); color: var(--accent-txt);
    border: 1px solid var(--border); border-bottom-width: 3px;
    border-radius: 3px; padding: 1px 7px; white-space: nowrap;
}

/* ---- index ---- */
.fx-index { margin: 0 auto 48px; max-width: 900px; }
.fx-index h2 {
    font-size: 1.4rem !important; color: var(--gray); text-align: center;
    margin: 0 0 12px; letter-spacing: 0.08em !important;
}
.fx-index ol {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px;
}
.fx-index a {
    display: flex; align-items: center; gap: 8px; height: 100%;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px;
    padding: 8px 12px; color: var(--white); text-decoration: none;
    font-family: var(--px); font-size: 1.3rem; line-height: 1.1;
}
.fx-index a:hover, .fx-index a:focus-visible { border-color: var(--accent); color: var(--accent-txt); }
.fx-index .n { color: var(--gray-dim); min-width: 1.6em; }
.fx-index .hk { margin-left: auto; color: var(--accent-txt); font-size: 1.1rem; }

/* ---- group headings ---- */
.fx-group-title {
    font-family: var(--px); font-size: 1.5rem; color: var(--gray);
    letter-spacing: 0.1em; text-transform: uppercase;
    border-bottom: 1px solid var(--border); padding-bottom: 6px; margin: 56px 0 0;
}
.fx-group-title + .fx-note { color: var(--gray-dim); font-size: 0.92rem; margin: 8px 0 0; }

/* ---- one effect ---- */
.fx {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px 40px;
    align-items: start; padding: 36px 0 !important;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 76px;
}
.fx-text h2, .fx-catalog h2 {
    font-size: clamp(2.1rem, 4.5vw, 2.8rem); color: var(--white); margin: 0 0 10px;
}
.fx-text h2 .beta {
    font-size: 1.1rem; color: var(--orange); vertical-align: middle;
    border: 1px solid var(--orange); border-radius: 3px; padding: 0 6px; margin-left: 6px;
}
.fx-kicker {
    font-family: var(--px); font-size: 1.15rem; color: var(--accent-txt);
    letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 4px;
}
.fx-text p { color: var(--gray); line-height: 1.6; margin: 0 0 10px; }
.fx-text p strong { color: var(--white); font-weight: 600; }
.fx-hk {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    margin: 14px 0 18px; color: var(--gray); font-size: 0.92rem;
}
.fx-hk .lbl { font-family: var(--px); font-size: 1.2rem; color: var(--white); letter-spacing: 0.04em; }

/* animation frame */
.fx-anim {
    margin: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
    padding: 12px 12px 8px; max-width: 460px;
}
.fx-anim svg { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.fx-anim figcaption { color: var(--gray-dim); font-size: 0.85rem; margin-top: 6px; line-height: 1.4; }

/* screenshot frame (looks like the app window) */
.fx-shot { margin: 0; justify-self: center; width: 100%; max-width: 300px; }
.fx-shot .win {
    background: #0D0D0D; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.fx-shot img { display: block; width: 100%; height: auto; }
body.lang-es .fx-shot img[data-lang="es"] { display: block !important; }
.fx-shot figcaption {
    color: var(--gray-dim); font-size: 0.8rem; margin-top: 6px; text-align: center; line-height: 1.4;
}

/* catalog block */
.fx-catalog {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px 40px; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
    padding: 24px !important; margin-bottom: 8px;
    scroll-margin-top: 76px;
}
.fx-catalog p { color: var(--gray); line-height: 1.6; margin: 0 0 10px; }
.fx-catalog ul { margin: 0; padding-left: 1.1em; color: var(--gray); line-height: 1.7; }
.fx-catalog ul strong { color: var(--white); font-weight: 600; }

.fx-cta { text-align: center; margin: 56px 0 0; }
.fx-cta p { color: var(--gray); margin: 0 0 14px; }
body.lang-es .fx-cta a.btn-primary[data-lang="es"] { display: inline-flex !important; }

/* ---- SVG sprite styling ---- */
.fx-anim text { font-family: var(--px); }
.fx-anim .ar { fill: var(--gray-dim); font-size: 16px; }
.kc .kc-b { fill: var(--accent); stroke: #64B5F6; stroke-width: 1; }
.kc .kc-l { fill: #1976D2; }
.kc .kc-t { fill: #FFFFFF; }
.chip rect { fill: #1E2A36; stroke: var(--accent); stroke-width: 1; }
.chip text { fill: var(--accent-txt); }
.fA { opacity: 0; }            /* still frame = the "action" frame (B) */
.trail { stroke-dasharray: 60; stroke-dashoffset: 0; }

/* animations only run while visible (.run is set by IntersectionObserver) */
.fx-anim.run { --d: 2.4s; }
.fx-anim.run .fA { animation: fxA var(--d) linear infinite; }
.fx-anim.run .fB { animation: fxB var(--d) linear infinite; }
.fx-anim.run .fB2 { animation: fxChip var(--d) linear infinite; }
.fx-anim.run .kc:not(.hold) .kc-b { animation: fxKeyB var(--d) linear infinite; }
.fx-anim.run .kc:not(.hold) .kc-l { animation: fxKeyL var(--d) linear infinite; }
.fx-anim.run .kc:not(.hold) .kc-t { animation: fxKeyT var(--d) linear infinite; }
.fx-anim.run .k60 .kc-b { animation-name: fxKeyB60 !important; }
.fx-anim.run .k60 .kc-l { animation-name: fxKeyL60 !important; }
.fx-anim.run .k60 .kc-t { animation-name: fxKeyT60 !important; }
.fx-anim.run .trail { animation: fxDraw var(--d) linear infinite; }
.fx-anim.run.march { --d: 0.6s; }
.fx-anim.run .scroll { animation: fxScroll 0.6s steps(3) infinite; }
.fx-anim.run .sw-s { animation: fxSwayS 3.2s linear infinite; }
.fx-anim.run .sw-h { animation: fxSwayH 3.2s linear infinite; }
.fx-anim.run .sw-l { animation: fxSwayL 3.2s linear infinite; }
.fx-anim.run .zone-in { animation: fxB var(--d) linear infinite; }

@keyframes fxA { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes fxB { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes fxChip { 0%, 49.9% { opacity: 0.35; } 50%, 100% { opacity: 1; } }
@keyframes fxKeyB { 0%, 54.9% { fill: #1A1A1A; stroke: #3A3A3A; } 55%, 100% { fill: #2196F3; stroke: #64B5F6; } }
@keyframes fxKeyL { 0%, 54.9% { fill: #2A2A2A; } 55%, 100% { fill: #1976D2; } }
@keyframes fxKeyT { 0%, 54.9% { fill: #868686; } 55%, 100% { fill: #FFFFFF; } }
@keyframes fxKeyB60 { 0%, 64.9% { fill: #1A1A1A; stroke: #3A3A3A; } 65%, 100% { fill: #2196F3; stroke: #64B5F6; } }
@keyframes fxKeyL60 { 0%, 64.9% { fill: #2A2A2A; } 65%, 100% { fill: #1976D2; } }
@keyframes fxKeyT60 { 0%, 64.9% { fill: #868686; } 65%, 100% { fill: #FFFFFF; } }
@keyframes fxDraw { 0% { stroke-dashoffset: 60; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes fxScroll { from { transform: translateY(0); } to { transform: translateY(6px); } }
@keyframes fxSwayS {
    0%, 12% { transform: translate(0, 0); }  25%, 37% { transform: translate(-4px, -2px); }
    50%, 62% { transform: translate(0, 0); } 75%, 87% { transform: translate(4px, 2px); }
    100% { transform: translate(0, 0); }
}
@keyframes fxSwayH {
    0%, 12% { transform: translateX(0); }  25%, 37% { transform: translateX(-2px); }
    50%, 62% { transform: translateX(0); } 75%, 87% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}
@keyframes fxSwayL {
    0%, 12% { transform: translate(0, 0); }  25%, 37% { transform: translate(-16px, -6px); }
    50%, 62% { transform: translate(0, 0); } 75%, 87% { transform: translate(16px, 6px); }
    100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .fx-anim *, .fx-anim.run * { animation: none !important; }
}

/* ---- responsive ---- */
@media (max-width: 860px) {
    .fx, .fx-catalog { grid-template-columns: minmax(0, 1fr); }
    .fx-shot { max-width: 300px; }
    .fx-anim { max-width: none; }
}
@media (max-width: 480px) {
    .fx-page { padding-top: 84px; }
    .fx-index ol { grid-template-columns: minmax(0, 1fr); }
    .fx-catalog { padding: 16px !important; }
    .fx-shot { max-width: 260px; }
}
