@layer reset, tokens, base, components;

@layer tokens {
  :root {
    color-scheme: dark;
    --bg-main: #080b11;
    --bg-header: rgba(7, 9, 14, 0.94);
    --bg-surface: #111622;
    --bg-surface-soft: rgba(255, 255, 255, 0.04);
    --bg-surface-hover: rgba(255, 255, 255, 0.07);
    --bg-pill-selected: #2c3340;
    --bg-code: #0b0f17;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --color-tizen: #38bdf8;
    --color-tv: #a855f7;
    --color-ok: #34d399;
    --color-warn: #facc15;
    --color-bad: #fb7185;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }
}

@layer reset {
  :where(*, *::before, *::after) {
    box-sizing: border-box;
  }

  body, h1, h2, h3, h4, p, ul, ol, pre, figure, dialog {
    margin: 0;
  }

  button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
}

@layer base {
  html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  body {
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-main);
  }

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

  .container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
  }

  .lucide {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
  }
}

@layer components {
  /* ==========================================================================
     Top Header (matches .app-header in TizenXuper TV)
     ========================================================================== */
  .app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 68px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
  }

  .app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
  }

  .brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
  }

  .brand-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.4px;
  }

  .brand-title .tizen { color: var(--color-tizen); }
  .brand-title .xuper { color: #ffffff; margin-inline: 2px; }
  .brand-title .tv { color: var(--color-tv); }

  .navbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-block: 6px;
    transition: color 0.15s ease;
  }

  .nav-link:hover {
    color: #ffffff;
  }

  .nav-link.is-active {
    color: #ffffff;
    font-weight: 700;
  }

  .nav-link.is-active::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -2px;
    height: 2px;
    background: var(--color-tizen);
    border-radius: 1px;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header-cta {
    padding: 7px 16px;
    font-size: 13px;
  }

  .header-cta .lucide {
    width: 14px;
    height: 14px;
  }

  .mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .mobile-menu-toggle:hover {
    background: var(--bg-surface-hover);
    color: #ffffff;
    border-color: var(--border-strong);
  }

  .mobile-menu-toggle .lucide {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-toggle .icon-close {
    display: none;
  }

  .mobile-menu-toggle.is-active .icon-burger {
    display: none;
  }

  .mobile-menu-toggle.is-active .icon-close {
    display: block;
  }

  /* Mobile Drawer */
  .mobile-nav-drawer {
    display: none;
  }

  /* ==========================================================================
     Buttons (matches .pf-btn in TizenXuper TV)
     ========================================================================== */
  .pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 9999px;
    background: var(--bg-surface-soft);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  }

  .pf-btn:hover {
    background: var(--bg-pill-selected);
    border-color: var(--border-strong);
    color: #ffffff;
  }

  .pf-btn-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
  }

  .pf-btn-primary:hover {
    background: #e2e8f0;
    color: #000000;
    border-color: #e2e8f0;
  }

  /* ==========================================================================
     Hero + Interactive TV Screen Showcase
     ========================================================================== */
  .hero-section {
    padding-block: 52px 36px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
  }

  .status-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 18px;
  }

  .pf-diag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-ok);
    flex-shrink: 0;
  }

  .hero-title {
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.15;
    color: #ffffff;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 520px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
  }

  .hero-meta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-dim);
  }

  .hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  /* TV Realistic Mockup Showcase */
  .tv-showcase {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .tv-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tv-mockup-bezel {
    width: 100%;
    background: #141721;
    border: 3px solid #232938;
    border-radius: 14px 14px 8px 8px;
    padding: 10px 10px 0 10px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
  }

  .tv-mockup-inner {
    position: relative;
    border-radius: 6px;
    background: #000000;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .tv-mockup-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .tv-mockup-chin {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .tv-mockup-logo {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.28);
    user-select: none;
  }

  .tv-mockup-led {
    position: absolute;
    right: 18px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
  }

  /* TV Stand Pedestal */
  .tv-mockup-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tv-mockup-neck {
    width: 72px;
    height: 14px;
    background: linear-gradient(180deg, #181d29 0%, #0d1017 100%);
    border-inline: 1px solid rgba(255, 255, 255, 0.08);
  }

  .tv-mockup-base {
    width: 220px;
    height: 7px;
    border-radius: 4px 4px 1px 1px;
    background: linear-gradient(180deg, #252d3d 0%, #151a24 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  }

  .screen-switcher {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
  }

  .screen-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  }

  .screen-pill:hover {
    color: #ffffff;
    background: var(--bg-surface-hover);
  }

  .screen-pill.is-selected {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
  }

  /* ==========================================================================
     Dividers & Sections
     ========================================================================== */
  .pf-hr {
    height: 1px;
    background: var(--border-subtle);
    margin-block: 28px;
  }

  .pf-section {
    padding-block: 6px 18px;
    scroll-margin-top: 76px;
  }

  .pf-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .pf-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff;
    margin-bottom: 6px;
  }

  .pf-subtitle {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
  }

  .pf-note {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 820px;
  }

  /* ==========================================================================
     Cards, Grids & Interface Slider
     ========================================================================== */
  .pf-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .pf-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  /* Slider controls & carousel container */
  .slider-controls {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .screen-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .screen-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    outline: none;
  }

  .screen-slider::-webkit-scrollbar {
    display: none;
  }

  .slide-item {
    flex: 0 0 calc(70% - 12px);
    scroll-snap-align: center;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .slide-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    background: #05070b;
    border-bottom: 1px solid var(--border-subtle);
  }

  .slide-caption {
    padding: 12px 18px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    background: var(--bg-surface);
  }

  .slide-caption strong {
    color: #ffffff;
  }

  .slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }

  .slider-dot {
    width: 26px;
    height: 6px;
    border-radius: 3px;
    background: var(--border-subtle);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, width 0.15s ease;
  }

  .slider-dot:hover {
    background: var(--text-dim);
  }

  .slider-dot.is-selected {
    width: 44px;
    background: #ffffff;
  }

  .pf-card {
    padding: 20px 22px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    min-width: 0;
  }

  /* About / Philosophy Cards (clean structured list instead of wall of text) */
  .pf-about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
  }

  .pf-about-card {
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .pf-about-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.14);
  }

  .pf-about-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .pf-about-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .pf-about-card-icon .lucide {
    width: 20px;
    height: 20px;
  }

  .pf-about-card-icon.is-tizen {
    color: var(--color-tizen);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
  }

  .pf-about-card-icon.is-warn {
    color: var(--color-warn);
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.25);
  }

  .pf-about-card-icon.is-tv {
    color: var(--color-tv);
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.25);
  }

  .pf-about-card-title {
    font-size: 17.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    margin: 0;
  }

  .pf-about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
  }

  .pf-about-list li {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .pf-about-list li .lucide {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    flex-shrink: 0;
  }

  /* Telegram Channels & Community with QR codes (matches Perfil › Sobre nosotros) */
  .pf-tg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
  }

  .pf-tg-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    min-width: 0;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  }

  .pf-tg-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
  }

  .pf-tg-qr {
    padding: 8px;
    border-radius: 12px;
    background: #ffffff;
    line-height: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .pf-tg-qr img {
    display: block;
    width: 96px;
    height: 96px;
  }

  .pf-tg-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
  }

  .pf-tg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
  }

  .pf-tg-name {
    font-size: 16.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
  }

  .pf-tg-desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
  }

  .pf-tg-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-tizen);
    margin-top: 4px;
    transition: color 0.15s ease;
  }

  .pf-tg-action .lucide {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
  }

  .pf-tg-card:hover .pf-tg-action {
    color: #ffffff;
  }

  .pf-tg-card:hover .pf-tg-action .lucide {
    transform: translateX(3px);
  }

  /* ==========================================================================
     Donations / Support Section
     ========================================================================== */
  .donate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
  }

  .donate-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    min-width: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .donate-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.16);
  }

  .donate-qr-wrap {
    padding: 8px;
    border-radius: 12px;
    background: #ffffff;
    line-height: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  }

  .donate-qr-wrap img {
    display: block;
    width: 110px;
    height: 110px;
  }

  .donate-stars-icon-wrap {
    width: 126px;
    height: 126px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fbbf24;
  }

  .donate-stars-icon-wrap .lucide {
    width: 54px;
    height: 54px;
    stroke-width: 1.8;
  }

  .donate-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
  }

  .donate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
  }

  .donate-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    margin: 0;
  }

  .donate-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .gallery-card-meta {
    padding: 10px 12px;
  }

  .gallery-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .gallery-card-desc {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
  }

  /* ==========================================================================
     Step 1: TV Developer Mode Steps Timeline
     ========================================================================== */
  .tv-steps-timeline {
    display: flex;
    flex-direction: column;
    max-width: 860px;
  }

  .tv-step-timeline-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 18px;
    position: relative;
  }

  /* Seamless connecting vertical line between steps */
  .tv-step-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: -4px;
    width: 2px;
    background: rgba(255, 255, 255, 0.14);
    z-index: 1;
  }

  .tv-step-timeline-marker {
    display: flex;
    justify-content: center;
    padding-top: 2px;
    position: relative;
    z-index: 2;
  }

  .tv-step-timeline-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111622;
    border: 2px solid #2c3852;
    box-shadow: 0 0 0 4px var(--bg-main);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .tv-step-timeline-line {
    display: none;
  }

  .tv-step-timeline-content {
    padding-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .tv-step-timeline-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
  }

  .tv-step-timeline-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
  }

  .tv-step-timeline-tag {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-dim);
    padding: 2px 8px;
    border-radius: 9999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
  }

  .tv-step-timeline-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
  }

  .tv-step-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dim);
  }

  .tv-step-tip .lucide {
    color: var(--color-tizen);
    margin-top: 2px;
  }

  /* ==========================================================================
     Host PC IP Helper Box (¿Cómo saber tu IP?)
     ========================================================================== */
  .tv-ip-helper {
    margin-top: 12px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    max-width: 720px;
  }

  .tv-ip-helper-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    user-select: none;
    transition: background-color 0.15s ease;
  }

  .tv-ip-helper-summary::-webkit-details-marker {
    display: none;
  }

  .tv-ip-helper-summary:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .tv-ip-helper-title {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .tv-ip-helper-title .lucide {
    color: var(--color-tizen);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .tv-ip-helper-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-dim);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .tv-ip-helper[open] .tv-ip-helper-chevron {
    transform: rotate(180deg);
  }

  .tv-ip-helper-body {
    padding: 12px 14px 14px 14px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tv-ip-cmd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #080b11;
    border: 1px solid var(--border-subtle);
  }

  .tv-ip-cmd-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
  }

  .tv-ip-os-badge {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }

  .tv-ip-code {
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    color: var(--color-tizen);
    white-space: nowrap;
  }

  .tv-ip-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.12s ease;
    flex-shrink: 0;
  }

  .tv-ip-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .tv-ip-copy-btn .lucide {
    width: 12px;
    height: 12px;
  }

  .tv-ip-gui-note {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  .tv-ip-auto-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.45;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 2px;
  }

  .tv-ip-auto-note .lucide {
    width: 15px;
    height: 15px;
    color: var(--color-tizen);
    flex-shrink: 0;
    margin-top: 1px;
  }

  .tv-step-visual {
    margin-top: 14px;
    border-radius: 12px;
    background: #000000;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    max-width: 720px;
  }

  .tv-step-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    background: #000000;
    border-bottom: 1px solid var(--border-subtle);
  }

  .tv-step-visual figcaption {
    padding: 10px 14px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
  }

  /* ==========================================================================
     Step 2: OS Tabs & Installer Panels
     ========================================================================== */
  .os-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .os-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .os-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  }

  .os-tab:hover {
    color: #ffffff;
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .os-tab.is-selected {
    color: #ffffff;
    background: var(--bg-pill-selected);
    border-color: rgba(255, 255, 255, 0.22);
    font-weight: 800;
  }

  /* Insignia de opción recomendada por sistema operativo */
  .hero-quick-downloads {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .hero-quick-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 700;
    margin-right: 2px;
  }
  .hero-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .hero-quick-pill:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    transform: translateY(-1px);
  }
  .hero-quick-pill svg {
    width: 14px;
    height: 14px;
    color: #38bdf8;
  }

  .pf-opt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    margin-bottom: 6px;
    flex-wrap: wrap;
  }
  .pf-opt-header .pf-subtitle {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .pf-opt-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 0.2px;
  }
  .pf-opt-badge.is-rec {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.42);
  }
  .pf-opt-badge svg {
    width: 13px;
    height: 13px;
  }

  /* Callout de recomendación dentro del panel */
  .os-recommend-callout {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .os-recommend-callout-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
  }
  .os-recommend-callout-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
  }
  .os-recommend-callout-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
  }

  /* Nota tranquilizadora para instaladores de PC */
  .os-easy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
  }
  .os-easy-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #38bdf8;
    margin-top: 1px;
  }
  .os-easy-note strong {
    color: #f1f5f9;
  }

  .os-detected-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dim);
  }

  .os-panel {
    display: none;
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
  }

  .os-panel.active {
    display: block;
  }

  .os-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .os-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
  }

  /* Code / Command box */
  .cmd-box {
    background: var(--bg-code);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px 16px;
    margin-block: 10px 14px;
  }

  .cmd-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
  }

  .cmd-box-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .cmd-code {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: #ffffff;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    user-select: all;
  }

  .copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: var(--bg-surface-soft);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .copy-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
  }

  .copy-btn.copied {
    background: #14532d;
    color: #dcfce7;
    border-color: #14532d;
  }

  /* Ordered steps list inside OS panel */
  .step-table {
    margin-top: 14px;
  }

  .step-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding-block: 10px;
    font-size: 14px;
    color: var(--text-muted);
    align-items: start;
  }

  .step-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .step-row strong {
    color: #ffffff;
  }

  /* Mini visual guide strip inside Android / Windows panels */
  .guide-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
  }

  .guide-thumb-card {
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
  }

  .guide-thumb-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #0b0f17;
    display: block;
    padding: 8px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: zoom-in;
  }

  .guide-thumb-caption {
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--text-muted);
  }

  /* ==========================================================================
     Bottom Update / Release Bar (matches .pf-update-bar in TizenXuper TV)
     ========================================================================== */
  .pf-update-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    margin-top: 16px;
  }

  .pf-update-bar-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pf-update-bar-desc {
    margin-top: 4px;
    font-size: 14px;
    color: var(--text-muted);
  }

  .pf-update-bar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* ==========================================================================
     FAQ Table / Rows
     ========================================================================== */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .faq-item {
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    padding: 16px 20px;
  }

  .faq-item summary {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .faq-item summary::-webkit-details-marker {
    display: none;
  }

  .faq-chevron {
    color: var(--text-muted);
    transition: transform 0.15s ease;
  }

  .faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: #ffffff;
  }

  .faq-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
  }

  /* ==========================================================================
     Native Dialog Lightbox for Screenshots
     ========================================================================== */
  .lightbox-dialog {
    margin: auto;
    padding: 0;
    max-width: min(1120px, 94vw);
    width: 100%;
    border-radius: 16px;
    background: #0b0f17;
    border: 1px solid var(--border-strong);
    color: var(--text-main);
  }

  .lightbox-dialog::backdrop {
    background: rgba(4, 6, 10, 0.86);
  }

  .lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 14px;
    font-weight: 700;
  }

  .lightbox-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    background: #05070b;
  }

  /* ==========================================================================
     Footer
     ========================================================================== */
  .site-footer {
    margin-top: 36px;
    padding-block: 24px 40px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-dim);
  }

  .footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }

  .footer-disclaimer {
    max-width: 760px;
    line-height: 1.55;
  }

  /* ==========================================================================
     Floating Telegram Support Button
     ========================================================================== */
  .floating-tg-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #229ed9;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45), 0 10px 30px rgba(0, 0, 0, 0.55);
    z-index: 100;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, opacity 0.22s ease, visibility 0.22s ease;
    text-decoration: none;
    outline: none;
    opacity: 1;
    visibility: visible;
  }

  .floating-tg-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.6) translateY(20px);
  }

  .floating-tg-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 26px rgba(34, 158, 217, 0.65), 0 14px 38px rgba(0, 0, 0, 0.65);
  }

  .floating-tg-btn:active {
    transform: scale(0.95);
  }

  .floating-tg-btn .tg-icon {
    width: 26px;
    height: 26px;
    stroke-width: 2.2;
    transform: translate(-1px, 1px);
    color: #ffffff;
  }

  /* Accessibility fallback for Windows High Contrast / Forced Colors Mode */
  @media (forced-colors: active) {
    .pf-card,
    .tv-step-card,
    .os-panel,
    .pf-update-bar,
    .faq-item,
    .pf-btn,
    .nav-tab-btn,
    .screen-pill {
      border: 1px solid CanvasText;
    }
  }

  /* Responsive adjustments */
  @media (max-width: 1024px) {
    .hero-grid {
      grid-template-columns: 1fr;
      gap: 36px;
    }
    .pf-grid-5 {
      grid-template-columns: repeat(3, 1fr);
    }
    .pf-grid-4 {
      grid-template-columns: repeat(2, 1fr);
    }
    .pf-grid-3,
    .pf-about-cards,
    .pf-tg-grid,
    .donate-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 680px) {
    .container {
      padding-inline: 16px;
    }

    body.has-mobile-menu-open {
      overflow: hidden;
    }

    /* Mobile Header & Single-Row Top Bar */
    .app-header {
      min-height: 58px;
      padding-block: 8px;
      position: sticky;
      top: 0;
      z-index: 60;
    }

    .app-header-inner {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .brand-container {
      align-self: center;
      gap: 10px;
    }

    .brand-logo-img {
      width: 30px;
      height: 30px;
    }

    .brand-title {
      font-size: 18px;
    }

    /* Hide desktop inline links & CTA on mobile */
    .navbar-links {
      display: none;
    }

    .header-cta {
      display: none;
    }

    .mobile-menu-toggle {
      display: inline-flex;
    }

    /* Mobile Navigation Drawer */
    .mobile-nav-drawer {
      display: block;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(12, 16, 24, 0.98);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-subtle);
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
    }

    .mobile-nav-drawer.is-open {
      max-height: calc(100vh - 58px);
      opacity: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-inner {
      padding: 14px 16px 22px 16px;
    }

    .mobile-nav-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .mobile-nav-link {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 14px;
      border-radius: 12px;
      text-decoration: none;
      color: var(--text-main);
      background: transparent;
      transition: background-color 0.15s ease;
      min-height: 48px;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:active {
      background: rgba(255, 255, 255, 0.06);
    }

    .mobile-nav-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--text-dim);
    }

    .mobile-nav-icon .lucide {
      width: 18px;
      height: 18px;
    }

    .mobile-nav-icon.is-donate {
      color: #f7a93b;
      background: rgba(247, 169, 59, 0.1);
      border-color: rgba(247, 169, 59, 0.25);
    }

    .mobile-nav-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .mobile-nav-text strong {
      font-size: 14.5px;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.25;
    }

    .mobile-nav-text small {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.35;
    }

    .mobile-nav-footer {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--border-subtle);
    }

    /* Hero */
    .hero-section {
      padding-block: 24px 20px;
    }

    .hero-grid {
      gap: 28px;
    }

    .status-line {
      font-size: 11.5px;
      padding: 4px 12px;
      margin-bottom: 12px;
    }

    .hero-title {
      font-size: clamp(25px, 7vw, 32px);
      line-height: 1.18;
    }

    .hero-lead {
      font-size: 14.5px;
      line-height: 1.55;
      margin-top: 10px;
    }

    .hero-actions {
      flex-direction: column;
      width: 100%;
      gap: 10px;
      margin-top: 20px;
    }

    .hero-actions .pf-btn {
      width: 100%;
      justify-content: center;
      padding: 11px 18px;
      font-size: 13.5px;
    }

    /* TV Mockup & Screen pills */
    .tv-mockup-stand {
      display: none;
    }

    .tv-mockup-bezel {
      padding: 6px 6px 0 6px;
      border-radius: 10px 10px 6px 6px;
      border-width: 2px;
    }

    .tv-mockup-chin {
      height: 18px;
    }

    .tv-mockup-logo {
      font-size: 7.5px;
      letter-spacing: 1.5px;
    }

    .screen-switcher {
      display: flex;
      justify-content: flex-start;
      overflow-x: auto;
      white-space: nowrap;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      padding-inline: 4px;
      padding-bottom: 6px;
      width: 100%;
      gap: 6px;
    }

    .screen-switcher::-webkit-scrollbar {
      display: none;
    }

    .screen-pill {
      flex-shrink: 0;
      font-size: 12px;
      padding: 7px 12px;
      gap: 6px;
      border-radius: 9999px;
    }

    /* Step 1: TV Timeline */
    .tv-steps-timeline {
      width: 100%;
    }

    .tv-step-timeline-item {
      grid-template-columns: 28px 1fr;
      gap: 12px;
      position: relative;
    }

    .tv-step-timeline-item:not(:last-child)::before {
      content: '';
      position: absolute;
      left: 14px;
      top: 28px;
      bottom: -22px;
      width: 2px;
      background: var(--border-subtle);
      transform: translateX(-50%);
    }

    .tv-step-timeline-badge {
      width: 28px;
      height: 28px;
      font-size: 12.5px;
    }

    .tv-step-timeline-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }

    .tv-step-timeline-title {
      font-size: 15px;
      line-height: 1.35;
    }

    .tv-step-timeline-tag {
      font-size: 11px;
      padding: 2px 7px;
    }

    .tv-step-timeline-text {
      font-size: 13.5px;
      line-height: 1.5;
    }

    .tv-step-tip {
      font-size: 12px;
      padding: 8px 12px;
      border-radius: 8px;
    }

    .tv-step-visual {
      margin-top: 10px;
    }

    .tv-step-visual img {
      border-radius: 8px;
      max-width: 100%;
      height: auto;
    }

    .tv-step-visual figcaption {
      font-size: 11.5px;
      padding: 6px 10px;
    }

    .tv-ip-helper-summary {
      font-size: 13px;
      padding: 10px 12px;
    }

    .tv-ip-cmd-row {
      flex-direction: column;
      align-items: stretch;
      gap: 6px;
    }

    .tv-ip-cmd-left {
      justify-content: space-between;
      width: 100%;
    }

    .tv-ip-copy-btn {
      width: 100%;
      justify-content: center;
      padding: 6px;
    }

    /* Step 2: OS Tabs & Panels */
    .os-tabs-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 12px;
    }

    .os-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      width: 100%;
    }

    .os-tab {
      justify-content: center;
      padding: 9px 10px;
      font-size: 12px;
      border-radius: 10px;
      min-height: 40px;
    }

    .os-panel {
      padding: 16px 14px;
      border-radius: 14px;
    }

    .os-panel .hero-actions {
      flex-direction: column;
      width: 100%;
      gap: 8px;
    }

    .os-panel .hero-actions .pf-btn {
      width: 100%;
      justify-content: center;
    }

    .os-panel-top {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 14px;
    }

    .cmd-box {
      padding: 10px 12px;
      margin-block: 8px 12px;
      border-radius: 10px;
    }

    .cmd-box-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }

    .cmd-box-title {
      font-size: 11.5px;
    }

    .copy-btn {
      padding: 4px 8px;
      font-size: 11px;
    }

    .cmd-code {
      font-size: 11.5px;
      padding: 8px 0 2px;
    }

    /* Sobre el proyecto */
    .pf-about-cards {
      grid-template-columns: 1fr;
      gap: 14px;
    }

    .pf-about-card {
      padding: 18px 16px;
      border-radius: 14px;
    }

    .pf-about-card-title {
      font-size: 16px;
    }

    .pf-about-list {
      gap: 8px;
    }

    .pf-about-list li {
      font-size: 13px;
      line-height: 1.45;
    }

    /* Telegram Grid on mobile: Clean Touch Cards */
    .pf-tg-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .pf-tg-card {
      padding: 16px 16px;
      gap: 12px;
      flex-direction: column;
      align-items: flex-start;
      border-radius: 14px;
    }

    /* Hide QR on mobile where user cannot scan their own screen */
    .pf-tg-qr {
      display: none;
    }

    .pf-tg-info {
      width: 100%;
      gap: 6px;
    }

    .pf-tg-name {
      font-size: 16px;
    }

    .pf-tg-desc {
      font-size: 13px;
      line-height: 1.5;
    }

    .pf-tg-action {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 700;
      color: var(--color-tizen);
      margin-top: 6px;
      padding-top: 10px;
      border-top: 1px solid var(--border-subtle);
      width: 100%;
    }

    /* Donations on mobile */
    .donate-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }

    .donate-card {
      flex-direction: column;
      text-align: center;
      align-items: center;
      padding: 20px 16px;
      gap: 16px;
      border-radius: 14px;
    }

    .donate-qr-wrap {
      padding: 8px;
      background: #ffffff;
      border-radius: 12px;
      display: inline-flex;
    }

    .donate-qr-wrap img {
      width: 105px;
      height: 105px;
      display: block;
    }

    .donate-stars-icon-wrap {
      width: 86px;
      height: 86px;
      border-radius: 50%;
    }

    .donate-stars-icon-wrap .lucide {
      width: 42px;
      height: 42px;
    }

    .donate-info {
      align-items: center;
      width: 100%;
      gap: 8px;
    }

    .donate-info .pf-btn {
      width: 100%;
      justify-content: center;
      padding: 11px 16px;
      font-size: 13.5px;
    }

    .donate-actions {
      flex-direction: column;
      width: 100%;
      gap: 8px;
    }

    .donate-actions .pf-btn {
      width: 100%;
      justify-content: center;
    }

    /* Floating Telegram Button */
    .floating-tg-btn {
      bottom: 16px;
      right: 16px;
      width: 48px;
      height: 48px;
      z-index: 30;
    }

    .floating-tg-btn .tg-icon {
      width: 22px;
      height: 22px;
    }

    /* Update bar */
    .pf-update-bar {
      padding: 16px 14px;
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
      border-radius: 14px;
    }

    .pf-update-bar-actions {
      flex-direction: column;
      width: 100%;
      gap: 8px;
    }

    .pf-update-bar-actions .pf-btn {
      width: 100%;
      justify-content: center;
    }

    /* FAQ */
    .faq-item {
      padding: 14px 16px;
      border-radius: 12px;
    }

    .faq-item summary {
      font-size: 14px;
      min-height: 44px;
    }

    .faq-body {
      font-size: 13px;
      line-height: 1.55;
    }

    /* Footer */
    .site-footer {
      padding-block: 20px 32px;
    }

    .footer-inner {
      flex-direction: column;
      gap: 12px;
      text-align: left;
    }
  }
}

/* Instalar: the one tested method (Apps2Samsung), as a numbered timeline like step 1 */
.tv-step-visual-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 900px; }
.tv-step-visual-pair .tv-step-visual { margin-top: 14px; }
@media (max-width: 720px) { .tv-step-visual-pair { grid-template-columns: 1fr; } }
.a2s-guide { margin-top: 18px; }

/* Install options: a two-tab switch (our Android installer / Apps2Samsung), each tab half the width */
.install-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 520px; margin: 4px 0 14px; padding: 4px;
  border-radius: 14px; background: var(--bg-surface-soft); border: 1px solid var(--border-subtle); }
.install-tab { appearance: none; border: 0; background: none; cursor: pointer; font-family: inherit; color: var(--text-muted);
  font-size: 14px; font-weight: 700; padding: 9px 10px; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; gap: 1px; line-height: 1.25; transition: background-color 0.12s ease, color 0.12s ease; }
.install-tab small { font-size: 11.5px; font-weight: 600; color: var(--text-dim); }
.install-tab:hover { color: #ffffff; }
.install-tab[aria-selected="true"] { color: #ffffff; background: var(--bg-pill-selected); }
.install-tab[aria-selected="true"] small { color: var(--text-muted); }
.install-tab:focus-visible { outline: 2px solid var(--color-tizen); outline-offset: 2px; }
.install-panel[hidden] { display: none; }
.install-option-note { margin: 0 0 6px; color: var(--text-muted); font-size: 14px; }
.install-option-actions { margin-top: 12px; }

/* Step tags read as a small label above the title, not a pill beside it (it squeezed the title on phones) */
.tv-step-timeline-header { flex-direction: column; align-items: flex-start; gap: 2px; }
.tv-step-timeline-tag { order: -1; padding: 0; border: 0; background: none; border-radius: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
