/* Extracted template style block 1. */
html[data-flu-page-key="home"] .sf-onboarding-intro {
    position: relative;
    min-height: calc(100dvh - 72px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.25rem 1.5rem 2.75rem;
    overflow: hidden;
    background: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --onboarding-intro-brand: var(--brand-color-dark);
    --onboarding-intro-brand-rgb: var(--brand-color-dark-rgb);
    --onboarding-intro-gradient: var(--primary-gradient-dark);
    --onboarding-intro-text: var(--text-dark);
    --onboarding-intro-text-rgb: var(--text-dark-rgb);
    --onboarding-intro-surface: color-mix(in srgb, var(--card-bg-dark) 72%, transparent);
    --onboarding-intro-border: color-mix(in srgb, var(--brand-color-dark) 24%, transparent);
    --onboarding-intro-node-fill: var(--card-bg-dark);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__topbar {
    position: absolute;
    top: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: min(1040px, calc(100% - 1.5rem));
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__account-chip {
    max-width: min(420px, 100%);
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: rgba(22, 21, 30, 0.78);
    border: 1px solid rgba(187, 134, 252, 0.18);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__account-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f7f3ff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__theme-toggle {
    width: 96px;
    height: 56px;
    flex-shrink: 0;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(22, 21, 30, 0.78);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    color: rgba(243, 237, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__logout-btn:hover {
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    background: rgba(34, 32, 44, 0.88);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__logout-btn:active {
    transform: scale(0.96);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1040px;
    text-align: center;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__title {
    max-width: 860px;
    margin: 0 auto 1.85rem;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.45rem, 5.8vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.98;
    color: #f7f3ff;
    text-wrap: balance;
    padding: 0 0.14em;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__title-prefix {
    display: block;
    font-size: clamp(1.5rem, 3.4vw, 2.35rem);
    line-height: 1.05;
    margin-bottom: 0.38rem;
    color: rgba(247, 243, 255, 0.94);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__title-line {
    display: block;
    line-height: 1;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__title-accent {
    display: inline-block;
    line-height: 1;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__logo {
    height: clamp(3.5rem, 7.6vw, 5.7rem);
    width: auto;
    object-fit: contain;
    vertical-align: middle;
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__logo--dark {
    display: none !important;
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__logo--light {
    display: inline-block !important;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__subtitle {
    max-width: 640px;
    margin: 0 auto 3.5rem;
    color: rgba(235, 230, 245, 0.78);
    font-size: 1.02rem;
    line-height: 1.52;
    text-wrap: pretty;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 100%;
    margin: 0 0 3.25rem;
    gap: 1.75rem;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 1.25rem 1.4rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(46, 46, 48, 0.9), rgba(34, 34, 36, 0.88));
    border: 1px solid rgba(var(--text-dark-rgb), 0.06);
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.28),
      0 8px 18px rgba(0, 0, 0, 0.24),
      0 18px 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    transition: transform var(--animation-duration) var(--transition-bezier), border-color var(--animation-duration) ease, box-shadow var(--animation-duration) ease;
    will-change: transform;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--onboarding-intro-brand-rgb), 0.45);
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.32),
      0 14px 28px rgba(0, 0, 0, 0.3),
      0 32px 60px rgba(0, 0, 0, 0.38),
      0 0 30px rgba(var(--onboarding-intro-brand-rgb), 0.18);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__card-title {
    margin: 0.5rem 0 0.55rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.2;
    min-height: auto;
    color: var(--onboarding-intro-text);
    text-align: center;
    text-wrap: balance;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__eyebrow {
    display: block;
    margin: 0.9rem 0 0;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--onboarding-intro-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--onboarding-intro-brand);
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__icon-wrap {
    align-self: center;
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    margin: -30px 0 0;
    border-radius: 16px;
    display: grid;
    place-items: center;
    border: 1.5px solid transparent;
    background:
      linear-gradient(var(--onboarding-intro-node-fill), var(--onboarding-intro-node-fill)) padding-box,
      var(--onboarding-intro-gradient) border-box;
    color: var(--onboarding-intro-brand);
    box-shadow: 0 4px 14px rgba(var(--onboarding-intro-brand-rgb), 0.35);
    animation: flu-home-sf-onb-icon-pop 0.5s cubic-bezier(0.2, 0, 0, 1) backwards;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__icon-wrap i {
    font-size: 1.75rem;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__dna-icon {
    width: 28px;
    height: 28px;
    overflow: visible;
    display: block;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__dna-icon path {
    stroke: currentColor;
    stroke-width: 10;
    stroke-linecap: round;
    fill: none;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__megaphone-icon {
    width: 28px;
    height: auto;
    fill: currentColor;
    transform-origin: 15% 85%;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.25s ease;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__icon-wrap:hover .sf-onboarding-intro__megaphone-icon,
html[data-flu-page-key="home"] .sf-onboarding-intro__card:hover .sf-onboarding-intro__megaphone-icon {
    transform: rotate(-12deg) scale(1.05) translateY(-1px);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__icon-wrap .fa-wand-magic-sparkles {
    transform-origin: 50% 60%;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__icon-wrap:hover .fa-wand-magic-sparkles,
html[data-flu-page-key="home"] .sf-onboarding-intro__card:hover .fa-wand-magic-sparkles {
    transform: rotate(-10deg) scale(1.07) translateY(-1px);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__icon-wrap:hover,
html[data-flu-page-key="home"] .sf-onboarding-intro__card:hover .sf-onboarding-intro__icon-wrap {
    box-shadow: 0 6px 18px rgba(var(--onboarding-intro-brand-rgb), 0.5), 0 0 26px rgba(var(--onboarding-intro-brand-rgb), 0.34);
  }

  @media (prefers-reduced-motion: reduce) {

    html[data-flu-page-key="home"] .sf-onboarding-intro__megaphone-icon,
html[data-flu-page-key="home"] .sf-onboarding-intro__icon-wrap .fa-wand-magic-sparkles {
      transition: none;
    }
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__icon-wrap:hover .sf-onboarding-intro__dna-helix-1,
html[data-flu-page-key="home"] .sf-onboarding-intro__card:hover .sf-onboarding-intro__dna-helix-1 {
    animation: flu-home-sf-onboarding-dna-helix-1 2s linear infinite;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__icon-wrap:hover .sf-onboarding-intro__dna-helix-2,
html[data-flu-page-key="home"] .sf-onboarding-intro__card:hover .sf-onboarding-intro__dna-helix-2 {
    animation: flu-home-sf-onboarding-dna-helix-2 2s linear infinite;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__icon-wrap:hover .sf-onboarding-intro__dna-mask,
html[data-flu-page-key="home"] .sf-onboarding-intro__card:hover .sf-onboarding-intro__dna-mask {
    animation: flu-home-sf-onboarding-dna-mask 2s linear infinite;
  }

  @keyframes flu-home-sf-onboarding-dna-helix-1 {
    0% {
      d: path("M 28 14 C 28 44, 72 56, 72 86");
    }

    25% {
      d: path("M 50 14 C 80 30, 80 70, 50 86");
    }

    50% {
      d: path("M 72 14 C 72 44, 28 56, 28 86");
    }

    75% {
      d: path("M 50 14 C 20 30, 20 70, 50 86");
    }

    100% {
      d: path("M 28 14 C 28 44, 72 56, 72 86");
    }
  }

  @keyframes flu-home-sf-onboarding-dna-helix-2 {
    0% {
      d: path("M 72 14 C 72 44, 28 56, 28 86");
    }

    25% {
      d: path("M 50 14 C 20 30, 20 70, 50 86");
    }

    50% {
      d: path("M 28 14 C 28 44, 72 56, 72 86");
    }

    75% {
      d: path("M 50 14 C 80 30, 80 70, 50 86");
    }

    100% {
      d: path("M 72 14 C 72 44, 28 56, 28 86");
    }
  }

  @keyframes flu-home-sf-onboarding-dna-mask {
    0% {
      d: path("M 28 14 C 28 44, 72 56, 72 86 L 28 86 C 28 56, 72 44, 72 14 Z");
    }

    25% {
      d: path("M 50 14 C 80 30, 80 70, 50 86 L 50 86 C 20 70, 20 30, 50 14 Z");
    }

    50% {
      d: path("M 72 14 C 72 44, 28 56, 28 86 L 72 86 C 72 56, 28 44, 28 14 Z");
    }

    75% {
      d: path("M 50 14 C 20 30, 20 70, 50 86 L 50 86 C 80 70, 80 30, 50 14 Z");
    }

    100% {
      d: path("M 28 14 C 28 44, 72 56, 72 86 L 28 86 C 28 56, 72 44, 72 14 Z");
    }
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__card-copy {
    margin: 0;
    color: rgba(var(--onboarding-intro-text-rgb), 0.78);
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: center;
    text-wrap: pretty;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__time {
    margin: 0;
    color: rgba(var(--onboarding-intro-text-rgb), 0.62);
    font-size: 0.95rem;
    line-height: 1.3;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__analysis-form {
    width: min(760px, 100%);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__analysis-row {
    display: flex;
    align-items: stretch;
    gap: 0.72rem;
    width: 100%;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__input-shell {
    min-height: 66px;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 1.15rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--onboarding-intro-text) 14%, transparent);
    background: color-mix(in srgb, var(--onboarding-intro-surface) 88%, transparent);
    color: var(--onboarding-intro-text);
    box-shadow: inset 0 1px 0 rgba(var(--onboarding-intro-text-rgb), 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__input-shell i {
    color: var(--onboarding-intro-brand);
    flex: 0 0 auto;
    font-size: 1.05rem;
    opacity: 0.78;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__input {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--onboarding-intro-text);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__input::placeholder {
    color: rgba(var(--onboarding-intro-text-rgb), 0.5);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__input:focus-visible {
    outline: 2px solid rgba(var(--onboarding-intro-text-rgb), 0.55);
    outline-offset: 2px;
    border-radius: 4px;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__input-shell.is-invalid {
    border-color: rgba(255, 90, 90, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 90, 90, 0.12);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__input-shell.is-invalid:focus-within {
    border-color: rgba(255, 90, 90, 0.9);
    box-shadow: 0 0 0 4px rgba(255, 90, 90, 0.18);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__input-shell:focus-within {
    border-color: color-mix(in srgb, var(--onboarding-intro-text) 45%, transparent);
    background: color-mix(in srgb, var(--onboarding-intro-surface) 96%, transparent);
    box-shadow: inset 0 1px 0 rgba(var(--onboarding-intro-text-rgb), 0.06);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__primary {
    min-width: 204px;
    min-height: 66px;
    border: none;
    border-radius: 999px;
    padding: 1.05rem 1.6rem;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--text-dark);
    background: var(--onboarding-intro-gradient);
    box-shadow: 0 20px 40px rgba(var(--onboarding-intro-brand-rgb), 0.24);
    transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.22s ease, opacity 0.18s ease;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 24px 44px rgba(var(--onboarding-intro-brand-rgb), 0.32);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__primary:active:not(:disabled) {
    transform: scale(0.96);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__primary:focus-visible {
    outline: 2px solid var(--onboarding-intro-brand);
    outline-offset: 3px;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__primary-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: flu-home-sf-onb-spin 0.7s linear infinite;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__primary.is-loading {
    opacity: 1;
    cursor: progress;
    transform: none;
    box-shadow: 0 20px 40px rgba(var(--onboarding-intro-brand-rgb), 0.24);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__primary.is-loading .sf-onboarding-intro__primary-spinner {
    display: inline-block;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__primary:disabled:not(.is-loading),
html[data-flu-page-key="home"] .sf-onboarding-intro__primary:not(.is-ready):not(.is-loading) {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__secondary {
    min-width: 260px;
    border: 1px solid rgba(187, 134, 252, 0.26);
    border-radius: 999px;
    padding: 0.88rem 1.6rem;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(235, 230, 245, 0.72);
    font-size: 0.96rem;
    font-weight: 600;
    transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__secondary:hover {
    color: #f7f3ff;
    border-color: rgba(187, 134, 252, 0.4);
    background: rgba(187, 134, 252, 0.08);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__secondary:active {
    transform: scale(0.96);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__note {
    max-width: 440px;
    margin: 0.2rem 0 0;
    color: rgba(228, 223, 238, 0.58);
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
    text-wrap: pretty;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__manual-link {
    color: rgba(var(--onboarding-intro-text-rgb), 0.64);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__manual-link:hover,
html[data-flu-page-key="home"] .sf-onboarding-intro__manual-link:focus-visible {
    color: var(--onboarding-intro-brand);
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__manual-link:focus-visible {
    outline: 2px solid var(--onboarding-intro-brand);
    outline-offset: 3px;
    border-radius: 4px;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__status {
    min-height: 22px;
    margin-top: 0.1rem;
    width: min(640px, 100%);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__status .alert {
    margin: 0;
    border-radius: 16px;
    border-color: color-mix(in srgb, var(--onboarding-intro-brand) 22%, transparent);
    background: color-mix(in srgb, var(--onboarding-intro-surface) 86%, transparent);
    color: var(--onboarding-intro-text);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__progress {
    width: 100%;
    margin-top: 0.85rem;
    padding: 1.05rem 1.15rem 1.15rem;
    background: color-mix(in srgb, var(--onboarding-intro-surface) 88%, transparent);
    border-color: color-mix(in srgb, var(--onboarding-intro-brand) 24%, transparent);
    box-shadow: 0 16px 40px rgba(var(--onboarding-intro-brand-rgb), 0.14);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__progress .onboarding-progress-pulse {
    background: var(--onboarding-intro-brand);
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__progress .onboarding-progress-badge {
    color: color-mix(in srgb, var(--onboarding-intro-brand) 95%, white);
    background: color-mix(in srgb, var(--onboarding-intro-brand) 14%, transparent);
    border-color: color-mix(in srgb, var(--onboarding-intro-brand) 28%, transparent);
  }

  /* === Entrada escalonada del onboarding ===
     Se rompe el contenido en bloques semánticos y se staggera cada uno con
     ~100ms de delay, en lugar de animar un solo contenedor. Es una secuencia
     que corre una vez al aterrizar (keyframes, no transitions). */
  @keyframes flu-home-sf-onb-rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes flu-home-sf-onb-icon-pop {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes flu-home-sf-onb-spin {
    to {
      transform: rotate(360deg);
    }
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__title {
    animation: flu-home-sf-onb-rise 0.6s cubic-bezier(0.2, 0, 0, 1) 0.05s backwards;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__subtitle {
    animation: flu-home-sf-onb-rise 0.6s cubic-bezier(0.2, 0, 0, 1) 0.15s backwards;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__card {
    animation: flu-home-sf-onb-rise 0.55s cubic-bezier(0.2, 0, 0, 1) backwards;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__card:nth-of-type(1) {
    animation-delay: 0.30s;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__card:nth-of-type(2) {
    animation-delay: 0.45s;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__card:nth-of-type(3) {
    animation-delay: 0.60s;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__card:nth-of-type(1) .sf-onboarding-intro__icon-wrap {
    animation-delay: 0.40s;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__card:nth-of-type(2) .sf-onboarding-intro__icon-wrap {
    animation-delay: 0.55s;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__card:nth-of-type(3) .sf-onboarding-intro__icon-wrap {
    animation-delay: 0.70s;
  }

  html[data-flu-page-key="home"] .sf-onboarding-intro__actions {
    animation: flu-home-sf-onb-rise 0.55s cubic-bezier(0.2, 0, 0, 1) 0.85s backwards;
  }

  @media (prefers-reduced-motion: reduce) {

    html[data-flu-page-key="home"] .sf-onboarding-intro__title,
html[data-flu-page-key="home"] .sf-onboarding-intro__subtitle,
html[data-flu-page-key="home"] .sf-onboarding-intro__card,
html[data-flu-page-key="home"] .sf-onboarding-intro__icon-wrap,
html[data-flu-page-key="home"] .sf-onboarding-intro__actions {
      animation: none;
    }
  }

  @media (max-width: 991.98px) {
    html[data-flu-page-key="home"] .sf-onboarding-intro {
      min-height: auto;
      padding-top: 2.75rem;
    }

    html[data-flu-page-key="home"] .sf-onboarding-intro__title {
      max-width: 640px;
      line-height: 1;
    }
  }



  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__title {
    color: #2b2117;
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro {
    --onboarding-intro-brand: var(--brand-color-light);
    --onboarding-intro-brand-rgb: var(--brand-color-light-rgb);
    --onboarding-intro-gradient: var(--primary-gradient-light);
    --onboarding-intro-text: var(--text-light);
    --onboarding-intro-text-rgb: var(--text-light-rgb);
    --onboarding-intro-surface: rgb(var(--sf-surface) / 0.88);
    --onboarding-intro-border: color-mix(in srgb, var(--brand-color-light) 24%, transparent);
    --onboarding-intro-node-fill: var(--card-bg-light);
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__title-prefix {
    color: #2b2117;
  }



  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__subtitle {
    color: rgba(43, 33, 23, 0.76);
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 250, 246, 0.94));
    border-color: rgba(var(--text-light-rgb), 0.1);
    box-shadow:
      0 1px 2px rgba(120, 70, 20, 0.1),
      0 8px 18px rgba(60, 40, 20, 0.08),
      0 24px 48px rgba(60, 40, 20, 0.1);
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__card:hover {
    border-color: rgba(var(--onboarding-intro-brand-rgb), 0.4);
    box-shadow:
      0 1px 2px rgba(120, 70, 20, 0.12),
      0 14px 28px rgba(60, 40, 20, 0.1),
      0 32px 58px rgba(60, 40, 20, 0.14),
      0 0 30px rgba(var(--onboarding-intro-brand-rgb), 0.16);
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__primary {
    color: var(--card-bg-light);
    background: var(--onboarding-intro-gradient);
    box-shadow: 0 20px 38px rgba(var(--onboarding-intro-brand-rgb), 0.22);
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__primary:hover:not(:disabled) {
    box-shadow: 0 24px 44px rgba(var(--onboarding-intro-brand-rgb), 0.28);
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__secondary {
    color: rgba(var(--onboarding-intro-text-rgb), 0.7);
    border-color: color-mix(in srgb, var(--onboarding-intro-brand) 22%, transparent);
    background: color-mix(in srgb, var(--card-bg-light) 58%, transparent);
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__secondary:hover {
    color: var(--onboarding-intro-text);
    border-color: color-mix(in srgb, var(--onboarding-intro-brand) 34%, transparent);
    background: color-mix(in srgb, var(--onboarding-intro-brand) 8%, transparent);
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__note {
    color: rgba(var(--onboarding-intro-text-rgb), 0.56);
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__account-chip,
html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__logout-btn {
    background: rgba(255, 253, 249, 0.82);
    border-color: rgba(225, 48, 108, 0.14);
    box-shadow: 0 14px 28px rgba(179, 122, 43, 0.12);
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__account-value,
html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__logout-btn {
    color: #2b2117;
  }

  html[data-flu-page-key="home"] body.light-mode .sf-onboarding-intro__logout-btn:hover {
    background: rgba(255, 248, 239, 0.96);
    border-color: rgba(225, 48, 108, 0.22);
    color: #2b2117;
  }

  @media (max-width: 767px) {
    html[data-flu-page-key="home"] .sf-onboarding-intro {
      padding-top: 5.75rem;
      align-items: flex-start;
    }

    html[data-flu-page-key="home"] .sf-onboarding-intro__topbar {
      position: static;
      left: auto;
      transform: none;
      width: 100%;
      margin-bottom: 1.5rem;
      justify-content: center;
    }

    html[data-flu-page-key="home"] .sf-onboarding-intro__account-chip {
      max-width: 100%;
    }

    html[data-flu-page-key="home"] .sf-onboarding-intro__grid {
      width: 100%;
      max-width: 420px;
      grid-template-columns: 1fr;
      gap: 1.75rem;
      margin-inline: auto;
    }

    html[data-flu-page-key="home"] .sf-onboarding-intro__card {
      min-height: 0;
      text-align: center;
    }

    html[data-flu-page-key="home"] .sf-onboarding-intro__analysis-row {
      flex-direction: column;
    }

    html[data-flu-page-key="home"] .sf-onboarding-intro__input-shell,
html[data-flu-page-key="home"] .sf-onboarding-intro__primary {
      width: 100%;
    }

    html[data-flu-page-key="home"] .sf-onboarding-intro__input-shell {
      border-radius: 22px;
    }
  }

/* Extracted template style block 2. */
/* ========================================
   MODERN HERO SECTION STYLES
   ======================================== */

  /* Fondo animado para toda la página */
  html[data-flu-page-key="home"] .page-bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
    pointer-events: none;
    overflow: hidden;
  }

  /* === HERO — "Flu" = flujo ===
     Un solo gesto: el subrayado dibujado a mano en "fluya".
     Centrado, sin fondo extra, botón violeta de marca. */
  html[data-flu-page-key="home"] .modern-hero-wrapper {
    position: relative;
    z-index: 1;
    min-height: 78vh;
    min-height: 78svh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 1rem;
    /* overflow: hidden se saca para que el stage de partículas (que vive
       fuera del wrapper y se extiende hacia abajo) no se recorte. */
    -webkit-font-smoothing: antialiased;
  }

  /* === Stage del fondo de partículas ===
     Ocupa toda la parte superior del home (hero + un tramo extra hacia
     abajo) y se funde suavemente con el resto de la página mediante una
     máscara de gradiente CSS en su borde inferior. El canvas vive acá,
     no dentro del hero wrapper. */
  html[data-flu-page-key="home"] .hero-bg-stage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    /* Degradado de fundido: opaco hasta ~58% de la altura (cubre el hero
       de 78vh con margen), luego se desvanece rápido a transparente y
       termina antes del 88% — así el canvas no llega al título de
       features. El scrim local del .features-hero::before protege el
       texto por las dudas. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 88%, transparent 100%);
  }

  html[data-flu-page-key="home"] .hero-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Las secciones que siguen al hero quedan por encima del stage de
     partículas (z-index 1 > 0) pero con fondo transparente, así el
     canvas se ve a través en la zona de transición y el degradado del
     mask lo funde suavemente con el color de la app. */
  html[data-flu-page-key="home"] .features-section {
    position: relative;
    z-index: 1;
    background: transparent;
  }

  /* Scrim local atrás del bloque del heading "Tu negocio en Redes...":
     un degradé del color de la app que limpia el fondo atrás del texto
     para que se lea bien, pero solo circunscribiendo ese bloque (no toda
     la sección). Los puntos del ParticleNoise siguen asomándose por
     alrededor y por abajo. */
  html[data-flu-page-key="home"] .features-hero {
    position: relative;
  }

  html[data-flu-page-key="home"] .features-hero::before {
    content: "";
    position: absolute;
    top: -1.5rem;
    bottom: -2.25rem;
    left: -1.5rem;
    right: -1.5rem;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(160deg, #1a1a1a 0%, #1a1a1a 88%, transparent 100%);
    border-radius: 14px;
  }

  html[data-flu-page-key="home"] body.light-mode .features-hero::before {
    background: linear-gradient(160deg, #f0e6d2 0%, #f0e6d2 88%, transparent 100%);
  }

  /* El contenido del hero queda arriba del scrim. */
  html[data-flu-page-key="home"] .features-hero > * {
    position: relative;
    z-index: 1;
  }

  /* Scrim local atrás del título del hero: un degradé RADIAL del PROPIO color
     de fondo de la app (--bg-dark / --bg-light) que se concentra justo
     detrás del bloque de texto (título + subtítulo + CTA) y se funde a
     transparente hacia los bordes. Como usa el color exacto de la página, no
     se ve como un velo "de color" pegado: se lee como que el propio fondo
     sube detrás del texto, tapando las partículas ahí pero dejándolas asomar
     alrededor — para que el título no se pise con el fondo. */
  html[data-flu-page-key="home"] .modern-hero-container::before {
    content: "";
    position: absolute;
    top: -1.5rem;
    bottom: -2.25rem;
    left: 50%;
    width: min(940px, 122%);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 62% 72% at 50% 48%,
                var(--bg-dark, #1a1a1a) 0%,
                var(--bg-dark, #1a1a1a) 38%,
                rgba(26, 26, 26, 0) 84%);
    border-radius: 20px;
  }

  html[data-flu-page-key="home"] body.light-mode .modern-hero-container::before {
    background: radial-gradient(ellipse 62% 72% at 50% 48%,
                var(--bg-light, #f0e6d2) 0%,
                var(--bg-light, #f0e6d2) 38%,
                rgba(240, 230, 210, 0) 84%);
  }

  /* El contenido del hero queda arriba del scrim radial. */
  html[data-flu-page-key="home"] .modern-hero-container > * {
    position: relative;
    z-index: 1;
  }

  /* === Container — centrado === */
  html[data-flu-page-key="home"] .modern-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 760px;
    padding: 2rem 1.5rem 3rem;
    margin: 0 auto;
    text-align: center;
  }

  html[data-flu-page-key="home"] .modern-hero-container.animate__animated {
    --animate-duration: 0.7s;
    animation-duration: var(--animate-duration);
  }

  /* Headline — protagonista único */
  html[data-flu-page-key="home"] .modern-hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.3rem, 5.2vw, 3.6rem);
    font-weight: 700;
    color: #F4F4F5;
    margin-bottom: 1.4rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  /* El giro: "fluya" en itálica + subrayado dibujado a mano */
  html[data-flu-page-key="home"] .hero-fluya-wrap {
    position: relative;
    display: inline-block;
  }

  html[data-flu-page-key="home"] .highlight-text {
    font-style: italic;
    font-weight: 700;
    color: #BB86FC;
    position: relative;
  }

  html[data-flu-page-key="home"] .highlight-text::before {
    display: none;
  }

  html[data-flu-page-key="home"] .hero-fluya-underline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.18em;
    width: 100%;
    height: 0.42em;
    overflow: visible;
    pointer-events: none;
    /* Hover retracts the underline without touching the intro draw animation */
    clip-path: inset(0 0% 0 0);
    transition: clip-path 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  }

  @media (hover: hover) {
    html[data-flu-page-key="home"] .hero-fluya-wrap:hover .hero-fluya-underline {
      clip-path: inset(0 100% 0 0);
    }
  }

  html[data-flu-page-key="home"] .underline-path-anim {
    fill: none;
    stroke: #BB86FC;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    opacity: 0.85;
    animation: flu-home-drawUnderline 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.7s forwards;
    will-change: stroke-dashoffset;
  }

  @keyframes flu-home-drawUnderline {
    to { stroke-dashoffset: 0; }
  }

  /* Descripción — una sola línea corta */
  html[data-flu-page-key="home"] .modern-hero-description {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(244, 244, 245, 0.78);
    max-width: 560px;
    margin: 0 auto 2.4rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  /* CTA Button — violeta, como era antes */
  html[data-flu-page-key="home"] .modern-hero-cta {
    margin-bottom: 0;
  }

  html[data-flu-page-key="home"] .btn-modern-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.6rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(135deg, #BB86FC, #A052E0, #7F00FF);
    border: none;
    border-radius: 999px;
    overflow: hidden;
    text-decoration: none;
    box-shadow:
      0 1px 0 0 rgba(255, 255, 255, 0.25) inset,
      0 1px 2px rgba(0, 0, 0, 0.3),
      0 12px 28px rgba(187, 134, 252, 0.32);
    transition-property: transform, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
    will-change: transform;
  }

  html[data-flu-page-key="home"] .btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow:
      0 1px 0 0 rgba(255, 255, 255, 0.25) inset,
      0 1px 2px rgba(0, 0, 0, 0.3),
      0 16px 36px rgba(187, 134, 252, 0.42);
    color: #FFFFFF;
  }

  html[data-flu-page-key="home"] .btn-modern-primary:active {
    transform: scale(0.96);
    box-shadow:
      0 1px 0 0 rgba(255, 255, 255, 0.25) inset,
      0 1px 2px rgba(0, 0, 0, 0.3),
      0 6px 16px rgba(187, 134, 252, 0.28);
  }

  html[data-flu-page-key="home"] .btn-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
  }

  html[data-flu-page-key="home"] .btn-modern-primary .btn-content i {
    margin-left: 0.55rem;
    transition-property: transform;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  }

  html[data-flu-page-key="home"] .btn-modern-primary:hover .btn-content i {
    transform: translateX(3px);
  }

  /* btn-shine se neutraliza */
  html[data-flu-page-key="home"] .btn-shine { display: none; }

  html[data-flu-page-key="home"] .cta-subtitle {
    margin-top: 0.85rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.88rem;
    color: rgba(244, 244, 245, 0.6);
    font-weight: 400;
  }

  /* === Light mode ===
     Una sola tinta de acento (magenta) que reemplaza al violeta. */
  html[data-flu-page-key="home"] body.light-mode .modern-hero-subtitle {
    color: #18181B;
  }

  html[data-flu-page-key="home"] body.light-mode .highlight-text {
    color: #E1306C;
  }

  html[data-flu-page-key="home"] body.light-mode .underline-path-anim {
    stroke: #E1306C;
  }

  html[data-flu-page-key="home"] body.light-mode .modern-hero-description {
    color: rgba(24, 24, 27, 0.72);
  }

  html[data-flu-page-key="home"] body.light-mode .btn-modern-primary {
    background: linear-gradient(135deg, #E1306C, #F77737, #F59E0B);
    box-shadow:
      0 1px 0 0 rgba(255, 255, 255, 0.2) inset,
      0 1px 2px rgba(0, 0, 0, 0.12),
      0 12px 28px rgba(225, 48, 108, 0.3);
  }

  html[data-flu-page-key="home"] body.light-mode .btn-modern-primary:hover {
    box-shadow:
      0 1px 0 0 rgba(255, 255, 255, 0.2) inset,
      0 1px 2px rgba(0, 0, 0, 0.12),
      0 16px 36px rgba(225, 48, 108, 0.38);
  }

  html[data-flu-page-key="home"] body.light-mode .cta-subtitle {
    color: rgba(24, 24, 27, 0.55);
  }

  /* === Responsive === */
  @media (max-width: 768px) {
    html[data-flu-page-key="home"] .modern-hero-wrapper {
      min-height: 74vh;
      min-height: 74svh;
    }

    html[data-flu-page-key="home"] .modern-hero-container {
      max-width: 560px;
      padding: 1.5rem 1.25rem 2.5rem;
    }

    html[data-flu-page-key="home"] .btn-modern-primary {
      padding: 1rem 2.2rem;
      font-size: 1.05rem;
    }
  }

  @media (max-width: 480px) {
    html[data-flu-page-key="home"] .modern-hero-wrapper {
      min-height: 72vh;
      min-height: 72svh;
    }

    html[data-flu-page-key="home"] .modern-hero-container {
      padding: 1.25rem 1rem 2rem;
    }

    html[data-flu-page-key="home"] .modern-hero-subtitle {
      font-size: clamp(1.95rem, 8vw, 2.5rem);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html[data-flu-page-key="home"] .underline-path-anim {
      animation: none;
      stroke-dashoffset: 0;
    }
  }

  /* ========================================
   LEGACY HERO STYLES (para usuarios logueados)
   ======================================== */

  html[data-flu-page-key="home"] .gradient-text-hero {
    background: linear-gradient(135deg, #A052E0 0%, #7F00FF 50%, #5B26A0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
  }

  html[data-flu-page-key="home"] .hero-main-heading {
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #EAEAEA;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  html[data-flu-page-key="home"] .hero-guest-heading {
    font-weight: 600;
  }

  html[data-flu-page-key="home"] .hero-greeting {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    color: rgba(234, 234, 234, 0.95);
    font-weight: 600;
    margin-bottom: 0.75rem;
  }

  /* Estilos para mensaje de bienvenida especial (usuarios que vuelven después de días) */
  html[data-flu-page-key="home"] .welcome-back-greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  html[data-flu-page-key="home"] .welcome-back-sparkle {
    font-size: 1.4em;
    animation: flu-home-sparkle-bounce 1.5s ease-in-out infinite;
  }

  html[data-flu-page-key="home"] .welcome-back-sparkle:last-child {
    animation-delay: 0.2s;
  }

  html[data-flu-page-key="home"] .welcome-back-text {
    background: linear-gradient(135deg, #BB86FC 0%, #E1BEE7 50%, #BB86FC 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flu-home-gradient-shift 3s ease-in-out infinite;
  }


  @keyframes flu-home-sparkle-bounce {

    0%,
    100% {
      transform: translateY(0) scale(1);
    }

    50% {
      transform: translateY(-5px) scale(1.1);
    }
  }

  @keyframes flu-home-gradient-shift {

    0%,
    100% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }
  }

  html[data-flu-page-key="home"] .hero p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(230, 230, 230, 0.85);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.75rem;
    line-height: 1.65;
  }

  html[data-flu-page-key="home"] .hero .btn-primary-custom {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(var(--brand-color-dark-rgb, 187, 134, 252), 0.3);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  }

  html[data-flu-page-key="home"] .hero .btn-primary-custom:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(var(--brand-color-dark-rgb, 187, 134, 252), 0.4);
  }

  html[data-flu-page-key="home"] .beta-tag {
    font-size: 0.6em;
    font-weight: 500;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    margin-top: 10px;
    background: linear-gradient(135deg, #A052E0 0%, #7F00FF 50%, #5B26A0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    top: -0.05em;
  }

  html[data-flu-page-key="home"] .hero-guest-subtitle {
    color: rgba(230, 230, 230, 0.85);
    display: inline-block;
  }

  /* ============================================================
     FAQ — Neumorphic accordion (inspirado en demo newfaqidea)
     ============================================================ */
  html[data-flu-page-key="home"] .faq-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 3rem 0 clamp(2rem, 4vw, 3rem);
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: none;
  }

  /* Paleta de texto y fondo del FAQ */
  html[data-flu-page-key="home"] .faq-section {
    --faq-surface: #2a2a32;
    --faq-card-bg: #212129;
    --faq-text-strong: #f4f4f6;
    --faq-text-muted: rgba(230, 230, 230, 0.82);
    --faq-accent-muted: rgba(187, 134, 252, 0.85);
    --faq-focus: rgba(187, 134, 252, 0.65);
  }

  html[data-flu-page-key="home"] .faq-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto 2rem;
  }

  html[data-flu-page-key="home"] .faq-eyebrow {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faq-accent-muted);
  }

  html[data-flu-page-key="home"] .faq-title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5.2vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--faq-text-strong);
    -webkit-text-fill-color: unset;
    background: none;
  }

  html[data-flu-page-key="home"] .faq-title-line {
    display: block;
  }

  html[data-flu-page-key="home"] .faq-title-serif {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Italic glyphs overhang the box; pad so background-clip doesn't crop the last letter */
    padding-right: 0.12em;
    margin-right: -0.06em;
    background: linear-gradient(135deg, #BB86FC 0%, #A052E0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] .faq-subtitle {
    margin: 0;
    max-width: 460px;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--faq-text-muted);
  }

  /* Lista: columna de 600px con 24px de gap entre cards */
  html[data-flu-page-key="home"] .faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  html[data-flu-page-key="home"] .faq .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  /* Cada item: color de fondo fijo + borde sutil.
     position: relative para que el trigger::after cubra toda la card. */
  html[data-flu-page-key="home"] .faq-item {
    position: relative;
    width: 100%;
    border-radius: 18px;
    background: var(--faq-card-bg);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s ease;
  }

  html[data-flu-page-key="home"] .faq-item:hover {
    border-color: rgba(187, 134, 252, 0.35);
  }

  html[data-flu-page-key="home"] .faq-item[data-open] {
    border-color: rgba(187, 134, 252, 0.45);
  }

  html[data-flu-page-key="home"] .faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 24px 14px 26px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    border-radius: 18px;
  }

  /* Área clicable extendida sobre toda la card (incluido el panel abierto),
     para que al tocar en cualquier parte se expanda/cierre cómodamente. */
  html[data-flu-page-key="home"] .faq-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    z-index: 1;
  }

  html[data-flu-page-key="home"] .faq-trigger:focus {
    outline: none;
    box-shadow: none;
  }

  html[data-flu-page-key="home"] .faq-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--faq-surface), 0 0 0 4px var(--faq-focus);
  }

  html[data-flu-page-key="home"] .faq-question {
    flex: 1 1 auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.2px;
    color: var(--faq-text-strong);
  }

  /* Toggle +/− sin fondo, solo el icono */
  html[data-flu-page-key="home"] .faq-toggle {
    position: relative;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    display: grid;
    place-items: center;
    transition: none;
  }

  html[data-flu-page-key="home"] .bar {
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 9px;
    background: var(--faq-accent-muted);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
  }

  html[data-flu-page-key="home"] .bar--h {
    transform: none;
  }

  html[data-flu-page-key="home"] .bar--v {
    transform: rotate(90deg);
  }

  /* Estado abierto: la barra vertical rota a 0 y se oculta → queda un "−". */
  html[data-flu-page-key="home"] .faq-item[data-open] .faq-trigger {
    padding-bottom: 8px;
  }

  html[data-flu-page-key="home"] .faq-item[data-open] .bar--v {
    transform: rotate(0deg);
    opacity: 0;
  }

  /* Panel de respuesta: animación de altura con CSS grid 0fr → 1fr.
     z-index: 0 lo deja debajo del trigger::after para que toda la card sea clicable. */
  html[data-flu-page-key="home"] .faq-panel {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html[data-flu-page-key="home"] .faq-item[data-open] .faq-panel {
    grid-template-rows: 1fr;
  }

  html[data-flu-page-key="home"] .faq-panel-inner {
    overflow: hidden;
    min-height: 0;
  }

  html[data-flu-page-key="home"] .faq-panel-inner p {
    margin: 0;
    padding: 0 26px 24px 26px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--faq-text-muted);
    max-width: 540px;
  }

  /* Móvil: mantener el sistema de cards sin desbordar */
  @media (max-width: 575.98px) {
    html[data-flu-page-key="home"] .faq-header {
      gap: 12px;
      margin-bottom: 1.75rem;
    }
    html[data-flu-page-key="home"] .faq-title {
      font-size: clamp(1.7rem, 8vw, 2.1rem);
      line-height: 1.15;
    }
    html[data-flu-page-key="home"] .faq {
      gap: 18px;
    }
    html[data-flu-page-key="home"] .faq-trigger {
      padding: 18px 18px 12px 20px;
    }
    html[data-flu-page-key="home"] .faq-question {
      font-size: 1rem;
      line-height: 1.4;
    }
    html[data-flu-page-key="home"] .faq-panel-inner p {
      padding: 0 20px 20px 20px;
      font-size: 0.95rem;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html[data-flu-page-key="home"] .faq-item,
html[data-flu-page-key="home"] .faq-toggle,
html[data-flu-page-key="home"] .bar,
html[data-flu-page-key="home"] .faq-panel {
      transition-duration: 0.01ms !important;
    }
  }

  /* Final CTA — cierre editorial post-FAQ (misma columna que FAQ) */
  html[data-flu-page-key="home"] .home-final-cta {
    position: relative;
    padding: clamp(3.25rem, 6.5vw, 5rem) 0 clamp(4.5rem, 9vw, 6.5rem);
    margin: 0;
    background: transparent;
  }

  html[data-flu-page-key="home"] .home-final-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 2.5rem), 42rem);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
  }

  html[data-flu-page-key="home"] .home-final-cta__panel {
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem) 0;
  }

  html[data-flu-page-key="home"] .home-final-cta__title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: clamp(2.15rem, 5.2vw, 3.35rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #f4f4f6;
    margin: 0 0 0.85rem;
  }

  html[data-flu-page-key="home"] .home-final-cta__line {
    display: block;
  }

  html[data-flu-page-key="home"] .home-final-cta__line--accent {
    background: var(--primary-gradient-dark, linear-gradient(135deg, #bb86fc 0%, #7c4dff 100%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] .home-final-cta__subtitle {
    font-family: 'Roboto', system-ui, sans-serif;
    font-size: clamp(1rem, 2.1vw, 1.125rem);
    font-weight: 400;
    color: rgba(230, 230, 235, 0.58);
    margin: 0 0 2.35rem;
    letter-spacing: 0.01em;
  }

  html[data-flu-page-key="home"] .home-final-cta__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.05rem 1.35rem 1.05rem 2rem;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    overflow: hidden;
    background: var(--primary-gradient-dark, linear-gradient(135deg, #bb86fc 0%, #7c4dff 100%));
    box-shadow:
      0 16px 40px rgba(var(--brand-color-dark-rgb, 187, 134, 252), 0.32),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 4px 14px rgba(0, 0, 0, 0.2);
    transition:
      transform 0.32s cubic-bezier(0.22, 0.9, 0.24, 1),
      box-shadow 0.32s ease,
      filter 0.25s ease;
  }

  html[data-flu-page-key="home"] .home-final-cta__btn-label,
html[data-flu-page-key="home"] .home-final-cta__btn-icon {
    position: relative;
    z-index: 2;
  }

  html[data-flu-page-key="home"] .home-final-cta__btn-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.24, 1), background 0.25s ease;
  }

  html[data-flu-page-key="home"] .home-final-cta__btn-shine {
    position: absolute;
    inset: 0;
    left: -100%;
    width: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transition: left 0.55s ease;
    z-index: 1;
  }

  html[data-flu-page-key="home"] .home-final-cta__btn:hover {
    color: #fff;
    transform: translateY(-3px);
    filter: brightness(1.06);
    box-shadow:
      0 22px 48px rgba(var(--brand-color-dark-rgb, 187, 134, 252), 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.16) inset,
      0 8px 20px rgba(0, 0, 0, 0.22);
  }

  html[data-flu-page-key="home"] .home-final-cta__btn:hover .home-final-cta__btn-icon {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.26);
  }

  html[data-flu-page-key="home"] .home-final-cta__btn:hover .home-final-cta__btn-shine {
    left: 100%;
  }

  html[data-flu-page-key="home"] .home-final-cta__btn:active {
    transform: translateY(-1px);
  }

  html[data-flu-page-key="home"] .home-final-cta__btn:focus-visible {
    outline: 2px solid rgba(var(--brand-color-dark-rgb, 187, 134, 252), 0.85);
    outline-offset: 4px;
  }

  @media (max-width: 575.98px) {
    html[data-flu-page-key="home"] .home-final-cta__btn {
      width: 100%;
      max-width: 20rem;
      padding-left: 1.5rem;
      padding-right: 1.15rem;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html[data-flu-page-key="home"] .home-final-cta__btn,
html[data-flu-page-key="home"] .home-final-cta__btn-icon,
html[data-flu-page-key="home"] .home-final-cta__btn-shine {
      transition: none;
    }

    html[data-flu-page-key="home"] .home-final-cta__btn:hover {
      transform: none;
      filter: none;
    }

    html[data-flu-page-key="home"] .home-final-cta__btn:hover .home-final-cta__btn-icon {
      transform: none;
    }
  }

/* Extracted template style block 3. */
html[data-flu-page-key="home"] .pulse-animation {
    animation: flu-home-pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(145, 71, 255, 0.7);
  }

  /* Image History Dropdown Styles are centralized in static/custom-styles.css */

  /* Enhanced horizontal image row styles */
  html[data-flu-page-key="home"] .image-history-thumbnail {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  /* Scrollable content area inside dropdown */
  html[data-flu-page-key="home"] .image-history-dropdown .px-3.pb-2 {
    max-height: 50vh;
    overflow-y: auto;
  }

  html[data-flu-page-key="home"] .image-history-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.1), rgba(107, 70, 193, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
  }

  html[data-flu-page-key="home"] .image-history-thumbnail:hover {
    transform: scale(1.08) translateY(-4px);
    border-color: rgba(145, 71, 255, 0.6);
    box-shadow: 0 8px 25px rgba(145, 71, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  html[data-flu-page-key="home"] .image-history-thumbnail:hover::before {
    opacity: 1;
  }

  html[data-flu-page-key="home"] .image-history-thumbnail:active {
    transform: scale(1.05) translateY(-2px);
  }

  /* Enhanced grid image styles */
  html[data-flu-page-key="home"] .image-history-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
  }

  html[data-flu-page-key="home"] .image-history-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.1), rgba(107, 70, 193, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
  }

  html[data-flu-page-key="home"] .image-history-grid-item:hover {
    transform: scale(1.05) translateY(-3px);
    border-color: rgba(145, 71, 255, 0.6);
    box-shadow: 0 8px 25px rgba(145, 71, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  html[data-flu-page-key="home"] .image-history-grid-item:hover::before {
    opacity: 1;
  }

  html[data-flu-page-key="home"] .image-history-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  html[data-flu-page-key="home"] .image-history-grid-item:hover img {
    transform: scale(1.1);
  }

  html[data-flu-page-key="home"] .image-history-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 12px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
  }

  html[data-flu-page-key="home"] .image-history-grid-item:hover .image-history-grid-overlay {
    opacity: 1;
  }

  html[data-flu-page-key="home"] .image-history-grid-overlay small {
    color: white;
    font-size: 0.75rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
  }

  /* Enhanced custom scrollbar for horizontal row */
  html[data-flu-page-key="home"] #imageHistoryRow::-webkit-scrollbar {
    height: 6px;
  }

  html[data-flu-page-key="home"] #imageHistoryRow::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }

  html[data-flu-page-key="home"] #imageHistoryRow::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(145, 71, 255, 0.6), rgba(107, 70, 193, 0.6));
    border-radius: 3px;
    transition: background 0.3s ease;
  }

  html[data-flu-page-key="home"] #imageHistoryRow::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(145, 71, 255, 0.8), rgba(107, 70, 193, 0.8));
  }

  /* Enhanced loading state */
  html[data-flu-page-key="home"] #imageHistoryLoading {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  html[data-flu-page-key="home"] #imageHistoryLoading .spinner-border {
    width: 2rem;
    height: 2rem;
    color: #9147ff;
  }

  html[data-flu-page-key="home"] #imageHistoryLoading p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
  }

  /* Enhanced empty state */
  html[data-flu-page-key="home"] #imageHistoryEmpty {
    padding: 2.5rem 1.5rem;
    text-align: center;
  }

  html[data-flu-page-key="home"] #imageHistoryEmpty i {
    font-size: 3rem;
    color: rgba(145, 71, 255, 0.4);
    margin-bottom: 1rem;
  }

  html[data-flu-page-key="home"] #imageHistoryEmpty p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }

  /* Enhanced actions footer */
  html[data-flu-page-key="home"] .image-history-dropdown .dropdown-divider {
    border-color: rgba(145, 71, 255, 0.2);
    margin: 0;
  }

  html[data-flu-page-key="home"] .image-history-dropdown .px-3.pb-2 {
    padding: 1rem 1.25rem 1.25rem !important;
  }

  html[data-flu-page-key="home"] .image-history-dropdown .btn {
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1rem;
  }

  html[data-flu-page-key="home"] .image-history-dropdown .btn-primary {
    background: linear-gradient(135deg, #9147ff, #6b46c1);
    border: none;
    box-shadow: 0 4px 12px rgba(145, 71, 255, 0.3);
  }

  html[data-flu-page-key="home"] .image-history-dropdown .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(145, 71, 255, 0.4);
  }

  html[data-flu-page-key="home"] .image-history-dropdown .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
  }

  html[data-flu-page-key="home"] .image-history-dropdown .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
  }

  /* Enhanced show more button */
  html[data-flu-page-key="home"] #showMoreImagesBtn .btn {
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.1), rgba(107, 70, 193, 0.1));
    border: 1px solid rgba(145, 71, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
  }

  html[data-flu-page-key="home"] #showMoreImagesBtn .btn:hover {
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.2), rgba(107, 70, 193, 0.2));
    border-color: rgba(145, 71, 255, 0.5);
    color: white;
    transform: translateY(-1px);
  }

  /* Enhanced image count badge */
  html[data-flu-page-key="home"] #imageCount {
    background: linear-gradient(135deg, #9147ff, #6b46c1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    animation: flu-home-pulse-glow 2s infinite;
  }

  @keyframes flu-home-pulse-glow {

    0%,
    100% {
      box-shadow: 0 0 5px rgba(145, 71, 255, 0.3);
    }

    50% {
      box-shadow: 0 0 15px rgba(145, 71, 255, 0.6);
    }
  }

  /* Enhanced dropdown button */
  html[data-flu-page-key="home"] #imageHistoryDropdown {
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.1), rgba(107, 70, 193, 0.1));
    border: 1px solid rgba(145, 71, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  html[data-flu-page-key="home"] #imageHistoryDropdown:hover {
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.2), rgba(107, 70, 193, 0.2));
    border-color: rgba(145, 71, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(145, 71, 255, 0.2);
  }

  /* Enhanced modal styles */
  html[data-flu-page-key="home"] #imageZoomModal .modal-content {
    background: rgba(30, 32, 40, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(145, 71, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  }

  html[data-flu-page-key="home"] #imageZoomModal .modal-header {
    border-bottom-color: rgba(145, 71, 255, 0.2);
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.1), rgba(107, 70, 193, 0.1));
  }

  html[data-flu-page-key="home"] #imageZoomModal .modal-footer {
    border-top-color: rgba(145, 71, 255, 0.2);
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.05), rgba(107, 70, 193, 0.05));
  }

  html[data-flu-page-key="home"] #zoomedImage {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  /* Modern Modal Styles - Shared with progressive preview */
  html[data-flu-page-key="home"] .modal-modern {
    background: var(--card-bg-dark, #1a1a1a);
    border: 1px solid #404040;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
  }

  html[data-flu-page-key="home"] .modal-modern .modal-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 1.5rem;
    position: relative;
  }

  html[data-flu-page-key="home"] .modal-modern .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--brand-color-dark-rgb, 99, 102, 241), 0.3) 50%,
        transparent 100%);
  }

  html[data-flu-page-key="home"] .modal-modern .modal-header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark, #ffffff);
    letter-spacing: -0.01em;
  }

  html[data-flu-page-key="home"] .modal-modern .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: all 0.2s ease;
    padding: 0.75rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
  }

  html[data-flu-page-key="home"] .modal-modern .modal-header .btn-close:hover {
    opacity: 1;
  }

  html[data-flu-page-key="home"] .modal-modern .modal-body {
    padding: 1.5rem;
    color: var(--text-dark, #e5e7eb);
  }

  html[data-flu-page-key="home"] .modal-modern .modal-footer {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  html[data-flu-page-key="home"] .modal-modern .btn-primary {
    background: var(--primary-gradient-dark, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%));
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(var(--brand-color-dark-rgb, 99, 102, 241), 0.25);
  }

  html[data-flu-page-key="home"] .modal-modern .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--brand-color-dark-rgb, 99, 102, 241), 0.35);
  }

  html[data-flu-page-key="home"] .modal-modern .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    color: #a0a0a0;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  html[data-flu-page-key="home"] .modal-modern .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }

  html[data-flu-page-key="home"] .modal.fade .modal-dialog {
    transform: scale(0.96) translateY(-10px);
    transition: transform 0.25s ease-out;
  }

  html[data-flu-page-key="home"] .modal.show .modal-dialog {
    transform: scale(1) translateY(0);
  }

  /* AI image preview (shared layout with progressive products) */
  html[data-flu-page-key="home"] .generated-image-body {
    padding: 0 !important;
  }

  html[data-flu-page-key="home"] .generated-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: 500px;
  }

  @media (max-width: 992px) {
    html[data-flu-page-key="home"] .generated-layout {
      grid-template-columns: 1fr;
    }
  }

  html[data-flu-page-key="home"] .generated-image-container {
    position: relative;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }

  html[data-flu-page-key="home"] .generated-image-container img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
  }

  html[data-flu-page-key="home"] .image-actions-overlay {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
  }

  html[data-flu-page-key="home"] .btn-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  html[data-flu-page-key="home"] .btn-action-icon:hover {
    background: rgba(99, 102, 241, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
  }

  html[data-flu-page-key="home"] .generated-controls {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  html[data-flu-page-key="home"] .section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
  }

  html[data-flu-page-key="home"] .section-label i {
    font-size: 0.75rem;
    color: var(--brand-color-dark, #6366f1);
  }

  html[data-flu-page-key="home"] .generated-copy-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
  }

  html[data-flu-page-key="home"] .copy-text {
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
  }

  html[data-flu-page-key="home"] .btn-copy-text {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #9ca3af;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  html[data-flu-page-key="home"] .btn-copy-text:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
  }

  html[data-flu-page-key="home"] .refine-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
  }

  html[data-flu-page-key="home"] .refine-alert {
    display: none;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  html[data-flu-page-key="home"] .refine-alert.is-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
  }

  html[data-flu-page-key="home"] .refine-alert.is-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
  }

  html[data-flu-page-key="home"] .refine-alert.is-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
  }

  html[data-flu-page-key="home"] .refine-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    color: #ffffff;
    font-size: 0.875rem;
    resize: none;
    transition: all 0.2s ease;
  }

  html[data-flu-page-key="home"] .refine-textarea:focus {
    outline: none;
    border-color: var(--brand-color-dark, #6366f1);
    background: rgba(0, 0, 0, 0.4);
  }

  html[data-flu-page-key="home"] .refine-textarea::placeholder {
    color: #6b7280;
  }

  html[data-flu-page-key="home"] .refine-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0;
  }

  html[data-flu-page-key="home"] .refine-chips button {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #d1d5db;
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  html[data-flu-page-key="home"] .refine-chips button:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #ffffff;
  }

  html[data-flu-page-key="home"] .btn-refine {
    width: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c4b5fd;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  html[data-flu-page-key="home"] .btn-refine:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
  }

  html[data-flu-page-key="home"] .history-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
  }

  html[data-flu-page-key="home"] .history-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  html[data-flu-page-key="home"] .history-strip img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
  }

  html[data-flu-page-key="home"] .history-strip img:hover {
    border-color: var(--brand-color-dark, #6366f1);
  }

  html[data-flu-page-key="home"] .main-actions {
    margin-top: auto;
    padding-top: 0.5rem;
  }

  html[data-flu-page-key="home"] .btn-use-post {
    width: 100%;
    background: var(--primary-gradient-dark, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%));
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
  }

  html[data-flu-page-key="home"] .btn-use-post:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  }

  html[data-flu-page-key="home"] .btn-close-preview {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5f5;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
  }

  html[data-flu-page-key="home"] .btn-close-preview:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  /* Enhanced storage info alert */
  html[data-flu-page-key="home"] .alert-info {
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.1), rgba(107, 70, 193, 0.1));
    border: 1px solid rgba(145, 71, 255, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
  }

  html[data-flu-page-key="home"] .alert-info .alert-link {
    color: #9147ff;
    text-decoration: none;
    font-weight: 500;
  }

  html[data-flu-page-key="home"] .alert-info .alert-link:hover {
    color: #6b46c1;
    text-decoration: underline;
  }

  /* Responsive adjustments */
  /* Light mode override for image dropdown */
  html[data-flu-page-key="home"] body.light-mode .image-history-dropdown {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
  }

  /* Animations for image dropdown */
  @keyframes flu-home-dropdownFadeIn {
    0% {
      opacity: 0;
      transform: translateY(-5px) scale(0.95) !important;
    }

    100% {
      opacity: 1;
      transform: translateY(0) scale(1) !important;
    }
  }

  @media (max-width: 768px) {
    html[data-flu-page-key="home"] .image-history-dropdown {
      min-width: 320px !important;
      max-width: 90vw !important;
    }

    html[data-flu-page-key="home"] .image-history-thumbnail {
      width: 70px;
      height: 70px;
    }

    html[data-flu-page-key="home"] .image-history-grid-item {
      border-radius: 12px;
    }

    html[data-flu-page-key="home"] #imageHistoryDropdown {
      padding: 0.6rem 1rem;
      font-size: 0.9rem;
    }
  }

  /* Animation for image loading */
  @keyframes flu-home-imageFadeIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }

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

  html[data-flu-page-key="home"] .image-history-thumbnail,
html[data-flu-page-key="home"] .image-history-grid-item {
    animation: flu-home-imageFadeIn 0.5s ease-out;
  }

  /* Enhanced grid container */
  html[data-flu-page-key="home"] #imageHistoryGrid .row {
    margin: 0 -0.5rem;
  }

  html[data-flu-page-key="home"] #imageHistoryGrid .col-4,
html[data-flu-page-key="home"] #imageHistoryGrid .col-md-3 {
    padding: 0 0.5rem;
  }

  /* Enhanced horizontal row container */
  html[data-flu-page-key="home"] #imageHistoryRow {
    padding: 0.5rem 0;
    gap: 0.75rem;
  }

  /* Enhanced section header */
  html[data-flu-page-key="home"] .image-history-section {
    margin-bottom: 2rem;
  }

  html[data-flu-page-key="home"] .image-history-section h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 600;
  }

  /* Enhanced dropdown positioning */
  html[data-flu-page-key="home"] .dropdown-menu-end {
    right: 0;
    left: auto;
    margin-top: 0.5rem;
  }

  /* Enhanced focus states for accessibility */
  html[data-flu-page-key="home"] .image-history-thumbnail:focus,
html[data-flu-page-key="home"] .image-history-grid-item:focus {
    outline: 2px solid rgba(145, 71, 255, 0.8);
    outline-offset: 2px;
  }

  /* Enhanced loading animation */
  html[data-flu-page-key="home"] .spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
  }

  /* Image History Icon Wrapper */
  html[data-flu-page-key="home"] .image-history-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.2), rgba(107, 70, 193, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(145, 71, 255, 0.3);
    transition: all 0.3s ease;
  }

  html[data-flu-page-key="home"] .image-history-icon-wrapper:hover {
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.3), rgba(107, 70, 193, 0.3));
    border-color: rgba(145, 71, 255, 0.5);
    transform: scale(1.05);
  }

  html[data-flu-page-key="home"] .image-history-icon-wrapper i {
    color: #9147ff;
    font-size: 1.2rem;
  }

  /* Empty State Icon */
  html[data-flu-page-key="home"] .empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.1), rgba(107, 70, 193, 0.1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 1px solid rgba(145, 71, 255, 0.2);
  }

  html[data-flu-page-key="home"] .empty-state-icon i {
    font-size: 1.8rem;
    color: rgba(145, 71, 255, 0.6);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Alert Icon Wrapper */
  html[data-flu-page-key="home"] .alert-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.2), rgba(107, 70, 193, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(145, 71, 255, 0.3);
  }

  html[data-flu-page-key="home"] .alert-icon-wrapper i {
    color: #9147ff;
    font-size: 0.9rem;
  }

  /* Enhanced section styling */
  html[data-flu-page-key="home"] .image-history-section {
    position: relative;
  }

  html[data-flu-page-key="home"] .image-history-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.05), rgba(107, 70, 193, 0.05));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  html[data-flu-page-key="home"] .image-history-section:hover::before {
    opacity: 1;
  }

  @keyframes flu-home-pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(145, 71, 255, 0.7);
    }

    70% {
      transform: scale(1.05);
      box-shadow: 0 0 0 10px rgba(145, 71, 255, 0);
    }

    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(145, 71, 255, 0);
    }
  }

  html[data-flu-page-key="home"] .feature-disabled {
    filter: grayscale(80%);
    opacity: 0.7;
    pointer-events: none;
    cursor: not-allowed;
  }

  html[data-flu-page-key="home"] .feature-disabled .feature-hover-content a {
    pointer-events: none;
  }

  /* ============================================
     BLACK FRIDAY STYLES - MINIMAL & ELEGANT
     ============================================ */

  /* Top Strip Banner */
  html[data-flu-page-key="home"] .bf-top-strip {
    background: linear-gradient(90deg, #7F00FF, #9147ff, #BB86FC);
    padding: 0.6rem 1rem;
    position: relative;
    overflow: hidden;
  }

  html[data-flu-page-key="home"] .bf-top-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: flu-home-bf-shimmer 2.5s ease-in-out infinite;
  }

  @keyframes flu-home-bf-shimmer {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(50%);
    }
  }

  html[data-flu-page-key="home"] .bf-strip-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
  }

  html[data-flu-page-key="home"] .bf-strip-fire {
    font-size: 1.1rem;
    animation: flu-home-bf-bounce 1s ease-in-out infinite;
  }

  @keyframes flu-home-bf-bounce {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-3px);
    }
  }

  html[data-flu-page-key="home"] .bf-strip-text {
    color: white;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }

  html[data-flu-page-key="home"] .bf-strip-text strong {
    font-weight: 800;
    letter-spacing: 1px;
  }

  html[data-flu-page-key="home"] .bf-strip-date {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
  }

  html[data-flu-page-key="home"] .bf-strip-btn {
    background: white;
    color: #7F00FF;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  html[data-flu-page-key="home"] .bf-strip-btn:hover {
    background: #f0e6ff;
    color: #6b00e0;
    transform: scale(1.05);
  }

  /* Badge de sección en planes */
  html[data-flu-page-key="home"] .bf-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.15), rgba(127, 0, 255, 0.15));
    border: 1px solid rgba(145, 71, 255, 0.4);
    border-radius: 50px;
  }

  html[data-flu-page-key="home"] .bf-badge-icon {
    font-size: 1rem;
  }

  html[data-flu-page-key="home"] .bf-badge-text {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #BB86FC, #9147ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Tarjeta con promo */
  html[data-flu-page-key="home"] .pricing-card.bf-promo {
    position: relative;
    border-color: rgba(145, 71, 255, 0.5) !important;
    box-shadow: 0 0 30px rgba(145, 71, 255, 0.15);
  }

  html[data-flu-page-key="home"] .bf-card-badge {
    position: absolute;
    top: 12px;
    right: -28px;
    background: linear-gradient(135deg, #9147ff, #7F00FF);
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.3rem 2.25rem;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 12px rgba(145, 71, 255, 0.4);
  }

  /* Precios con descuento */
  html[data-flu-page-key="home"] .pricing-card.bf-promo .pricing-price {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  html[data-flu-page-key="home"] .original-price {
    display: flex;
    align-items: center;
    margin-bottom: 0.15rem;
  }

  html[data-flu-page-key="home"] .currency-small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
  }

  html[data-flu-page-key="home"] .amount-striked {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
  }

  html[data-flu-page-key="home"] .current-price {
    display: block;
    text-align: center;
    white-space: nowrap;
  }

  html[data-flu-page-key="home"] .amount.discounted {
    color: #a78bfa !important;
    text-shadow: 0 0 25px rgba(167, 139, 250, 0.4);
  }

  /* Responsive */
  @media (max-width: 768px) {
    html[data-flu-page-key="home"] .bf-strip-content {
      gap: 0.5rem;
    }

    html[data-flu-page-key="home"] .bf-strip-text {
      font-size: 0.8rem;
    }

    html[data-flu-page-key="home"] .bf-strip-date {
      display: none;
    }

    html[data-flu-page-key="home"] .bf-card-badge {
      font-size: 0.7rem;
      padding: 0.25rem 2rem;
      right: -32px;
      top: 10px;
    }
  }

  @media (max-width: 480px) {
    html[data-flu-page-key="home"] .bf-top-strip {
      padding: 0.5rem 0.75rem;
    }

    html[data-flu-page-key="home"] .bf-strip-fire {
      font-size: 1rem;
    }

    html[data-flu-page-key="home"] .bf-strip-btn {
      padding: 0.3rem 0.8rem;
      font-size: 0.75rem;
    }
  }

  /* ============================================
     END BLACK FRIDAY STYLES
     ============================================ */

/* Extracted template style block 4. */
html[data-flu-page-key="home"] .insight-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
  }

  html[data-flu-page-key="home"] .insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 0;
  }

  html[data-flu-page-key="home"] .insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(145, 71, 255, 0.3);
  }

  html[data-flu-page-key="home"] .insight-card .card-body {
    position: relative;
    z-index: 1;
  }

  html[data-flu-page-key="home"] .insights-status {
    min-height: 24px;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(226, 232, 240, 0.92);
    transition: opacity 0.2s ease;
  }

  html[data-flu-page-key="home"] .insights-status.is-hidden {
    display: none;
    min-height: 0;
    margin-bottom: 0;
  }

  html[data-flu-page-key="home"] .insights-status.is-retrying {
    color: #fbbf24;
  }

  html[data-flu-page-key="home"] .feature-icon {
    color: #9147ff;
  }

  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    html[data-flu-page-key="home"] .feature-icon {
      background: linear-gradient(45deg, #9147ff, #6b46c1);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }
  }

  /* Skeleton loading for insights */
  @keyframes flu-home-insight-shimmer {
    0% {
      background-position: -200% 0;
    }

    100% {
      background-position: 200% 0;
    }
  }

  html[data-flu-page-key="home"] .insight-skeleton-icon,
html[data-flu-page-key="home"] .insight-skeleton-title,
html[data-flu-page-key="home"] .insight-skeleton-text {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: flu-home-insight-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
  }

  html[data-flu-page-key="home"] .insight-skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 1rem;
  }

  html[data-flu-page-key="home"] .insight-skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 0.75rem;
  }

  html[data-flu-page-key="home"] .insight-skeleton-text {
    height: 14px;
    width: 90%;
    margin-bottom: 0.5rem;
  }

  html[data-flu-page-key="home"] .insight-skeleton-text.short {
    width: 65%;
  }

  /* Fade-in for loaded insights */
  html[data-flu-page-key="home"] .insight-card-loaded {
    animation: flu-home-insightFadeIn 0.4s ease-out forwards;
  }

  @keyframes flu-home-insightFadeIn {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

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

/* Extracted template style block 5. */
html[data-flu-page-key="home"] .recent-ads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  html[data-flu-page-key="home"] .recent-ads-title {
    margin-bottom: 0;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  }

  html[data-flu-page-key="home"] .recent-ads-ver-todo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #9147ff;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, gap 0.2s ease;
  }

  html[data-flu-page-key="home"] .recent-ads-ver-todo:hover {
    color: #a78bfa;
    gap: 0.6rem;
    text-decoration: none;
  }

  html[data-flu-page-key="home"] body.light-mode .recent-ads-ver-todo {
    color: var(--brand-color-light, #E1306C);
  }

  html[data-flu-page-key="home"] body.light-mode .recent-ads-ver-todo:hover {
    color: #f06292;
  }

  html[data-flu-page-key="home"] .recent-ads-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.85rem;
  }

  html[data-flu-page-key="home"] .recent-ads-item {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
  }

  html[data-flu-page-key="home"] .recent-ads-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  html[data-flu-page-key="home"] .recent-ads-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
  }

  html[data-flu-page-key="home"] body.light-mode .recent-ads-empty {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
  }

  html[data-flu-page-key="home"] .recent-ads-empty-icon {
    font-size: 2.5rem;
    color: rgba(145, 71, 255, 0.3);
    margin-bottom: 1rem;
  }

  html[data-flu-page-key="home"] body.light-mode .recent-ads-empty-icon {
    color: rgba(225, 48, 108, 0.35);
  }

  html[data-flu-page-key="home"] .recent-ads-empty-text {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  html[data-flu-page-key="home"] body.light-mode .recent-ads-empty-text {
    color: rgba(0, 0, 0, 0.5);
  }

  html[data-flu-page-key="home"] .recent-ads-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  @media (max-width: 768px) {
    html[data-flu-page-key="home"] .recent-ads-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.65rem;
    }
    html[data-flu-page-key="home"] .recent-ads-item {
      border-radius: 14px;
    }
  }

  @media (max-width: 480px) {
    html[data-flu-page-key="home"] .recent-ads-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    html[data-flu-page-key="home"] .recent-ads-item {
      border-radius: 12px;
    }
  }

/* Extracted template style block 6. */
html[data-flu-page-key="home"] .gradient-heading {
    background: linear-gradient(90deg, #9147ff, #6b46c1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: -0.5px;
  }

  html[data-flu-page-key="home"] .sf-control-center {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto 3rem;
  }

  html[data-flu-page-key="home"] .sf-control-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
  }

  html[data-flu-page-key="home"] .sf-control-subtitle {
    max-width: 900px;
    margin: -4px auto 0;
    text-align: center;
  }

  html[data-flu-page-key="home"] .bento-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
  }

  html[data-flu-page-key="home"] .bento-card {
    background: #1C1C1E;
    border: 1px solid #36363A;
    border-radius: 18px;
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    color: #A1A1A6;
    outline: none;
    min-height: 142px;
    text-decoration: none;
  }

  html[data-flu-page-key="home"] .bento-card:hover {
    background: #252528;
    border-color: #48484A;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-decoration: none;
  }

  html[data-flu-page-key="home"] .bento-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(145, 71, 255, 0.3), 0 10px 22px rgba(0, 0, 0, 0.26);
    border-color: rgba(145, 71, 255, 0.85);
    color: #fff;
    text-decoration: none;
  }

  html[data-flu-page-key="home"] .bento-icon {
    width: 34px;
    height: 34px;
    transition: transform 0.22s ease;
  }

  html[data-flu-page-key="home"] .bento-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  html[data-flu-page-key="home"] .bento-card:hover .bento-icon {
    transform: scale(1.08);
  }

  html[data-flu-page-key="home"] .bento-label {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.01em;
  }

  html[data-flu-page-key="home"] .bento-post-hero {
    grid-column: span 2;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    height: 142px;
    min-height: 142px;
    max-height: 142px;
    box-sizing: border-box;
    overflow: hidden;
    border-color: rgba(187, 134, 252, 0.28);
  }

  html[data-flu-page-key="home"] .bento-card.bento-post-hero:hover {
    border-color: rgba(187, 134, 252, 0.44);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(124, 77, 255, 0.08);
  }

  html[data-flu-page-key="home"] .bento-post-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
  }

  html[data-flu-page-key="home"] .bento-post-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.15rem, 1.45vw, 1.35rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
  }

  html[data-flu-page-key="home"] .bento-post-subtitle {
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.35;
    color: inherit;
    opacity: 0.72;
    max-width: 20ch;
  }

  html[data-flu-page-key="home"] .bento-post-art {
    position: relative;
    flex: 0 0 224px;
    width: 224px;
    height: 142px;
    max-width: 56%;
    margin: -14px -18px -14px 0;
    overflow: hidden;
  }

  html[data-flu-page-key="home"] .bento-post-art picture {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    pointer-events: none;
  }

  html[data-flu-page-key="home"] .bento-post-art img {
    display: block;
    height: 165px;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: right bottom;
    transform: translate(-14px, 38px);
    transform-origin: 100% 85%;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  html[data-flu-page-key="home"] .bento-post-hero:hover .bento-post-art img {
    transform: translate(-14px, 32px) scale(1.06);
  }

  html[data-flu-page-key="home"] .bento-matchea-hero {
    grid-column: 4;
    grid-row: 1 / span 2;
    min-height: 0;
    padding: 22px 20px 16px;
    gap: 8px;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
  }

  html[data-flu-page-key="home"] .bento-matchea-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    width: 100%;
    flex: 0 0 auto;
    padding-right: 4px;
  }

  html[data-flu-page-key="home"] .bento-matchea-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 1.55vw, 1.45rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
  }

  html[data-flu-page-key="home"] .bento-matchea-subtitle {
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.4;
    color: inherit;
    opacity: 0.72;
    max-width: 19ch;
  }

  html[data-flu-page-key="home"] .bento-matchea-art {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    padding: 6px 0 4px;
    overflow: hidden;
  }

  html[data-flu-page-key="home"] .bento-matchea-art img {
    width: min(100%, 250px);
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  html[data-flu-page-key="home"] .bento-matchea-hero:hover .bento-matchea-art img {
    transform: scale(1.03) translateY(-3px);
  }

  html[data-flu-page-key="home"] .sf-control-extra {
    max-width: 1020px;
    margin: 18px auto 0;
    text-align: left;
  }

  html[data-flu-page-key="home"] .home-overview-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
  }

  html[data-flu-page-key="home"] .home-overview-shell.has-summary {
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.55fr);
  }

  html[data-flu-page-key="home"] .home-overview-shell.has-summary.has-guide {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.35fr) minmax(280px, 0.88fr);
  }

  html[data-flu-page-key="home"] .home-overview-summary,
html[data-flu-page-key="home"] .home-overview-calendar,
html[data-flu-page-key="home"] .home-overview-guide {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  html[data-flu-page-key="home"] .home-overview-summary .modern-dashboard-card.usage-card {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  html[data-flu-page-key="home"] .home-overview-summary .card-body-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 1.45rem 1.45rem;
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-panel.card-body-modern {
    flex: 1;
    min-height: 0;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-card .home-calendar-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-intro,
html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-footer {
    flex-shrink: 0;
  }

  html[data-flu-page-key="home"] .home-overview-title {
    margin: 0 0 0.42rem;
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    letter-spacing: -0.03em;
  }

  html[data-flu-page-key="home"] .home-overview-subtitle {
    margin: 0;
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.98rem;
    line-height: 1.55;
  }

  html[data-flu-page-key="home"] .home-calendar-intro {
    margin-bottom: 1.35rem;
  }

  html[data-flu-page-key="home"] .home-calendar-card {
    min-height: 0;
  }

  /* Home overview panels — shared surface */
  html[data-flu-page-key="home"] .home-overview-summary .usage-card,
html[data-flu-page-key="home"] .home-overview-calendar .feature-card.calendar-card.home-calendar-card,
html[data-flu-page-key="home"] .home-overview-guide .feature-card.home-guide-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: var(--card-bg-dark, #2a2a2a) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    transform: none !important;
  }

  html[data-flu-page-key="home"] .home-overview-summary .usage-card::before,
html[data-flu-page-key="home"] .home-overview-calendar .feature-card.calendar-card.home-calendar-card::before,
html[data-flu-page-key="home"] .home-overview-guide .feature-card.home-guide-card::before {
    display: none !important;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .usage-card,
html[data-flu-page-key="home"] body.light-mode .home-overview-calendar .feature-card.calendar-card.home-calendar-card,
html[data-flu-page-key="home"] body.light-mode .home-overview-guide .feature-card.home-guide-card {
    background: var(--card-bg-light, #ffffff) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
  }

  /* Usage panel — fills column height, two equal zones */
  html[data-flu-page-key="home"] .home-overview-summary .home-usage-trial {
    flex-shrink: 0;
    margin-bottom: 1rem;
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-panel-head {
    flex-shrink: 0;
    margin: 0 0 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-panel-head {
    border-bottom-color: rgba(148, 163, 184, 0.28);
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-panel-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.95);
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-panel-title {
    color: #111827;
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-panel-plan {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-panel-plan {
    color: rgba(71, 85, 105, 0.9);
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-limits {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-limit {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-limit:last-child {
    border-bottom: none;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-limit {
    border-bottom-color: rgba(148, 163, 184, 0.22);
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-limit-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    min-height: 0;
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-limit-name {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-limit-name {
    color: rgba(100, 116, 139, 0.95);
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-limit-figure {
    margin: 0;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-limit-current {
    font-size: clamp(2rem, 4.5vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-limit-of {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-limit-current {
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-limit-of {
    color: rgba(100, 116, 139, 0.95);
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-limit-meter {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex-shrink: 0;
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-track {
    flex-shrink: 0;
    position: relative;
    display: block;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
    overflow: hidden;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-track {
    background: rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-track-fill {
    display: block;
    height: 100%;
    width: 0;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(
      90deg,
      rgba(124, 77, 255, 0.95) 0%,
      var(--brand-color-dark, #bb86fc) 45%,
      #d4b4ff 100%
    );
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.35);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-track-fill {
    background: var(--primary-gradient-light);
    box-shadow: 0 0 8px rgba(225, 48, 108, 0.22);
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-panel-foot {
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-panel-foot {
    border-top-color: rgba(148, 163, 184, 0.28);
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-upgrade {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  html[data-flu-page-key="home"] .home-overview-summary .home-usage-upgrade:hover {
    color: #fff;
    border-color: rgba(var(--brand-color-dark-rgb, 187, 134, 252), 0.45);
    background: rgba(var(--brand-color-dark-rgb, 187, 134, 252), 0.1);
    text-decoration: none;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-upgrade {
    color: #374151;
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.02);
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-summary .home-usage-upgrade:hover {
    color: #111827;
    border-color: rgba(var(--brand-color-light-rgb, 225, 48, 108), 0.35);
    background: rgba(var(--brand-color-light-rgb, 225, 48, 108), 0.06);
  }

  @media (max-width: 992px) {
    html[data-flu-page-key="home"] .home-overview-summary .usage-card,
html[data-flu-page-key="home"] .home-overview-summary .home-usage-panel.card-body-modern {
      height: auto;
    }

    html[data-flu-page-key="home"] .home-overview-summary .home-usage-limits {
      flex: 0 0 auto;
    }

    html[data-flu-page-key="home"] .home-overview-summary .home-usage-limit {
      flex: 0 0 auto;
      min-height: 7.5rem;
      padding: 1.15rem 0;
    }

    html[data-flu-page-key="home"] .home-overview-summary .home-usage-limit-current {
      font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
  }

  /* Calendar card (home) */
  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-card .card-body {
    padding: 1.35rem 1.35rem 1.25rem !important;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-calendar .home-calendar-title {
    color: #111827;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-intro {
    margin-bottom: 1.1rem;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-table {
    margin-bottom: 0;
    border-collapse: collapse;
    border-spacing: 0;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-table thead th {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    padding: 0.65rem 0.85rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-table tbody td {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.9rem;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    vertical-align: middle;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-table .table-row-hover:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    transform: none !important;
    box-shadow: none !important;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-loading {
    color: rgba(255, 255, 255, 0.65) !important;
    padding: 2rem 1rem !important;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-loading .spinner-border {
    color: var(--brand-color-dark, #bb86fc) !important;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-calendar .home-calendar-table thead th {
    color: rgba(71, 85, 105, 0.95) !important;
    border-bottom-color: rgba(148, 163, 184, 0.35) !important;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-calendar .home-calendar-table tbody td {
    color: #374151 !important;
    border-bottom-color: rgba(148, 163, 184, 0.2) !important;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-calendar .home-calendar-loading {
    color: rgba(71, 85, 105, 0.85) !important;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-calendar .home-calendar-loading .spinner-border {
    color: var(--brand-color-light, #e1306c) !important;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-footer {
    margin-top: 1.15rem;
    padding-top: 0.25rem;
    text-align: center;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-cta {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    box-shadow: none !important;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-cta:hover {
    transform: none !important;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-card.feature-card {
    padding: 0 !important;
  }

  html[data-flu-page-key="home"] .home-overview-calendar .home-calendar-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-calendar .home-calendar-empty-title {
    color: #1f2937;
  }

  html[data-flu-page-key="home"] .sf-plans-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  html[data-flu-page-key="home"] .sf-plans-link:hover {
    color: #ffffff;
    text-decoration: none;
  }

  html[data-flu-page-key="home"] body.light-mode .bento-card {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.1);
    color: #6b7280;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
  }

  html[data-flu-page-key="home"] body.light-mode .bento-card:hover {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.2);
    color: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  }

  html[data-flu-page-key="home"] body.light-mode .bento-card.bento-post-hero {
    border-color: rgba(124, 77, 255, 0.18);
  }

  html[data-flu-page-key="home"] body.light-mode .bento-card.bento-post-hero:hover {
    border-color: rgba(124, 77, 255, 0.3);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1), 0 0 18px rgba(225, 48, 108, 0.06);
  }

  html[data-flu-page-key="home"] body.light-mode .bento-post-title,
html[data-flu-page-key="home"] body.light-mode .bento-matchea-title {
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .sf-plans-link {
    color: #4b5563;
  }

  html[data-flu-page-key="home"] body.light-mode .sf-plans-link:hover {
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .home-overview-subtitle {
    color: rgba(51, 65, 85, 0.82);
  }

  @media (max-width: 1199.98px) {
    html[data-flu-page-key="home"] .home-overview-shell.has-summary.has-guide {
      grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
    }

    html[data-flu-page-key="home"] .home-overview-guide {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 992px) {
    html[data-flu-page-key="home"] .home-overview-shell.has-summary,
    html[data-flu-page-key="home"] .home-overview-shell.has-summary.has-guide {
      grid-template-columns: minmax(0, 1fr);
    }

    html[data-flu-page-key="home"] .home-overview-guide {
      grid-column: auto;
    }
  }

  @media (max-width: 480px) {
    html[data-flu-page-key="home"] .bento-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      padding: 0 2px;
    }

    html[data-flu-page-key="home"] .bento-card {
      min-height: 116px;
      padding: 16px 10px;
      gap: 10px;
    }

    html[data-flu-page-key="home"] .bento-post-hero {
      grid-column: span 2;
      grid-row: auto;
      flex-direction: row;
      align-items: center;
      height: 116px;
      min-height: 116px;
      max-height: 116px;
      padding: 12px;
      gap: 8px;
    }

    html[data-flu-page-key="home"] .bento-post-art {
      flex: 0 0 128px;
      width: 128px;
      max-width: 48%;
      height: 116px;
      margin: -12px -12px -12px 0;
    }

    html[data-flu-page-key="home"] .bento-post-art img {
      height: 130px;
      transform: translate(-10px, 30px);
    }

    html[data-flu-page-key="home"] .bento-post-hero:hover .bento-post-art img {
      transform: translate(-10px, 25px) scale(1.06);
    }

    html[data-flu-page-key="home"] .bento-post-title {
      font-size: 1.1rem;
    }

    html[data-flu-page-key="home"] .bento-post-subtitle {
      font-size: 0.78rem;
      max-width: 16ch;
    }

    html[data-flu-page-key="home"] .bento-matchea-hero {
      grid-column: span 2;
      grid-row: auto;
      min-height: 300px;
      padding: 20px 18px 14px;
    }

    html[data-flu-page-key="home"] .bento-matchea-art img {
      width: min(100%, 280px);
    }

    html[data-flu-page-key="home"] .bento-matchea-title {
      font-size: 1.35rem;
    }

    html[data-flu-page-key="home"] .bento-matchea-subtitle {
      font-size: 0.88rem;
      max-width: 24ch;
    }

    html[data-flu-page-key="home"] .home-overview-shell {
      gap: 18px;
    }

    html[data-flu-page-key="home"] .home-overview-summary .card-header-modern,
html[data-flu-page-key="home"] .home-overview-summary .card-body-modern {
      padding-left: 1.1rem;
      padding-right: 1.1rem;
    }

    html[data-flu-page-key="home"] .home-overview-title {
      font-size: 1.35rem;
    }

    html[data-flu-page-key="home"] .home-overview-subtitle {
      font-size: 0.92rem;
    }
  }

  html[data-flu-page-key="home"] .btn-glow {
    background: linear-gradient(45deg, #9147ff, #6b46c1);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(145, 71, 255, 0.5);
  }

  html[data-flu-page-key="home"] .btn-glow:hover {
    box-shadow: 0 0 20px rgba(145, 71, 255, 0.8);
    color: white;
    transform: translateY(-2px);
  }

  /* Modern Dashboard Styles */
  html[data-flu-page-key="home"] .modern-dashboard-section {
    position: relative;
    padding: 2rem 0;
  }

  html[data-flu-page-key="home"] .dashboard-section-header {
    margin-bottom: 3rem;
  }

  html[data-flu-page-key="home"] .header-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9147ff, #6b46c1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 12px 32px rgba(145, 71, 255, 0.3);
    position: relative;
  }

  html[data-flu-page-key="home"] .header-icon-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #9147ff, #6b46c1, #8a2be2);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  html[data-flu-page-key="home"] .header-icon-container:hover::before {
    opacity: 1;
  }

  html[data-flu-page-key="home"] .header-icon-container i {
    font-size: 2.5rem;
    color: white;
  }

  html[data-flu-page-key="home"] .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
  }

  html[data-flu-page-key="home"] .section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
  }

  html[data-flu-page-key="home"] .modern-dashboard-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }

  html[data-flu-page-key="home"] .modern-dashboard-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.05), rgba(107, 70, 193, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
  }

  html[data-flu-page-key="home"] .modern-dashboard-card:hover {
    border-color: rgba(145, 71, 255, 0.2);
  }

  html[data-flu-page-key="home"] .card-glow-effect {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.2), rgba(107, 70, 193, 0.2));
    border-radius: 26px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }



  html[data-flu-page-key="home"] .usage-glow {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 154, 0, 0.2));
  }

  html[data-flu-page-key="home"] .card-header-modern {
    padding: 2rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
  }

  html[data-flu-page-key="home"] .header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  html[data-flu-page-key="home"] .header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #9147ff, #6b46c1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(145, 71, 255, 0.3);
  }

  html[data-flu-page-key="home"] .header-icon i {
    font-size: 1.5rem;
    color: white;
  }

  html[data-flu-page-key="home"] .usage-icon {
    background: linear-gradient(135deg, #ff6b6b, #ff9a00);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
  }

  html[data-flu-page-key="home"] .header-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
  }

  html[data-flu-page-key="home"] .header-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
  }

  /* Dropdown flotante compacto - no ocupa espacio extra */
  html[data-flu-page-key="home"] .floating-period-selector {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    z-index: 999999;
    display: flex;
    align-items: center;
  }

  html[data-flu-page-key="home"] .custom-dropdown {
    position: relative;
  }

  html[data-flu-page-key="home"] .compact-dropdown-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    min-width: 130px;
  }

  html[data-flu-page-key="home"] .compact-dropdown-btn:hover {
    background: rgba(145, 71, 255, 0.15);
    border-color: rgba(145, 71, 255, 0.3);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(145, 71, 255, 0.2);
  }

  html[data-flu-page-key="home"] .custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    background: rgba(10, 12, 20, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(145, 71, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(145, 71, 255, 0.1);
    padding: 0.4rem;
    z-index: 9999999;
    min-width: 180px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  html[data-flu-page-key="home"] .custom-dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.15rem;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
  }

  html[data-flu-page-key="home"] .custom-dropdown-item:last-child {
    margin-bottom: 0;
  }

  html[data-flu-page-key="home"] .custom-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.25), rgba(145, 71, 255, 0.15));
    color: white;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(145, 71, 255, 0.3);
  }

  html[data-flu-page-key="home"] .custom-dropdown-item:active {
    transform: translateX(2px) scale(0.98);
  }

  html[data-flu-page-key="home"] .analytics-card .card-body-modern {
    display: flex;
    align-items: stretch;
    min-height: 320px;
    padding: 0 2rem 2rem;
  }

  html[data-flu-page-key="home"] .chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    flex: 1;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }



  html[data-flu-page-key="home"] .usage-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
  }

  html[data-flu-page-key="home"] .usage-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
  }

  html[data-flu-page-key="home"] .usage-badge.image-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(167, 139, 250, 0.08));
    border-color: rgba(139, 92, 246, 0.35);
    padding: 0.675rem 1.125rem;
    /* ~10% smaller than default */
  }

  html[data-flu-page-key="home"] .usage-count.image {
    color: #a78bfa;
    font-size: 1.35rem;
  }

  /* 10% smaller */
  html[data-flu-page-key="home"] .usage-total.image {
    color: rgba(167, 139, 250, 0.9);
    font-size: 1.08rem;
  }

  html[data-flu-page-key="home"] .usage-badge.image-badge .usage-separator {
    font-size: 1.08rem;
  }

  html[data-flu-page-key="home"] .usage-icon-mini {
    color: #a78bfa;
    font-size: 0.8rem;
    /* ~10% smaller */
    margin-right: 0.25rem;
  }

  html[data-flu-page-key="home"] .badge-row {
    display: flex;
    justify-content: flex-end;
    margin: 0.25rem 0 1rem;
  }

  html[data-flu-page-key="home"] .usage-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
  }

  html[data-flu-page-key="home"] .usage-separator {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
  }

  html[data-flu-page-key="home"] .usage-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
  }

  html[data-flu-page-key="home"] .card-body-modern {
    padding: 0 2rem 2rem;
    position: relative;
    z-index: 1;
  }

  html[data-flu-page-key="home"] .trial-banner {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
  }

  html[data-flu-page-key="home"] .trial-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  html[data-flu-page-key="home"] .trial-icon i {
    color: white;
    font-size: 1.1rem;
  }

  html[data-flu-page-key="home"] .trial-info strong {
    color: #ffc107;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
  }

  html[data-flu-page-key="home"] .trial-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
  }

  html[data-flu-page-key="home"] .trial-plan {
    color: #ffc107;
    font-weight: 600;
  }

  html[data-flu-page-key="home"] .trial-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  html[data-flu-page-key="home"] .trial-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }

  html[data-flu-page-key="home"] .progress-section {
    margin-bottom: 2rem;
  }

  html[data-flu-page-key="home"] .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }

  html[data-flu-page-key="home"] .progress-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
  }

  html[data-flu-page-key="home"] .progress-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6b6b;
  }

  html[data-flu-page-key="home"] .modern-progress-container {
    position: relative;
    height: 12px;
    margin-bottom: 1.5rem;
  }

  html[data-flu-page-key="home"] .progress-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }

  html[data-flu-page-key="home"] .progress-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff9a00);
    border-radius: 8px;
    transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
  }

  /* Image credits variant (purple) */
  html[data-flu-page-key="home"] .progress-track.image {
    background: rgba(167, 139, 250, 0.25);
  }

  html[data-flu-page-key="home"] .progress-fill.image {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  }

  html[data-flu-page-key="home"] .progress-indicator.image .indicator-dot {
    background: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
  }

  html[data-flu-page-key="home"] .progress-header.image .progress-percentage.image {
    color: #a78bfa;
  }

  html[data-flu-page-key="home"] .progress-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 8px;
    animation: flu-home-shimmer 2s infinite;
  }

  @keyframes flu-home-shimmer {
    0% {
      transform: translateX(-100%);
    }

    100% {
      transform: translateX(100%);
    }
  }

  html[data-flu-page-key="home"] .progress-indicator {
    position: absolute;
    top: -4px;
    height: 20px;
    width: 2px;
    transition: left 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  html[data-flu-page-key="home"] .indicator-dot {
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  }

  html[data-flu-page-key="home"] .progress-stats {
    display: flex;
    gap: 1.5rem;
  }

  html[data-flu-page-key="home"] .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  html[data-flu-page-key="home"] .stat-item i {
    color: #4caf50;
    font-size: 1rem;
  }

  html[data-flu-page-key="home"] .stat-item span {
    color: rgba(255, 255, 255, 0.8);
  }

  html[data-flu-page-key="home"] .plan-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
  }

  html[data-flu-page-key="home"] .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  html[data-flu-page-key="home"] .plan-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  html[data-flu-page-key="home"] .plan-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  html[data-flu-page-key="home"] .plan-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
  }

  html[data-flu-page-key="home"] .plan-badge.free {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.2), rgba(108, 117, 125, 0.1));
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
  }

  html[data-flu-page-key="home"] .plan-badge.basic {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 123, 255, 0.1));
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
  }

  html[data-flu-page-key="home"] .plan-badge.intermedio {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
  }

  html[data-flu-page-key="home"] .plan-badge.premium {
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.2), rgba(107, 70, 193, 0.1));
    color: #9147ff;
    border: 1px solid rgba(145, 71, 255, 0.3);
  }

  /* Text colors for plan names in dashboard */
  html[data-flu-page-key="home"] .plan-free-text {
    color: rgba(187, 134, 252, 0.92);
    font-weight: 600;
  }

  html[data-flu-page-key="home"] .plan-pyme-text {
    color: #9147ff;
    /* Instagram violeta */
    font-weight: 600;
  }

  html[data-flu-page-key="home"] .plan-intermedio-text {
    color: #405DE6;
    /* Instagram azul */
    font-weight: 600;
  }

  html[data-flu-page-key="home"] .plan-premium-text {
    background: linear-gradient(90deg, #FCAF45, #FF6600);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
  }

  html[data-flu-page-key="home"] .upgrade-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #9147ff, #6b46c1);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(145, 71, 255, 0.3);
  }

  html[data-flu-page-key="home"] .upgrade-btn:hover {
    color: white;
    background: linear-gradient(135deg, #8039e6, #5f35b3);
  }

  /* Responsive Design */
  @media (max-width: 1440px) and (min-width: 993px) {
    html[data-flu-page-key="home"] .hero {
      margin-bottom: 1.5rem !important;
    }

    html[data-flu-page-key="home"] .hero>.container {
      max-width: 1180px;
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }

    html[data-flu-page-key="home"] .hero-greeting {
      font-size: clamp(1.35rem, 2.4vw, 1.95rem);
      margin-bottom: 0.35rem;
    }

    html[data-flu-page-key="home"] .hero p {
      font-size: 0.95rem;
      margin-bottom: 0.75rem;
    }

    html[data-flu-page-key="home"] .hero .alert {
      max-width: 720px !important;
      padding: 0.85rem 1rem;
      font-size: 0.82rem !important;
      border-radius: 16px;
    }

    html[data-flu-page-key="home"] .sf-control-center {
      max-width: 960px;
      margin-bottom: 2.25rem;
    }

    html[data-flu-page-key="home"] .sf-control-title {
      font-size: clamp(1.45rem, 2.2vw, 1.85rem);
      margin-bottom: 6px;
    }

    html[data-flu-page-key="home"] .sf-control-subtitle {
      max-width: 760px;
      font-size: 0.95rem;
      margin: -4px auto 0.25rem;
    }

    html[data-flu-page-key="home"] .bento-grid {
      max-width: 960px;
      gap: 16px;
    }

    html[data-flu-page-key="home"] .bento-card {
      min-height: 118px;
      padding: 18px 12px;
      gap: 10px;
      border-radius: 16px;
    }

    html[data-flu-page-key="home"] .bento-icon {
      width: 30px;
      height: 30px;
    }

    html[data-flu-page-key="home"] .bento-label {
      font-size: 0.92rem;
    }

    html[data-flu-page-key="home"] .sf-control-extra {
      max-width: 960px;
      margin-top: 14px;
    }

    html[data-flu-page-key="home"] .modern-dashboard-section {
      padding: 1.25rem 0 0;
    }

    html[data-flu-page-key="home"] .modern-dashboard-card {
      border-radius: 20px;
    }

    html[data-flu-page-key="home"] .card-header-modern {
      padding: 1.4rem 1.4rem 1rem;
    }

    html[data-flu-page-key="home"] .card-body-modern {
      padding: 0 1.4rem 1.4rem;
    }

    html[data-flu-page-key="home"] .header-content {
      gap: 0.8rem;
    }

    html[data-flu-page-key="home"] .header-icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
    }

    html[data-flu-page-key="home"] .header-icon i {
      font-size: 1.2rem;
    }

    html[data-flu-page-key="home"] .header-text h3 {
      font-size: 1.15rem;
    }

    html[data-flu-page-key="home"] .header-text p {
      font-size: 0.82rem;
    }

    html[data-flu-page-key="home"] .analytics-card .card-body-modern {
      min-height: 280px;
      padding: 0 1.4rem 1.4rem;
    }

    html[data-flu-page-key="home"] .chart-container {
      min-height: 220px;
      padding: 1.25rem;
      border-radius: 14px;
    }

    html[data-flu-page-key="home"] .compact-dropdown-btn {
      min-width: 118px;
      padding: 0.42rem 0.65rem;
      font-size: 0.75rem;
    }

    html[data-flu-page-key="home"] .floating-period-selector {
      top: 1.15rem;
      right: 1.25rem;
    }

    html[data-flu-page-key="home"] .usage-badge {
      padding: 0.6rem 0.95rem;
      border-radius: 14px;
    }

    html[data-flu-page-key="home"] .usage-count {
      font-size: 1.25rem;
    }

    html[data-flu-page-key="home"] .usage-total,
html[data-flu-page-key="home"] .usage-separator {
      font-size: 1rem;
    }

    html[data-flu-page-key="home"] .progress-section {
      margin-bottom: 1.5rem;
    }

    html[data-flu-page-key="home"] .progress-label,
html[data-flu-page-key="home"] .progress-percentage {
      font-size: 0.98rem;
    }

    html[data-flu-page-key="home"] .modern-progress-container {
      height: 10px;
      margin-bottom: 1.15rem;
    }

    html[data-flu-page-key="home"] .indicator-dot {
      width: 10px;
      height: 10px;
      border-width: 2px;
      left: -4px;
    }

    html[data-flu-page-key="home"] .plan-section {
      padding-top: 1.1rem;
    }

    html[data-flu-page-key="home"] .upgrade-btn {
      padding: 0.6rem 1rem;
      font-size: 0.82rem;
    }

    html[data-flu-page-key="home"] #insights-section.container,
html[data-flu-page-key="home"] .container.mb-5:not(.home-overview-container) {
      max-width: 1140px;
    }
  }

  @media (max-width: 992px) {
    html[data-flu-page-key="home"] .modern-dashboard-card {
      margin-bottom: 2rem;
    }

    html[data-flu-page-key="home"] .card-header-modern {
      flex-direction: column;
      gap: 1rem;
      align-items: flex-start;
    }

    html[data-flu-page-key="home"] .usage-badges {
      align-self: flex-end;
    }
  }

  @media (max-width: 768px) {
    html[data-flu-page-key="home"] .section-title {
      font-size: 2rem;
    }

    html[data-flu-page-key="home"] .header-icon-container {
      width: 64px;
      height: 64px;
    }

    html[data-flu-page-key="home"] .header-icon-container i {
      font-size: 2rem;
    }

    html[data-flu-page-key="home"] .card-header-modern {
      padding: 1.5rem;
    }

    html[data-flu-page-key="home"] .card-body-modern {
      padding: 0 1.5rem 1.5rem;
    }

    html[data-flu-page-key="home"] .progress-stats {
      flex-direction: column;
      gap: 0.75rem;
    }

    html[data-flu-page-key="home"] .plan-header {
      flex-direction: column;
      gap: 1rem;
      align-items: flex-start;
    }
  }

/* Extracted template style block 7. */
html[data-flu-page-key="home"] .calendar-card,
html[data-flu-page-key="home"] .image-collection-card {
    border-radius: 12px !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 1;
  }

  /* Light mode styles for calendar card */
  html[data-flu-page-key="home"] body.light-mode .calendar-card,
html[data-flu-page-key="home"] body.light-mode .image-collection-card {
    background: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 20px 45px rgba(148, 163, 184, 0.25) !important;
  }

  /* Disable all hover effects for calendar card */
  html[data-flu-page-key="home"] .calendar-card:hover,
html[data-flu-page-key="home"] .feature-card.calendar-card:hover,
html[data-flu-page-key="home"] .image-collection-card:hover,
html[data-flu-page-key="home"] .feature-card.image-collection-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
  }

  html[data-flu-page-key="home"] .calendar-card:hover::before,
html[data-flu-page-key="home"] .feature-card.calendar-card:hover::before,
html[data-flu-page-key="home"] .image-collection-card:hover::before,
html[data-flu-page-key="home"] .feature-card.image-collection-card:hover::before {
    opacity: 0 !important;
  }

  html[data-flu-page-key="home"] body.light-mode .calendar-card:hover,
html[data-flu-page-key="home"] body.light-mode .feature-card.calendar-card:hover,
html[data-flu-page-key="home"] body.light-mode .image-collection-card:hover,
html[data-flu-page-key="home"] body.light-mode .feature-card.image-collection-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
  }

  /* Fix for image history dropdown positioning */
  html[data-flu-page-key="home"] .image-collection-card {
    /* Ensure dropdown can overflow outside card boundaries */
    contain: layout !important;
  }

  html[data-flu-page-key="home"] .image-collection-card .dropdown-menu {
    /* Ensure dropdown appears above all other content */
    z-index: 9999 !important;
    position: absolute !important;
    /* Allow dropdown to extend beyond card boundaries */
    transform: none !important;
  }

  html[data-flu-page-key="home"] .image-collection-card .modern-dropdown-menu.image-history-dropdown {
    /* Specific styling for image history dropdown */
    z-index: 99999 !important;
    position: absolute !important;
    margin-top: 0.5rem !important;
  }

  html[data-flu-page-key="home"] #storagePolicyAlert {
    margin-top: 1.5rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
  }

  html[data-flu-page-key="home"] body.light-mode #storagePolicyAlert {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.25);
    color: rgba(17, 24, 39, 0.85);
  }

  html[data-flu-page-key="home"] .upcoming-posts-header .text-white {
    font-weight: 600;
    /* Make title bolder */
  }

  html[data-flu-page-key="home"] .upcoming-posts-header .text-gradient {
    font-size: 1.1em;
    /* Slightly larger icon */
  }

  html[data-flu-page-key="home"] .table-modern {
    color: #EAEAEA;
    /* Lighter base text color for table content */
    border-collapse: separate;
    border-spacing: 0 10px;
    /* Increased spacing between rows */
    margin-top: 1rem;
    /* Add some space above the table */
  }

  html[data-flu-page-key="home"] .table-modern thead th {
    border: none;
    color: #B0B3B8;
    /* Lighter grey for header text */
    font-weight: 500;
    /* Medium weight */
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    /* Slightly smaller header text */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    /* Subtle bottom border for header */
  }

  html[data-flu-page-key="home"] .table-row-hover {
    transition: all 0.25s ease-in-out;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
  }

  html[data-flu-page-key="home"] .table-row-hover:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  }

  html[data-flu-page-key="home"] .table-row-hover td {
    padding: 1rem 1.25rem;
    /* Consistent padding */
    border: none;
    vertical-align: middle;
  }

  /* Styling for the "No hay publicaciones" message */
  html[data-flu-page-key="home"] #upcoming-posts-table td[colspan="4"] {
    text-align: center;
    padding: 2.5rem 1rem !important;
    /* More padding for emphasis */
    font-size: 1rem;
    color: #a0a0a0;
    /* Softer text color */
  }

  html[data-flu-page-key="home"] #upcoming-posts-table td[colspan="4"] i {
    font-size: 1.3rem;
    /* Larger icon */
    margin-bottom: 0.5rem;
    /* Space below icon if displayed as block or flex */
    display: block;
    /* Make icon block for margin-bottom to work well */
  }

  html[data-flu-page-key="home"] .social-icon-ig {
    color: #000;
    font-weight: 600;
    padding: 6px 12px;
    /* Slightly more padding */
    border-radius: 16px;
    /* Pill shape */
    font-size: 0.8rem;
    /* Consistent font size */
    min-width: 90px;
    /* Ensure consistent width */
    text-align: center;
  }

  html[data-flu-page-key="home"] .social-icon-fb {
    color: #3b5998;
    font-size: 1.2rem;
    margin-right: 5px;
  }

  html[data-flu-page-key="home"] .social-icon-ln {
    color: #0e76a8;
    font-size: 1.2rem;
    margin-right: 5px;
  }

  html[data-flu-page-key="home"] .social-icon-tk {
    color: #000000;
    font-size: 1.2rem;
    margin-right: 5px;
  }

  html[data-flu-page-key="home"] .status-pending {
    background: linear-gradient(45deg, #FF9800, #FFC107);
    color: #000;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 50px;
  }

  html[data-flu-page-key="home"] .status-published {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: #fff;
    /* White text on green */
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    min-width: 90px;
    text-align: center;
  }

  html[data-flu-page-key="home"] .status-error {
    background: linear-gradient(45deg, #F44336, #FF5252);
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    min-width: 90px;
    text-align: center;
  }

  html[data-flu-page-key="home"] .status-processing {
    background: linear-gradient(45deg, #FFC107, #FFD54F);
    color: #000;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    min-width: 90px;
    text-align: center;
  }

  html[data-flu-page-key="home"] .btn-action-edit,
html[data-flu-page-key="home"] .btn-action-cancel {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.3rem;
  }

  html[data-flu-page-key="home"] .btn-action-edit {
    background: rgba(145, 71, 255, 0.15);
    /* Slightly more visible bg */
    color: #A076F9;
    /* Brighter purple */
    border: 1px solid #A076F9;
    border-radius: 16px;
    transition: all 0.25s ease;
  }

  html[data-flu-page-key="home"] .btn-action-edit:hover {
    background: #A076F9;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(145, 71, 255, 0.3);
  }

  html[data-flu-page-key="home"] .btn-action-cancel {
    background: rgba(255, 71, 87, 0.15);
    color: #FF6B6B;
    /* Brighter red */
    border: 1px solid #FF6B6B;
    border-radius: 16px;
    transition: all 0.25s ease;
  }

  html[data-flu-page-key="home"] .btn-action-cancel:hover {
    background: #FF6B6B;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
  }

  html[data-flu-page-key="home"] .text-gradient {
    background: linear-gradient(90deg, #9147ff, #6b46c1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  html[data-flu-page-key="home"] .loading-row {
    background: rgba(255, 255, 255, 0.05);
  }

/* Extracted template style block 8. */
/* === Layout principal de la sección === */
  html[data-flu-page-key="home"] .features-grid-layout {
    align-items: stretch;
  }

  html[data-flu-page-key="home"] .features-hero-col {
    position: sticky;
    top: 2rem;
  }

  /* === Columna izquierda: hero === */
  html[data-flu-page-key="home"] .features-hero {
    padding: 1rem 0.5rem 2rem 0;
    -webkit-font-smoothing: antialiased;
  }

  html[data-flu-page-key="home"] .features-hero-eyebrow {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(187, 134, 252, 0.85);
    margin-bottom: 1.5rem;
  }

  html[data-flu-page-key="home"] .features-hero-heading {
    font-family: 'Montserrat', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.6rem;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }

  html[data-flu-page-key="home"] .features-hero-highlight {
    display: block;
    margin-top: 0.3rem;
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(135deg, #BB86FC 0%, #A052E0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] .features-hero-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 1.6rem;
  }

  html[data-flu-page-key="home"] .features-hero-divider::before {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(187, 134, 252, 0.55);
  }

  html[data-flu-page-key="home"] .features-hero-divider::after {
    content: "";
    flex: 8;
    height: 1px;
    background: rgba(255, 255, 255, 0.09);
  }

  html[data-flu-page-key="home"] .features-hero-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #BB86FC;
    font-size: 0.62rem;
    margin: 0 0.7rem;
    opacity: 0.85;
  }

  html[data-flu-page-key="home"] .features-hero-text {
    font-family: 'Roboto', sans-serif;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 0;
    max-width: 460px;
    text-wrap: pretty;
  }

  /* === Grid de la derecha === */
  html[data-flu-page-key="home"] .features-right-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  html[data-flu-page-key="home"] .features-plain-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  html[data-flu-page-key="home"] .features-row {
    display: grid;
    gap: 0;
  }

  html[data-flu-page-key="home"] .features-row-two {
    grid-template-columns: repeat(2, 1fr);
  }

  html[data-flu-page-key="home"] .features-row-three {
    grid-template-columns: repeat(3, 1fr);
  }

  /* === Celda destacada (01) ===
     Misma celda del grid plano, pero con jerarquía tipográfica mayor.
     Sin caja redondeada: destaca por escala, no por ser un objeto aparte. */
  html[data-flu-page-key="home"] .feature-cell-lead {
    padding-top: 0.4rem;
    padding-bottom: 1.9rem;
  }

  html[data-flu-page-key="home"] .feature-cell-lead .feature-cell-top {
    margin-bottom: 1.3rem;
  }

  html[data-flu-page-key="home"] .feature-cell-lead .icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  html[data-flu-page-key="home"] .feature-cell-lead .icon-wrapper i {
    font-size: 1.2rem;
  }

  html[data-flu-page-key="home"] .feature-cell-lead .feature-number {
    font-size: 0.84rem;
  }

  html[data-flu-page-key="home"] .feature-cell-lead .feature-title {
    font-size: 1.3rem;
    margin-bottom: 0.65rem;
  }

  html[data-flu-page-key="home"] .feature-cell-lead .feature-text {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.68);
    max-width: 52ch;
  }

  /* === Celdas planas (02-06) con divisores hairline === */
  html[data-flu-page-key="home"] .feature-cell {
    position: relative;
    padding: 1.6rem 1.5rem 1.5rem 0;
    transition-property: background-color, color;
    transition-duration: 0.25s;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  }

  /* Divisores verticales internos (entre columnas) */
  html[data-flu-page-key="home"] .features-row .feature-cell + .feature-cell {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Borde superior continuo de cada fila EXCEPTO la primera (01) */
  html[data-flu-page-key="home"] .features-row + .features-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
  }

  /* Borde inferior que cierra el grid */
  html[data-flu-page-key="home"] .features-plain-grid {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
  }

  /* === Top de celda (icono + número) === */
  html[data-flu-page-key="home"] .feature-cell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
  }

  html[data-flu-page-key="home"] .feature-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    color: rgba(187, 134, 252, 0.7);
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
  }

  /* === Ícono ===
     Sin borde/fondo por defecto (clean). En hover: glow + micro-movimiento (spring). */
  html[data-flu-page-key="home"] .icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
      background-color 0.3s cubic-bezier(0.2, 0, 0, 1),
      box-shadow 0.35s cubic-bezier(0.2, 0, 0, 1),
      transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
  }

  html[data-flu-page-key="home"] .icon-wrapper i {
    font-size: 1.05rem;
    color: #BB86FC;
    display: inline-block;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    transition:
      color 0.3s cubic-bezier(0.2, 0, 0, 1),
      transform 0.45s cubic-bezier(0.34, 1.45, 0.64, 1);
  }

  html[data-flu-page-key="home"] .feature-cell:hover .icon-wrapper {
    background: rgba(187, 134, 252, 0.14);
    box-shadow:
      0 0 0 1px rgba(187, 134, 252, 0.18),
      0 8px 18px rgba(124, 77, 255, 0.22);
    transform: translate3d(0, -3px, 0) scale(1.08);
  }

  html[data-flu-page-key="home"] .feature-cell:hover .icon-wrapper i {
    color: #C99BFF;
  }

  /* Toque distinto por feature (sin JS): cada ícono “hace algo” al hover */
  html[data-flu-page-key="home"] .features-row-one .feature-cell:hover .icon-wrapper i {
    /* 01 star-of-life: gira un cuarto */
    transform: scale(1.12) rotate(90deg);
  }

  html[data-flu-page-key="home"] .features-row-two .feature-cell:nth-child(1):hover .icon-wrapper i {
    /* 02 share: se abre un poco */
    transform: scale(1.14) rotate(-14deg);
  }

  html[data-flu-page-key="home"] .features-row-two .feature-cell:nth-child(2):hover .icon-wrapper i {
    /* 03 brush: pincelada */
    transform: scale(1.12) rotate(18deg) translate3d(1px, -1px, 0);
  }

  html[data-flu-page-key="home"] .features-row-three .feature-cell:nth-child(1):hover .icon-wrapper i {
    /* 04 calendar: saltito */
    transform: scale(1.12) translate3d(0, -3px, 0);
  }

  html[data-flu-page-key="home"] .features-row-three .feature-cell:nth-child(2):hover .icon-wrapper i {
    /* 05 fire: late un toque */
    transform: scale(1.18) translate3d(0, -2px, 0);
  }

  html[data-flu-page-key="home"] .features-row-three .feature-cell:nth-child(3):hover .icon-wrapper i {
    /* 06 paper-plane: despega */
    transform: scale(1.12) rotate(-18deg) translate3d(4px, -4px, 0);
  }

  @media (prefers-reduced-motion: reduce) {
    html[data-flu-page-key="home"] .icon-wrapper,
html[data-flu-page-key="home"] .icon-wrapper i {
      transition-duration: 0.01ms !important;
    }

    html[data-flu-page-key="home"] .feature-cell:hover .icon-wrapper,
html[data-flu-page-key="home"] .feature-cell:hover .icon-wrapper i,
html[data-flu-page-key="home"] .features-row-one .feature-cell:hover .icon-wrapper i,
html[data-flu-page-key="home"] .features-row-two .feature-cell:hover .icon-wrapper i,
html[data-flu-page-key="home"] .features-row-three .feature-cell:hover .icon-wrapper i {
      transform: none !important;
    }
  }

  /* === Tipografía de celda === */
  html[data-flu-page-key="home"] .feature-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.55rem;
    line-height: 1.3;
    letter-spacing: -0.005em;
    text-wrap: balance;
  }

  html[data-flu-page-key="home"] .feature-text {
    font-family: 'Roboto', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.9rem;
    text-wrap: pretty;
  }

  /* === Light mode ===
     Una sola tinta de acento (magenta) que reemplaza al violeta. */
  html[data-flu-page-key="home"] body.light-mode .features-hero {
    -webkit-font-smoothing: auto;
  }

  html[data-flu-page-key="home"] body.light-mode .features-hero-eyebrow {
    color: rgba(225, 48, 108, 0.9);
  }

  html[data-flu-page-key="home"] body.light-mode .features-hero-heading {
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .features-hero-highlight {
    background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .features-hero-divider::before {
    background: rgba(225, 48, 108, 0.5);
  }

  html[data-flu-page-key="home"] body.light-mode .features-hero-divider::after {
    background: rgba(15, 23, 42, 0.1);
  }

  html[data-flu-page-key="home"] body.light-mode .features-hero-star {
    color: #E1306C;
  }

  html[data-flu-page-key="home"] body.light-mode .features-hero-text {
    color: rgba(55, 65, 81, 0.82);
  }

  html[data-flu-page-key="home"] body.light-mode .features-row + .features-row {
    border-top-color: rgba(15, 23, 42, 0.1);
  }

  html[data-flu-page-key="home"] body.light-mode .features-plain-grid {
    border-bottom-color: rgba(15, 23, 42, 0.1);
  }

  html[data-flu-page-key="home"] body.light-mode .features-row .feature-cell + .feature-cell {
    border-left-color: rgba(15, 23, 42, 0.1);
  }

  html[data-flu-page-key="home"] body.light-mode .feature-number {
    color: rgba(225, 48, 108, 0.75);
  }

  html[data-flu-page-key="home"] body.light-mode .icon-wrapper i {
    color: #E1306C;
  }

  html[data-flu-page-key="home"] body.light-mode .feature-cell:hover .icon-wrapper {
    background: rgba(225, 48, 108, 0.12);
    box-shadow:
      0 0 0 1px rgba(225, 48, 108, 0.16),
      0 8px 18px rgba(225, 48, 108, 0.16);
  }

  html[data-flu-page-key="home"] body.light-mode .feature-cell:hover .icon-wrapper i {
    color: #F77737;
  }

  html[data-flu-page-key="home"] body.light-mode .feature-title {
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .feature-text {
    color: rgba(55, 65, 81, 0.68);
  }

  html[data-flu-page-key="home"] body.light-mode .feature-cell-lead .feature-text {
    color: rgba(55, 65, 81, 0.76);
  }

  /* === Responsive === */
  @media (max-width: 991.98px) {
    html[data-flu-page-key="home"] .features-hero-col {
      position: static;
      margin-bottom: 0.5rem;
    }

    html[data-flu-page-key="home"] .features-hero {
      padding: 0.5rem 0 1.5rem;
    }

    html[data-flu-page-key="home"] .features-hero-heading {
      font-size: clamp(1.85rem, 6vw, 2.5rem);
    }

    html[data-flu-page-key="home"] .features-hero-text {
      max-width: 100%;
    }

    html[data-flu-page-key="home"] .features-right-grid {
      gap: 1.5rem;
    }
  }

  @media (max-width: 767.98px) {
    html[data-flu-page-key="home"] .features-row-two,
html[data-flu-page-key="home"] .features-row-three {
      grid-template-columns: 1fr;
    }

    /* En móvil los divisores pasan a ser horizontales entre celdas */
    html[data-flu-page-key="home"] .features-row .feature-cell + .feature-cell {
      padding-left: 0;
      padding-top: 1.5rem;
      border-left: none;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    html[data-flu-page-key="home"] body.light-mode .features-row .feature-cell + .feature-cell {
      border-top-color: rgba(15, 23, 42, 0.1);
    }

    html[data-flu-page-key="home"] .feature-cell {
      padding: 1.5rem 0 1rem;
    }
  }

  @media (max-width: 575.98px) {
    html[data-flu-page-key="home"] .features-section.py-5.my-5 {
      padding-top: 2.5rem !important;
      padding-bottom: 2.5rem !important;
    }

    html[data-flu-page-key="home"] .feature-cell {
      padding: 1.4rem 0 1rem;
    }

    html[data-flu-page-key="home"] .feature-cell-lead {
      padding-top: 0.3rem;
      padding-bottom: 1.6rem;
    }

    html[data-flu-page-key="home"] .feature-title {
      font-size: 1.02rem;
    }

    html[data-flu-page-key="home"] .feature-cell-lead .feature-title {
      font-size: 1.18rem;
    }

    html[data-flu-page-key="home"] .feature-cell-lead .feature-text {
      font-size: 0.94rem;
    }
  }

/* Extracted template style block 9. */
/* ============================================
   AI CAROUSEL STYLES
   ============================================ */
  html[data-flu-page-key="home"] .ai-carousel-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: transparent;
  }

  /* Contenedor del carrusel */
  html[data-flu-page-key="home"] .ai-carousel-container {
    position: relative;
    height: 480px;
    margin-bottom: 3rem;
    perspective: 1800px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  html[data-flu-page-key="home"] .carousel-3d-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: flu-home-rotate-carousel 44s linear infinite;
    will-change: transform;
  }



  @keyframes flu-home-rotate-carousel {
    from {
      transform: rotateY(0deg);
    }

    to {
      transform: rotateY(360deg);
    }
  }

  /* Tarjetas de imagenes */
  html[data-flu-page-key="home"] .carousel-card {
    position: absolute;
    width: 229px;
    height: 299px;
    left: 50%;
    top: 50%;
    margin-left: -114px;
    margin-top: -150px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(145, 71, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    will-change: transform;
    contain: paint;
  }

  html[data-flu-page-key="home"] .carousel-card picture {
    display: block;
    width: 100%;
    height: 100%;
  }


  html[data-flu-page-key="home"] .carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    transform: translateZ(0);
    transition: transform 0.5s ease;
  }




  /* Contenido */
  html[data-flu-page-key="home"] .ai-carousel-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto 4rem;
  }

  html[data-flu-page-key="home"] .ai-carousel-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
  }

  html[data-flu-page-key="home"] .ai-carousel-title .gradient-text-hero {
    background: linear-gradient(135deg, #BB86FC 0%, #9147ff 50%, #7F00FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  html[data-flu-page-key="home"] .ai-carousel-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ============================================
     AI CAROUSEL TABS
     ============================================ */
  html[data-flu-page-key="home"] .ai-carousel-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
  }

  html[data-flu-page-key="home"] .ai-carousel-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 16px 40px;
    font-family: 'Roboto', -apple-system, sans-serif;
    font-size: 1.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  html[data-flu-page-key="home"] .ai-carousel-tab:hover {
    color: rgba(255, 255, 255, 0.75);
  }

  html[data-flu-page-key="home"] .ai-carousel-tab.active {
    color: #ffffff;
  }

  html[data-flu-page-key="home"] .ai-carousel-tab .tab-line {
    width: 0%;
    height: 2.5px;
    border-radius: 96px;
    background: linear-gradient(135deg, #bb86fc 0%, #7c4dff 100%);
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  html[data-flu-page-key="home"] .ai-carousel-tab.active .tab-line {
    width: 100%;
  }

  html[data-flu-page-key="home"] .ai-carousel-tab:not(.active):hover .tab-line {
    width: 40%;
    background: rgba(255, 255, 255, 0.25);
  }

  /* Light mode tabs */
  html[data-flu-page-key="home"] body.light-mode .ai-carousel-tab {
    color: rgba(15, 23, 42, 0.45);
  }

  html[data-flu-page-key="home"] body.light-mode .ai-carousel-tab:hover {
    color: rgba(15, 23, 42, 0.75);
  }

  html[data-flu-page-key="home"] body.light-mode .ai-carousel-tab.active {
    color: #0f172a;
  }

  html[data-flu-page-key="home"] body.light-mode .ai-carousel-tab .tab-line {
    background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
  }

  html[data-flu-page-key="home"] body.light-mode .ai-carousel-tab:not(.active):hover .tab-line {
    background: rgba(15, 23, 42, 0.15);
  }

  /* Responsive */
  @media (max-width: 768px) {
    html[data-flu-page-key="home"] .ai-carousel-section {
      padding: 4rem 1rem;
    }

    html[data-flu-page-key="home"] .ai-carousel-container {
      height: 440px;
      perspective: 1350px;
    }

    html[data-flu-page-key="home"] .carousel-3d-wrapper {
      width: 240px;
      height: 240px;
    }

    /* Cartas mas chicas + radio JS dinamico = sin solape entre vecinas. */
    html[data-flu-page-key="home"] .carousel-card {
      width: 152px;
      height: 209px;
      margin-left: -76px;
      margin-top: -104px;
    }

    html[data-flu-page-key="home"] body.light-mode .carousel-card {
      box-shadow:
        0 16px 32px rgba(15, 23, 42, 0.09),
        0 0 0 1px rgba(148, 163, 184, 0.32);
    }

    html[data-flu-page-key="home"] .ai-carousel-tabs {
      gap: 9px;
    }

    html[data-flu-page-key="home"] .ai-carousel-tab {
      padding: 14px 24px;
      font-size: 1.6rem;
    }
  }

  /* Light mode support */
  html[data-flu-page-key="home"] body.light-mode .ai-carousel-section {
    background: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .carousel-card {
    box-shadow:
      0 20px 40px rgba(15, 23, 42, 0.1),
      0 0 0 1px rgba(148, 163, 184, 0.35);
  }

  html[data-flu-page-key="home"] body.light-mode .ai-carousel-title {
    color: #1f2937;
  }

  html[data-flu-page-key="home"] body.light-mode .ai-carousel-title .gradient-text-hero {
    background: linear-gradient(135deg, #E1306C 0%, #F77737 55%, #F59E0B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .ai-carousel-description {
    color: #6b7280;
  }

/* Extracted template style block 10. */
html[data-flu-page-key="home"] #como-funciona {
    --hiw-card-0: #222224;
    --hiw-card-1: #1e1e20;
    --hiw-url-0: #242426;
    --hiw-url-1: #202022;
    --hiw-inset: #1a1a1c;
    --hiw-tab-bg: #1a1a1c;
    --hiw-tab-pill: #252033;
    --hiw-tab-border: #3a3a3d;
    --hiw-text: #ffffff;
    --hiw-text-url: #f0e3ff;
    --hiw-muted: #666666;
    --hiw-accent: #9159f7;
    --hiw-cursor-outline: #ffffff;
    --hiw-icon-bg: #252033;
    --hiw-skeleton-bar: #ffffff;
    --hiw-skeleton-bar-op: 0.9;
    --hiw-skeleton-line: #666666;
    --hiw-shadow-color: #000000;
    --hiw-shadow-opacity: 0.8;
    --hiw-stock-bg: #9159f7;
    --hiw-stock-text: #ffffff;
    /* Alineado a --primary-gradient-dark / violetas del tema noche (base.html) */
    --hiw-swatches-0: #bb86fc;
    --hiw-swatches-1: #7c4dff;
    --hiw-swatches-2: #5b26a0;
    /* Logo gradient colors (night) */
    --hiw-logo-0: #6F46E1;
    --hiw-logo-1: #8E66F0;
    --hiw-logo-dark: #5526CC;
    --hiw-logo-fill-1: #976DF7;
    --hiw-logo-fill-2: #7044E0;
  }

  html[data-flu-page-key="home"] body.light-mode #como-funciona {
    --hiw-card-0: #ffffff;
    --hiw-card-1: #f3f4f6;
    --hiw-url-0: #f9fafb;
    --hiw-url-1: #f3f4f6;
    --hiw-inset: #e5e7eb;
    --hiw-tab-bg: #f3f4f6;
    --hiw-tab-pill: #ffffff;
    --hiw-tab-border: rgba(225, 48, 108, 0.28);
    --hiw-text: #111827;
    --hiw-text-url: #111827;
    --hiw-muted: #6b7280;
    --hiw-accent: #e1306c;
    --hiw-cursor-outline: #ffffff;
    --hiw-icon-bg: #fce7f3;
    --hiw-skeleton-bar: #d1d5db;
    --hiw-skeleton-bar-op: 1;
    --hiw-skeleton-line: #9ca3af;
    --hiw-shadow-color: #0f172a;
    --hiw-shadow-opacity: 0.16;
    --hiw-stock-bg: #e1306c;
    --hiw-stock-text: #ffffff;
    --hiw-swatches-0: #e1306c;
    --hiw-swatches-1: #f77737;
    --hiw-swatches-2: #f59e0b;
    /* Logo gradient colors (day) */
    --hiw-logo-0: #EB3E32;
    --hiw-logo-1: #F77737;
    --hiw-logo-dark: #CF1E48;
    --hiw-logo-fill-1: #F59E0B;
    --hiw-logo-fill-2: #EC3D30;
  }

  /* Texto URL monospace: fill vía CSS (más fiable que var() solo en atributo fill del <text>) */
  html[data-flu-page-key="home"] #como-funciona svg .hiw-svg-url-text {
    fill: var(--hiw-text-url);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  html[data-flu-page-key="home"] #como-funciona svg .hiw-svg-url-text--lg {
    font-size: 22px;
  }

  html[data-flu-page-key="home"] #como-funciona svg .hiw-svg-url-text--sm {
    font-size: 20px;
  }

  /* SMIL no resuelve var() en values; el relleno del botón y el trazo del play usan CSS sync 10s */
  @keyframes flu-home-hiw-prod-submit-fill {
    0%,
    42% {
      fill: none;
    }

    44% {
      fill: var(--hiw-accent);
    }

    50%,
    100% {
      fill: none;
    }
  }

  @keyframes flu-home-hiw-prod-submit-stroke {
    0%,
    42% {
      stroke: var(--hiw-accent);
    }

    44% {
      stroke: var(--hiw-cursor-outline);
    }

    50%,
    100% {
      stroke: var(--hiw-accent);
    }
  }

  html[data-flu-page-key="home"] #como-funciona svg .hiw-prod-submit-circle {
    fill: none;
    stroke: var(--hiw-accent);
    stroke-width: 2px;
    animation: flu-home-hiw-prod-submit-fill 10s linear infinite;
  }

  html[data-flu-page-key="home"] #como-funciona svg .hiw-prod-submit-play {
    fill: none;
    stroke: var(--hiw-accent);
    stroke-width: 2px;
    stroke-linejoin: round;
    animation: flu-home-hiw-prod-submit-stroke 10s linear infinite;
  }

  html[data-flu-page-key="home"] .badge-pill-neon {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(145, 71, 255, 0.1);
    border: 1px solid rgba(145, 71, 255, 0.4);
    color: #BB86FC;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(145, 71, 255, 0.2);
  }

  html[data-flu-page-key="home"] .text-gradient-primary {
    background: linear-gradient(135deg, #BB86FC, #9147ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  html[data-flu-page-key="home"] .timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem 0;
  }

  html[data-flu-page-key="home"] .timeline-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    transform: translateX(-50%);
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(145, 71, 255, 0.18), 0 0 45px rgba(145, 71, 255, 0.12);
  }

  html[data-flu-page-key="home"] .timeline-center-line::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, transparent 10%, rgba(145, 71, 255, 0.25) 35%, rgba(145, 71, 255, 0.3) 50%, rgba(145, 71, 255, 0.25) 65%, transparent 90%);
    filter: blur(1px);
    opacity: 0.8;
  }

  html[data-flu-page-key="home"] .timeline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
    position: relative;
  }

  html[data-flu-page-key="home"] .timeline-content,
html[data-flu-page-key="home"] .timeline-spacer,
html[data-flu-page-key="home"] .timeline-visual {
    width: 45%;
  }

  html[data-flu-page-key="home"] .timeline-visual {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  html[data-flu-page-key="home"] .timeline-visual-inner {
    width: min(100%, 520px);
    margin-left: clamp(1rem, 3vw, 2.4rem);
    transform: scale(1.44);
    transform-origin: center center;
  }

  html[data-flu-page-key="home"] .timeline-website-orbit {
    width: 100%;
    aspect-ratio: 800 / 715;
  }

  html[data-flu-page-key="home"] .timeline-website-orbit svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  html[data-flu-page-key="home"] .timeline-marker {
    width: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  html[data-flu-page-key="home"] .marker-circle {
    width: 50px;
    height: 50px;
    background: #0f0f13;
    border: 2px solid #9147ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(145, 71, 255, 0.5), inset 0 0 10px rgba(145, 71, 255, 0.2);
    transition: all 0.3s ease;
  }

  html[data-flu-page-key="home"] .timeline-row.is-hovered .marker-circle {
    background: #9147ff;
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(145, 71, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  html[data-flu-page-key="home"] .glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }

  html[data-flu-page-key="home"] .glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(145, 71, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }

  html[data-flu-page-key="home"] .glass-card h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.8rem;
  }

  html[data-flu-page-key="home"] .glass-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  html[data-flu-page-key="home"] .connector-line {
    position: absolute;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, #9147ff, transparent);
    width: 60px;
    opacity: 0.5;
    transition: all 0.3s ease;
  }

  html[data-flu-page-key="home"] .content-left .glass-card {
    text-align: right;
  }

  html[data-flu-page-key="home"] .content-left .icon-box {
    margin-left: auto;
  }

  html[data-flu-page-key="home"] .content-left .connector-line {
    right: -60px;
    background: linear-gradient(90deg, transparent, #9147ff);
  }

  html[data-flu-page-key="home"] .content-right .glass-card {
    text-align: left;
  }

  html[data-flu-page-key="home"] .content-right .connector-line {
    left: -60px;
    background: linear-gradient(90deg, #9147ff, transparent);
  }

  html[data-flu-page-key="home"] .glass-card:hover .connector-line {
    opacity: 1;
    width: 70px;
    box-shadow: 0 0 10px rgba(145, 71, 255, 0.5);
  }

  html[data-flu-page-key="home"] .content-left .glass-card:hover .connector-line {
    right: -70px;
  }

  html[data-flu-page-key="home"] .content-right .glass-card:hover .connector-line {
    left: -70px;
  }

  @media (max-width: 768px) {
    html[data-flu-page-key="home"] .timeline-center-line {
      left: 20px;
    }

    html[data-flu-page-key="home"] .timeline-row {
      flex-direction: column;
      align-items: flex-start;
      margin-bottom: 3rem;
    }

    /* Mismo flujo en mobile: texto del paso → animación (paso 2 en desktop tiene visual primero en el DOM). */
    html[data-flu-page-key="home"] .timeline-marker {
      width: 40px;
      position: absolute;
      left: 0;
      top: 0;
    }

    html[data-flu-page-key="home"] .marker-circle {
      width: 40px;
      height: 40px;
      font-size: 1rem;
    }

    html[data-flu-page-key="home"] .timeline-spacer {
      display: none;
    }

    html[data-flu-page-key="home"] .timeline-content {
      width: 100%;
      padding-left: 60px;
      padding-top: 5px;
      order: 1;
    }

    html[data-flu-page-key="home"] .timeline-visual {
      width: 100%;
      padding-left: 60px;
      margin-top: 1.25rem;
      justify-content: flex-start;
      order: 2;
    }

    html[data-flu-page-key="home"] .timeline-visual-inner {
      margin-left: 0;
      width: min(100%, 460px);
      transform: scale(1.44);
      transform-origin: left center;
    }

    html[data-flu-page-key="home"] .content-left .glass-card,
html[data-flu-page-key="home"] .content-right .glass-card {
      text-align: left;
    }

    html[data-flu-page-key="home"] .content-left .icon-box {
      margin-left: 0;
    }

    html[data-flu-page-key="home"] .connector-line {
      display: none;
    }
  }

  html[data-flu-page-key="home"] body.light-mode .glass-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  html[data-flu-page-key="home"] body.light-mode .glass-card h4 {
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .glass-card p {
    color: #4b5563;
  }

  html[data-flu-page-key="home"] body.light-mode #como-funciona .text-white {
    color: #111827 !important;
  }

  html[data-flu-page-key="home"] body.light-mode .text-gradient-primary {
    background: linear-gradient(135deg, #E1306C, #F77737);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .marker-circle {
    background: #fff;
    color: #E1306C;
    border-color: #E1306C;
    box-shadow: 0 0 16px rgba(225, 48, 108, 0.25);
  }

  html[data-flu-page-key="home"] body.light-mode .timeline-center-line {
    background: rgba(225, 48, 108, 0.22);
  }

  html[data-flu-page-key="home"] body.light-mode .timeline-center-line::after {
    background: linear-gradient(to bottom, transparent 10%, rgba(225, 48, 108, 0.2) 35%, rgba(247, 119, 55, 0.24) 50%, rgba(225, 48, 108, 0.2) 65%, transparent 90%);
  }

  html[data-flu-page-key="home"] body.light-mode .timeline-row.is-hovered .marker-circle {
    background: #E1306C;
    color: #ffffff;
    box-shadow: 0 0 24px rgba(225, 48, 108, 0.35);
  }

  html[data-flu-page-key="home"] body.light-mode .connector-line {
    background: linear-gradient(90deg, #E1306C, transparent);
  }

  html[data-flu-page-key="home"] body.light-mode .content-left .connector-line {
    background: linear-gradient(90deg, transparent, #E1306C);
  }

  html[data-flu-page-key="home"] body.light-mode .glass-card:hover .connector-line {
    box-shadow: 0 0 10px rgba(225, 48, 108, 0.35);
  }

/* Extracted template style block 11. */
html[data-flu-page-key="home"] .business-types-section {
    padding: clamp(4rem, 8vw, 7.5rem) 0;
    position: relative;
    overflow: visible;
    isolation: isolate;
  }

  html[data-flu-page-key="home"] .business-types-stage {
    position: relative;
    min-height: clamp(560px, 56vw, 720px);
    display: grid;
    place-items: center;
    overflow: visible;
  }

  html[data-flu-page-key="home"] .business-center-copy {
    position: relative;
    z-index: 4;
    width: min(1180px, 92vw);
    text-align: center;
    transform: translate3d(0, -8px, 0);
  }

  html[data-flu-page-key="home"] .business-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: .45rem .95rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  html[data-flu-page-key="home"] .business-headline {
    margin: 0;
    font-size: clamp(2.4rem, 4.1vw, 3.45rem);
    font-weight: 900;
    text-align: center;
    line-height: .98;
    letter-spacing: 0;
    color: #f8f7fb;
    text-wrap: balance;
    text-shadow: 0 22px 70px rgba(0, 0, 0, .38);
  }

  html[data-flu-page-key="home"] .business-headline .highlight {
    background: none;
    color: #9147ff;
  }

  html[data-flu-page-key="home"] .business-pill {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    padding: 0 2.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background:
      linear-gradient(180deg, rgba(42, 42, 46, .96), rgba(24, 24, 28, .9)),
      linear-gradient(135deg, rgba(187, 134, 252, .1), transparent);
    box-shadow:
      0 26px 58px rgba(0, 0, 0, .34),
      0 9px 22px rgba(0, 0, 0, .22),
      inset 0 1px 0 rgba(255, 255, 255, .08);
    color: var(--tone);
    font-size: clamp(1.08rem, 2vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotate(var(--r));
    animation: flu-home-business-pop .72s cubic-bezier(.2, .9, .2, 1.18) both,
      flu-home-business-float 7.5s ease-in-out infinite;
    animation-delay: var(--delay), calc(var(--delay) + .55s);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
    cursor: default;
    will-change: transform;
  }

  html[data-flu-page-key="home"] .business-pill:hover {
    z-index: 7;
    border-color: rgba(255, 255, 255, .95);
    box-shadow:
      0 30px 65px rgba(9, 12, 24, .22),
      0 0 0 8px rgba(187, 134, 252, .12);
    transform: translate3d(var(--mx, 0), calc(var(--my, 0) - 8px), 0) rotate(var(--r)) scale(1.045);
  }

  html[data-flu-page-key="home"] .pill-label {
    display: block;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  html[data-flu-page-key="home"] .business-icon-bubble {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(68px, 7vw, 104px);
    height: clamp(68px, 7vw, 104px);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(42, 42, 46, .98), rgba(24, 24, 28, .94));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 23px 48px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #8b5cf6;
    font-size: clamp(1.5rem, 3vw, 2.45rem);
    transform: translate3d(var(--mx, 0), var(--my, 0), 0);
    animation: flu-home-business-pop .72s cubic-bezier(.2, .9, .2, 1.18) both,
      flu-home-bubble-bob 6.6s ease-in-out infinite;
    animation-delay: var(--delay), calc(var(--delay) + .5s);
    will-change: transform;
  }

  html[data-flu-page-key="home"] .business-icon-bubble--check {
    color: #ee8f72;
  }

  html[data-flu-page-key="home"] .business-icon-bubble--briefcase {
    color: #4f86c6;
  }

  html[data-flu-page-key="home"] .business-icon-bubble--send {
    color: #bd83d5;
  }

  html[data-flu-page-key="home"] .business-icon-bubble--shop {
    color: #df69a6;
  }

  /* Posiciones */
  html[data-flu-page-key="home"] .pos-1 {
    top: 8%;
    left: 5%;
  }

  html[data-flu-page-key="home"] .pos-2 {
    top: 14%;
    right: 5%;
  }

  html[data-flu-page-key="home"] .pos-3 {
    bottom: 4%;
    left: 10%;
  }

  html[data-flu-page-key="home"] .pos-4 {
    bottom: -4%;
    left: 42%;
  }

  html[data-flu-page-key="home"] .pos-5 {
    bottom: 4%;
    right: 3%;
  }

  html[data-flu-page-key="home"] .pos-6 {
    top: 64%;
    left: 4%;
  }

  html[data-flu-page-key="home"] .pos-7 {
    top: 58%;
    right: -1%;
  }

  html[data-flu-page-key="home"] .pos-icon-1 {
    top: 4%;
    left: 47%;
  }

  html[data-flu-page-key="home"] .pos-icon-2 {
    top: 3%;
    right: 20%;
  }

  html[data-flu-page-key="home"] .pos-icon-3 {
    top: 45%;
    left: -5%;
  }

  html[data-flu-page-key="home"] .pos-icon-4 {
    bottom: 1%;
    left: 64%;
  }

  @keyframes flu-home-business-pop {
    0% {
      opacity: 0;
      transform: translate3d(var(--mx, 0), calc(var(--my, 0) + 26px), 0) rotate(calc(var(--r, 0deg) - 6deg)) scale(.82);
    }

    100% {
      opacity: 1;
      transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotate(var(--r, 0deg)) scale(1);
    }
  }

  @keyframes flu-home-business-float {
    0% {
      transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotate(var(--r));
    }

    50% {
      transform: translate3d(var(--mx, 0), calc(var(--my, 0) - 15px), 0) rotate(calc(var(--r) + 4deg));
    }

    100% {
      transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotate(var(--r));
    }
  }

  @keyframes flu-home-bubble-bob {
    0%, 100% {
      transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotate(0deg);
    }

    50% {
      transform: translate3d(var(--mx, 0), calc(var(--my, 0) - 18px), 0) rotate(7deg);
    }
  }

  @media (max-width: 992px) {
    html[data-flu-page-key="home"] .business-types-stage {
      min-height: auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: .85rem;
      padding: 3.25rem 1rem;
    }

    html[data-flu-page-key="home"] .business-center-copy {
      flex: 0 0 100%;
      margin-bottom: 1rem;
    }

    html[data-flu-page-key="home"] .business-kicker {
      font-size: .72rem;
    }

    html[data-flu-page-key="home"] .business-headline {
      font-size: clamp(2.25rem, 12vw, 3.45rem);
    }

    html[data-flu-page-key="home"] .business-pill {
      position: static;
      min-height: 54px;
      padding: 0 1.25rem;
      font-size: 1rem;
      animation: flu-home-business-pop .55s cubic-bezier(.2, .9, .2, 1.18) both;
      transform: rotate(0deg) !important;
    }

    html[data-flu-page-key="home"] .business-icon-bubble {
      position: static;
      width: 58px;
      height: 58px;
      font-size: 1.35rem;
      animation: flu-home-business-pop .55s cubic-bezier(.2, .9, .2, 1.18) both;
    }
  }

  html[data-flu-page-key="home"] body.light-mode .business-headline {
    color: #17171c;
    text-shadow: none;
  }

  html[data-flu-page-key="home"] body.light-mode .business-headline .highlight {
    background: linear-gradient(110deg, #E1306C 0%, #F77737 52%, #f6c453 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .business-kicker {
    color: #8a435a;
    background: rgba(255, 255, 255, .82);
    border-color: rgba(225, 48, 108, .12);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  }

  html[data-flu-page-key="home"] body.light-mode .business-pill {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .9)),
      var(--tone-soft);
    border-color: rgba(255, 255, 255, .72);
    box-shadow:
      0 24px 55px rgba(9, 12, 24, .16),
      0 8px 20px rgba(9, 12, 24, .08),
      inset 0 1px 0 rgba(255, 255, 255, .9);
  }

  html[data-flu-page-key="home"] body.light-mode .business-icon-bubble {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(255, 255, 255, .72);
    box-shadow: 0 23px 48px rgba(9, 12, 24, .12), inset 0 1px 0 rgba(255, 255, 255, .95);
  }

  html[data-flu-page-key="home"] body.light-mode .business-icon-bubble--check {
    background: linear-gradient(180deg, #fff, #fff7f2);
  }

  html[data-flu-page-key="home"] body.light-mode .business-icon-bubble--briefcase {
    background: linear-gradient(180deg, #fff, #edf6ff);
  }

  html[data-flu-page-key="home"] body.light-mode .business-icon-bubble--send {
    background: linear-gradient(180deg, #fff, #f8efff);
  }

  html[data-flu-page-key="home"] body.light-mode .business-icon-bubble--shop {
    background: linear-gradient(180deg, #fff, #fff0f7);
  }

  @media (prefers-reduced-motion: reduce) {
    html[data-flu-page-key="home"] .business-pill,
html[data-flu-page-key="home"] .business-icon-bubble {
      animation: none;
    }
  }

/* Extracted template style block 12. */
html[data-flu-page-key="home"] .pricing-section {
    /* background: linear-gradient(135deg, rgba(26,32,44,0.8) 0%, rgba(45,55,72,0.8) 100%); */
    /* border-radius: 30px; */
    padding-top: 3rem;
    /* Mantener padding vertical */
    padding-bottom: 3rem;
    /* Mantener padding vertical */
    margin-top: 3rem;
    /* Mantener margen vertical */
    margin-bottom: 3rem;
    /* Mantener margen vertical */
  }

  html[data-flu-page-key="home"] .pricing-title-accent {
    color: #9147ff;
    font-weight: 700;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-title-accent {
    background: linear-gradient(90deg, #E1306C, #F77737);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] .pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: none !important;
  }

  html[data-flu-page-key="home"] .pricing-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  /* Premium plan - estilo fijo permanente, SIN animaciones */
  html[data-flu-page-key="home"] .pricing-card.premium-plan {
    border: 2px solid #FF8C00 !important;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.4), 0 0 40px rgba(252, 175, 69, 0.2) !important;
    transition: none !important;
    transform: translateZ(0);
    /* Mantener estado GPU */
  }

  html[data-flu-page-key="home"] .pricing-card.premium-plan:hover {
    border: 2px solid #FF8C00 !important;
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.5), 0 0 50px rgba(252, 175, 69, 0.3) !important;
    transform: translateZ(0) !important;
    /* Evitar cambios de transform */
    transition: none !important;
  }

  html[data-flu-page-key="home"] .pricing-header {
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 220px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
  }

  html[data-flu-page-key="home"] .pricing-title {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.35rem, 3.2vw, 2.85rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    color: white;
    /* Italic overhang + gradient clip safety */
    padding-right: 0.08em;
  }

  html[data-flu-page-key="home"] .pricing-lead {
    color: rgba(255, 255, 255, 0.8);
  }

  html[data-flu-page-key="home"] .plan-subtitle {
    color: rgba(187, 180, 210, 0.72);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 1.1rem !important;
  }

  /* Plan name colors - Instagram palette */
  html[data-flu-page-key="home"] .plan-pyme {
    color: #9147ff;
    /* Instagram violeta */
  }

  html[data-flu-page-key="home"] .plan-intermedio {
    color: #405DE6;
    /* Instagram azul */
  }

  html[data-flu-page-key="home"] .plan-premium {
    background: linear-gradient(90deg, #FCAF45, #FF6600);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  /* Intermedio card - signo $ azul */
  html[data-flu-page-key="home"] .pricing-card.intermedio-plan .currency {
    color: #405DE6 !important;
  }

  /* Premium card - elementos violetas a naranja/amarillo */
  html[data-flu-page-key="home"] .pricing-card.premium-plan .currency {
    color: #FCAF45 !important;
  }

  /* Info circles en Premium naranjas */
  html[data-flu-page-key="home"] .pricing-card.premium-plan .fa-info-circle {
    color: #FF8C00 !important;
  }

  /* Botón de suscripción en Premium */
  html[data-flu-page-key="home"] .pricing-card.premium-plan .btn-primary-gradient {
    background: linear-gradient(120deg, #FCAF45, #FF8C00) !important;
    background-size: 160% 160%;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4) !important;
  }

  html[data-flu-page-key="home"] .pricing-card.premium-plan .btn-primary-gradient:hover {
    background: linear-gradient(120deg, #FFB933, #FF9900) !important;
    background-size: 220% 220%;
    background-position: 100% 50%;
    box-shadow: 0 10px 32px rgba(255, 140, 0, 0.5) !important;
  }

  /* Precio en UNA línea horizontal: $8,800/mes */
  html[data-flu-page-key="home"] .pricing-price {
    text-align: center;
    white-space: nowrap;
  }

  html[data-flu-page-key="home"] .pricing-price .currency,
html[data-flu-page-key="home"] .pricing-price .amount,
html[data-flu-page-key="home"] .pricing-price .period {
    display: inline;
    vertical-align: baseline;
  }

  html[data-flu-page-key="home"] .pricing-price .currency {
    font-size: 1.5rem;
    color: #8A2BE2;
    font-weight: 600;
  }

  html[data-flu-page-key="home"] .pricing-price .amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -0.03em;
  }

  html[data-flu-page-key="home"] .pricing-price .period {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(187, 180, 210, 0.7);
  }

  html[data-flu-page-key="home"] .pricing-body {
    padding: 2rem;
    flex-grow: 1;
  }

  html[data-flu-page-key="home"] .pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  html[data-flu-page-key="home"] .pricing-features li {
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
  }

  html[data-flu-page-key="home"] .pricing-features .feature-category {
    display: block;
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 0 0.25rem;
    margin-top: 1rem;
  }

  html[data-flu-page-key="home"] .pricing-features .feature-category:first-child {
    margin-top: 0;
  }

  html[data-flu-page-key="home"] .feature-included {
    color: #4CAF50;
    margin-right: 0.75rem;
  }

  html[data-flu-page-key="home"] .feature-not-included {
    color: #666;
    margin-right: 0.75rem;
  }

  /* Estilos minimalistas para lista de features */
  html[data-flu-page-key="home"] .pricing-features-simple {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  html[data-flu-page-key="home"] .pricing-features-simple li {
    padding: 0.4rem 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
  }

  html[data-flu-page-key="home"] .pricing-features-simple li:last-child {
    border-bottom: none;
  }

  html[data-flu-page-key="home"] .pricing-features-simple li i.fa-check {
    flex-shrink: 0;
    margin-top: 0.2rem;
  }

  html[data-flu-page-key="home"] .feature-excluded {
    color: #F44336;
    margin-right: 0.75rem;
  }

  html[data-flu-page-key="home"] .pricing-features li i.fa-paint-brush {
    color: #29b6f6;
    margin-right: 0.75rem;
  }

  html[data-flu-page-key="home"] .pricing-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  html[data-flu-page-key="home"] .btn-primary-gradient {
    background: linear-gradient(45deg, #8A2BE2, #9400D3);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
  }

  html[data-flu-page-key="home"] .btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
  }

  /* Plan destacado */
  html[data-flu-page-key="home"] .pricing-card.featured {
    transform: scale(1.05);
    border-color: #FF3366;
    z-index: 1;
  }

  html[data-flu-page-key="home"] .pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
  }

  html[data-flu-page-key="home"] .pricing-card.featured .pricing-header {
    background: linear-gradient(45deg, #FF3366, #FF9933);
  }

  html[data-flu-page-key="home"] .pricing-note-text {
    color: rgba(255, 255, 255, 0.8);
  }

  html[data-flu-page-key="home"] .models-note {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.04);
    color: rgba(224, 224, 224, 0.75);
    padding: 0.8rem 1.6rem;
    border-radius: 20px;
    margin-bottom: 100px;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
  }

  html[data-flu-page-key="home"] .models-note a {
    color: #FF3366;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
  }

  html[data-flu-page-key="home"] .models-note a:hover {
    color: #FF9933;
    text-decoration: underline;
  }

  /* Custom Gradient for Gratis Badge */
  html[data-flu-page-key="home"] .bg-success-gradient {
    background: linear-gradient(45deg, #28a745, #218838) !important;
  }

  /* Improve legibility of strikethrough price */
  html[data-flu-page-key="home"] .pricing-price .period del {
    color: rgba(255, 255, 255, 0.6);
    /* Lighter gray for dark mode */
    opacity: 0.8;
    /* Slightly less prominent */
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-price .period del {
    color: rgba(0, 0, 0, 0.6);
    /* Darker gray for light mode */
  }

/* Extracted template style block 13. */
/* Global CSS Variables for Enhanced Containers */
  html[data-flu-page-key="home"] {
    /* Animation Timings */
    --animation-slow: 0.8s;
    --animation-medium: 0.4s;
    --animation-fast: 0.3s;
    --animation-curve: cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Enhanced Colors */
    --glow-primary: rgba(145, 71, 255, 0.3);
    --glow-secondary: rgba(107, 70, 193, 0.3);
    --glow-accent: rgba(187, 134, 252, 0.3);

    /* Shadows */
    --shadow-small: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 12px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px var(--glow-primary);

    /* Spacing */
    --container-padding: 2rem;
    --card-padding: 1.5rem;

    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
  }

  /* Responsive Adjustments */
  @media (max-width: 1440px) and (min-width: 993px) {

    html[data-flu-page-key="home"] .modern-hero-wrapper {
      min-height: 76vh;
      min-height: 76svh;
      margin-top: 0;
      margin-bottom: 0.5rem;
    }

    html[data-flu-page-key="home"] .modern-hero-container {
      max-width: 720px;
      padding: 1.75rem 1.25rem 2.5rem;
    }

    html[data-flu-page-key="home"] .modern-hero-subtitle {
      font-size: clamp(2.1rem, 4.6vw, 3rem);
      margin-bottom: 1.2rem;
    }

    html[data-flu-page-key="home"] .modern-hero-description {
      font-size: 1rem;
      max-width: 520px;
      margin-bottom: 2rem;
      line-height: 1.55;
    }

    html[data-flu-page-key="home"] .modern-hero-cta {
      margin-bottom: 0;
    }

    html[data-flu-page-key="home"] .btn-modern-primary {
      padding: 1rem 2.3rem;
      font-size: 1.04rem;
    }

    html[data-flu-page-key="home"] .cta-subtitle {
      font-size: 0.85rem;
    }

    html[data-flu-page-key="home"] .features-section.py-5.my-5 {
      padding-top: 3rem !important;
      padding-bottom: 3rem !important;
      margin-top: 2.25rem !important;
      margin-bottom: 2.25rem !important;
    }

    html[data-flu-page-key="home"] .display-4,
html[data-flu-page-key="home"] .gradient-heading {
      font-size: 2.2rem;
    }

    html[data-flu-page-key="home"] .lead,
html[data-flu-page-key="home"] .text-description {
      font-size: 1rem;
    }

    html[data-flu-page-key="home"] .features-hero-heading {
      font-size: clamp(1.85rem, 4vw, 2.4rem);
    }

    html[data-flu-page-key="home"] .feature-cell {
      padding: 1.4rem 1.25rem 1.3rem 0;
    }

    html[data-flu-page-key="home"] .features-row .feature-cell + .feature-cell {
      padding-left: 1.25rem;
    }

    html[data-flu-page-key="home"] .feature-cell-lead {
      padding-top: 0.3rem;
      padding-bottom: 1.7rem;
    }

    html[data-flu-page-key="home"] .feature-cell .icon-wrapper {
      width: 36px;
      height: 36px;
      border-radius: 10px;
    }

    html[data-flu-page-key="home"] .feature-cell-lead .icon-wrapper {
      width: 42px;
      height: 42px;
      border-radius: 12px;
    }

    html[data-flu-page-key="home"] .business-types-section {
      padding: 3rem 0;
    }

    html[data-flu-page-key="home"] .business-pill {
      font-size: 0.95rem;
      min-height: 58px;
      padding: 0 1.35rem;
    }

    html[data-flu-page-key="home"] .pricing-section,
html[data-flu-page-key="home"] .faq-section {
      padding-top: 3rem !important;
      padding-bottom: 3rem !important;
    }
  }

  @media (max-width: 768px) {

    /* Dashboard Container */
    html[data-flu-page-key="home"] .dashboard-card {
      padding: 1rem;
    }

    html[data-flu-page-key="home"] .animated-bg-pattern {
      animation-duration: 30s;
    }

    html[data-flu-page-key="home"] .floating-particles::before,
html[data-flu-page-key="home"] .floating-particles::after {
      width: 15px;
      height: 15px;
    }

    /* Insights Container */
    html[data-flu-page-key="home"] .insight-card .card-inner {
      min-height: 250px;
    }

    html[data-flu-page-key="home"] .card-back .card-body {
      padding: 1rem;
    }

    html[data-flu-page-key="home"] .hashtag-cloud {
      gap: 0.3rem;
    }

    /* Calendar Container */
    html[data-flu-page-key="home"] .enhanced-calendar {
      padding: 1rem;
    }

    html[data-flu-page-key="home"] .skeleton-loader {
      flex-direction: column;
      align-items: flex-start;
    }

    html[data-flu-page-key="home"] .skeleton-line {
      margin-bottom: 0.5rem;
      width: 100% !important;
    }

    html[data-flu-page-key="home"] .table-row-hover {
      font-size: 0.85rem;
    }

    html[data-flu-page-key="home"] .btn-action-edit,
html[data-flu-page-key="home"] .btn-action-cancel {
      padding: 0.3rem 0.6rem;
      font-size: 0.75rem;
    }
  }

  @media (max-width: 576px) {

    /* Further mobile optimizations */
    html[data-flu-page-key="home"] .gradient-heading,
html[data-flu-page-key="home"] .modern-hero-subtitle {
      font-size: 2.76rem;
    }

    html[data-flu-page-key="home"] .dashboard-container,
html[data-flu-page-key="home"] .insights-container,
html[data-flu-page-key="home"] .calendar-container {
      padding: 1rem 0;
    }

    html[data-flu-page-key="home"] .floating-card {
      animation: none;
    }

    html[data-flu-page-key="home"] .insight-card:hover .card-inner {
      transform: none;
    }

    html[data-flu-page-key="home"] .card-front,
html[data-flu-page-key="home"] .card-back {
      position: static;
      transform: none !important;
    }

    html[data-flu-page-key="home"] .card-back {
      display: none;
    }

    html[data-flu-page-key="home"] .table-modern {
      font-size: 0.8rem;
    }

    html[data-flu-page-key="home"] .status-pending,
html[data-flu-page-key="home"] .status-published,
html[data-flu-page-key="home"] .status-error,
html[data-flu-page-key="home"] .status-processing {
      padding: 4px 8px;
      font-size: 0.7rem;
    }
  }

  /* Accessibility Improvements */
  @media (prefers-reduced-motion: reduce) {

    html[data-flu-page-key="home"] *,
html[data-flu-page-key="home"] *::before,
html[data-flu-page-key="home"] *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    html[data-flu-page-key="home"] .floating-card,
html[data-flu-page-key="home"] .animated-bg-pattern,
html[data-flu-page-key="home"] .mesh-gradient,
html[data-flu-page-key="home"] .calendar-bg-effects {
      animation: none !important;
    }
  }

  /* High Contrast Mode Support */
  @media (prefers-contrast: high) {

    html[data-flu-page-key="home"] .dashboard-card,
html[data-flu-page-key="home"] .insight-card,
html[data-flu-page-key="home"] .calendar-card,
html[data-flu-page-key="home"] .image-collection-card {
      border-width: 2px;
      border-color: rgba(255, 255, 255, 0.3);
    }

    html[data-flu-page-key="home"] .gradient-border,
html[data-flu-page-key="home"] .card-glow {
      display: none;
    }
  }

  /* Ensure Image History sits above Insights */
  html[data-flu-page-key="home"] .image-history-section-new {
    position: relative;
    z-index: 2;
    /* ensure the section stacks above insights cards */
  }

  html[data-flu-page-key="home"] .image-history-section-new .image-history-dropdown {
    z-index: 1040 !important;
    /* above cards, below modals (1055) */
  }

  /* Hide default Bootstrap caret on our modern dropdown buttons to avoid double arrows */
  html[data-flu-page-key="home"] .modern-dropdown-btn.dropdown-toggle::after {
    display: none !important;
  }

  /* Optional: ensure our chevron icon has consistent sizing/alignment */
  html[data-flu-page-key="home"] .modern-dropdown-btn .dropdown-chevron {
    margin-left: 0.25rem;
    font-size: 0.9em;
    line-height: 1;
  }

  /* Print Styles */
  @media print {

    html[data-flu-page-key="home"] .animated-bg-pattern,
html[data-flu-page-key="home"] .floating-particles,
html[data-flu-page-key="home"] .mesh-gradient,
html[data-flu-page-key="home"] .calendar-bg-effects,
html[data-flu-page-key="home"] .gradient-border,
html[data-flu-page-key="home"] .card-glow {
      display: none !important;
    }

    html[data-flu-page-key="home"] .dashboard-card,
html[data-flu-page-key="home"] .insight-card,
html[data-flu-page-key="home"] .calendar-card {
      box-shadow: none !important;
      border: 1px solid #ccc !important;
    }
  }

/* Extracted template style block 14. */
/* Light mode specific overrides */
  html[data-flu-page-key="home"] body.light-mode .hero .hero-main-heading,
html[data-flu-page-key="home"] body.light-mode .hero .hero-greeting {
    color: #EAEAEA;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  html[data-flu-page-key="home"] body.light-mode .hero p {
    color: rgba(230, 230, 230, 0.85);
  }

  html[data-flu-page-key="home"] body.light-mode .hero .hero-guest-heading,
html[data-flu-page-key="home"] body.light-mode .hero .hero-guest-subtitle {
    color: #EAEAEA;
  }

  html[data-flu-page-key="home"] body.light-mode .beta-tag,
html[data-flu-page-key="home"] body.light-mode .gradient-text-hero {
    background: linear-gradient(135deg, #F97316 0%, #FB923C 50%, #FACC15 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  html[data-flu-page-key="home"] body.light-mode .alert-info {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(148, 163, 184, 0.4);
    color: rgba(30, 41, 59, 0.85);
  }

  html[data-flu-page-key="home"] body.light-mode .alert-info .alert-link {
    color: #4338ca;
  }

  html[data-flu-page-key="home"] body.light-mode .alert-info .alert-link:hover {
    color: #312e81;
  }

  html[data-flu-page-key="home"] body.light-mode #imageHistoryLoading p,
html[data-flu-page-key="home"] body.light-mode #imageHistoryEmpty p {
    color: rgba(55, 65, 81, 0.8);
  }

  html[data-flu-page-key="home"] body.light-mode #imageHistoryEmpty .text-white {
    color: #111827 !important;
  }

  html[data-flu-page-key="home"] body.light-mode .image-history-dropdown .btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.6);
    color: rgba(30, 41, 59, 0.85);
    background: rgba(226, 232, 240, 0.35);
  }

  html[data-flu-page-key="home"] body.light-mode .image-history-dropdown .btn-outline-secondary:hover {
    background: rgba(226, 232, 240, 0.6);
    border-color: rgba(100, 116, 139, 0.6);
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .image-history-dropdown .dropdown-divider {
    border-color: rgba(148, 163, 184, 0.4);
  }

  html[data-flu-page-key="home"] body.light-mode .image-history-section-new .text-muted {
    color: rgba(55, 65, 81, 0.75) !important;
  }

  html[data-flu-page-key="home"] body.light-mode .howitworks-alt {
    background: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .hiw-heading {
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .hiw-sub {
    color: rgba(55, 65, 81, 0.75);
  }

  html[data-flu-page-key="home"] body.light-mode .hiw-pill {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    color: #1f2937;
  }

  html[data-flu-page-key="home"] body.light-mode .hiw-timeline::before {
    background: rgba(148, 163, 184, 0.4);
  }

  html[data-flu-page-key="home"] body.light-mode .hiw-card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(203, 213, 225, 0.8);
    color: rgba(30, 41, 59, 0.88);
  }

  html[data-flu-page-key="home"] body.light-mode .hiw-card h5 {
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .hiw-card p {
    color: rgba(55, 65, 81, 0.78);
  }

  html[data-flu-page-key="home"] body.light-mode .modern-dashboard-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 20px 45px rgba(148, 163, 184, 0.25);
  }

  html[data-flu-page-key="home"] body.light-mode .modern-dashboard-card::before {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.07), rgba(99, 102, 241, 0.05));
  }

  html[data-flu-page-key="home"] body.light-mode .card-glow-effect,
html[data-flu-page-key="home"] body.light-mode .card-glow-effect.usage-glow {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(99, 102, 241, 0.1));
  }

  html[data-flu-page-key="home"] body.light-mode .header-text h3 {
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .header-text p {
    color: rgba(55, 65, 81, 0.75);
  }

  html[data-flu-page-key="home"] body.light-mode .compact-dropdown-btn {
    background: rgba(226, 232, 240, 0.6);
    border-color: rgba(148, 163, 184, 0.6);
    color: #1f2937;
  }

  html[data-flu-page-key="home"] body.light-mode .compact-dropdown-btn:hover {
    background: rgba(165, 180, 252, 0.45);
    border-color: rgba(99, 102, 241, 0.5);
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .custom-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 32px rgba(100, 116, 139, 0.2);
  }

  html[data-flu-page-key="home"] body.light-mode .custom-dropdown-item {
    color: #1f2937;
  }

  html[data-flu-page-key="home"] body.light-mode .custom-dropdown-item:hover {
    background: rgba(129, 140, 248, 0.15);
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .chart-container {
    background: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.35);
  }

  html[data-flu-page-key="home"] body.light-mode .usage-badge {
    background: rgba(226, 232, 240, 0.6);
    border-color: rgba(148, 163, 184, 0.4);
  }

  html[data-flu-page-key="home"] body.light-mode .usage-badge.image-badge {
    background: rgba(199, 210, 254, 0.45);
    border-color: rgba(129, 140, 248, 0.55);
  }

  html[data-flu-page-key="home"] body.light-mode .usage-separator {
    color: rgba(71, 85, 105, 0.55);
  }

  html[data-flu-page-key="home"] body.light-mode .usage-total {
    color: rgba(30, 64, 175, 0.85);
  }

  html[data-flu-page-key="home"] body.light-mode .sf-control-center .gradient-heading,
html[data-flu-page-key="home"] body.light-mode #insights-section .gradient-heading,
html[data-flu-page-key="home"] body.light-mode #home-calendar-heading.home-calendar-title,
html[data-flu-page-key="home"] body.light-mode #home-calendar-heading.gradient-heading,
html[data-flu-page-key="home"] body.light-mode .home-overview-calendar .gradient-heading,
html[data-flu-page-key="home"] body.light-mode .recent-ads-title.gradient-heading {
    background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .feature-icon {
    background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .header-icon {
    background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
    box-shadow: 0 8px 24px rgba(225, 48, 108, 0.28);
  }

  html[data-flu-page-key="home"] body.light-mode .usage-icon {
    background: linear-gradient(135deg, #F77737 0%, #F59E0B 100%);
    box-shadow: 0 8px 24px rgba(247, 119, 55, 0.28);
  }

  html[data-flu-page-key="home"] body.light-mode .progress-label {
    color: #1f2937;
  }

  html[data-flu-page-key="home"] body.light-mode .progress-percentage {
    color: #E1306C;
  }

  html[data-flu-page-key="home"] body.light-mode .progress-track {
    background: rgba(148, 163, 184, 0.35);
  }

  html[data-flu-page-key="home"] body.light-mode .progress-fill {
    background: linear-gradient(90deg, #E1306C 0%, #F77737 100%);
  }

  html[data-flu-page-key="home"] body.light-mode .indicator-dot {
    background: #E1306C;
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(225, 48, 108, 0.35);
  }

  html[data-flu-page-key="home"] body.light-mode .progress-track.image {
    background: rgba(245, 158, 11, 0.24);
  }

  html[data-flu-page-key="home"] body.light-mode .progress-fill.image {
    background: linear-gradient(90deg, #F77737 0%, #F59E0B 100%);
  }

  html[data-flu-page-key="home"] body.light-mode .progress-indicator.image .indicator-dot {
    background: #F77737;
    box-shadow: 0 2px 8px rgba(247, 119, 55, 0.36);
  }

  html[data-flu-page-key="home"] body.light-mode .progress-header.image .progress-percentage.image {
    color: #F77737;
  }

  html[data-flu-page-key="home"] body.light-mode .plan-section {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
  }

  html[data-flu-page-key="home"] body.light-mode .plan-label {
    color: rgba(71, 85, 105, 0.92);
  }

  html[data-flu-page-key="home"] body.light-mode .plan-free-text,
html[data-flu-page-key="home"] body.light-mode .plan-pyme-text,
html[data-flu-page-key="home"] body.light-mode .plan-intermedio-text {
    color: #E1306C;
  }

  html[data-flu-page-key="home"] body.light-mode .plan-premium-text {
    background: linear-gradient(90deg, #E1306C, #F77737);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .upgrade-btn {
    background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
    box-shadow: 0 4px 16px rgba(225, 48, 108, 0.3);
    color: #ffffff;
  }

  html[data-flu-page-key="home"] body.light-mode .upgrade-btn:hover {
    background: linear-gradient(135deg, #c2185b 0%, #ea580c 100%);
    color: #ffffff;
  }

  html[data-flu-page-key="home"] body.light-mode #imageHistoryLoading .spinner-border.text-primary,
html[data-flu-page-key="home"] body.light-mode .image-history-dropdown .btn-primary {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  }

  html[data-flu-page-key="home"] body.light-mode .trial-banner {
    background: rgba(254, 249, 195, 0.5);
    border-color: rgba(250, 204, 21, 0.6);
  }

  html[data-flu-page-key="home"] body.light-mode .trial-info strong {
    color: #ca8a04;
  }

  html[data-flu-page-key="home"] body.light-mode .trial-info p {
    color: rgba(55, 65, 81, 0.85);
  }

  html[data-flu-page-key="home"] body.light-mode .trial-plan {
    color: #b45309;
  }

  html[data-flu-page-key="home"] body.light-mode .insight-card {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid rgba(203, 213, 225, 0.8) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html[data-flu-page-key="home"] body.light-mode .insight-card::before {
    background: none !important;
    display: none !important;
  }

  html[data-flu-page-key="home"] body.light-mode .insight-card .text-white {
    color: #111827 !important;
  }

  html[data-flu-page-key="home"] body.light-mode .insight-card .card-body {
    color: rgba(55, 65, 81, 0.85);
  }

  html[data-flu-page-key="home"] body.light-mode .insights-status {
    color: rgba(55, 65, 81, 0.86);
  }

  html[data-flu-page-key="home"] body.light-mode .insights-status.is-retrying {
    color: #c2410c;
  }

  html[data-flu-page-key="home"] body.light-mode .calendar-card .text-white,
html[data-flu-page-key="home"] body.light-mode .calendar-card .text-white span {
    color: #111827 !important;
  }

  html[data-flu-page-key="home"] body.light-mode .image-collection-card .text-white,
html[data-flu-page-key="home"] body.light-mode .image-collection-card .text-white span {
    color: #111827 !important;
  }

  html[data-flu-page-key="home"] body.light-mode .image-collection-card .text-muted {
    color: rgba(55, 65, 81, 0.7) !important;
  }

  html[data-flu-page-key="home"] body.light-mode .table-modern {
    color: #1f2937;
  }

  html[data-flu-page-key="home"] body.light-mode .table-modern thead th {
    color: rgba(30, 41, 59, 0.7);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  }

  html[data-flu-page-key="home"] body.light-mode .table-row-hover {
    background: rgba(226, 232, 240, 0.45);
  }

  html[data-flu-page-key="home"] body.light-mode .table-row-hover:hover {
    background: rgba(226, 232, 240, 0.85);
    box-shadow: 0 8px 16px rgba(148, 163, 184, 0.2);
  }

  html[data-flu-page-key="home"] body.light-mode #upcoming-posts-table td[colspan="4"] {
    color: rgba(71, 85, 105, 0.85);
  }

  html[data-flu-page-key="home"] body.light-mode .features-section .lead.text-light {
    color: rgba(55, 65, 81, 0.8) !important;
  }

  html[data-flu-page-key="home"] body.light-mode .feature-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.25);
  }

  html[data-flu-page-key="home"] body.light-mode .feature-card::before {
    background: rgba(99, 102, 241, 0.05);
  }

  html[data-flu-page-key="home"] body.light-mode .feature-title {
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .feature-description {
    color: rgba(55, 65, 81, 0.78);
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.25);
    transition: none !important;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-card:hover {
    transform: none !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.25) !important;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-card.premium-plan,
html[data-flu-page-key="home"] body.light-mode .pricing-card.premium-plan:hover {
    border: 2px solid #FF8C00 !important;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.4), 0 0 40px rgba(252, 175, 69, 0.2) !important;
    transform: none !important;
    transition: none !important;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  }

  /* FREE only — do not override .plan-pyme / .plan-intermedio / .plan-premium */
  html[data-flu-page-key="home"] body.light-mode .pricing-title:not(.plan-pyme):not(.plan-intermedio):not(.plan-premium) {
    color: #111827;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-title.plan-pyme {
    color: #9147ff;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-title.plan-intermedio {
    color: #405DE6;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-title.plan-premium {
    background: linear-gradient(90deg, #FCAF45, #FF6600);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .plan-subtitle {
    color: rgba(100, 90, 120, 0.72) !important;
  }

  html[data-flu-page-key="home"] body.light-mode .amount {
    color: #0f172a;
  }

  html[data-flu-page-key="home"] body.light-mode .period {
    color: rgba(51, 65, 85, 0.8);
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-features li {
    color: rgba(55, 65, 81, 0.85);
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-features .feature-category {
    color: #1f2937;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-lead {
    color: rgba(55, 65, 81, 0.82) !important;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-features-simple li {
    color: rgba(55, 65, 81, 0.86);
    border-bottom-color: rgba(148, 163, 184, 0.22);
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-price .currency {
    color: #E1306C;
  }

  html[data-flu-page-key="home"] body.light-mode .currency-small,
html[data-flu-page-key="home"] body.light-mode .amount-striked {
    color: rgba(71, 85, 105, 0.62);
  }

  html[data-flu-page-key="home"] body.light-mode .amount.discounted {
    color: #E1306C !important;
    text-shadow: none;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.98) 100%);
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-footer .btn-primary-gradient {
    background: linear-gradient(135deg, #E1306C, #F77737, #F59E0B);
    box-shadow:
      0 8px 24px rgba(225, 48, 108, 0.25),
      0 0 0 1px rgba(225, 48, 108, 0.18);
    color: #ffffff;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-footer .btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow:
      0 12px 32px rgba(247, 119, 55, 0.32),
      0 0 0 1px rgba(247, 119, 55, 0.22);
    color: #ffffff;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-footer .btn-outline-success:disabled,
html[data-flu-page-key="home"] body.light-mode .pricing-footer .btn-outline-success.disabled {
    color: rgba(22, 101, 52, 0.85);
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(240, 253, 244, 0.6);
    opacity: 1;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-note,
html[data-flu-page-key="home"] body.light-mode .pricing-note-text {
    color: rgba(71, 85, 105, 0.88);
  }

  html[data-flu-page-key="home"] body.light-mode .bf-top-strip {
    background: linear-gradient(90deg, #E1306C, #F77737, #F59E0B);
  }

  html[data-flu-page-key="home"] body.light-mode .bf-strip-text,
html[data-flu-page-key="home"] body.light-mode .bf-strip-date {
    color: #ffffff;
  }

  html[data-flu-page-key="home"] body.light-mode .bf-section-badge {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.12), rgba(247, 119, 55, 0.14));
    border-color: rgba(225, 48, 108, 0.3);
    color: #9f1239;
  }

  html[data-flu-page-key="home"] body.light-mode .bf-badge-text {
    color: #9f1239;
  }

  html[data-flu-page-key="home"] body.light-mode .pricing-card.bf-promo {
    border-color: rgba(225, 48, 108, 0.35) !important;
    box-shadow: 0 0 24px rgba(225, 48, 108, 0.16);
  }

  html[data-flu-page-key="home"] body.light-mode .bf-card-badge {
    background: linear-gradient(135deg, #E1306C, #F77737);
  }

  html[data-flu-page-key="home"] body.light-mode .models-note {
    background-color: rgba(226, 232, 240, 0.7);
    color: rgba(55, 65, 81, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
  }

  html[data-flu-page-key="home"] body.light-mode .models-note a {
    color: #2563eb;
  }

  html[data-flu-page-key="home"] body.light-mode .models-note a:hover {
    color: #1d4ed8;
  }

  html[data-flu-page-key="home"] body.light-mode .faq-section h2,
html[data-flu-page-key="home"] body.light-mode .faq-title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--faq-text-strong);
    -webkit-text-fill-color: unset;
  }

  html[data-flu-page-key="home"] body.light-mode .faq-title-serif {
    background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .faq-section {
    --faq-surface: #e6e8ee;
    --faq-card-bg: #f4f5f8;
    --faq-text-strong: #020617;
    --faq-text-muted: #334155;
    --faq-accent-muted: #E1306C;
    --faq-focus: rgba(225, 48, 108, 0.55);
  }

  html[data-flu-page-key="home"] body.light-mode .faq-item {
    border-color: rgba(2, 6, 23, 0.08);
  }

  html[data-flu-page-key="home"] body.light-mode .faq-item:hover {
    border-color: rgba(225, 48, 108, 0.3);
  }

  html[data-flu-page-key="home"] body.light-mode .faq-item[data-open] {
    border-color: rgba(225, 48, 108, 0.4);
  }

  html[data-flu-page-key="home"] body.light-mode .home-final-cta {
    background: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .home-final-cta::after {
    background: rgba(0, 0, 0, 0.08);
  }

  html[data-flu-page-key="home"] body.light-mode .home-final-cta__title {
    color: #14141a;
  }

  /* `background` shorthand resets background-clip — must re-assert clip or light mode
     paints a solid gradient bar instead of gradient text (unreadable on cream). */
  html[data-flu-page-key="home"] body.light-mode .home-final-cta__line--accent,
html[data-flu-page-key="home"].light-mode .home-final-cta__line--accent {
    display: inline-block;
    background-image: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
    background-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    color: #C2185B;
    -webkit-text-fill-color: transparent;
  }

  html[data-flu-page-key="home"] body.light-mode .home-final-cta__subtitle {
    color: rgba(55, 65, 81, 0.68);
  }

  html[data-flu-page-key="home"] body.light-mode .home-final-cta__btn {
    background: var(--primary-gradient-light, linear-gradient(135deg, #E1306C 0%, #F77737 100%));
    box-shadow:
      0 16px 40px rgba(var(--brand-color-light-rgb, 225, 48, 108), 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.55) inset,
      0 4px 14px rgba(15, 23, 42, 0.06);
  }

  html[data-flu-page-key="home"] body.light-mode .home-final-cta__btn:hover {
    filter: brightness(1.04);
    box-shadow:
      0 22px 48px rgba(var(--brand-color-light-rgb, 225, 48, 108), 0.32),
      0 0 0 1px rgba(255, 255, 255, 0.65) inset,
      0 8px 20px rgba(15, 23, 42, 0.08);
  }

  html[data-flu-page-key="home"] body.light-mode .home-final-cta__btn:focus-visible {
    outline-color: rgba(var(--brand-color-light-rgb, 225, 48, 108), 0.55);
  }

/* Home content width — room for overview + guide card */
html[data-flu-page-key="home"] #fluAppMain > .container.mt-4.flex-grow-1 {
  max-width: 1360px;
}

html[data-flu-page-key="home"] .home-overview-container.container.mb-5 {
  max-width: 1360px;
}

/* Activation guide — overview sidebar card */
html[data-flu-page-key="home"] .home-overview-guide .home-guide-card.sf-activation-guide {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

html[data-flu-page-key="home"] .home-overview-guide .home-guide-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

html[data-flu-page-key="home"] .home-overview-guide .home-guide-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
}

html[data-flu-page-key="home"] .home-guide-head {
  flex-shrink: 0;
}

html[data-flu-page-key="home"] .sf-activation-guide__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

html[data-flu-page-key="home"] .sf-activation-guide__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__kicker,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__kicker {
  color: rgba(71, 85, 105, 0.78);
}

html[data-flu-page-key="home"] .sf-activation-guide__skip {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 550;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html[data-flu-page-key="home"] .sf-activation-guide__skip:hover {
  color: #fff;
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__skip,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__skip {
  color: rgba(100, 116, 139, 0.9);
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__skip:hover,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__skip:hover {
  color: #111;
}

html[data-flu-page-key="home"] .sf-activation-guide__next-title {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F5F5F7;
  line-height: 1.25;
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__next-title,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__next-title {
  color: #111;
}

html[data-flu-page-key="home"] .sf-activation-guide__next-sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.58);
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__next-sub,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__next-sub {
  color: rgba(71, 85, 105, 0.88);
}

html[data-flu-page-key="home"] .sf-activation-guide__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  min-height: 2.55rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #bb86fc 0%, #7c4dff 100%);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__primary,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__primary {
  background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
}

html[data-flu-page-key="home"] .sf-activation-guide__primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124, 77, 255, 0.28);
  color: #fff;
  text-decoration: none;
}

html[data-flu-page-key="home"] .sf-activation-guide__progress {
  position: relative;
  height: 4px;
  margin: 0 0 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__progress,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__progress {
  background: rgba(15, 23, 42, 0.08);
}

html[data-flu-page-key="home"] .sf-activation-guide__bar {
  display: block;
  height: 100%;
  width: var(--guide-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #bb86fc, #7c4dff);
  transition: width 0.3s ease;
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__bar,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__bar {
  background: linear-gradient(90deg, #E1306C, #F77737);
}

html[data-flu-page-key="home"] .sf-activation-guide__steps {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-height: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__steps,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__steps {
  border-top-color: rgba(148, 163, 184, 0.28);
}

html[data-flu-page-key="home"] .sf-activation-guide__step {
  min-width: 0;
}

html[data-flu-page-key="home"] .sf-activation-guide__step-link,
html[data-flu-page-key="home"] .sf-activation-guide__step-static {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.15rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

html[data-flu-page-key="home"] .sf-activation-guide__step-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__step-link,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__step-link,
html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__step-static,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__step-static {
  color: rgba(71, 85, 105, 0.9);
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__step-link:hover,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__step-link:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.04);
}

html[data-flu-page-key="home"] .sf-activation-guide__step.is-current .sf-activation-guide__step-link,
html[data-flu-page-key="home"] .sf-activation-guide__step.is-current .sf-activation-guide__step-static {
  color: #F5F5F7;
  background: rgba(187, 134, 252, 0.12);
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__step.is-current .sf-activation-guide__step-link,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__step.is-current .sf-activation-guide__step-link,
html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__step.is-current .sf-activation-guide__step-static,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__step.is-current .sf-activation-guide__step-static {
  color: #111;
  background: rgba(225, 48, 108, 0.08);
}

html[data-flu-page-key="home"] .sf-activation-guide__step.is-done .sf-activation-guide__step-static {
  color: #34d399;
}

html[data-flu-page-key="home"] .sf-activation-guide__step-mark {
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

html[data-flu-page-key="home"] .sf-activation-guide__step.is-done .sf-activation-guide__step-mark {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

html[data-flu-page-key="home"] .sf-activation-guide__step.is-current .sf-activation-guide__step-mark {
  background: rgba(187, 134, 252, 0.28);
  color: #e9d5ff;
}

html[data-theme="light"][data-flu-page-key="home"] .sf-activation-guide__step.is-current .sf-activation-guide__step-mark,
html[data-flu-page-key="home"] body.light-mode .sf-activation-guide__step.is-current .sf-activation-guide__step-mark {
  background: rgba(225, 48, 108, 0.16);
  color: #E1306C;
}

html[data-flu-page-key="home"] .sf-activation-guide__step-label {
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
