    /* Variables de color base */
    :root {
      color-scheme: dark;
      --bg-dark: #1a1a1a;
      --text-dark: #ffffff;
      --bg-light: #f0e6d2;
      --text-light: #212529;

      --bg-navbar-dark: #232323;
      --bg-navbar-light: #f5efe6;

      --card-bg-dark: #2a2a2a;
      /* Fondo más claro para tarjetas en dark mode */
      --card-bg-light: #ffffff;

      --footer-bg-dark: #1f1f1f;
      --footer-bg-light: #ffffff;

      --brand-color-dark: #bb86fc;
      --brand-color-light: #E1306C;
      /* Segundo color del gradiente claro (CTA / acento cálido) */
      --brand-accent-orange: #f77737;

      /* RGB helpers for brand colors */
      --brand-color-dark-rgb: 187, 134, 252;
      --brand-color-light-rgb: 225, 48, 108;

      /* Nuevas variables */
      --primary-gradient-dark: linear-gradient(135deg, #bb86fc 0%, #7c4dff 100%);
      --primary-gradient-light: linear-gradient(135deg, #E1306C 0%, var(--brand-accent-orange) 100%);
      --card-shadow-dark: 0 8px 16px rgba(0, 0, 0, 0.4);
      --card-shadow-light: 0 8px 16px rgba(0, 0, 0, 0.1);

      /* RGB versions for opacity */
      --text-dark-rgb: 255, 255, 255;
      --text-light-rgb: 33, 37, 41;

      /* Variables de animación */
      --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);
      --animation-duration: 0.3s;
      --flu-transition-bg: var(--bg-dark);

      /* Altura del navbar fijo. El offcanvas arranca por debajo del navbar
         para que el navbar (y su toggler) queden visibles por encima del menú. */
      --flu-navbar-h: 70px;
    }

    /* Barra superior: "Volver" a la izquierda, acciones a la derecha (catálogo, calendario, etc.) */
    .progressive-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1.35rem;
      flex-wrap: wrap;
    }

    .progressive-topbar-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .progressive-topbar .btn {
      border-radius: 6px;
      font-weight: 600;
      font-family: "Montserrat", system-ui, sans-serif;
      font-size: 0.82rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      padding: 0.58rem 1.15rem;
      line-height: 1.2;
      transition:
        background-color 0.17s ease,
        border-color 0.17s ease,
        color 0.17s ease,
        transform 0.17s ease,
        box-shadow 0.17s ease;
    }

    .progressive-topbar .btn:focus-visible {
      outline: 2px solid rgba(var(--brand-color-dark-rgb, 187, 134, 252), 0.95);
      outline-offset: 2px;
      box-shadow: none;
    }

    body.light-mode .progressive-topbar .btn:focus-visible {
      outline-color: rgba(var(--brand-color-light-rgb, 225, 48, 108), 0.9);
    }

    .progressive-topbar .btn-outline-secondary {
      color: #e8e8ec;
      background: rgba(255, 255, 255, 0.035);
      border: 1px solid rgba(255, 255, 255, 0.22);
      box-shadow: none;
    }

    .progressive-topbar .btn-outline-secondary:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.09);
      border-color: rgba(255, 255, 255, 0.34);
      transform: translateY(-1px);
    }

    .progressive-topbar .btn-outline-secondary:active {
      transform: translateY(0);
      background: rgba(255, 255, 255, 0.06);
    }

    .progressive-topbar .btn-primary {
      color: #141016;
      background: var(--brand-color-dark, #bb86fc);
      border: 1px solid rgba(255, 255, 255, 0.22);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset;
    }

    .progressive-topbar .btn-primary:hover {
      color: #0c0a0e;
      background: #d1b0fc;
      border-color: rgba(255, 255, 255, 0.32);
      transform: translateY(-1px);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset;
    }

    .progressive-topbar .btn-primary:active {
      transform: translateY(0);
      background: #b891f5;
    }

    body.light-mode .progressive-topbar .btn-outline-secondary {
      color: #334155;
      background: rgba(255, 255, 255, 0.65);
      border-color: rgba(15, 23, 42, 0.16);
    }

    body.light-mode .progressive-topbar .btn-outline-secondary:hover {
      color: #0f172a;
      background: #ffffff;
      border-color: rgba(15, 23, 42, 0.26);
    }

    body.light-mode .progressive-topbar .btn-primary {
      color: #ffffff;
      background: var(--brand-color-light, #E1306C);
      border-color: rgba(0, 0, 0, 0.12);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    }

    body.light-mode .progressive-topbar .btn-primary:hover {
      background: #ec3d7a;
      border-color: rgba(0, 0, 0, 0.16);
      color: #ffffff;
    }

    body.light-mode .progressive-topbar .btn-primary:active {
      background: #c92960;
    }

    @media (max-width: 768px) {
      .progressive-topbar {
        flex-direction: column;
        align-items: stretch;
      }

      .progressive-topbar-actions {
        width: 100%;
      }

      .progressive-topbar-actions .btn {
        width: 100%;
        justify-content: center;
      }
    }

    /* Modern SVG Theme Toggle Styles */
    .modern-theme-toggle {
      width: 110px;
      height: 64px;
      display: block;
      cursor: pointer;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      will-change: transform;
      transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .toggle-wrapper {
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .toggle-wrapper:focus {
      outline: none;
    }

    .toggle-wrapper:focus-visible {
      outline: 2px solid rgba(var(--brand-color-dark-rgb), 0.65);
      outline-offset: 3px;
      border-radius: 6px !important;
    }

    .track-night {
      fill: #252528;
      stroke: #36363A;
      stroke-width: 2;
    }

    .track-day {
      fill: #EAE5DD;
      stroke: #DFDCD6;
      stroke-width: 2;
      transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      opacity: 1;
    }

    .toggle-wrapper.is-night .track-day {
      opacity: 0;
    }

    .bg-icon-moon {
      fill: #C4C0B8;
      transition: opacity 0.4s ease;
      opacity: 1;
      will-change: opacity;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .bg-icon-sun {
      fill: #4A4A50;
      transition: opacity 0.4s ease;
      opacity: 0;
      will-change: opacity;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .toggle-wrapper.is-night .bg-icon-moon {
      opacity: 0;
    }

    .toggle-wrapper.is-night .bg-icon-sun {
      opacity: 1;
    }

    .thumb-group {
      transform: translate3d(40px, 50px, 0);
      transition: transform 0.5s cubic-bezier(0.34, 1.25, 0.64, 1);
      will-change: transform;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .toggle-wrapper.is-night .thumb-group {
      transform: translate3d(104px, 50px, 0);
    }

    .thumb-base-night {
      opacity: 0;
      transition: opacity 0.4s ease;
      will-change: opacity;
    }

    .toggle-wrapper.is-night .thumb-base-night {
      opacity: 1;
    }

    .thumb-base-day {
      opacity: 1;
      transition: opacity 0.4s ease;
      will-change: opacity;
    }

    .toggle-wrapper.is-night .thumb-base-day {
      opacity: 0;
    }

    .active-sun {
      transition: opacity 0.4s ease;
      opacity: 1;
      will-change: opacity;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .toggle-wrapper.is-night .active-sun {
      opacity: 0;
    }

    .active-moon {
      transition: opacity 0.4s ease;
      opacity: 0;
      will-change: opacity;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .toggle-wrapper.is-night .active-moon {
      opacity: 1;
    }

    /* Fuentes y modo oscuro por defecto */
    html,
    body {
      height: 100%;
      font-size: clamp(14.5px, 0.35vw + 10px, 16px);
      /* Escala fluida para evitar layouts sobredimensionados en notebooks */
    }

    body {
      font-family: 'Roboto', sans-serif;
      background-color: var(--bg-dark);
      color: var(--text-dark);
      transition: background-color 0.3s, color 0.3s;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      line-height: 1.6;
      /* Espaciado entre líneas para legibilidad */
    }

    body.light-mode {
      color-scheme: light;
      background-color: var(--bg-light);
      color: var(--text-light);
    }

    html.light-mode {
      --flu-transition-bg: var(--bg-light);
    }

    /* MPA navigation View Transitions stay independent from the theme fade-through. */
    html {
      view-transition-name: sf-doc-root;
    }

    /*
      Cross-document MPA navigations (Chrome/Edge/Safari recent): same-origin full loads
      get a continuous transition so the chrome does not feel like a hard reboot.
      Named regions keep the navbar visually stable while main content crossfades.
    */
    @view-transition {
      navigation: auto;
    }

    /*
      view-transition-name creates a containing layer that breaks backdrop-filter
      on descendants (guest pill glass). Only name the logged-in navbar.
    */
    .navbar[data-is-guest="0"],
    #fluAppNav[data-is-guest="0"] {
      view-transition-name: flu-navbar;
    }

    main.flex-grow-1,
    #fluAppMain {
      view-transition-name: flu-main;
    }

    @media (prefers-reduced-motion: no-preference) {
      /* Navigation: root snapshots stay still; main owns the short fade-through. */
      ::view-transition-old(sf-doc-root),
      ::view-transition-new(sf-doc-root) {
        mix-blend-mode: normal;
        animation: none;
      }

      ::view-transition-old(flu-navbar),
      ::view-transition-new(flu-navbar) {
        /* Shared-element chrome: no fade so the bar feels fixed in place */
        animation: none;
        mix-blend-mode: normal;
        height: 100%;
        overflow: clip;
      }

      ::view-transition-group(flu-main),
      ::view-transition-image-pair(flu-main) {
        background: var(--flu-transition-bg);
        overflow: clip;
      }

      ::view-transition-image-pair(flu-main) {
        isolation: isolate;
      }

      ::view-transition-old(flu-main) {
        z-index: 1;
        animation: flu-main-exit 0.055s cubic-bezier(0.4, 0, 1, 1) both;
        mix-blend-mode: normal;
      }

      ::view-transition-new(flu-main) {
        z-index: 2;
        background: var(--flu-transition-bg);
        mix-blend-mode: normal;
        animation: flu-main-enter 0.105s 0.055s cubic-bezier(0.22, 1, 0.36, 1) both;
      }
    }

    @keyframes flu-main-exit {
      from {
        opacity: 1;
        transform: translateY(0);
      }
      to {
        opacity: 0;
        transform: translateY(-2px);
      }
    }

    @keyframes flu-main-enter {
      from {
        opacity: 0;
        transform: translateY(3px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes flu-main-settle {
      from {
        opacity: 0;
        transform: translateY(4px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    #fluAppMain.flu-shell-entering {
      animation: flu-main-settle 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @media (prefers-reduced-motion: reduce) {
      @view-transition {
        navigation: none;
      }

      #fluAppMain.flu-shell-entering {
        animation: none;
      }
    }

    /* Lock mode: disables all transitions during bulk theme change to prevent storm */
    html.sf-theme-switching *,
    html.sf-theme-switching *::before,
    html.sf-theme-switching *::after {
      transition-property: none !important;
      transition-duration: 0s !important;
    }

    html.sf-theme-switching .theme-notification {
      transition-property: opacity, transform !important;
      transition-duration: 0.3s !important;
    }

    .sf-theme-veil,
    html.sf-theme-switching .sf-theme-veil {
      position: fixed;
      inset: 0;
      z-index: 2147483646;
      opacity: 0;
      pointer-events: none;
      contain: strict;
      will-change: opacity;
      transform: translateZ(0);
      backface-visibility: hidden;
      isolation: isolate;
      background: #1a1a1a;
      transition-property: opacity !important;
      transition-duration: 0.09s !important;
      transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
      animation: none !important;
    }

    .sf-theme-veil.is-covering {
      /*
        Keep this infinitesimally translucent. At opacity: 1 Chromium may
        occlusion-cull the document, forcing a full paint only when reveal
        starts; 0.999 makes it prepaint underneath while remaining opaque to
        the eye.
      */
      opacity: 0.999;
    }

    .sf-theme-veil.is-out {
      opacity: 0;
    }

    @media (prefers-reduced-motion: reduce) {
      .sf-theme-veil {
        transition: none !important;
      }
    }

    /* Deprecated per-element theme transition path. */
    html.sf-theme-transitioning body {
      transition: none;
    }

    main {
      flex: 1 0 auto;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-family: 'Montserrat', sans-serif;
      line-height: 1.3;
      /* Ajuste para títulos */
    }

    /* Navbar Moderna con Glassmorphism */
    .navbar {
      transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-bottom-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      padding-top: 1rem;
      padding-bottom: 1rem;
      min-height: 70px;
      --navbar-control-size: 52px;
      --navbar-toggler-width: calc(var(--navbar-control-size) + 10px);
      --navbar-control-radius: 12px;
      --navbar-control-icon-size: 1.56rem;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      border-bottom: 1px solid rgba(187, 134, 252, 0.1);
    }

    .navbar.scrolled {
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
      border-bottom-color: rgba(187, 134, 252, 0.2);
    }

    .navbar .container-fluid {
      position: relative;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      min-height: 50px;
    }

    /* Row for centered mid-links + workspace/notifications (all users) */
    .navbar .container-fluid > .d-md-flex {
      position: relative;
      flex: 1 1 0;
      min-width: 0;
      min-height: 50px;
    }

    .navbar .d-none.d-md-flex {
      min-height: inherit;
    }

    .navbar-dark {
      background-color: rgba(35, 35, 35, 0.95) !important;
    }

    body.light-mode .navbar-dark {
      background-color: rgba(248, 249, 250, 0.95) !important;
      border-bottom-color: rgba(225, 48, 108, 0.1);
    }

    body.light-mode .navbar-dark[data-is-guest="1"],
    html.light-mode .navbar-dark[data-is-guest="1"] {
      background-color: transparent !important;
      border-bottom-color: transparent !important;
    }

    /* Centered middle links for visitors */
    .navbar-mid-links {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      gap: 2.5rem;
      z-index: 4;
      display: flex;
      align-items: center;
      pointer-events: auto;
    }

    .navbar-mid-links .nav-link {
      padding: 0.5rem 0.75rem;
      color: var(--brand-color-dark) !important;
      background: transparent !important;
      border: none !important;
      transition: color .2s ease;
      font-size: 1.1rem;
      font-weight: 500;
    }

    .navbar-mid-links .nav-link:hover {
      color: #d4b4ff !important;
      /* leve énfasis en oscuro */
    }

    body.light-mode .navbar-mid-links .nav-link {
      color: var(--brand-color-light) !important;
      background: transparent !important;
      border: none !important;
    }

    body.light-mode .navbar-mid-links .nav-link:hover {
      color: #f06292 !important;
      /* leve énfasis en claro */
    }

    .navbar-mid-links .nav-mid-link {
      position: relative;
      display: inline-block;
      white-space: nowrap;
      opacity: 1;
      transform: translateY(0);
      transition: color .2s ease, transform .2s ease;
    }

    /*
      No entrance animation on mid-nav links: a full-document MPA navigation
      remounts the navbar, and staggered fades made chrome feel like it rebooted.
    */

    .navbar-mid-links .nav-mid-link::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -6px;
      width: 0;
      height: 2px;
      background: currentColor;
      transition: width .3s var(--transition-bezier);
    }

    .navbar-mid-links .nav-mid-link:hover {
      transform: translateY(0);
    }

    .navbar-mid-links .nav-mid-link:hover::after,
    .navbar-mid-links .nav-mid-link.active::after {
      width: 100%;
    }

    .navbar-mid-links .nav-mid-link.active {
      color: var(--brand-color-dark, #bb86fc);
      font-weight: 600;
    }

    body.light-mode .navbar-mid-links .nav-mid-link.active {
      color: var(--brand-color-light, #E1306C);
    }

    /* Workspace pill dropdown (navbar) */
    .btn-workspace-pill {
      background: #1c1c1e;
      border: 1px solid #36363a;
      border-radius: 10px;
      padding: 8px 12px 8px 8px;
      color: #fff;
      transition: background 0.2s ease, border-color 0.2s ease;
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 210px;
    }

    .btn-workspace-pill::after {
      flex-shrink: 0;
      margin-left: auto;
      margin-right: 2px;
      opacity: 0.7;
    }

    .btn-workspace-pill::before,
    .btn-workspace-pill:hover::before {
      display: none !important;
    }

    .btn-workspace-pill:hover,
    .btn-workspace-pill.show {
      background: #252528;
      border-color: rgba(187, 134, 252, 0.35);
      transform: none !important;
    }

    .btn-workspace-pill,
    .btn-workspace-pill:focus,
    .btn-workspace-pill:active,
    .btn-workspace-pill:hover,
    .btn-workspace-pill.show {
      box-shadow: none !important;
    }

    .navbar-theme-toggle {
      width: 88px;
      height: 52px;
      flex: 0 0 auto;
      margin-right: 0;
    }

    /* Guest: toggle at trailing edge (see .guest-navbar-theme-slot rules in pill block) */

    @media (max-width: 419.98px) {
      .navbar-theme-toggle {
        width: 76px;
        height: 45px;
      }

      .navbar-brand-cluster {
        gap: 6px;
      }
    }

    .navbar-brand-cluster {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 0 1 auto;
      min-width: 0;
    }

    .navbar-brand-cluster .navbar-brand {
      margin-right: 0 !important;
      min-width: 0;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 0;
      overflow: hidden;
    }

    /* Guest navbar: dual logo system (F icon + full wordmark) */
    .navbar-brand .navbar-brand-icon,
    .navbar-brand .navbar-brand-wordmark {
      transition: opacity var(--guest-pill-dur, 0.14s) var(--guest-pill-ease, cubic-bezier(0.2, 0, 0, 1)),
        transform var(--guest-pill-dur, 0.14s) var(--guest-pill-ease, cubic-bezier(0.2, 0, 0, 1)),
        width var(--guest-pill-dur, 0.14s) var(--guest-pill-ease, cubic-bezier(0.2, 0, 0, 1));
      display: block;
      flex-shrink: 0;
    }

    /* Light-mode logo variants: inline display:none handles default hiding, no flash */
    body.light-mode .navbar-brand-icon--dark,
    body.light-mode .navbar-brand-wordmark--dark {
      display: none !important;
    }

    body.light-mode .navbar-brand-icon--light {
      display: block !important;
    }

    body.light-mode .navbar-brand-wordmark--light {
      display: block !important;
    }

    .navbar-brand .navbar-brand-wordmark {
      opacity: 1;
      transform: translateX(0);
      width: 90px;
      height: 36px;
      margin-left: 0.25rem;
    }

    .navbar-brand .navbar-brand-icon {
      opacity: 0;
      transform: translateX(-8px);
      width: 0;
      height: 36px;
      pointer-events: none;
    }

    /* Default guest state: show wordmark, hide icon */
    .navbar[data-is-guest="1"] .navbar-brand .navbar-brand-wordmark {
      opacity: 1;
      transform: translateX(0);
      width: 90px;
    }

    .navbar[data-is-guest="1"] .navbar-brand .navbar-brand-icon {
      opacity: 0;
      transform: translateX(-8px);
      width: 0;
      pointer-events: none;
    }

    /* Pill state: show icon, hide wordmark */
    .navbar[data-is-guest="1"].is-pill .navbar-brand .navbar-brand-wordmark {
      opacity: 0;
      transform: translateX(-8px);
      width: 0;
      pointer-events: none;
    }

    .navbar[data-is-guest="1"].is-pill .navbar-brand .navbar-brand-icon {
      opacity: 1;
      transform: translateX(0);
      width: 36px;
      pointer-events: auto;
    }

    /* Logged-in users: always show icon only */
    .navbar[data-is-guest="0"] .navbar-brand .navbar-brand-icon {
      opacity: 1;
      transform: translateX(0);
      width: 36px;
      pointer-events: auto;
    }

    .navbar[data-is-guest="0"] .navbar-brand .navbar-brand-wordmark {
      display: none;
    }

    /* === GUEST PILL NAVBAR — full-width bar at top, morphs into floating pill on scroll === */
    /* Chrome lives on ::before (opacity only) so blur/shadow never tween on the fixed nav */
    .navbar[data-is-guest="1"] {
      --guest-pill-ease: cubic-bezier(0.2, 0, 0, 1);
      --guest-pill-dur: 0.14s;
      --guest-chrome-fade: 0.08s;
      /* Keep Bootstrap .fixed-top — do not set position: relative (breaks sticky nav) */
      position: fixed;
      top: 0;
      right: 0;
      left: 0;
      z-index: 1030;
      /* No isolation/view-transition-name here — both break backdrop-filter glass on the pill */
      background: transparent !important;
      border-bottom: none !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      transition: none;
    }

    .navbar[data-is-guest="1"]::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-color: rgba(35, 35, 35, 0.72);
      border-bottom: 1px solid rgba(187, 134, 252, 0.12);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
      backdrop-filter: blur(22px) saturate(140%);
      -webkit-backdrop-filter: blur(22px) saturate(140%);
      opacity: 1;
      transition: opacity var(--guest-chrome-fade) ease-out;
    }

    body.light-mode .navbar[data-is-guest="1"]::before,
    html.light-mode .navbar[data-is-guest="1"]::before {
      background-color: rgba(255, 255, 255, 0.55);
      border-bottom-color: rgba(0, 0, 0, 0.06);
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    }

    .navbar[data-is-guest="1"].is-pill::before {
      opacity: 0;
      transition: opacity var(--guest-chrome-fade) ease-out;
    }

    /* Top: inner track is flat; pill glass only when .is-pill */
    .navbar[data-is-guest="1"] .container-fluid {
      position: relative;
      z-index: 1;
      overflow: visible;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      /* Cross-fade paint with geometry; keep blur discrete to avoid GPU filter thrash. */
      transition-property: border-radius, max-width, padding, margin-top, min-height, background-color, border-color, box-shadow;
      transition-duration: var(--guest-pill-dur);
      transition-timing-function: var(--guest-pill-ease);
      border-radius: 6px;
      background: transparent;
      box-shadow: none;
      border: 1px solid transparent;
      padding: 0 0.75rem;
      margin: 0 auto;
      max-width: 100%;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    /* Floating glass pill — frost layer via ::after so blur samples the page behind */
    .navbar[data-is-guest="1"].is-pill .container-fluid {
      max-width: min(980px, calc(100% - 2.5rem));
      border-radius: 999px;
      padding: 0.55rem 1.25rem;
      min-height: 60px;
      margin-top: 0.6rem;
      overflow: visible;
      background: rgba(18, 16, 28, 0.42);
      border: 1px solid rgba(255, 255, 255, 0.14);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        0 14px 44px rgba(0, 0, 0, 0.34);
      backdrop-filter: blur(32px) saturate(165%);
      -webkit-backdrop-filter: blur(32px) saturate(165%);
    }

    .navbar[data-is-guest="1"].is-pill .container-fluid::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      z-index: -1;
      background:
        linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.14) 0%,
          rgba(255, 255, 255, 0.04) 42%,
          rgba(187, 134, 252, 0.08) 100%
        );
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }

    body.light-mode .navbar[data-is-guest="1"].is-pill .container-fluid,
    html.light-mode .navbar[data-is-guest="1"].is-pill .container-fluid {
      background: rgba(255, 255, 255, 0.48);
      border-color: rgba(255, 255, 255, 0.62);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04),
        0 14px 40px rgba(0, 0, 0, 0.12);
      backdrop-filter: blur(32px) saturate(170%);
      -webkit-backdrop-filter: blur(32px) saturate(170%);
    }

    body.light-mode .navbar[data-is-guest="1"].is-pill .container-fluid::after,
    html.light-mode .navbar[data-is-guest="1"].is-pill .container-fluid::after {
      background:
        linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.55) 0%,
          rgba(255, 255, 255, 0.12) 45%,
          rgba(225, 48, 108, 0.06) 100%
        );
    }

    .navbar[data-is-guest="1"] .navbar-mid-links {
      z-index: 5;
    }

    .navbar[data-is-guest="1"] .guest-navbar-actions {
      margin-left: auto;
      z-index: 5;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 0.55rem;
    }

    .navbar[data-is-guest="1"] .guest-navbar-theme-slot {
      flex-shrink: 0;
    }

    /* Guest login CTA — solid brand pill (beats Bootstrap .navbar a link blue) */
    #fluAppNav[data-is-guest="1"] a.guest-login-cta,
    .navbar[data-is-guest="1"] a.guest-login-cta {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      min-height: 40px;
      padding: 0.55rem 1.15rem !important;
      border-radius: 999px !important;
      border: none !important;
      background: linear-gradient(135deg, #bb86fc 0%, #7c4dff 100%) !important;
      color: #fff !important;
      font-family: "Montserrat", sans-serif !important;
      font-weight: 700 !important;
      font-size: 0.9rem !important;
      line-height: 1.2 !important;
      letter-spacing: 0.01em;
      text-decoration: none !important;
      white-space: nowrap;
      box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.22) inset,
        0 6px 16px rgba(124, 77, 255, 0.35);
      transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease,
        filter 0.2s ease;
    }

    #fluAppNav[data-is-guest="1"] a.guest-login-cta:hover,
    #fluAppNav[data-is-guest="1"] a.guest-login-cta:focus-visible,
    .navbar[data-is-guest="1"] a.guest-login-cta:hover,
    .navbar[data-is-guest="1"] a.guest-login-cta:focus-visible {
      color: #fff !important;
      text-decoration: none !important;
      filter: brightness(1.06);
      transform: translateY(-1px);
      box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.28) inset,
        0 10px 22px rgba(124, 77, 255, 0.45);
      outline: none;
    }

    #fluAppNav[data-is-guest="1"] a.guest-login-cta:active,
    .navbar[data-is-guest="1"] a.guest-login-cta:active {
      transform: translateY(0);
      filter: brightness(0.98);
    }

    #fluAppNav[data-is-guest="1"] a.guest-login-cta.is-active,
    .navbar[data-is-guest="1"] a.guest-login-cta.is-active {
      box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.22) inset,
        0 0 0 2px rgba(187, 134, 252, 0.55),
        0 6px 16px rgba(124, 77, 255, 0.35);
    }

    body.light-mode #fluAppNav[data-is-guest="1"] a.guest-login-cta,
    body.light-mode .navbar[data-is-guest="1"] a.guest-login-cta,
    html.light-mode #fluAppNav[data-is-guest="1"] a.guest-login-cta,
    html.light-mode .navbar[data-is-guest="1"] a.guest-login-cta {
      background: linear-gradient(135deg, #E1306C 0%, #F77737 100%) !important;
      color: #fff !important;
      box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.28) inset,
        0 6px 16px rgba(225, 48, 108, 0.32);
    }

    body.light-mode #fluAppNav[data-is-guest="1"] a.guest-login-cta:hover,
    body.light-mode #fluAppNav[data-is-guest="1"] a.guest-login-cta:focus-visible,
    body.light-mode .navbar[data-is-guest="1"] a.guest-login-cta:hover,
    body.light-mode .navbar[data-is-guest="1"] a.guest-login-cta:focus-visible,
    html.light-mode #fluAppNav[data-is-guest="1"] a.guest-login-cta:hover,
    html.light-mode #fluAppNav[data-is-guest="1"] a.guest-login-cta:focus-visible,
    html.light-mode .navbar[data-is-guest="1"] a.guest-login-cta:hover,
    html.light-mode .navbar[data-is-guest="1"] a.guest-login-cta:focus-visible {
      color: #fff !important;
      box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.32) inset,
        0 10px 22px rgba(225, 48, 108, 0.4);
    }

    .navbar[data-is-guest="1"].is-pill a.guest-login-cta {
      min-height: 36px;
      padding: 0.45rem 1rem !important;
      font-size: 0.86rem !important;
    }

    @media (max-width: 767.98px) {
      .navbar[data-is-guest="1"] .guest-navbar-actions {
        gap: 0.45rem;
      }

      #fluAppNav[data-is-guest="1"] a.guest-login-cta,
      .navbar[data-is-guest="1"] a.guest-login-cta {
        min-height: 38px;
        padding: 0.45rem 0.95rem !important;
        font-size: 0.84rem !important;
      }
    }

    /* Compress contents inside the pill */
    .navbar[data-is-guest="1"].is-pill .navbar-mid-links {
      gap: 1rem;
    }

    .navbar[data-is-guest="1"].is-pill .navbar-mid-links .nav-link {
      font-size: 1.1rem;
      padding: 0.4rem 0.65rem;
    }

    .navbar[data-is-guest="1"] .navbar-theme-toggle {
      transition: width var(--guest-pill-dur) var(--guest-pill-ease),
        height var(--guest-pill-dur) var(--guest-pill-ease);
    }

    .navbar[data-is-guest="1"].is-pill .navbar-theme-toggle {
      width: 76px;
      height: 46px;
    }

    @media (prefers-reduced-motion: reduce) {
      .navbar-mid-links .nav-mid-link {
        opacity: 1;
        transform: translateY(0);
        animation: none;
      }

      .navbar[data-is-guest="1"]::before,
      .navbar[data-is-guest="1"] .container-fluid,
      .navbar[data-is-guest="1"] .navbar-theme-toggle {
        transition-duration: 0.01ms !important;
      }
    }

    /* Disable expensive transitions during initial page load to prevent jank */
    body.preload .navbar[data-is-guest="1"]::before,
    body.preload .navbar[data-is-guest="1"] .container-fluid,
    body.preload .navbar[data-is-guest="1"] .navbar-theme-toggle {
      transition-duration: 0s !important;
    }

    .ws-avatar-current {
      width: 34px;
      height: 34px;
      color: #fff;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1rem;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    }

    .ws-avatar-img {
      object-fit: contain;
      border: none;
      background: transparent;
    }

    .ws-avatar-current.ws-avatar-img {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      box-shadow: none;
    }

    .ws-item-avatar.ws-avatar-img {
      width: 26px;
      height: 26px;
      border-radius: 7px;
    }

    .ws-label-micro {
      font-size: 0.62rem;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: #a1a1a6;
      line-height: 1.1;
    }

    .ws-name-current {
      font-weight: 600;
      font-size: 0.9rem;
      max-width: 140px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #fff;
      line-height: 1.15;
    }

    @media (max-width: 1440px) and (min-width: 993px) {
      :root {
        --flu-navbar-h: 64px;
      }
      .navbar {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
        min-height: 64px;
        --navbar-control-size: 48px;
        --navbar-toggler-width: calc(var(--navbar-control-size) + 8px);
        --navbar-control-radius: 11px;
        --navbar-control-icon-size: 1.42rem;
      }

      .navbar-mid-links {
        gap: 2rem;
      }

      .btn-workspace-pill {
        min-width: 196px;
        padding: 7px 11px 7px 7px;
        gap: 8px;
      }

      .ws-avatar-current,
      .ws-avatar-current.ws-avatar-img {
        width: 32px;
        height: 32px;
      }

      .ws-name-current {
        max-width: 128px;
      }
    }

    /* Pill navbar responsive adjustments */
    @media (max-width: 1200px) {
      .navbar[data-is-guest="1"].is-pill .container-fluid {
        max-width: min(900px, calc(100% - 2rem));
        padding: 0.5rem 1.1rem;
      }

      .navbar[data-is-guest="1"].is-pill .navbar-mid-links {
        gap: 0.75rem;
      }

      .navbar[data-is-guest="1"].is-pill .navbar-mid-links .nav-link {
        font-size: 1rem;
        padding: 0.35rem 0.5rem;
      }
    }

    @media (max-width: 768px) {
      .navbar[data-is-guest="1"].is-pill .container-fluid {
        max-width: calc(100% - 1.25rem);
        padding: 0.45rem 1rem;
        margin-top: 0.5rem;
        min-height: 52px;
        border-radius: 22px;
      }

      /* On mobile, always show icon (wordmark hidden even at top) */
      .navbar[data-is-guest="1"] .navbar-brand .navbar-brand-wordmark {
        width: 0;
        opacity: 0;
      }

      .navbar[data-is-guest="1"] .navbar-brand .navbar-brand-icon {
        opacity: 1;
        transform: translateX(0);
        width: 36px;
      }
    }

    .modern-ws-menu {
      --ws-bg: #1c1c1e;
      --ws-border: #36363a;
      --ws-hover: #252528;
      --ws-text: #ffffff;
      --ws-muted: #a1a1a6;
      --ws-brand: #bb86fc;
      background: var(--ws-bg);
      border: 1px solid var(--ws-border);
      border-radius: 12px;
      padding: 12px;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
      min-width: 280px;
      width: 320px;
      max-width: 92vw;
    }

    .ws-menu-header {
      letter-spacing: 0.08em;
    }

    .ws-menu-title {
      font-size: 0.68rem;
      color: var(--ws-muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .ws-count {
      font-size: 0.68rem;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 999px;
      padding: 1px 7px;
      color: var(--ws-muted);
      font-weight: 600;
    }

    .ws-search-wrap {
      position: relative;
    }

    .ws-search-input {
      width: 100%;
      border-radius: 8px;
      padding: 8px 10px 8px 30px;
      font-size: 0.84rem;
      background: #111114;
      border: 1px solid var(--ws-border);
      color: var(--ws-text);
      box-sizing: border-box;
      transition: border-color 0.2s ease;
    }

    .ws-search-input:focus {
      border-color: var(--ws-brand);
      box-shadow: none;
    }

    .ws-search-input::placeholder {
      color: rgba(161, 161, 166, 0.8);
    }

    .ws-search-icon {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.78rem;
      color: var(--ws-muted);
      pointer-events: none;
    }

    .ws-item {
      border-radius: 8px;
      border: 1px solid transparent;
      padding: 8px 10px;
      margin-bottom: 4px;
      color: var(--ws-text);
      transition: background 0.2s ease, border-color 0.2s ease;
      white-space: normal;
      width: 100%;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .ws-item:hover {
      background: var(--ws-hover);
      color: var(--ws-text);
    }

    .ws-item.active {
      background: rgba(187, 134, 252, 0.08);
      border-color: rgba(187, 134, 252, 0.24);
      color: var(--ws-text);
    }

    .ws-item-avatar {
      width: 26px;
      height: 26px;
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      border-radius: 7px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.76rem;
      font-weight: 600;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    }

    .ws-item-name {
      max-width: none;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 0.9rem;
      font-weight: 500;
      display: block;
    }

    .ws-item-main {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .ws-item-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      min-width: 0;
    }

    .ws-row-inner {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      min-width: 0;
    }

    .ws-select-form {
      flex: 1 1 auto;
      min-width: 0;
    }

    .ws-item-content {
      min-width: 0;
      flex: 1 1 auto;
    }

    .ws-item-meta {
      display: flex;
      flex-wrap: nowrap;
      gap: 6px;
      font-size: 0.65rem;
      opacity: 0.75;
      white-space: nowrap;
    }

    .ws-meta-chip {
      border-radius: 999px;
      padding: 2px 6px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.04);
      flex-shrink: 0;
    }

    .ws-meta-muted {
      opacity: 0.6;
    }

    .ws-item-indicators {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 14px;
      justify-content: flex-end;
      flex: 0 0 auto;
      margin-left: 8px;
    }

    .ws-check-icon {
      color: var(--ws-brand);
      font-size: 0.78rem;
      font-weight: 700;
    }

    .ws-default-badge {
      font-size: 0.55rem;
      text-transform: uppercase;
      border-radius: 999px;
      padding: 2px 6px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: rgba(255, 255, 255, 0.7);
    }

    .ws-row-actions {
      opacity: 1;
      pointer-events: auto;
      flex: 0 0 auto;
    }

    .ws-more-btn {
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.03);
      color: #d8d8e0;
      padding: 0;
      width: 36px;
      height: 36px;
      min-height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, color 0.2s ease;
      flex-shrink: 0;
    }

    .ws-more-btn:hover {
      background: var(--ws-hover);
      color: #fff;
    }

    .ws-more-btn::after,
    .ws-more-btn::before {
      display: none !important;
      transition: none !important;
      animation: none !important;
    }

    .ws-row-menu {
      background: #1c1c23;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 10px;
      padding: 4px;
    }

    .ws-row-menu .dropdown-item {
      border-radius: 7px;
      font-size: 0.83rem;
      color: #e6e6ea;
    }

    .ws-row-menu .dropdown-item:hover,
    .ws-row-menu .dropdown-item:focus {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }

    .ws-action {
      border-radius: 8px;
      padding: 10px 8px;
      font-weight: 500;
      color: #a1a1a6;
      font-size: 0.85rem;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .ws-action:hover {
      background: var(--ws-hover);
      color: var(--ws-text);
    }

    .ws-action-brand {
      color: #c9b6ff;
    }

    .ws-action-brand:hover {
      color: var(--ws-brand);
    }

    .ws-create-btn {
      border-color: rgba(187, 134, 252, 0.35);
      color: #d3c4ff;
      background: rgba(187, 134, 252, 0.08);
      font-weight: 600;
    }

    .ws-create-btn:hover {
      border-color: rgba(187, 134, 252, 0.55);
      background: rgba(187, 134, 252, 0.14);
      color: #f1ebff;
    }

    .ws-divider {
      border-color: rgba(255, 255, 255, 0.1);
    }

    .ws-icon-btn {
      width: 32px;
      height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      padding: 0;
    }

    .ws-icon-btn i {
      pointer-events: none;
    }

    body.light-mode .btn-workspace-pill {
      background: #ffffff;
      border-color: rgba(0, 0, 0, 0.12);
      color: var(--text-light);
    }

    body.light-mode .btn-workspace-pill:hover,
    body.light-mode .btn-workspace-pill.show {
      background: #f7f7fa;
      border-color: rgba(225, 48, 108, 0.28);
      transform: none !important;
    }

    body.light-mode .ws-label-micro {
      color: #6d6f78;
    }

    body.light-mode .ws-name-current {
      color: #22242a;
    }

    body.light-mode .modern-ws-menu {
      --ws-bg: #ffffff;
      --ws-border: rgba(0, 0, 0, 0.1);
      --ws-hover: #f3f4f7;
      --ws-text: #23242a;
      --ws-muted: #6d6f78;
      --ws-brand: #e1306c;
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
    }

    body.light-mode .ws-count {
      background: rgba(0, 0, 0, 0.05);
      border-color: rgba(0, 0, 0, 0.1);
    }

    body.light-mode .ws-search-input {
      background: #f6f7f9;
      border-color: rgba(0, 0, 0, 0.12);
      color: #2c2d34;
    }

    body.light-mode .ws-search-input::placeholder {
      color: rgba(0, 0, 0, 0.45);
    }

    body.light-mode .ws-search-icon {
      color: rgba(0, 0, 0, 0.45);
    }

    body.light-mode .ws-item {
      color: #23242a;
    }

    body.light-mode .ws-item:hover {
      background: #f3f4f7;
      color: #111;
    }

    body.light-mode .ws-item.active {
      background: rgba(225, 48, 108, 0.08);
      border-color: rgba(225, 48, 108, 0.24);
      color: #23242a;
    }

    body.light-mode .ws-item-avatar {
      background: rgba(0, 0, 0, 0.05);
      color: #555;
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    }

    body.light-mode .ws-meta-chip {
      border-color: rgba(0, 0, 0, 0.12);
      background: rgba(0, 0, 0, 0.03);
    }

    body.light-mode .ws-default-badge {
      border-color: rgba(0, 0, 0, 0.2);
      color: rgba(0, 0, 0, 0.6);
    }

    body.light-mode .ws-more-btn {
      border-color: rgba(0, 0, 0, 0.12);
      background: rgba(0, 0, 0, 0.03);
      color: #444;
    }

    body.light-mode .ws-row-menu {
      background: #ffffff;
      border-color: rgba(0, 0, 0, 0.12);
    }

    body.light-mode .ws-row-menu .dropdown-item {
      color: #333;
    }

    body.light-mode .ws-row-menu .dropdown-item:hover,
    body.light-mode .ws-row-menu .dropdown-item:focus {
      background: rgba(0, 0, 0, 0.05);
      color: #111;
    }

    body.light-mode .ws-action {
      color: #60636f;
    }

    body.light-mode .ws-action:hover {
      color: #1f2027;
    }

    body.light-mode .ws-action-brand {
      color: #bd2e64;
    }

    body.light-mode .ws-action-brand:hover {
      color: #e1306c;
    }

    body.light-mode .ws-create-btn {
      border-color: rgba(225, 48, 108, 0.35);
      color: #bd2e64;
      background: rgba(225, 48, 108, 0.07);
    }

    body.light-mode .ws-create-btn:hover {
      border-color: rgba(225, 48, 108, 0.5);
      background: rgba(225, 48, 108, 0.12);
      color: #991d4d;
    }

    body.light-mode .ws-divider {
      border-color: rgba(0, 0, 0, 0.08);
    }

    @media (max-width: 520px) {
      .modern-ws-menu {
        width: 92vw;
      }

      .ws-item-meta {
        flex-wrap: wrap;
        white-space: normal;
      }

      .ws-meta-chip {
        flex-shrink: 1;
      }

      .ws-item-name {
        max-width: 160px;
      }
    }

    .faq-pill-link {
      border-color: rgba(255, 255, 255, 0.35);
      color: #ffffff !important;
      transition: all 0.2s ease-in-out;
    }

    .faq-pill-link:hover {
      border-color: rgba(255, 255, 255, 0.7);
      color: #ffffff !important;
    }

    body.light-mode .faq-pill-link {
      border-color: rgba(225, 48, 108, 0.35);
      color: var(--brand-color-light) !important;
    }

    body.light-mode .faq-pill-link:hover {
      border-color: rgba(225, 48, 108, 0.7);
      color: var(--brand-color-light) !important;
    }

    /* Purple buttons adaptive to theme */
    .btn-purple {
      background: var(--brand-color-dark);
      border-color: var(--brand-color-dark);
      color: #fff !important;
    }

    .btn-purple:hover {
      filter: brightness(1.05);
    }

    body.light-mode .btn-purple {
      background: var(--brand-color-light);
      border-color: var(--brand-color-light);
      color: #fff !important;
    }

    /* Wordmark: lavanda (#bb86fc) en noche; naranja marca (#F77737, gradiente claro) en día. */
    .navbar-brand {
      font-weight: bold;
      color: var(--brand-color-dark) !important;
      transition: color 0.2s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      align-items: center;
      font-size: 1.25rem;
      padding: 0.5rem 0;
    }

    .navbar-brand:hover {
      transform: translateY(-2px);
      color: #d4bcff !important;
    }

    .navbar-brand .navbar-brand-icon {
      transition: transform 0.3s ease, opacity 0.35s ease, width 0.35s ease;
      height: 36px !important;
      width: 36px !important;
    }

    .navbar-brand:hover .navbar-brand-icon {
      transform: scale(1.1);
    }

    .navbar-brand .gradient-text {
      font-size: 1.25rem;
      line-height: 1;
      color: inherit !important;
      background: none !important;
      -webkit-background-clip: unset !important;
      background-clip: unset !important;
      -webkit-text-fill-color: currentColor;
    }

    body.light-mode .navbar-brand {
      color: var(--brand-accent-orange) !important;
    }

    body.light-mode .navbar-brand:hover {
      color: #ea580c !important;
    }

    /* Offcanvas geometry. Component presentation lives in offcanvas-menu.css. */
    .offcanvas-dark {
      --bs-offcanvas-width: min(100vw, 420px);
      --bs-offcanvas-height: calc(100vh - var(--flu-navbar-h, 70px));
      width: var(--bs-offcanvas-width);
      max-width: 100vw;
      height: var(--bs-offcanvas-height);
      min-height: calc(100vh - var(--flu-navbar-h, 70px));
      display: flex;
      flex-direction: column;
      z-index: 1200;
    }

    /* El menú arranca donde termina el navbar (no lo cubre). Selector con la
       misma especificidad que .offcanvas.offcanvas-end de Bootstrap (0,2,0);
       como esta hoja carga después, empata y gana. */
    .offcanvas.offcanvas-end.offcanvas-dark {
      top: var(--flu-navbar-h, 70px);
      bottom: auto;
      height: calc(100vh - var(--flu-navbar-h, 70px));
      max-height: calc(100vh - var(--flu-navbar-h, 70px));
    }

    /* El backdrop del offcanvas también empieza por debajo del navbar,
       así el navbar queda libre (visible y clickeable) mientras el menú está abierto. */
    .offcanvas-backdrop.show {
      top: var(--flu-navbar-h, 70px) !important;
      height: calc(100vh - var(--flu-navbar-h, 70px)) !important;
    }

    @media (max-width: 575.98px) {
      .offcanvas-dark {
        --bs-offcanvas-width: 100vw;
      }
    }

    /* Shared Bootstrap tooltip skin. */
    .custom-tooltip {
      --bs-tooltip-bg: rgba(0, 0, 0, 0.9);
      --bs-tooltip-color: #fff;
      font-size: 0.875rem;
    }

    .btn-close-white {
      filter: invert(1);
    }

    body.light-mode .btn-close-white {
      filter: invert(0);
    }

    .modal .btn-close,
    .alert .btn-close {
      filter: invert(1);
      opacity: 0.85;
    }

    body.light-mode .modal .btn-close,
    body.light-mode .alert .btn-close {
      filter: invert(0);
      opacity: 0.6;
    }

    .modal .btn-close:focus,
    .modal .btn-close:hover,
    .alert .btn-close:focus,
    .alert .btn-close:hover {
      opacity: 1;
    }

    /* Botón hamburguesa moderno */
    .navbar-toggler {
      width: var(--navbar-toggler-width);
      height: var(--navbar-control-size);
      padding: 0;
      font-size: 1.25rem;
      border-radius: var(--navbar-control-radius);
      border: 1px solid rgba(187, 134, 252, 0.3);
      background: rgba(187, 134, 252, 0.1);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar-toggler-icon {
      width: 22px;
      height: 22px;
    }

    .navbar-toggler:hover {
      border-color: rgba(187, 134, 252, 0.5);
      background: rgba(187, 134, 252, 0.2);
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(187, 134, 252, 0.3);
    }

    .navbar-toggler:focus {
      box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.2);
    }

    .navbar .container-fluid > .navbar-toggler {
      flex-shrink: 0;
      position: relative;
      z-index: 5;
    }

    body.light-mode .navbar-toggler {
      border-color: rgba(225, 48, 108, 0.3);
      background: rgba(225, 48, 108, 0.1);
    }

    body.light-mode .navbar-toggler:hover {
      border-color: rgba(225, 48, 108, 0.5);
      background: rgba(225, 48, 108, 0.2);
      box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
    }

    body.light-mode .navbar-dark .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(225,48,108,0.88)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar .navbar-icon-btn {
      transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: var(--navbar-control-radius);
      width: var(--navbar-control-size);
      height: var(--navbar-control-size);
      padding: 0;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid transparent;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* Sacar el efecto de brillo que pasa por encima */
    .navbar .navbar-icon-btn::before {
      display: none !important;
    }

    .navbar .navbar-icon-btn:hover {
      transform: translateY(-3px) scale(1.1);
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.1);
    }

    .navbar .navbar-icon-btn i,
    .navbar .navbar-icon-btn .x-logo-navbar {
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
      transition: filter 0.3s ease;
      font-size: var(--navbar-control-icon-size) !important;
      line-height: 1 !important;
    }

    .navbar .navbar-icon-btn i.fa-lg {
      font-size: var(--navbar-control-icon-size) !important;
    }

    .navbar .navbar-icon-btn:hover i,
    .navbar .navbar-icon-btn:hover .x-logo-navbar {
      filter: drop-shadow(0 4px 12px currentColor);
    }

    /* Campana de notificaciones - Modernizada */
    .notif-bell {
      position: relative;
      transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: var(--navbar-control-radius);
      width: var(--navbar-control-size);
      height: var(--navbar-control-size);
      padding: 0;
      background: rgba(255, 255, 255, 0.05);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255, 255, 255, 0.08);
      overflow: visible;
      box-shadow: none !important;
    }

    .notif-bell {
      color: var(--brand-color-dark, #bb86fc);
      background: rgba(187, 134, 252, 0.06);
      border-color: rgba(187, 134, 252, 0.12);
    }

    .notif-bell:hover {
      background: rgba(187, 134, 252, 0.14);
      border-color: rgba(187, 134, 252, 0.35);
      color: #d4b4ff;
      box-shadow: none !important;
    }

    body.light-mode .notif-bell {
      color: var(--brand-color-light, #E1306C) !important;
      background: rgba(225, 48, 108, 0.05);
      border-color: rgba(225, 48, 108, 0.15);
    }

    body.light-mode .notif-bell:hover {
      background: rgba(225, 48, 108, 0.12);
      border-color: rgba(225, 48, 108, 0.35);
      color: #be123c !important;
    }

    .notif-bell:focus {
      box-shadow: none !important;
      outline: none;
    }

    .notif-bell i {
      font-size: var(--navbar-control-icon-size);
      transition: color 0.3s ease, transform 0.3s ease;
      color: inherit;
    }

    .navbar .navbar-divider {
      height: calc(var(--navbar-control-size) - 8px);
      align-self: center;
      opacity: 0.3;
    }

    .notif-bell:hover i {
      filter: none;
    }

    .notif-badge {
      position: absolute;
      top: -8px;
      right: -8px;
      min-width: 22px;
      height: 22px;
      font-size: 11px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 11px;
      padding: 0 7px;
      color: #ffffff;
      background: var(--primary-gradient-dark, linear-gradient(135deg, #bb86fc 0%, #7c4dff 100%)) !important;
      border: 2px solid #1a1a1a;
      z-index: 15;
    }

    body.light-mode .notif-badge {
      background: var(--primary-gradient-light, linear-gradient(135deg, #E1306C 0%, #F77737 100%)) !important;
      border-color: #ffffff;
    }

    .reel-progress-indicator {
      display: inline-flex;
      align-items: center;
    }

    .reel-progress-btn {
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: rgba(255, 255, 255, 0.85);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 600;
      transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
        transform 0.2s ease;
    }

    .reel-progress-btn:hover {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(187, 134, 252, 0.35);
      color: #fff;
      transform: translateY(-1px);
    }

    .reel-progress-spinner {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.35);
      border-top-color: #bb86fc;
      animation: reelSpin 1s linear infinite;
      display: inline-block;
    }

    .reel-progress-count {
      min-width: 20px;
      height: 20px;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(187, 134, 252, 0.3), rgba(255, 107, 107, 0.3));
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      padding: 0 6px;
    }

    .reel-progress-btn.is-pulse {
      animation: reelPulse 1.2s ease-out;
    }

    body.light-mode .reel-progress-btn {
      background: rgba(0, 0, 0, 0.05);
      border-color: rgba(0, 0, 0, 0.1);
      color: rgba(0, 0, 0, 0.75);
    }

    body.light-mode .reel-progress-spinner {
      border-color: rgba(0, 0, 0, 0.2);
      border-top-color: #E1306C;
    }

    body.light-mode .reel-progress-count {
      color: #fff;
      background: linear-gradient(135deg, rgba(225, 48, 108, 0.45), rgba(16, 185, 129, 0.35));
    }

    @keyframes reelSpin {
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes reelPulse {
      0% {
        box-shadow: 0 0 0 0 rgba(187, 134, 252, 0.4);
      }

      70% {
        box-shadow: 0 0 0 10px rgba(187, 134, 252, 0);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(187, 134, 252, 0);
      }
    }


    /* Hero */
    .hero {
      background: var(--primary-gradient-dark);
      color: #ffffff;
      padding: 50px 20px;
      text-align: center;
      position: relative;
      border-radius: 20px;
      margin-top: 60px;
      transition: background 0.3s;
    }

    body.light-mode .hero {
      background: var(--primary-gradient-light);
      color: #fff;
    }

    .hero h1 {
      font-size: 3rem;
      font-weight: 700;
      animation: fadeInDown 1s ease forwards;
      opacity: 0;
      margin-bottom: 50px;
    }

    .hero p {
      font-size: 1.2rem;
      margin-top: 20px;
      animation: fadeInUp 1s ease forwards;
      opacity: 0;
      color: inherit;
    }

    @keyframes fadeInDown {
      from {
        transform: translateY(-50px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    @keyframes fadeInUp {
      from {
        transform: translateY(50px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    /* Feature Cards */
    .feature-card {
      background-color: var(--card-bg-dark);
      border: none;
      border-radius: 15px;
      padding: 30px;
      transition: transform var(--animation-duration) var(--transition-bezier),
        box-shadow var(--animation-duration) var(--transition-bezier),
        background-color 0.3s, color 0.3s;
    }

    body.light-mode .feature-card {
      background-color: var(--card-bg-light);
      color: var(--text-light);
      box-shadow: var(--card-shadow-light);
    }

    .feature-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: var(--card-shadow-dark);
    }

    body.light-mode .feature-card:hover {
      box-shadow: var(--card-shadow-light);
    }

    .feature-icon {
      color: var(--brand-color-dark) !important;
      transition: color 0.3s;
    }

    body.light-mode .feature-icon {
      color: var(--brand-color-light) !important;
    }

    .card-title,
    .card-text {
      color: var(--text-dark);
    }

    body.light-mode .card-title,
    body.light-mode .card-text {
      color: var(--text-light);
    }

    /* Botones Custom */
    .btn-primary-custom {
      background-color: var(--brand-color-dark);
      border-color: var(--brand-color-dark);
      color: #fff !important;
      padding: 0.75rem 1.5rem;
      /* Aumentar padding botón */
      font-size: 1.1rem;
      /* Aumentar tamaño fuente botón */
    }

    .btn-primary-custom:hover {
      background-color: #985eff;
      border-color: #7a46f1;
    }

    body.light-mode .btn-primary-custom {
      background-color: var(--brand-color-light);
      border-color: var(--brand-color-light);
      color: #fff !important;
    }

    body.light-mode .btn-primary-custom:hover {
      background-color: #c7258f;
      border-color: #a61775;
    }

    .btn-outline-light {
      border-color: rgba(255, 255, 255, 0.5);
      color: #f1f1f1;
      padding: 0.75rem 1.5rem;
      /* Aumentar padding botón */
      font-size: 1.1rem;
      /* Aumentar tamaño fuente botón */
    }

    .btn-outline-light:hover {
      border-color: #fff;
      color: #fff !important;
      background-color: rgba(255, 255, 255, 0.1);
    }

    body.light-mode .btn-outline-light {
      border-color: rgba(0, 0, 0, 0.25);
      color: var(--text-light) !important;
    }

    body.light-mode .btn-outline-light:hover {
      border-color: var(--text-light);
      color: var(--text-light) !important;
      background-color: rgba(0, 0, 0, 0.05);
    }

    .btn-icon {
      color: #fff;
      transition: color 0.3s;
    }

    body.light-mode .btn-icon {
      color: #fff;
    }

    /* Footer Profesional */
    .footer {
      background-color: var(--footer-bg-dark);
      color: var(--text-dark);
      /* Use theme variable */
      transition: background-color 0.3s ease, color 0.3s ease;
      padding: 3rem 0 2rem;
      /* Adjusted padding */
      border-top: 1px solid rgba(var(--text-dark-rgb), 0.08);
      /* Subtle top border */
    }

    body.light-mode .footer {
      background-color: var(--footer-bg-light);
      color: var(--text-light);
      /* Use theme variable */
      border-top: 1px solid rgba(var(--text-light-rgb), 0.08);
    }

    .footer a {
      color: inherit;
      text-decoration: none;
    }

    .footer a:hover {
      text-decoration: underline;
    }

    .footer .footer-links {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer .footer-links li {
      margin-bottom: 5px;
    }

    .footer .social-icons {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .footer .social-icon {
      position: relative;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.35);
      color: #f8fafc;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.08);
      transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    }

    body.light-mode .footer .social-icon {
      border-color: rgba(15, 23, 42, 0.15);
      background: rgba(15, 23, 42, 0.04);
      color: #0f172a;
    }

    .footer .social-icon i {
      position: absolute;
      font-size: 1.1rem;
      transition: transform 0.35s ease, opacity 0.35s ease;
    }

    .footer .social-icon i:nth-child(1) {
      transform: translateY(0);
      opacity: 1;
    }

    .footer .social-icon i:nth-child(2) {
      transform: translateY(120%);
      opacity: 0;
    }

    .footer .social-icon:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    }

    body.light-mode .footer .social-icon:hover {
      box-shadow: 0 12px 25px rgba(15, 23, 42, 0.2);
    }

    .footer .social-icon:hover i:nth-child(1) {
      transform: translateY(-140%);
      opacity: 0;
    }

    .footer .social-icon:hover i:nth-child(2) {
      transform: translateY(0);
      opacity: 1;
    }

    .footer .social-icon:hover i {
      color: #fff;
    }

    .footer .social-icon.facebook:hover {
      background: linear-gradient(135deg, #1877F2, #0f63d6);
      border-color: #1877F2;
      color: #fff;
    }

    .footer .social-icon.instagram:hover {
      background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
      border-color: #dc2743;
      color: #fff;
    }

    .footer .social-icon.linkedin:hover {
      background: linear-gradient(135deg, #0A66C2, #004182);
      border-color: #0A66C2;
      color: #fff;
    }

    .footer .social-icon.x:hover {
      background: linear-gradient(135deg, #0f172a, #020617);
      border-color: #0f172a;
      color: #fff;
    }

    /* Light mode: X uses same transparent background as other icons */
    body.light-mode .footer .social-icon.x,
    body.light-mode .footer .social-icon.x:visited {
      border-color: rgba(15, 23, 42, 0.15);
      background: rgba(15, 23, 42, 0.04);
      color: #000000;
    }

    body.light-mode .footer .social-icon.x i {
      color: #000000;
    }

    body.light-mode .footer .social-icon.x:hover i {
      color: #ffffff;
    }

    /* Light mode hover: black pill so X matches the other branded hovers */
    body.light-mode .footer .social-icon.x:hover {
      background: #000000;
      border-color: #000000;
      color: #ffffff;
    }

    body.light-mode .footer .social-icon.x:hover i {
      color: #ffffff;
    }

    .footer .newsletter {
      max-width: 300px;
    }

    .footer .newsletter input[type="email"] {
      width: 100%;
      padding: 10px;
      border: none;
      border-radius: 5px 0 0 5px;
      outline: none;
    }

    .footer .newsletter button {
      padding: 10px;
      border: none;
      background-color: var(--brand-color-dark);
      color: #fff;
      border-radius: 0 5px 5px 0;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .footer .newsletter button:hover {
      background-color: #985eff;
    }

    body.light-mode .footer .newsletter button {
      background-color: var(--brand-color-light);
    }

    body.light-mode .footer .newsletter button:hover {
      background-color: #c7258f;
    }

    /* Post Container */
    .post-container {
      background-color: #1f1f1f;
      border: 1px solid #3a3a3a;
      border-radius: 3px;
      padding: 0;
      margin-bottom: 30px;
      transition: background-color 0.3s, color 0.3s;
    }

    body.light-mode .post-container {
      background-color: #fff;
      border: 1px solid #dbdbdb;
    }

    .post-header {
      display: flex;
      align-items: center;
      padding: 14px;
    }

    .post-header img {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      margin-right: 14px;
      object-fit: cover;
    }

    .post-header .username {
      font-weight: 600;
      color: var(--text-dark);
      transition: color 0.3s;
    }

    body.light-mode .post-header .username {
      color: var(--text-light);
    }

    .post-header .options {
      margin-left: auto;
      cursor: pointer;
      color: var(--text-dark);
      transition: color 0.3s;
    }

    body.light-mode .post-header .options {
      color: var(--text-light);
    }

    .post-image img {
      width: 100%;
      height: auto;
      display: block;
    }

    .post-actions {
      display: flex;
      align-items: center;
      padding: 8px 14px;
      margin-bottom: 8px;
      /* Added margin-bottom */
    }

    .post-actions i {
      font-size: 24px;
      margin-right: 16px;
      cursor: pointer;
      color: var(--text-dark);
      transition: color 0.3s;
    }

    .post-actions i:hover {
      color: #3897f0;
    }

    body.light-mode .post-actions i {
      color: var(--text-light);
    }

    body.light-mode .post-actions i:hover {
      color: #e1306c;
    }

    .post-likes {
      font-weight: 600;
      margin: 0 14px;
      color: var(--text-dark);
      transition: color 0.3s;
    }

    body.light-mode .post-likes {
      color: var(--text-light);
    }

    .post-caption {
      padding: 0 14px 14px 14px;
      color: var(--text-dark);
      transition: color 0.3s;
    }

    body.light-mode .post-caption {
      color: var(--text-light);
    }

    .post-caption .username {
      font-weight: 600;
      margin-right: 5px;
    }

    .post-caption .caption-text {
      white-space: pre-wrap;
    }

    /* Plans Cards */
    .plans-container {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
    }

    .plan-card {
      background-color: var(--card-bg-dark);
      width: 300px;
      height: 500px;
      border-radius: 20px;
      padding: 20px;
      text-align: center;
      transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
      border: none;
      position: relative;
      color: var(--text-dark);
    }

    body.light-mode .plan-card {
      background-color: var(--card-bg-light);
      box-shadow: 0 var(--card-shadow-light);
    }

    .plan-card .card-title,
    .plan-card .plan-price,
    .plan-card .plan-details,
    .plan-card ul li {
      color: var(--text-dark);
      transition: color 0.3s;
    }

    body.light-mode .plan-card .card-title,
    body.light-mode .plan-card .plan-price,
    body.light-mode .plan-card .plan-details,
    body.light-mode .plan-card ul li {
      color: var(--text-light);
    }

    .plan-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 var(--card-shadow-dark);
    }

    .plan-card h3 {
      margin: 1rem 0;
      font-weight: bold;
    }

    .plan-price {
      font-size: 2rem;
      font-weight: 700;
      color: var(--brand-color-dark);
      /* color destacado en modo oscuro */
    }

    body.light-mode .plan-price {
      color: var(--brand-color-light);
      /* color destacado en modo claro */
    }

    .plan-price .fs-6 {
      color: var(--text-dark);
      transition: color 0.3s;
    }

    body.light-mode .plan-price .fs-6 {
      color: var(--text-light);
    }

    .plan-details {
      margin: 1rem 0;
    }

    .plan-btn {
      margin-top: 1rem;
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
    }

    /* Ajustar color de los <li> dentro de las tarjetas de planes */
    .plan-card ul li {
      color: var(--text-dark);
      transition: color 0.3s;
    }

    body.light-mode .plan-card ul li {
      color: var(--text-light);
    }

    /* Platform Selection */
    .platform-card {
      width: 150px;
      height: 150px;
      border: 2px solid transparent;
      border-radius: 15px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: border-color 0.3s, transform 0.3s;
      position: relative;
      background-color: #fff;
      color: #fff;
    }

    .platform-card:hover {
      transform: scale(1.05);
    }

    .platform-card.selected {
      border-color: #007bff;
    }

    .platform-logo {
      width: 70px;
      height: 70px;
      object-fit: contain;
      margin-bottom: 10px;
    }

    .platform-name {
      font-size: 1rem;
      font-weight: bold;
      text-transform: capitalize;
    }

    /* Sección de Modelos Especializados */
    .models-section {
      padding: 60px 0;
      transition: background-color 0.3s;
    }

    body.light-mode .models-section {
      background-color: #ffffff;
    }

    .model-card {
      background-color: var(--card-bg-dark);
      border: none;
      border-radius: 15px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s, box-shadow 0.3s;
      overflow: hidden;
      position: relative;
      /* Heredar el color de fondo del body o section padre */
    }

    body.light-mode .model-card {
      background-color: var(--card-bg-light);
      /* Heredar el color de fondo del body o section padre */
    }

    .model-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .model-card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: none;
      /* Oculta la imagen placeholder */
    }

    .model-card-body {
      padding: 20px;
      text-align: center;
    }

    .model-card-title {
      font-size: 1.5rem;
      margin-bottom: 10px;
      color: var(--text-dark);
      /* Hereda el color de texto general */
      font-family: 'Montserrat', sans-serif;
      /* Unifica la fuente con los otros títulos */
      font-weight: bold;
      /* Asegura que sea bold como el otro título */
    }

    body.light-mode .model-card-title {
      color: var(--text-light);
    }

    .model-card-text {
      font-size: 1rem;
      color: #666;
      transition: color 0.3s;
    }

    body.light-mode .model-card-text {
      color: #555;
    }

    .model-icon {
      font-size: 3rem;
      /* Tamaño del icono, ajustable */
      margin-bottom: 15px;
      /* Espacio debajo del icono */
      color: var(--brand-color-dark) !important;
      /* Usa el color de marca */
      transition: color 0.3s;
    }

    body.light-mode .model-icon {
      color: var(--brand-color-light) !important;
      /* Color de marca en modo claro */
    }

    /* Título "Haz tus publicaciones con confianza..." */
    .plan-section-title {
      font-family: 'Montserrat', sans-serif;
      font-weight: bold;
      text-align: center;
      margin-bottom: 1rem;
      /* Espacio debajo del título */
    }

    .plan-section-subtitle {
      text-align: center;
      color: #b5b5b5;
      /* Un color más claro para el subtítulo */
      margin-bottom: 3rem;
      /* Más espacio antes de los planes */
    }


    /* Animaciones */
    .animate-fadeInUp {
      animation: fadeInUp 1s ease forwards;
      opacity: 0;
    }

    @keyframes fadeInUp {
      from {
        transform: translateY(20px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    /* Nuevas animaciones */
    @keyframes slideInUp {
      from {
        transform: translateY(20px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    @keyframes fadeScale {
      from {
        transform: scale(0.9);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    .animate-slide-up {
      animation: slideInUp 0.6s var(--transition-bezier) forwards;
    }

    .animate-fade-scale {
      animation: fadeScale 0.4s var(--transition-bezier) forwards;
    }

    /* Generar Publicación Estilo Moderno */
    .generate-container {
      background-color: #2C2C2C;
      padding: 30px;
      border-radius: 15px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      animation: animate-fade-scale 0.5s ease-out forwards;
    }

    body.light-mode .generate-container {
      background-color: #e6e6e6;
      color: var(--text-light);
    }

    .generate-container h2 {
      margin-bottom: 20px;
      text-align: center;
    }

    .platform-selection .platform-card.selected {
      background-color: #007bff;
      color: #ffffff;
    }

    #post-form {
      margin-top: 30px;
    }

    #post-form label {
      font-weight: bold;
    }

    #post-form .form-control,
    #post-form .form-select {
      border-radius: 10px;
      padding: 10px;
    }

    #post-form .btn-primary-custom {
      border-radius: 10px;
      padding: 10px 20px;
    }

    /* Separadores de Fade */
    hr.my-4 {
      border-color: rgba(255, 255, 255, 0.2);
    }

    body.light-mode hr.my-4 {
      border-color: rgba(0, 0, 0, 0.1);
    }

    /* Variables de color para platform-card */
    :root {
      --text-platform-card: #222;
    }

    body.light-mode {
      --text-platform-card: #222;
    }

    /* Ajuste de color para texto "Todos los precios..." */
    .price-note {
      color: #b5b5b5;
      transition: color 0.3s;
    }

    body.light-mode .price-note {
      color: #555;
    }

    /* Resaltar Plan Premium */
    .premium-plan {
      border: 3px solid var(--brand-color-dark);
      box-shadow: 0 0 20px rgba(187, 134, 252, 0.5);
      transform: scale(1.03);
      transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    }

    body.light-mode .premium-plan {
      border: 3px solid var(--brand-color-light);
      box-shadow: 0 0 20px rgba(225, 48, 108, 0.5);
    }

    .premium-plan ul li {
      color: var(--text-dark);
    }

    body.light-mode .premium-plan ul li {
      color: var(--text-light);
    }

    .plan-card ul li {
      color: var(--text-dark);
      transition: color 0.3s;
    }

    body.light-mode .plan-card ul li {
      color: var(--text-light);
    }

    .plan-card .card-body>div>ul>li {
      color: var(--text-dark);
    }

    body.light-mode .plan-card .card-body>div>ul>li {
      color: var(--text-light);
    }

    .text-white-mode {
      color: var(--text-dark);
    }

    body.light-mode .text-white-mode {
      color: var(--text-light);
    }

    body:not(.light-mode) .text-white-mode {
      color: #fff;
    }

    /* Theme hardening for legacy Bootstrap utility classes */
    body.light-mode .text-white,
    body.light-mode .text-light {
      color: var(--text-light) !important;
    }

    body.light-mode .text-white-50,
    body.light-mode .text-light-50 {
      color: rgba(var(--text-light-rgb), 0.68) !important;
    }

    body.light-mode .bg-dark,
    body.light-mode .bg-black {
      background-color: var(--card-bg-light) !important;
      color: var(--text-light) !important;
    }

    body.light-mode .border-secondary {
      border-color: rgba(148, 163, 184, 0.4) !important;
    }

    body.light-mode .btn-outline-light {
      color: var(--text-light) !important;
      border-color: rgba(var(--text-light-rgb), 0.35) !important;
    }

    body.light-mode .btn-outline-light:hover,
    body.light-mode .btn-outline-light:focus {
      background: rgba(var(--text-light-rgb), 0.08) !important;
      color: var(--text-light) !important;
      border-color: rgba(var(--text-light-rgb), 0.5) !important;
    }

    body.light-mode .btn-close.btn-close-white {
      filter: none;
      opacity: 0.65;
    }

    body.light-mode .modal-content,
    body.light-mode .offcanvas.bg-dark,
    body.light-mode .dropdown-menu.bg-dark {
      background-color: var(--card-bg-light) !important;
      color: var(--text-light) !important;
      border-color: rgba(148, 163, 184, 0.35) !important;
    }

    body.light-mode .modal-header.border-secondary,
    body.light-mode .modal-footer.border-secondary {
      border-color: rgba(148, 163, 184, 0.35) !important;
    }

    body.light-mode .form-control.bg-dark,
    body.light-mode .form-select.bg-dark,
    body.light-mode textarea.bg-dark,
    body.light-mode input.bg-dark,
    body.light-mode select.bg-dark {
      background-color: #ffffff !important;
      color: var(--text-light) !important;
      border-color: rgba(148, 163, 184, 0.45) !important;
    }

    body.light-mode .input-group-text.bg-dark {
      background-color: #f8fafc !important;
      color: var(--text-light) !important;
      border-color: rgba(148, 163, 184, 0.45) !important;
    }

    body.light-mode .modal-content[style*="background:#2a2a2a"],
    body.light-mode .modal-content[style*="background: #2a2a2a"],
    body.light-mode .modal-content[style*="background:#111"],
    body.light-mode .modal-content[style*="background: #111"],
    body.light-mode .modal-content[style*="background:#000"],
    body.light-mode .modal-content[style*="background: #000"] {
      background-color: var(--card-bg-light) !important;
      color: var(--text-light) !important;
      border-color: rgba(148, 163, 184, 0.35) !important;
    }

    /* Keep white text on explicitly colored components */
    body.light-mode .btn.text-white,
    body.light-mode .badge.text-white,
    body.light-mode .toast.text-white,
    body.light-mode .alert.text-white,
    body.light-mode .modal-header.text-white,
    body.light-mode .card-header.text-white,
    body.light-mode .bg-primary.text-white,
    body.light-mode .bg-success.text-white,
    body.light-mode .bg-danger.text-white,
    body.light-mode .bg-info.text-white {
      color: #fff !important;
    }

    /* Exception: notification bell must remain visible on light navbar */
    body.light-mode .notif-bell.text-white,
    body.light-mode #notifDropdownBtn.text-white {
      color: var(--text-light) !important;
    }

    /* Estilos para el componente de búsqueda */
    .search-component {
      margin: 2rem 0;
      animation: animate-slide-up 0.5s ease-out forwards;
    }

    .search-bar {
      display: flex;
      gap: 1rem;
      max-width: 600px;
      margin: 0 auto;
    }

    .quick-filters {
      display: flex;
      gap: 0.5rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* Breadcrumbs */
    .breadcrumb {
      background-color: transparent;
      /* Fondo transparente */
      padding: 0.75rem 1rem;
      /* Ajuste de padding */
      margin-bottom: 1rem;
      /* Espacio debajo */
    }

    .breadcrumb-item+.breadcrumb-item::before {
      color: var(--text-dark);
      /* Color del separador */
    }

    body.light-mode .breadcrumb-item+.breadcrumb-item::before {
      color: var(--text-light);
    }

    .breadcrumb-item a {
      color: var(--brand-color-dark);
      /* Color de los links */
      text-decoration: none;
      /* Sin subrayado por defecto */
    }

    body.light-mode .breadcrumb-item a {
      color: var(--brand-color-light);
    }

    .breadcrumb-item a:hover {
      text-decoration: underline;
      /* Subrayado en hover */
    }

    .breadcrumb-item.active {
      color: var(--text-dark);
      /* Color del item activo */
    }

    body.light-mode .breadcrumb-item.active {
      color: var(--text-light);
    }


    /* Media queries mejorados */
    @media (max-width: 992px) {

      :root {
        --flu-navbar-h: 62px;
      }

      .navbar {
        min-height: 62px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        --navbar-control-size: 46px;
        --navbar-toggler-width: calc(var(--navbar-control-size) + 8px);
        --navbar-control-icon-size: 1.32rem;
      }

      /* Tablets y pantallas medianas */
      html,
      body {
        font-size: 14.5px;
        /* Mantener continuidad con la escala intermedia de notebooks */
      }

      .hero h1 {
        font-size: 2.5rem;
        /* Reducir título hero en tablets */
      }

      .hero p {
        font-size: 1.1rem;
        /* Reducir texto hero en tablets */
      }

      .feature-card {
        padding: 20px;
        /* Reducir padding tarjetas en tablets */
      }

      .platform-card {
        width: 130px;
        /* Reducir tamaño tarjetas plataforma en tablets */
        height: 130px;
      }
    }

    @media (max-width: 768px) {

      /* Dispositivos móviles grandes */
      .hero {
        padding: 60px 15px;
        margin-top: 60px;
      }

      .hero h1 {
        font-size: 2rem;
      }

      .platform-card {
        width: 120px;
        height: 120px;
      }

      .search-bar {
        flex-direction: column;
        gap: 0.5rem;
      }

      .quick-filters {
        padding: 0.5rem;
      }
    }

    @media (max-width: 576px) {

      /* Dispositivos móviles pequeños */
      html,
      body {
        font-size: 14px;
        /* Reducir tamaño de fuente en móviles pequeños */
      }

      .hero h1 {
        font-size: 1.75rem;
      }

      .feature-card {
        margin: 0.5rem;
        padding: 15px;
        /* Reducir aún más padding en móviles pequeños */
      }

      .card-title {
        font-size: 1.2rem;
        /* Reducir tamaño título tarjeta en móviles pequeños */
      }

      .card-text {
        font-size: 0.95rem;
        /* Reducir tamaño texto tarjeta en móviles pequeños */
      }

      .platform-card {
        width: 100px;
        height: 100px;
      }

      .platform-name {
        font-size: 0.9rem;
        /* Reducir nombre plataforma en móviles pequeños */
      }

      .platform-logo {
        width: 60px;
        /* Reducir logo plataforma en móviles pequeños */
        height: 60px;
      }

      .btn-primary-custom,
      .btn-outline-light {
        padding: 0.6rem 1.2rem;
        /* Reducir padding botones en móviles pequeños */
        font-size: 1rem;
        /* Reducir tamaño fuente botones en móviles pequeños */
      }

      /* Navbar responsive */
      .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        min-height: 62px;
        --navbar-control-size: 46px;
        --navbar-toggler-width: calc(var(--navbar-control-size) + 8px);
        --navbar-control-icon-size: 1.32rem;
      }

      .navbar-brand img {
        height: 26px;
        width: 26px;
      }

    }

    /* Responsive adicional para glassmorphism en dispositivos de bajo rendimiento */
    @media (max-width: 768px) {
      .navbar {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
      }

      .navbar .btn-sm:hover {
        transform: scale(1.05);
      }
    }

    /* Estilos para los formularios específicos */
    .platform-specific-form {
      background-color: var(--card-bg-dark);
      padding: 20px;
      border-radius: 10px;
      margin-top: 20px;
    }

    body.light-mode .platform-specific-form {
      background-color: var(--card-bg-light);
    }

    .platform-specific-form .form-label {
      color: var(--text-dark);
      font-weight: 500;
      /* Peso de fuente medio para etiquetas */
    }

    body.light-mode .platform-specific-form .form-label {
      color: var(--text-light);
    }

    /* Estilos para los contadores de caracteres */
    .char-counter {
      display: block;
      margin-top: 5px;
      font-size: 0.8rem;
      color: #aaa;
      /* Color más claro para el contador */
    }

    body.light-mode .char-counter {
      color: #777;
    }

    /* Estilos para los checkboxes */
    .form-check {
      margin-bottom: 10px;
    }

    .form-check-label {
      color: var(--text-dark);
      font-weight: normal;
      /* Peso de fuente normal para checkboxes */
    }

    body.light-mode .form-check-label {
      color: var(--text-light);
    }

    /* Estilos para feedback de validación */
    .invalid-feedback,
    .valid-feedback {
      margin-top: 0.25rem;
      font-size: 0.875em;
    }

    .is-invalid~.invalid-feedback {
      display: block;
      /* Asegurar que el feedback se muestre */
    }

    .is-valid~.valid-feedback {
      display: block;
    }

    .form-control.is-invalid,
    .form-select.is-invalid {
      border-color: #dc3545;
      padding-right: calc(1.5em + 0.75rem);
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-position: right calc(0.375em + 0.1875rem) center;
      background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.75rem);
    }

    .form-control.is-valid,
    .form-select.is-valid {
      border-color: #198754;
      padding-right: calc(1.5em + 0.75rem);
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-.53-1-.53-1.4 0l-1.4 1.4z'/%3e%3cpath fill='%23fff' d='M3.7 4.73l1.4-1.4c-.4-.53-1-.53-1.4 0l-1.4 1.4z'/%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-position: right calc(0.375em + 0.1875rem) center;
      background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.75rem);
    }

    /* Efecto de "ripple" o feedback visual al presionar botones */
    .btn:active {
      transform: scale(0.98);
      /* Ligeramente más pequeño */
      transition: transform 0.1s ease;
      /* Transición rápida */
    }

    /* Style Buttons */
    .style-button-group {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .style-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      font-size: 0.875rem;
      font-weight: 600;
      height: 2.5rem;
      padding: 0 1rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 10px;
      background-color: #fff;
      color: #000;
      gap: 0.5rem;
      transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    body.light-mode .style-button {
      background-color: #fff;
      color: #000;
    }

    .style-button.selected-style {
      background-color: var(--brand-color-dark);
      color: white;
    }

    body.light-mode .style-button.selected-style {
      background-color: var(--brand-color-light);
    }


    /* Estilos para el spinner de carga */
    #loadingSpinner {
      position: fixed;
      /* Cubre toda la ventana */
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      /* Fondo semi-transparente */
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1050;
      /* Asegura que esté por encima de otros elementos */
    }


    /* X Logo for Navbar */
    .x-logo-navbar {
      width: var(--navbar-control-icon-size);
      height: var(--navbar-control-icon-size);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      position: relative;
      vertical-align: middle;
      margin: 0;
    }

    .x-logo-navbar::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      transform: translate(-50%, -50%);
      background: #fff;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") no-repeat center;
      mask-size: contain;
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") no-repeat center;
      -webkit-mask-size: contain;
    }

    body.light-mode .x-logo-navbar::before {
      background: #000;
    }
    /* Notifications */
    .sf-notif-item {
      position: relative;
      border-radius: 8px;
      border: 1px solid transparent;
      background: transparent;
      cursor: pointer;
      margin-bottom: 4px;
      transition: background 0.2s ease, border-color 0.2s ease;
      animation: notifItemFadeIn 0.3s ease-out both;
    }

    @keyframes notifItemFadeIn {
      from {
        opacity: 0;
        transform: translateY(6px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .notif-menu-scroll .sf-notif-item:nth-child(1) {
      animation-delay: 0.04s;
    }

    .notif-menu-scroll .sf-notif-item:nth-child(2) {
      animation-delay: 0.08s;
    }

    .notif-menu-scroll .sf-notif-item:nth-child(3) {
      animation-delay: 0.12s;
    }

    .notif-menu-scroll .sf-notif-item:nth-child(4) {
      animation-delay: 0.16s;
    }

    .notif-menu-scroll .sf-notif-item:nth-child(5) {
      animation-delay: 0.2s;
    }

    .notif-menu-scroll .sf-notif-item:nth-child(n+6) {
      animation-delay: 0.24s;
    }

    .sf-notif-item:hover {
      border-color: rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.04);
    }

    .sf-notif-item.is-removing {
      opacity: 0;
      transform: translateX(8px);
      pointer-events: none;
    }

    .sf-notif-unread {
      background: rgba(187, 134, 252, 0.06);
      border-left: 3px solid var(--brand-color-dark, #bb86fc);
      padding-left: 13px !important;
    }
    .sf-notif-unread:hover {
      background: rgba(187, 134, 252, 0.1);
    }

    .sf-notif-unread::before {
      display: none;
    }

    .sf-notif-title {
      color: #f8fafc !important;
      font-family: 'Montserrat', system-ui, sans-serif;
      font-size: 13px;
      font-weight: 650;
      line-height: 1.45;
      margin-bottom: 5px;
      letter-spacing: -0.02em;
    }

    .sf-notif-body {
      color: rgba(248, 250, 252, 0.78) !important;
      font-family: 'Montserrat', system-ui, sans-serif;
      font-size: 12.5px;
      line-height: 1.5;
      margin-bottom: 7px;
      max-width: 100%;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    .sf-notif-time {
      color: rgba(248, 250, 252, 0.48) !important;
      font-size: 11px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .sf-notif-time::before {
      content: '\f017';
      font-family: 'Font Awesome 6 Free';
      font-weight: 400;
      font-size: 10px;
    }

    .sf-notif-icon {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 11px;
      background: rgba(187, 134, 252, 0.12);
      border: 1px solid rgba(124, 77, 255, 0.2);
      color: #d4b4ff !important;
      font-size: 17px;
      transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .sf-notif-item:hover .sf-notif-icon {
      border-color: rgba(187, 134, 252, 0.45);
      transform: scale(1.04);
    }

    .sf-notif-actions {
      display: flex;
      gap: 8px;
      margin-top: 10px;
      flex-wrap: wrap;
    }

    .sf-notif-actions .btn-link {
      color: rgba(248, 250, 252, 0.75) !important;
      font-size: 12px;
      font-weight: 500;
      padding: 6px 12px;
      text-decoration: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .sf-notif-actions .btn-link:hover {
      color: #d4b4ff !important;
      background: rgba(187, 134, 252, 0.15);
      border-color: rgba(187, 134, 252, 0.3);
      transform: translateY(-1px);
    }

    .sf-notif-actions .btn-info,
    .sf-notif-actions .btn-success,
    .sf-notif-actions .btn-outline-secondary {
      font-size: 12px;
      padding: 6px 14px;
      border-radius: 8px;
      font-weight: 600;
      border: none;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .sf-notif-actions .btn-info {
      background: var(--primary-gradient-dark, linear-gradient(135deg, #bb86fc 0%, #7c4dff 100%));
      color: white !important;
    }

    .sf-notif-actions .btn-success {
      background: linear-gradient(135deg, #7c4dff, #4c2fb3);
      color: white !important;
    }

    .sf-notif-actions .btn-outline-secondary {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: rgba(255, 255, 255, 0.8) !important;
    }

    .sf-notif-actions .btn-info:hover,
    .sf-notif-actions .btn-success:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      filter: brightness(1.15);
    }

    .sf-notif-actions .btn-outline-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.3);
      transform: translateY(-1px);
    }

    /* Botón de marcar como leído en cada notificación */
    .sf-notif-item [data-action="mark-read"] {
      width: 32px;
      height: 32px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.6) !important;
      transition: all 0.2s ease;
      position: relative;
      z-index: 2;
    }

    .sf-notif-item [data-action="mark-read"]:hover {
      background: rgba(187, 134, 252, 0.18);
      border-color: rgba(187, 134, 252, 0.35);
      color: #d4b4ff !important;
      transform: scale(1.05);
    }

    body.light-mode .sf-notif-actions .btn-outline-secondary {
      background: rgba(0, 0, 0, 0.05);
      border-color: rgba(0, 0, 0, 0.2);
      color: rgba(26, 26, 26, 0.8) !important;
    }

    body.light-mode .sf-notif-actions .btn-outline-secondary:hover {
      background: rgba(0, 0, 0, 0.1);
      border-color: rgba(0, 0, 0, 0.3);
    }

    body.light-mode .sf-notif-item [data-action="mark-read"] {
      background: rgba(0, 0, 0, 0.04);
      border-color: rgba(0, 0, 0, 0.1);
      color: rgba(26, 26, 26, 0.6) !important;
    }

    body.light-mode .sf-notif-item [data-action="mark-read"]:hover {
      background: rgba(225, 48, 108, 0.12);
      border-color: rgba(225, 48, 108, 0.35);
      color: #c81e4a !important;
    }

    body.light-mode .sf-notif-item {
      background: #ffffff;
      border-color: rgba(225, 48, 108, 0.08);
      box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    }

    body.light-mode .sf-notif-item:hover {
      border-color: rgba(225, 48, 108, 0.25);
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    }

    body.light-mode .sf-notif-unread {
      background: rgba(225, 48, 108, 0.06);
      border-left-color: var(--brand-color-light, #E1306C);
    }

    body.light-mode .sf-notif-title {
      color: #0f172a !important;
    }

    body.light-mode .sf-notif-body {
      color: rgba(51, 65, 85, 0.88) !important;
    }

    body.light-mode .sf-notif-time {
      color: rgba(71, 85, 105, 0.72) !important;
    }

    body.light-mode .sf-notif-icon {
      background: rgba(225, 48, 108, 0.1);
      border-color: rgba(225, 48, 108, 0.2);
      color: var(--brand-color-light, #E1306C) !important;
    }

    body.light-mode .sf-notif-item:hover .sf-notif-icon {
      border-color: rgba(225, 48, 108, 0.4);
      box-shadow: none;
    }

    body.light-mode .sf-notif-actions .btn-link {
      color: rgba(51, 65, 85, 0.85) !important;
      background: rgba(248, 250, 252, 0.9);
      border-color: rgba(148, 163, 184, 0.35);
    }

    body.light-mode .sf-notif-actions .btn-link:hover {
      color: #c81e4a !important;
      background: rgba(225, 48, 108, 0.08);
      border-color: rgba(225, 48, 108, 0.25);
    }

    /* Notification dropdown shell */
    .notif-menu {
      min-width: 400px;
      max-width: 480px;
      max-height: 75vh;
      padding: 0;
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: #1a1a1c;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.3);
      transform-origin: top right;
    }

    .notif-menu.show {
      animation: notifSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
    }

    @keyframes notifSlideIn {
      from {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .notif-menu-scroll-item {
      list-style: none;
      margin: 0;
      padding: 0;
      max-width: 100%;
    }

    .notif-menu-scroll {
      max-height: calc(75vh - 140px);
      overflow-y: auto;
      padding: 14px 16px 16px;
      scroll-behavior: smooth;
    }

    .notif-menu-scroll::-webkit-scrollbar {
      width: 6px;
    }

    .notif-menu-scroll::-webkit-scrollbar-track {
      background: rgba(187, 134, 252, 0.05);
      border-radius: 10px;
    }

    .notif-menu-scroll::-webkit-scrollbar-thumb {
      background: rgba(187, 134, 252, 0.3);
      border-radius: 10px;
      transition: background 0.2s ease;
    }

    .notif-menu-scroll::-webkit-scrollbar-thumb:hover {
      background: rgba(187, 134, 252, 0.5);
    }

    body.light-mode .notif-menu {
      background: #ffffff;
      border-color: rgba(0, 0, 0, 0.08);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
    }

    body.light-mode .notif-menu-scroll::-webkit-scrollbar-thumb {
      background: rgba(225, 48, 108, 0.28);
    }

    body.light-mode .notif-menu-scroll::-webkit-scrollbar-thumb:hover {
      background: rgba(247, 119, 55, 0.4);
    }

    .notif-menu>li {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .notif-menu-header {
      position: sticky;
      top: 0;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 14px 18px;
      background: #1a1a1c;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.light-mode .notif-menu-header {
      background: #ffffff;
      border-bottom-color: rgba(0, 0, 0, 0.06);
    }

    .notif-panel-title {
      font-family: 'Montserrat', system-ui, sans-serif;
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: -0.02em;
      color: #f8fafc;
    }

    body.light-mode .notif-panel-title {
      color: #0f172a;
    }


    .notif-menu .notif-divider {
      margin: 8px 0;
      padding: 0;
    }

    .notif-menu .dropdown-divider {
      border-color: rgba(255, 255, 255, 0.06);
      margin: 0;
    }

    body.light-mode .notif-menu .dropdown-divider {
      border-color: rgba(0, 0, 0, 0.08);
    }

    .notif-menu .notif-footer {
      position: sticky;
      bottom: 0;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 12px 20px 14px;
      background: #1a1a1c;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.light-mode .notif-menu .notif-footer {
      background: #fafafa;
      border-top-color: rgba(0, 0, 0, 0.06);
    }

    .notif-menu .notif-footer .btn-link {
      margin: 0 !important;
    }

    .notif-menu .notif-empty {
      padding: 36px 20px;
      text-align: center;
      color: rgba(248, 250, 252, 0.55);
      background: transparent;
      margin: 4px 0 0;
      font-family: 'Montserrat', system-ui, sans-serif;
      font-size: 13px;
    }

    .notif-menu .notif-empty::before {
      content: '\f0f3';
      font-family: 'Font Awesome 6 Free';
      font-weight: 400;
      display: block;
      font-size: 36px;
      margin-bottom: 10px;
      opacity: 0.35;
      color: var(--brand-color-dark, #bb86fc);
    }

    body.light-mode .notif-menu .notif-empty {
      background: transparent;
      color: #64748b;
    }

    body.light-mode .notif-menu .notif-empty::before {
      color: var(--brand-color-light, #E1306C);
    }

    .notif-local-header {
      padding: 8px 20px 4px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: rgba(240, 242, 247, 0.6);
    }

    body.light-mode .notif-local-header {
      color: #6c7280;
    }

    .notif-reel-progress {
      height: 6px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 999px;
      overflow: hidden;
      margin-top: 6px;
    }

    .notif-reel-progress span {
      display: block;
      height: 100%;
      width: 12%;
      background: var(--primary-gradient-dark, linear-gradient(135deg, #bb86fc 0%, #7c4dff 100%));
    }

    body.light-mode .notif-reel-progress {
      background: rgba(0, 0, 0, 0.08);
    }

    body.light-mode .notif-reel-progress span {
      background: var(--primary-gradient-light, linear-gradient(135deg, #E1306C 0%, #F77737 100%));
    }

    .reel-indicator-hint {
      position: fixed;
      top: 84px;
      right: 18px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(24, 24, 24, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.9);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
      opacity: 0;
      transform: translateY(-6px);
      transition: all 0.2s ease;
      z-index: 12000;
    }

    .reel-indicator-hint.show {
      opacity: 1;
      transform: translateY(0);
    }

    .reel-hint-text {
      font-size: 12px;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
    }

    .reel-hint-btn {
      border: none;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 11px;
      font-weight: 700;
      background: linear-gradient(135deg, #e1306c, #f77737);
      color: #fff;
    }

    .reel-hint-btn:hover {
      filter: brightness(1.08);
    }

    body.light-mode .reel-indicator-hint {
      background: rgba(255, 255, 255, 0.95);
      color: rgba(0, 0, 0, 0.8);
      border-color: rgba(0, 0, 0, 0.08);
    }

    .notif-menu .btn-link {
      color: rgba(248, 250, 252, 0.65) !important;
      text-decoration: none;
      font-weight: 500;
      font-size: 12px;
      padding: 6px 12px;
      border-radius: 8px;
      transition: color 0.2s ease, background 0.2s ease;
    }

    .notif-menu .btn-link:hover {
      color: #d4b4ff !important;
      background: rgba(187, 134, 252, 0.1);
    }

    body.light-mode .notif-menu .btn-link {
      color: #64748b !important;
    }

    body.light-mode .notif-menu .btn-link:hover {
      color: var(--brand-color-light, #E1306C) !important;
      background: rgba(225, 48, 108, 0.08);
    }

    .notif-menu .btn:focus-visible,
    .notif-menu .btn-link:focus-visible,
    .notif-menu a:focus-visible {
      outline: 2px solid rgba(225, 48, 108, 0.55);
      outline-offset: 2px;
      border-radius: 10px;
    }
