/*
Theme Name:   FlyerShop Pro
Theme URI:    https://flyershop.co
Author:       FlyerShop
Author URI:   https://flyershop.co
Description:  Tema premium para marketplace de recursos gráficos digitales. Diseño Apple × Linear × Creative Marketplace. Compatible con Elementor Pro y WooCommerce (descargas digitales). Incluye header glass con buscador Spotlight, 8 widgets propios de Elementor, plantillas WooCommerce completas y sistema de diseño con tokens.
Version:      3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  flyershop
Domain Path:  /languages
Tags:         e-commerce, portfolio, dark, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   FLYERSHOP PRO — DESIGN SYSTEM
   --------------------------------------------------------------------------
   Este archivo define ÚNICAMENTE los tokens y las bases (reset, tipografía,
   elementos de formulario, utilidades). Los componentes viven en:

     assets/css/header.css        → header, menú, buscador spotlight
     assets/css/components.css    → botones, tarjetas, badges, secciones
     assets/css/woocommerce.css   → tienda, producto, carrito, checkout, cuenta
     assets/css/elementor.css     → estilos de los widgets propios
     assets/css/responsive.css    → breakpoints desktop / tablet / móvil

   Orden de carga definido en inc/enqueue.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {

    /* ---- 1.1 Color: superficies ---- */
    --fs-bg:              #060607;
    --fs-bg-elevated:     #0B0B0D;
    --fs-surface:         #111113;
    --fs-surface-2:       #17171A;
    --fs-surface-3:       #1F1F23;
    --fs-surface-4:       #2A2A2F;

    /* ---- 1.2 Color: bordes ---- */
    --fs-border:          rgba(255, 255, 255, 0.07);
    --fs-border-strong:   rgba(255, 255, 255, 0.12);
    --fs-border-active:   rgba(255, 255, 255, 0.20);

    /* ---- 1.3 Color: marca ---- */
    --fs-accent:          #FF0000;
    --fs-accent-hover:    #FF2A2A;
    --fs-accent-press:    #D40000;
    --fs-accent-soft:     rgba(255, 0, 0, 0.10);
    --fs-accent-glow:     rgba(255, 0, 0, 0.28);
    --fs-accent-ring:     rgba(255, 0, 0, 0.45);

    /* ---- 1.4 Color: texto ---- */
    --fs-text:            #F5F5F7;
    --fs-text-2:          rgba(255, 255, 255, 0.70);
    --fs-text-muted:      rgba(255, 255, 255, 0.45);
    --fs-text-subtle:     rgba(255, 255, 255, 0.24);
    --fs-white:           #FFFFFF;
    --fs-black:           #000000;

    /* ---- 1.5 Color: semántico ---- */
    --fs-success:         #30D158;
    --fs-warning:         #FFD60A;
    --fs-danger:          #FF453A;
    --fs-info:            #0A84FF;
    --fs-free:            #30D158;

    /* ---- 1.6 Gradientes ---- */
    --fs-grad-accent:     linear-gradient(135deg, #FF2A2A 0%, #D40000 100%);
    --fs-grad-surface:    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%);
    --fs-grad-fade:       linear-gradient(180deg, transparent 0%, var(--fs-bg) 100%);
    --fs-grad-text:       linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.62) 100%);
    --fs-grad-mesh:       radial-gradient(60% 80% at 50% 0%, rgba(255,0,0,0.16) 0%, transparent 70%);

    /* ---- 1.7 Tipografía: familias ---- */
    --fs-font:            'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                          'Manrope', 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --fs-font-display:    'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                          'Manrope', sans-serif;
    --fs-font-alt:        'Manrope', 'Poppins', var(--fs-font);
    --fs-font-mono:       'SF Mono', ui-monospace, 'JetBrains Mono', 'Menlo', monospace;

    /* ---- 1.8 Tipografía: escala fluida (clamp: móvil → desktop) ---- */
    --fs-text-xs:         0.6875rem;                              /* 11px */
    --fs-text-sm:         0.8125rem;                              /* 13px */
    --fs-text-base:       0.9375rem;                              /* 15px */
    --fs-text-md:         1.0625rem;                              /* 17px */
    --fs-text-lg:         clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
    --fs-text-xl:         clamp(1.375rem, 1vw + 1.1rem, 2rem);
    --fs-text-2xl:        clamp(1.75rem, 2vw + 1.2rem, 3rem);
    --fs-text-3xl:        clamp(2.25rem, 3.4vw + 1.2rem, 4rem);
    --fs-text-hero:       clamp(2.75rem, 6vw + 0.5rem, 5.5rem);

    /* ---- 1.9 Tipografía: pesos ---- */
    --fs-w-light:         300;
    --fs-w-regular:       400;
    --fs-w-medium:        500;
    --fs-w-semibold:      600;
    --fs-w-bold:          700;
    --fs-w-black:         800;

    /* ---- 1.10 Tipografía: interlineado ---- */
    --fs-lh-none:         1;
    --fs-lh-tight:        1.1;
    --fs-lh-snug:         1.25;
    --fs-lh-normal:       1.55;
    --fs-lh-relaxed:      1.75;

    /* ---- 1.11 Tipografía: tracking ---- */
    --fs-ls-tighter:      -0.04em;
    --fs-ls-tight:        -0.025em;
    --fs-ls-snug:         -0.015em;
    --fs-ls-normal:       0;
    --fs-ls-wide:         0.04em;
    --fs-ls-wider:        0.12em;

    /* ---- 1.12 Espaciado (escala 4pt) ---- */
    --fs-sp-1:            4px;
    --fs-sp-2:            8px;
    --fs-sp-3:            12px;
    --fs-sp-4:            16px;
    --fs-sp-5:            20px;
    --fs-sp-6:            24px;
    --fs-sp-7:            28px;
    --fs-sp-8:            32px;
    --fs-sp-10:           40px;
    --fs-sp-12:           48px;
    --fs-sp-14:           56px;
    --fs-sp-16:           64px;
    --fs-sp-20:           80px;
    --fs-sp-24:           96px;
    --fs-sp-32:           128px;
    --fs-sp-40:           160px;

    /* Ritmo vertical de secciones */
    --fs-section-y:       clamp(64px, 8vw, 128px);
    --fs-section-y-sm:    clamp(40px, 5vw, 80px);

    /* ---- 1.13 Radios ---- */
    --fs-r-xs:            6px;
    --fs-r-sm:            8px;
    --fs-r-md:            12px;
    --fs-r-lg:            16px;
    --fs-r-xl:            22px;
    --fs-r-2xl:           28px;
    --fs-r-3xl:           36px;
    --fs-r-full:          9999px;

    /* ---- 1.14 Sombras ---- */
    --fs-shadow-xs:       0 1px 2px rgba(0,0,0,0.30);
    --fs-shadow-sm:       0 2px 8px rgba(0,0,0,0.28);
    --fs-shadow-md:       0 8px 24px rgba(0,0,0,0.40);
    --fs-shadow-lg:       0 20px 56px rgba(0,0,0,0.55);
    --fs-shadow-xl:       0 40px 100px rgba(0,0,0,0.70);
    --fs-shadow-inset:    inset 0 1px 0 rgba(255,255,255,0.06);
    --fs-shadow-card:     inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 36px rgba(0,0,0,0.45);
    --fs-shadow-glow:     0 0 48px var(--fs-accent-glow);
    --fs-shadow-btn:      0 6px 20px rgba(255,0,0,0.30);
    --fs-shadow-focus:    0 0 0 3px var(--fs-accent-ring);

    /* ---- 1.15 Glass ---- */
    --fs-glass-bg:        rgba(255, 255, 255, 0.08);
    --fs-glass-bg-2:      rgba(255, 255, 255, 0.05);
    --fs-glass-dark:      rgba(10, 10, 12, 0.72);
    --fs-glass-border:    rgba(255, 255, 255, 0.12);
    --fs-glass-blur:      blur(12px);
    --fs-glass-blur-lg:   blur(28px) saturate(180%);

    /* ---- 1.16 Movimiento ---- */
    --fs-ease-spring:     cubic-bezier(0.22, 1, 0.36, 1);
    --fs-ease-out:        cubic-bezier(0.16, 1, 0.30, 1);
    --fs-ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
    --fs-ease-back:       cubic-bezier(0.34, 1.56, 0.64, 1);
    --fs-t-fast:          0.15s;
    --fs-t-base:          0.25s;
    --fs-t-slow:          0.40s;
    --fs-t-slower:        0.70s;

    /* ---- 1.17 Layout ---- */
    --fs-container:       1320px;
    --fs-container-wide:  1560px;
    --fs-container-md:    960px;
    --fs-container-sm:    680px;
    --fs-gutter:          clamp(20px, 4vw, 48px);
    --fs-header-h:        76px;

    /* ---- 1.18 Capas ---- */
    --fs-z-base:          1;
    --fs-z-sticky:        100;
    --fs-z-header:        9000;
    --fs-z-dropdown:      9500;
    --fs-z-overlay:       9800;
    --fs-z-modal:         9900;
    --fs-z-toast:         9990;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--fs-header-h) + 24px);
}

body {
    background-color: var(--fs-bg);
    color: var(--fs-text);
    font-family: var(--fs-font);
    font-size: var(--fs-text-base);
    font-weight: var(--fs-w-regular);
    line-height: var(--fs-lh-normal);
    letter-spacing: var(--fs-ls-snug);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss01';
    overflow-x: hidden;
    min-height: 100vh;
}

/* Malla ambiental de marca sobre el fondo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--fs-grad-mesh);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

svg { flex-shrink: 0; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--fs-t-base) var(--fs-ease-out);
}

ul, ol { list-style: none; }

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button { cursor: pointer; }

table {
    border-collapse: collapse;
    width: 100%;
}

hr {
    border: none;
    height: 1px;
    background: var(--fs-border);
    margin: var(--fs-sp-8) 0;
}

::selection {
    background: var(--fs-accent);
    color: var(--fs-white);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--fs-bg); }
::-webkit-scrollbar-thumb {
    background: var(--fs-surface-4);
    border-radius: var(--fs-r-full);
    border: 2px solid var(--fs-bg);
}
::-webkit-scrollbar-thumb:hover { background: #3A3A40; }

/* Foco accesible */
:focus-visible {
    outline: 2px solid var(--fs-accent);
    outline-offset: 3px;
    border-radius: var(--fs-r-xs);
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFÍA
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fs-font-display);
    color: var(--fs-white);
    font-weight: var(--fs-w-semibold);
    line-height: var(--fs-lh-tight);
    letter-spacing: var(--fs-ls-tight);
    text-wrap: balance;
}

h1 {
    font-size: var(--fs-text-3xl);
    font-weight: var(--fs-w-bold);
    letter-spacing: var(--fs-ls-tighter);
}

h2 {
    font-size: var(--fs-text-2xl);
    font-weight: var(--fs-w-semibold);
    letter-spacing: var(--fs-ls-tight);
}

h3 {
    font-size: var(--fs-text-xl);
    font-weight: var(--fs-w-semibold);
    letter-spacing: var(--fs-ls-tight);
}

h4 {
    font-size: var(--fs-text-lg);
    font-weight: var(--fs-w-semibold);
    letter-spacing: var(--fs-ls-snug);
}

h5 {
    font-size: var(--fs-text-md);
    font-weight: var(--fs-w-medium);
    letter-spacing: var(--fs-ls-snug);
}

h6 {
    font-size: var(--fs-text-sm);
    font-weight: var(--fs-w-semibold);
    letter-spacing: var(--fs-ls-wider);
    text-transform: uppercase;
    color: var(--fs-text-muted);
}

p {
    color: var(--fs-text-2);
    line-height: var(--fs-lh-relaxed);
    text-wrap: pretty;
}

p + p { margin-top: var(--fs-sp-4); }

strong, b { font-weight: var(--fs-w-semibold); color: var(--fs-text); }
em, i     { font-style: italic; }
small     { font-size: var(--fs-text-sm); color: var(--fs-text-muted); }

code, kbd, pre {
    font-family: var(--fs-font-mono);
    font-size: 0.9em;
}

code {
    background: var(--fs-surface-2);
    border: 1px solid var(--fs-border);
    padding: 2px 6px;
    border-radius: var(--fs-r-xs);
    color: var(--fs-accent-hover);
}

pre {
    background: var(--fs-surface);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-r-md);
    padding: var(--fs-sp-5);
    overflow-x: auto;
    line-height: var(--fs-lh-normal);
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--fs-text-2);
}

blockquote {
    border-left: 3px solid var(--fs-accent);
    padding: var(--fs-sp-2) 0 var(--fs-sp-2) var(--fs-sp-6);
    margin: var(--fs-sp-8) 0;
    font-size: var(--fs-text-lg);
    font-weight: var(--fs-w-light);
    color: var(--fs-text);
    font-style: italic;
}

/* Enlaces dentro de contenido editorial */
.fs-prose a,
.entry-content a {
    color: var(--fs-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--fs-accent-soft);
}

.fs-prose a:hover,
.entry-content a:hover { text-decoration-color: var(--fs-accent); }

/* Contenido editorial (post, página, descripción de producto) */
.fs-prose > * + * { margin-top: var(--fs-sp-5); }
.fs-prose h2 { margin-top: var(--fs-sp-12); }
.fs-prose h3 { margin-top: var(--fs-sp-10); }
.fs-prose ul,
.fs-prose ol { padding-left: var(--fs-sp-6); color: var(--fs-text-2); }
.fs-prose ul { list-style: disc; }
.fs-prose ol { list-style: decimal; }
.fs-prose li + li { margin-top: var(--fs-sp-2); }
.fs-prose li::marker { color: var(--fs-accent); }
.fs-prose img { border-radius: var(--fs-r-lg); }

/* Utilidades tipográficas */
.fs-display {
    font-size: var(--fs-text-hero);
    font-weight: var(--fs-w-bold);
    line-height: var(--fs-lh-none);
    letter-spacing: var(--fs-ls-tighter);
}

.fs-gradient-text {
    background: var(--fs-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.fs-eyebrow {
    display: inline-block;
    font-size: var(--fs-text-xs);
    font-weight: var(--fs-w-semibold);
    letter-spacing: var(--fs-ls-wider);
    text-transform: uppercase;
    color: var(--fs-accent);
}

.fs-lead {
    font-size: var(--fs-text-lg);
    font-weight: var(--fs-w-light);
    line-height: var(--fs-lh-relaxed);
    color: var(--fs-text-2);
}

/* --------------------------------------------------------------------------
   4. FORMULARIOS
   -------------------------------------------------------------------------- */
label {
    display: block;
    font-size: var(--fs-text-sm);
    font-weight: var(--fs-w-medium);
    color: var(--fs-text-2);
    margin-bottom: var(--fs-sp-2);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    background: var(--fs-surface-2);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-r-md);
    padding: 12px 16px;
    font-size: var(--fs-text-base);
    color: var(--fs-text);
    transition: border-color var(--fs-t-base) var(--fs-ease-out),
                background var(--fs-t-base) var(--fs-ease-out),
                box-shadow var(--fs-t-base) var(--fs-ease-out);
}

input::placeholder,
textarea::placeholder { color: var(--fs-text-subtle); }

input:hover,
select:hover,
textarea:hover { border-color: var(--fs-border-strong); }

input:focus,
select:focus,
textarea:focus {
    border-color: var(--fs-accent);
    background: var(--fs-surface-3);
    box-shadow: 0 0 0 3px var(--fs-accent-soft);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 140px;
    line-height: var(--fs-lh-normal);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--fs-border-strong);
    background: var(--fs-surface-2);
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    transition: all var(--fs-t-fast) var(--fs-ease-out);
    flex-shrink: 0;
}

input[type="checkbox"] { border-radius: var(--fs-r-xs); }
input[type="radio"]    { border-radius: var(--fs-r-full); }

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--fs-accent);
    border-color: var(--fs-accent);
}

input[type="checkbox"]:checked::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--fs-white);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="radio"]:checked::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: var(--fs-r-full);
    background: var(--fs-white);
}

/* --------------------------------------------------------------------------
   5. LAYOUT
   -------------------------------------------------------------------------- */
.fs-container {
    width: 100%;
    max-width: var(--fs-container);
    margin-inline: auto;
    padding-inline: var(--fs-gutter);
    position: relative;
    z-index: var(--fs-z-base);
}

.fs-container--wide { max-width: var(--fs-container-wide); }
.fs-container--md   { max-width: var(--fs-container-md); }
.fs-container--sm   { max-width: var(--fs-container-sm); }

.fs-section { padding-block: var(--fs-section-y); position: relative; }
.fs-section--sm { padding-block: var(--fs-section-y-sm); }
.fs-section--flush-top { padding-top: 0; }

.fs-site-main { position: relative; z-index: var(--fs-z-base); }

/* Grids reutilizables */
.fs-grid { display: grid; gap: var(--fs-sp-6); }
.fs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fs-grid--4 { grid-template-columns: repeat(4, 1fr); }
.fs-grid--5 { grid-template-columns: repeat(5, 1fr); }
.fs-grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.fs-flex { display: flex; }
.fs-flex--center { align-items: center; justify-content: center; }
.fs-flex--between { align-items: center; justify-content: space-between; }
.fs-flex--gap { gap: var(--fs-sp-4); }

/* --------------------------------------------------------------------------
   6. UTILIDADES
   -------------------------------------------------------------------------- */
.fs-text-center { text-align: center; }
.fs-text-left   { text-align: left; }
.fs-text-right  { text-align: right; }

.fs-mt-0  { margin-top: 0; }
.fs-mt-2  { margin-top: var(--fs-sp-2); }
.fs-mt-4  { margin-top: var(--fs-sp-4); }
.fs-mt-6  { margin-top: var(--fs-sp-6); }
.fs-mt-8  { margin-top: var(--fs-sp-8); }
.fs-mt-12 { margin-top: var(--fs-sp-12); }
.fs-mt-16 { margin-top: var(--fs-sp-16); }

.fs-mb-2  { margin-bottom: var(--fs-sp-2); }
.fs-mb-4  { margin-bottom: var(--fs-sp-4); }
.fs-mb-6  { margin-bottom: var(--fs-sp-6); }
.fs-mb-8  { margin-bottom: var(--fs-sp-8); }
.fs-mb-12 { margin-bottom: var(--fs-sp-12); }

.fs-muted  { color: var(--fs-text-muted); }
.fs-accent { color: var(--fs-accent); }

.fs-glass {
    background: var(--fs-glass-bg-2);
    backdrop-filter: var(--fs-glass-blur);
    -webkit-backdrop-filter: var(--fs-glass-blur);
    border: 1px solid var(--fs-glass-border);
    border-radius: var(--fs-r-lg);
}

.fs-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fs-border-strong), transparent);
    border: none;
    margin: 0;
}

/* Solo lectores de pantalla */
.screen-reader-text,
.fs-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed !important;
    top: 16px; left: 16px;
    width: auto; height: auto;
    clip: auto;
    background: var(--fs-accent);
    color: var(--fs-white);
    padding: 12px 20px;
    border-radius: var(--fs-r-md);
    z-index: var(--fs-z-toast);
    font-weight: var(--fs-w-semibold);
}

.fs-no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. ANIMACIONES BASE
   -------------------------------------------------------------------------- */
@keyframes fs-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fs-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fs-scale-in {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fs-slide-down {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fs-pulse-glow {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

@keyframes fs-shimmer {
    from { background-position: -200% 0; }
    to   { background-position: 200% 0; }
}

@keyframes fs-spin {
    to { transform: rotate(360deg); }
}

@keyframes fs-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Revelado al hacer scroll — activado por assets/js/theme.js */
.fs-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--fs-t-slower) var(--fs-ease-out),
                transform var(--fs-t-slower) var(--fs-ease-out);
    will-change: opacity, transform;
}

.fs-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Escalonado de hijos */
.fs-reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--fs-t-slower) var(--fs-ease-out),
                transform var(--fs-t-slower) var(--fs-ease-out);
}

.fs-reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.fs-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.00s; }
.fs-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.fs-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.fs-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
.fs-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
.fs-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.30s; }
.fs-reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.36s; }
.fs-reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.42s; }

/* Esqueleto de carga */
.fs-skeleton {
    background: linear-gradient(90deg,
        var(--fs-surface-2) 25%,
        var(--fs-surface-3) 50%,
        var(--fs-surface-2) 75%);
    background-size: 200% 100%;
    animation: fs-shimmer 1.4s linear infinite;
    border-radius: var(--fs-r-md);
}

/* Respeto por prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fs-reveal,
    .fs-reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
   8. WORDPRESS: clases del núcleo
   -------------------------------------------------------------------------- */
.alignleft   { float: left;  margin: 0 var(--fs-sp-6) var(--fs-sp-4) 0; }
.alignright  { float: right; margin: 0 0 var(--fs-sp-4) var(--fs-sp-6); }
.aligncenter { display: block; margin-inline: auto; }
.alignwide   { max-width: var(--fs-container-wide); margin-inline: auto; }
.alignfull   { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }

.wp-caption { max-width: 100%; }

.wp-caption-text,
.wp-block-image figcaption {
    font-size: var(--fs-text-sm);
    color: var(--fs-text-muted);
    text-align: center;
    margin-top: var(--fs-sp-3);
}

.sticky      { position: relative; }
.gallery-caption { font-size: var(--fs-text-sm); }
.bypostauthor { display: block; }

/* Barra de administración */
body.admin-bar .fs-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .fs-header { top: 46px; }
}
