/* =========================================================
   Pauta kit tokens — LIGHT, bold editorial. Original identity (Inspire mode).
   Análisis no oficial / no afiliado. Decisions only, every value is new:
   [J] Jitter: light stage, pill actions, tight negative tracking, slow soft easing.
   [U] Unicorn: one pinned scene that transforms, mono micro-labels, tiny radii next to huge ones.
   [M] Mobius (editorial studio): extreme scale contrast (huge display vs 12px labels),
       black/white tension, big numerals, generous whitespace, numbers/process/testimonial rhythm.
   [D] derived or new decision.
   ========================================================= */
:root {
  /* Color primitives: warm paper, near-black ink, ONE electric accent, ONE pop */
  --paper: #f6f1e6;                /* [D] warm paper base */
  --paper-2: #ece5d4;              /* [D] paper step, -4% lightness */
  --card: #fffdf7;                 /* [D] card white, warm */
  --ink: #0d0b14;                  /* [M] near-black ink */
  --ink-soft: #2b2833;
  --muted: #55515f;                /* [D] secondary text */
  --line: rgb(13 11 20 / .14);
  --electric: #4b2cff;             /* [D] saturated electric violet-blue, the accent */
  --electric-deep: #3217d1;
  --electric-100: #e6e0ff;         /* chips only, never a section wash */
  --accent-text: var(--electric);  /* emphasized words and big numerals; palettes may use a brighter or darker tone */
  --lime: #cfff2e;                 /* [J] pop used as fill with ink text, sparingly */
  --coral: #ff4f3a;                /* notification badge fill, ink text on top */
  --coral-ink: #d4311e;            /* glyph color, >= 3:1 on card */
  --green: #14804f;
  --green-ink: #0b5a36;

  /* Format colors (calendar rows) */
  --lane-story: #2f6bff;
  --lane-post: #4b2cff;
  --lane-carousel: #c25b00;
  --lane-reel: #d6246e;

  /* Semantic (components use only these) */
  --color-bg: var(--paper);
  --color-surface: var(--paper-2);
  --color-surface-2: #e0d8c4;
  --color-card: var(--card);
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-border: var(--line);
  --color-accent: var(--electric);
  --color-accent-soft: var(--electric-100);
  --color-on-accent: #ffffff;
  --color-highlight: var(--lime);
  --color-on-highlight: var(--ink);

  /* Scene gradient bases (fallback behind full-color photos) [D] */
  --duo-a: linear-gradient(160deg, var(--electric), #f6f1e6);   /* calm duotones: one electric, the rest warm neutrals */
  --duo-b: linear-gradient(160deg, #6b6354, #f6f1e6);
  --duo-c: linear-gradient(160deg, var(--electric), #ece5d4);
  --duo-d: linear-gradient(160deg, #2b2833, #fffdf7);
  --duo-e: linear-gradient(160deg, #55515f, #f6f1e6);
  --gradient-brand-line: linear-gradient(90deg, var(--electric), var(--lime));

  /* Type: heavy display with character + humanist body + mono labels */
  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --fs-base: clamp(15px, .5vw + 12px, 18px);
  --fs-mega: clamp(3.85rem, 14.5vw, 15.2rem);   /* [M] hero statement */
  --fs-h2: clamp(2.75rem, 8vw, 8rem);          /* [M] section titles */
  --fs-h3: clamp(1.5rem, 2.6vw, 2.25rem);
  --fs-num: clamp(4rem, 12vw, 11rem);          /* [M] big numerals */
  --fs-label: .75rem;                          /* [M] tiny labels */
  --lh-tight: .86;
  --lh-body: 1.55;
  --tracking-mega: -.055em;
  --tracking-display: -.04em;
  --tracking-body: -.01em;
  --tracking-label: .08em;

  /* Shape language: petal (3 round corners, 1 tight), pills for actions */
  --radius-tag: 6px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 50px;
  --radius-petal: 22px 22px 22px 6px;
  --radius-petal-sm: 14px 14px 14px 4px;
  --radius-petal-xl: 160px 160px 160px 28px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --touch: 44px;
  --shadow-soft: 0 1px 2px rgb(13 11 20 / .06), 0 14px 32px -14px rgb(13 11 20 / .22);
  --shadow-lift: 0 2px 4px rgb(13 11 20 / .08), 0 30px 64px -26px rgb(13 11 20 / .38);

  /* Motion: ambient slow, rewards short and springy */
  --ease-reveal: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-follow: cubic-bezier(.215, .61, .355, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --dur-reward: .32s;
  --dur-base: .45s;
  --dur-slow: 1.1s;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  color-scheme: light;
}

@media (max-width: 760px) {
  :root { --gutter: 1rem; --fs-mega: 15vw; --fs-h2: clamp(2.5rem, 12.5vw, 4rem); }
}

/* ---------- Switchable palettes (data-palette on <html>) ----------
   Default (no attribute) is "violeta", kept for comparison. Every accent usage reads these tokens.
   Each set was checked with contrast.py: on-accent on primary and deep >= 4.5, deep text on paper >= 4.5,
   ink on pop >= 4.5, primary/accent-text/glyph/lane colors >= 3 on paper, paper-2 and card. */
html[data-palette="azul-naranja"] { /* Azul + naranja */
  --electric: #2447f5; --electric-deep: #1a35c4; --electric-100: color-mix(in srgb, #2447f5 11%, #fffdf7); --accent-text: #2447f5;
  --lime: #ff8a3d; --coral: #ff8a3d; --coral-ink: #b8520b; --color-on-accent: #ffffff;
  --lane-story: #1f7a8c; --lane-post: #2447f5; --lane-carousel: #b8520b; --lane-reel: #b0306a;
}
html[data-palette="bosque-coral"] { /* Bosque + coral */
  --electric: #0f5b45; --electric-deep: #0a4533; --electric-100: color-mix(in srgb, #0f5b45 11%, #fffdf7); --accent-text: #0f5b45;
  --lime: #ff6b4a; --coral: #ff6b4a; --coral-ink: #c93e1f; --color-on-accent: #ffffff;
  --lane-story: #2a6f8f; --lane-post: #0f5b45; --lane-carousel: #b35a1f; --lane-reel: #c93e1f;
}
html[data-palette="carmin-turquesa"] { /* Carmín + turquesa */
  --electric: #d1223d; --electric-deep: #a31a30; --electric-100: color-mix(in srgb, #d1223d 11%, #fffdf7); --accent-text: #d1223d;
  --lime: #17a398; --coral: #17a398; --coral-ink: #0b7a71; --color-on-accent: #ffffff;
  --lane-story: #0b7a71; --lane-post: #d1223d; --lane-carousel: #a56a00; --lane-reel: #7a2e8a;
}
html[data-palette="petroleo-ambar"] { /* Petróleo + ámbar */
  --electric: #0b6e7f; --electric-deep: #07505d; --electric-100: color-mix(in srgb, #0b6e7f 11%, #fffdf7); --accent-text: #0b6e7f;
  --lime: #f2a31b; --coral: #f2a31b; --coral-ink: #a86400; --color-on-accent: #ffffff;
  --lane-story: #2f5da8; --lane-post: #0b6e7f; --lane-carousel: #a86400; --lane-reel: #b03a5b;
}
html[data-palette="tinta-tomate"] { /* Tinta + tomate */
  --electric: #1a1726; --electric-deep: #b32b07; --electric-100: color-mix(in srgb, #1a1726 11%, #fffdf7); --accent-text: #d93a12;
  --lime: #ff4a1c; --coral: #ff4a1c; --coral-ink: #d93a12; --color-on-accent: #ffffff;
  --lane-story: #4a5568; --lane-post: #1a1726; --lane-carousel: #7a5c3a; --lane-reel: #d93a12;
}
html[data-palette="cobalto-sol"] { /* Cobalto + sol */
  --electric: #1d39c4; --electric-deep: #132794; --electric-100: color-mix(in srgb, #1d39c4 11%, #fffdf7); --accent-text: #1d39c4;
  --lime: #ffd43b; --coral: #ffd43b; --coral-ink: #b85c00; --color-on-accent: #ffffff;
  --lane-story: #0b6e7f; --lane-post: #1d39c4; --lane-carousel: #b85c00; --lane-reel: #c2255c;
}
html[data-palette="ciruela-menta"] { /* Ciruela + menta */
  --electric: #6b1d5c; --electric-deep: #4d1241; --electric-100: color-mix(in srgb, #6b1d5c 11%, #fffdf7); --accent-text: #6b1d5c;
  --lime: #2ee6a8; --coral: #2ee6a8; --coral-ink: #087f5b; --color-on-accent: #ffffff;
  --lane-story: #087f5b; --lane-post: #6b1d5c; --lane-carousel: #b35a1f; --lane-reel: #a61e4d;
}
html[data-palette="esmeralda-rosa"] { /* Esmeralda + rosa */
  --electric: #0b7a53; --electric-deep: #06573b; --electric-100: color-mix(in srgb, #0b7a53 11%, #fffdf7); --accent-text: #0b7a53;
  --lime: #ff7eb6; --coral: #ff7eb6; --coral-ink: #c2255c; --color-on-accent: #ffffff;
  --lane-story: #1c7ed6; --lane-post: #0b7a53; --lane-carousel: #b8520b; --lane-reel: #c2255c;
}
html[data-palette="terracota-cielo"] { /* Terracota + cielo */
  --electric: #c84b28; --electric-deep: #993418; --electric-100: color-mix(in srgb, #c84b28 11%, #fffdf7); --accent-text: #c84b28;
  --lime: #5cc8ff; --coral: #5cc8ff; --coral-ink: #0b6e7f; --color-on-accent: #ffffff;
  --lane-story: #0b6e7f; --lane-post: #c84b28; --lane-carousel: #9c6615; --lane-reel: #862e9c;
}
html[data-palette="indigo-melon"] { /* Índigo + melón */
  --electric: #3729a6; --electric-deep: #251a7a; --electric-100: color-mix(in srgb, #3729a6 11%, #fffdf7); --accent-text: #3729a6;
  --lime: #ff9b71; --coral: #ff9b71; --coral-ink: #c93e1f; --color-on-accent: #ffffff;
  --lane-story: #1f7a8c; --lane-post: #3729a6; --lane-carousel: #b8520b; --lane-reel: #c93e1f;
}
html[data-palette="oliva-limon"] { /* Oliva + limón */
  --electric: #3d5a1f; --electric-deep: #2a4014; --electric-100: color-mix(in srgb, #3d5a1f 11%, #fffdf7); --accent-text: #3d5a1f;
  --lime: #d9ff42; --coral: #d9ff42; --coral-ink: #2b6e12; --color-on-accent: #ffffff;
  --lane-story: #1f7a8c; --lane-post: #3d5a1f; --lane-carousel: #a86400; --lane-reel: #b03a5b;
}
