/* ================================================================
   DreamyFX — stylesheet principal
   Paleta brand: lila (a78bfa) → rosa (ec4899) → ámbar (f59e0b)
   Tipografía: Inter (latin), Cairo (árabe, RTL)
   Estructura:
     1. Tokens / reset / base
     2. Utilidades (container, section)
     3. Header, nav, language switcher
     4. Botones / chips / pills
     5. Hero + showcase
     6. Stats
     7. Section headings (eyebrow / h2 / subtitle)
     8. How it works (steps)
     9. Effects grid
    10. Use cases
    11. Pricing
    12. Final CTA
    13. Footer
    14. Try/editor panels (legacy, mantenido)
    15. RTL overrides
    16. Responsive
   ================================================================ */

/* 1. Tokens, reset, base -------------------------------------------------- */
:root {
    --bg: #ffffff;
    --bg-soft: #f7f7fb;
    --bg-muted: #eeeef5;
    --ink: #0d0d12;
    --ink-soft: #5c5c6a;
    --ink-mute: #8b8b9a;
    --brand-1: #a78bfa;
    --brand-2: #ec4899;
    --brand-3: #f59e0b;
    --brand-grad: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
    --brand-grad-diag: linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--brand-3));
    --border: #e6e6ef;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
    --shadow-md: 0 8px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 50px rgba(13,13,18,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
html.rtl, body.rtl {
    font-family: "Cairo", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }

/* 2. Utilidades ---------------------------------------------------------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-soft { background: var(--bg-soft); }
.center-cta { text-align: center; margin-top: 2.5rem; }

/* 3. Header -------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.brand {
    font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em;
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a {
    font-size: 0.925rem;
    color: var(--ink-soft);
    font-weight: 500;
    transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav-link-muted { color: var(--ink-soft) !important; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    margin: 0 .35rem;
    padding: 0;
}
.lang-switch .lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 50%;
    opacity: .45;
    transition: opacity .15s ease, transform .15s ease, background .15s ease;
    cursor: pointer;
}
.lang-switch .lang-flag:hover {
    opacity: .85;
    transform: scale(1.08);
}
.lang-switch .lang-flag.is-active {
    opacity: 1;
    background: var(--bg-soft);
    box-shadow: 0 0 0 2px var(--brand-1) inset;
}

/* --- Hamburguesa + drawer mobile -------------------------------------- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    transition: background .15s ease;
}
.hamburger-btn:hover { background: var(--bg-soft); }
.hamburger-btn span {
    display: block;
    width: 22px; height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.hamburger-btn.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-header { display: none; }
.drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
    z-index: 49;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 820px) {
    .hamburger-btn { display: inline-flex; }

    .nav {
        position: fixed;
        top: 0; right: 0;
        width: min(320px, 85vw);
        height: 100dvh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 0 2rem;
        z-index: 60;
        transform: translateX(100%);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1);
        box-shadow: -12px 0 40px rgba(0, 0, 0, .15);
        overflow-y: auto;
    }
    .nav.is-open { transform: translateX(0); }

    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        margin-bottom: .75rem;
    }
    .drawer-brand { font-size: 1.35rem; }
    .drawer-close {
        background: transparent;
        border: 0;
        font-size: 2rem;
        line-height: 1;
        color: var(--ink-soft);
        cursor: pointer;
        padding: 0 .25rem;
        border-radius: 8px;
        transition: background .15s ease, color .15s ease;
    }
    .drawer-close:hover { background: var(--bg-soft); color: var(--ink); }

    .nav a:not(.lang-flag) {
        display: block;
        padding: .9rem 1.5rem;
        font-size: 1.05rem;
        color: var(--ink);
        font-weight: 500;
        border-radius: 0;
    }
    .nav a:not(.lang-flag):hover { background: var(--bg-soft); }
    .nav-link-muted {
        color: var(--ink-soft) !important;
        border-top: 1px solid var(--border);
        margin-top: .5rem;
    }
    .nav-user {
        display: inline-flex;
        margin: 1rem 1.5rem .25rem;
        padding: .4rem .8rem;
        background: var(--bg-soft);
        border-radius: 999px;
        font-size: .85rem;
    }
    .nav .lang-switch {
        display: inline-flex;
        margin: 1rem 1.5rem;
        padding: 0;
    }
}

/* En desktop, el header del drawer y botón cierre no existen */
@media (min-width: 821px) {
    .drawer-header, .drawer-backdrop { display: none !important; }
}

/* 4. Botones / chips / pills -------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600; font-size: 0.95rem; font-family: inherit;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.95rem 1.85rem; font-size: 1.025rem; }
.btn-block { width: 100%; }
.btn-primary {
    color: #fff;
    background: var(--brand-grad);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-lg); }
.btn-ghost {
    color: var(--ink);
    background: #fff;
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

.pill {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .9rem;
    background: rgba(167,139,250,.10);
    color: var(--brand-1);
    border: 1px solid rgba(167,139,250,.25);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.pill::before {
    content: ""; width: 6px; height: 6px; border-radius: 999px;
    background: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(236,72,153,.15);
}
.chip {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    background: rgba(255,255,255,.2);
    color: #fff;
    backdrop-filter: blur(6px);
    margin-bottom: .5rem;
    align-self: flex-start;
}

/* 5. Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 4rem 0 3rem;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: -20% -10% auto -10%;
    height: 60%;
    background:
        radial-gradient(40% 60% at 20% 30%, rgba(167,139,250,.22), transparent 60%),
        radial-gradient(40% 60% at 80% 30%, rgba(236,72,153,.18), transparent 60%),
        radial-gradient(40% 60% at 50% 70%, rgba(245,158,11,.12), transparent 60%);
    z-index: -1;
    filter: blur(20px);
}
.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}
.hero h1 .grad {
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.175rem;
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 auto 2rem;
}
.hero .cta {
    display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.hero .trust {
    font-size: .85rem;
    color: var(--ink-mute);
    margin-top: .25rem;
}

.hero-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 3.5rem auto 0;
    perspective: 1200px;
}
.showcase-card {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transform: rotateY(0) translateY(0);
    transition: transform .35s ease;
}
.showcase-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%);
}
.showcase-card-0 { transform: translateY(10px) rotate(-2deg); }
.showcase-card-2 { transform: translateY(10px) rotate(2deg); }
.showcase-card-1 { transform: translateY(-20px) scale(1.04); z-index: 2; }
.showcase-label {
    position: absolute;
    bottom: 1rem; left: 1rem; right: 1rem;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
    z-index: 1;
}

@media (max-width: 640px) {
    .hero-showcase { grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 2.5rem; }
    .showcase-card { border-radius: var(--radius); }
    .showcase-label { font-size: .75rem; bottom: .5rem; left: .5rem; right: .5rem; }
}

/* 6. Stats --------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.stats .num {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stats .lbl {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: .25rem;
}
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

/* 7. Section headings --------------------------------------------------- */
.eyebrow {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-2);
    text-align: center;
    margin-bottom: .75rem;
}
.section h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.section .subtitle {
    text-align: center;
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* 8. How it works ------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}
.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 16px;
    background: var(--brand-grad-diag);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* 8a-pre. Login page -------------------------------------------------- */
.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
    background: linear-gradient(180deg, rgba(167,139,250,.05), transparent 60%);
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--brand-grad-diag);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-md);
}
.login-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: .35rem;
    letter-spacing: -0.02em;
}
.login-subtitle {
    color: var(--ink-soft);
    font-size: .92rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.login-label {
    display: block;
    text-align: left;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .45rem;
}
.login-card input[type="tel"],
.login-card input[type="password"] {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.05rem;
    letter-spacing: .03em;
    font-feature-settings: 'tnum';
    transition: border-color .15s ease, box-shadow .15s ease;
}
.login-card input[type="tel"]:focus,
.login-card input[type="password"]:focus {
    outline: none;
    border-color: var(--brand-1);
    box-shadow: 0 0 0 3px rgba(167,139,250,.18);
}
.login-hint {
    text-align: left;
    color: var(--ink-mute);
    font-size: .78rem;
    margin-top: .4rem;
    margin-bottom: 1.25rem;
}
.login-card .btn-block { width: 100%; }
.login-card .error-msg {
    margin-top: .75rem;
    text-align: left;
}
.login-foot {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: .85rem;
}
.login-foot a {
    color: var(--brand-2);
    font-weight: 600;
}
.login-foot a:hover { color: var(--brand-1); }

/* RTL: labels y hints alineados a la derecha */
html.rtl .login-label,
html.rtl .login-hint,
html.rtl .login-card .error-msg { text-align: right; }

/* Nav user pill */
.nav-user {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-feature-settings: 'tnum';
}

/* 8b. Gallery hero + filtros ------------------------------------------- */
.gallery-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(167,139,250,.06), transparent 70%);
    border-bottom: 1px solid var(--border);
}
.gallery-hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: .5rem;
}
.gallery-hero p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1rem;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: .55rem 1.1rem;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s ease;
}
.filter-chip:hover { color: var(--ink); border-color: var(--brand-1); }
.filter-chip.is-active {
    color: #fff;
    background: var(--brand-grad);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(236,72,153,.25);
}

.gallery-meta {
    font-size: .85rem;
    color: var(--ink-mute);
    margin-top: .5rem;
}

.gallery-empty {
    text-align: center;
    color: var(--ink-mute);
    font-size: 1rem;
    padding: 3rem 0;
}

/* 8c. Effect detail page ---------------------------------------------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: var(--ink-mute);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

.effect-hero {
    padding: 2.5rem 0 4rem;
    background: linear-gradient(180deg, rgba(167,139,250,.05), transparent 80%);
}
.effect-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: center;
}
.effect-preview {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 520px;
}
.effect-preview-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.effect-preview-empty {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: .95rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
    gap: .5rem;
}
.effect-preview-sparkle { font-size: 2.5rem; }

.effect-info h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: .75rem 0 1rem;
}
.effect-desc {
    color: var(--ink-soft);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.effect-cta { margin-bottom: 2rem; }

.chip-solid {
    display: inline-block;
    padding: .35rem .85rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brand-2);
    background: rgba(236,72,153,.10);
    border: 1px solid rgba(236,72,153,.25);
    border-radius: 999px;
}

.effect-specs {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.effect-specs dt {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: .25rem;
}
.effect-specs dd {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

@media (max-width: 900px) {
    .effect-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .effect-preview { max-width: 100%; }
}

/* Step 1-2-3 numerados (variante de .steps usada en effect detail) */
.steps-3 .step-num {
    width: 48px; height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--brand-grad-diag);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: var(--shadow-md);
}
.steps-3 .step p { color: var(--ink); font-weight: 500; font-size: 1rem; }

.centered { text-align: center; }

/* Related grid: mismo layout que .effects-grid pero limitado */
.related-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* 404 */
.effect-404 { padding: 5rem 0; }
.effect-404-box {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}
.effect-404-code {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}
.effect-404-box h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: .75rem;
}
.effect-404-box p {
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

/* 8d-pre. Create Studio tabs (/create.php) --------------------------- */
.create-tabs {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: .35rem;
    background: var(--bg-soft);
    border-radius: 999px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.create-tab {
    flex: 1;
    padding: .65rem 1.25rem;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
.create-tab:hover { color: var(--ink); }
.create-tab.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.create-main textarea:focus {
    outline: 2px solid var(--brand-1);
    outline-offset: 1px;
    border-color: transparent;
}

/* 8d. Editor (/app.php) ------------------------------------------------ */
.app-shell {
    padding: 2.5rem 0 5rem;
    background: linear-gradient(180deg, rgba(167,139,250,.04), transparent 30%);
    min-height: 70vh;
}

.app-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.app-header h1 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: .5rem;
}
.app-header p {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.app-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .app-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.app-panel, .app-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.panel-step {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.step-badge {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    font-size: .8rem; font-weight: 800;
    color: #fff;
    background: var(--brand-grad-diag);
    box-shadow: 0 3px 8px rgba(236,72,153,.25);
}

/* Fix: el atributo [hidden] debe ganar sobre display:flex/block del dropzone */
.dropzone-empty[hidden],
.dropzone-preview[hidden] { display: none !important; }

/* Dropzone (redefinición/mejora) */
.dropzone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    min-height: 340px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
    overflow: hidden;
}
.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-over {
    background: #fff;
    border-color: var(--brand-1);
    outline: none;
}
.dropzone-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    gap: .65rem;
    padding: 2rem 1rem;
    color: var(--ink-soft);
    text-align: center;
}
.dropzone-empty svg { color: var(--brand-1); margin-bottom: .35rem; }
.dropzone-empty strong { font-size: 1.1rem; color: var(--ink); font-weight: 700; }
.dropzone-empty .dropzone-or { font-size: .85rem; opacity: .7; }
.dropzone-empty small { font-size: .8rem; color: var(--ink-mute); margin-top: .5rem; }

.dropzone-preview {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.dropzone-preview img {
    width: 100%;
    height: 340px;           /* mismo alto que el empty-state para no saltar el layout */
    max-height: 420px;
    object-fit: contain;
    display: block;
}
.dropzone-clear {
    position: absolute;
    top: .75rem; right: .75rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    backdrop-filter: blur(4px);
}
.dropzone-clear:hover { background: rgba(0,0,0,.85); transform: scale(1.06); }

/* Sidebar — efecto elegido */
.effect-chosen {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: var(--bg-soft);
}
.effect-chosen-thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}
.effect-chosen-body {
    padding: 1rem 1.1rem 1.25rem;
}
.effect-chosen-body .chip-solid { margin-bottom: .75rem; }
.effect-chosen-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .4rem;
}
.effect-chosen-body p {
    font-size: .9rem;
    color: var(--ink-soft);
    margin-bottom: .85rem;
}
.effect-chosen-change {
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand-2);
}
.effect-chosen-change:hover { color: var(--brand-1); }
.effect-chosen-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--ink-soft);
}
.effect-chosen-empty p { margin-bottom: 1rem; }

/* Progress / status block */
.app-status {
    max-width: 540px;
    margin: 2rem auto;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.app-status h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.app-status .status-msg { margin-bottom: 1.5rem; color: var(--ink-soft); }
.app-status .progress { margin: 0; height: 10px; }

/* Anillo animado */
.status-ring {
    width: 72px; height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg,
            var(--brand-1),
            var(--brand-2),
            var(--brand-3),
            var(--brand-1));
    animation: ring-spin 1.8s linear infinite;
    position: relative;
}
.status-ring-inner {
    position: absolute;
    inset: 6px;
    background: #fff;
    border-radius: 50%;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* Result block */
.app-result {
    max-width: 780px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.app-result h2 { margin-bottom: 1.5rem; }
.app-result .result-sfx { display: none; }

.app-result .result-video {
    width: 100%;
    max-width: 720px;
    max-height: 80vh;
    height: auto;                /* respeta el aspect ratio nativo del video */
    margin: 0 auto;
    display: block;
    background: #000;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.app-result .result-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow-md);
    display: block;
}
.app-result-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* RTL: clear button al lado opuesto */
html.rtl .dropzone-clear { right: auto; left: .75rem; }

/* 8e. My Videos (/my-videos.php) -------------------------------------- */
.my-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(167,139,250,.06), transparent 70%);
    border-bottom: 1px solid var(--border);
}
.my-hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: .5rem;
}
.my-hero p {
    color: var(--ink-soft);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.my-empty {
    text-align: center;
    padding: 5rem 1rem;
}
.my-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.my-empty p {
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

.my-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.my-video-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    border: 0;
    padding: 0;
    font-family: inherit;
    color: #fff;
    text-align: left;
}
.my-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.my-video-card:focus-visible {
    outline: 3px solid var(--brand-1);
    outline-offset: 2px;
}

.my-video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;   /* que el click lo reciba el <button> padre */
    background: transparent;
    z-index: 0;
}

.my-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.18);
    transition: background .2s ease;
    z-index: 1;
}
.my-video-card:hover .my-video-overlay { background: rgba(0,0,0,0.35); }

.my-play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #0d0d12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 5px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform .2s ease;
}
.my-video-card:hover .my-play-icon { transform: scale(1.08); }

.my-video-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: #fff;
    z-index: 2;
}

/* Botón de borrar (esquina superior derecha de cada card) */
.my-video-delete {
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity .15s ease, background .15s ease, transform .15s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.my-video-card:hover .my-video-delete,
.my-video-card:focus-within .my-video-delete {
    opacity: 1;
}
.my-video-delete:hover {
    background: rgba(220,38,38,0.95);
    transform: scale(1.1);
}
.my-video-delete:disabled {
    opacity: .7;
    cursor: wait;
}
html.rtl .my-video-delete { right: auto; left: .6rem; }
.my-video-info .chip { margin-bottom: .5rem; }
.my-video-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .25rem;
    line-height: 1.3;
}
.my-video-info .date {
    font-size: .78rem;
    opacity: .85;
}

/* Modal -------------------------------------------------------------- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modal-fade-in .2s ease;
}
.video-modal[hidden] { display: none; }
@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    max-width: 780px;
    width: 100%;
    background: #0f0f1f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    color: #fff;
    max-height: 90vh;
    overflow-y: auto;
}

.video-modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    line-height: 1;
}
.video-modal-close:hover {
    background: rgba(255,255,255,0.16);
    transform: scale(1.05);
}

.video-modal-content h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 .25rem;
    padding-right: 3rem;
}
.video-modal-date {
    color: rgba(255,255,255,0.5);
    font-size: .85rem;
    margin-bottom: 1.25rem;
}

.video-modal-content .modal-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius);
    background: #000;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    display: block;
}

/* Share + Download bajo el video */
.video-modal-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.video-modal-actions .btn {
    min-width: 140px;
}
.video-modal-actions .btn-ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
}
.video-modal-actions .btn-ghost:hover {
    background: rgba(255,255,255,0.16);
}

/* RTL: close button al lado opuesto */
html.rtl .video-modal-close { right: auto; left: .75rem; }
html.rtl .video-modal-content h3 { padding-right: 0; padding-left: 3rem; }

/* --- Modal fullscreen en mobile ------------------------------------- */
@media (max-width: 820px) {
    .video-modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    .video-modal-content {
        max-width: none;
        width: 100vw;
        height: 100dvh;          /* dynamic vh: respeta el browser chrome */
        max-height: none;
        border-radius: 0;
        border: 0;
        padding: 3.25rem 0 0;    /* espacio arriba para el close + title */
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .video-modal-close {
        top: .85rem;
        right: .85rem;
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.14);
        z-index: 2;
    }
    .video-modal-content h3 {
        font-size: 1.05rem;
        padding: 0 4rem 0 1.25rem;
        margin-bottom: .15rem;
    }
    .video-modal-date {
        font-size: .8rem;
        padding: 0 1.25rem;
        margin-bottom: .75rem;
    }
    #video-modal-slot {
        flex: 1;
        display: flex;
        min-height: 0;            /* crítico para que flex shrink funcione */
    }
    .video-modal-content .modal-iframe {
        flex: 1;                  /* ocupa todo el espacio restante */
        width: 100%;
        height: 100%;
        aspect-ratio: auto;       /* desactiva el 16/9 del desktop */
        border-radius: 0;
        box-shadow: none;
    }
    .video-modal-actions {
        flex-shrink: 0;
        margin: .75rem 1rem 1rem;
        gap: .5rem;
    }
    .video-modal-actions .btn {
        flex: 1;
        min-width: 0;
        font-size: .9rem;
        padding: .75rem 1rem;
    }
    html.rtl .video-modal-close { right: auto; left: .85rem; }
    html.rtl .video-modal-content h3 { padding: 0 1.25rem 0 4rem; }
    html.rtl .video-modal-date { padding: 0 1.25rem; }
}

/* 9. Effects grid ------------------------------------------------------- */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}
.effect-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    display: block;
}
.effect-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.effect-card .thumb {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.effect-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 100%);
    padding: 1.25rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    color: #fff;
}
.effect-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.effect-card p { font-size: .825rem; opacity: .9; margin-bottom: .75rem; }
.effect-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .8rem; opacity: .95;
}
.effect-meta .arrow {
    font-size: 1.1rem;
    transition: transform .2s ease;
}
.effect-card:hover .arrow { transform: translateX(4px); }
.effect-card.selected { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* 10. Use cases -------------------------------------------------------- */
.uses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}
.use-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.use-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: #fff; }
.use-emoji { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1; }
.use-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.use-card p { color: var(--ink-soft); font-size: .9rem; }

@media (max-width: 900px) { .uses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .uses-grid { grid-template-columns: 1fr; } }

/* 11. Pricing ---------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 1rem auto 0;
}
.price-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.price-card.is-featured {
    border-color: var(--brand-1);
    box-shadow: 0 12px 40px rgba(167,139,250,.2);
    transform: translateY(-6px);
}
.price-flag {
    position: absolute;
    top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--brand-grad);
    color: #fff;
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 999px;
}
.price-card h3 { font-size: 1.15rem; font-weight: 700; }
.price-card .price {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: .5rem 0 .35rem;
}
.price-card .price-desc { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.5rem; }
.price-card .features {
    text-align: start;
    margin-bottom: 2rem;
    flex: 1;
}
.price-card .features li {
    padding: .5rem 0;
    color: var(--ink-soft);
    font-size: .925rem;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: .5rem;
}
.price-card .features li:first-child { border-top: none; }
.price-card .features li::before {
    content: "✓"; color: var(--brand-1); font-weight: 800;
}

@media (max-width: 820px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.is-featured { transform: none; }
}

/* 12. Final CTA -------------------------------------------------------- */
.final-cta { padding: 4rem 0; }
.final-box {
    background: var(--brand-grad-diag);
    color: #fff;
    padding: 4rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}
.final-box h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: .75rem;
    letter-spacing: -0.02em;
}
.final-box p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.final-box .btn-primary {
    background: #fff;
    color: var(--brand-2);
    border: none;
}

/* 13. Footer ---------------------------------------------------------- */
.site-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--ink-soft);
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-brand p { max-width: 320px; margin-top: .5rem; font-size: .9rem; }
.site-footer h4 {
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: .8rem;
    color: var(--ink-mute);
    text-align: center;
}

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* 14. Try/editor panels (legacy mantenido) ---------------------------- */
.try-wrap { max-width: 780px; margin: 2rem auto; padding: 0 1.25rem; }
.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.panel h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.panel .hint { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1rem; }

.dropzone {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 3rem 1rem; text-align: center; cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.dropzone:hover { background: var(--bg-soft); border-color: var(--brand-1); }
.dropzone.has-image { padding: 0; overflow: hidden; border-style: solid; }
.dropzone.has-image img { width: 100%; height: 280px; object-fit: cover; }

.progress { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-top: 1rem; }
.progress .bar { height: 100%; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); width: 0%; transition: width .3s ease; }

.status-msg { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.75rem; text-align: center; }
.result-video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.error-msg {
    background: #fef2f2; color: #991b1b;
    border: 1px solid #fecaca;
    padding: 0.75rem 1rem; border-radius: 10px;
    margin-top: 1rem; font-size: 0.9rem;
}

/* 15. RTL overrides --------------------------------------------------- */
html.rtl .nav { flex-direction: row-reverse; }

/* RTL: drawer mobile se abre desde la izquierda */
@media (max-width: 820px) {
    html.rtl .nav {
        right: auto; left: 0;
        transform: translateX(-100%);
        box-shadow: 12px 0 40px rgba(0, 0, 0, .15);
        flex-direction: column;
    }
    html.rtl .nav.is-open { transform: translateX(0); }
}
html.rtl .hero h1 { letter-spacing: 0; }
html.rtl .effect-card:hover .arrow { transform: translateX(-4px); }
html.rtl .showcase-card-0 { transform: translateY(10px) rotate(2deg); }
html.rtl .showcase-card-2 { transform: translateY(10px) rotate(-2deg); }
html.rtl .price-card .features { text-align: right; }
html.rtl .effect-meta .arrow { transform: scaleX(-1); }

/* --- Páginas legales (privacy / terms) -------------------------------- */
.legal-page {
    padding: 4rem 0 5rem;
    background: #fff;
}
.legal-container {
    max-width: 780px;
}
.legal-header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.legal-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: .5rem;
    letter-spacing: -0.02em;
}
.legal-updated {
    color: var(--ink-mute);
    font-size: .9rem;
}
.legal-page section {
    margin-bottom: 2rem;
}
.legal-page h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .75rem;
    scroll-margin-top: 80px;
}
.legal-page p,
.legal-page li {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: .75rem;
}
.legal-page strong {
    color: var(--ink);
    font-weight: 600;
}
.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-page ul li {
    list-style: disc;
    margin-bottom: .4rem;
}
.legal-foot {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

html.rtl .legal-page ul { padding-left: 0; padding-right: 1.5rem; }

@media (max-width: 640px) {
    .legal-page { padding: 2.5rem 0 3rem; }
    .legal-header { margin-bottom: 1.5rem; }
    .legal-page section { margin-bottom: 1.5rem; }
}

/* 16. Responsive small tweaks ----------------------------------------- */
@media (max-width: 640px) {
    .section { padding: 4rem 0; }
    .hero { padding: 3rem 0 2rem; }
    .final-box { padding: 3rem 1.5rem; }
}
