/* home.css — estilos del home (extraídos de home.php) */
/* ── Variables locales ── */
  :root {
    --dark: #0f172a;
    --mid: #334155;
    --muted: #64748b;
    --bg: #f8fafc;
    --border: #e2e8f0;
    --blue: var(--accent, #2563eb);
  }

  /* ── Container ── */
  .h-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  /* ── Badge chip ── */
  .h-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #eff6ff;
    color: var(--blue);
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 1.25rem;
  }

  .h-chip svg {
    flex-shrink: 0;
  }

  /* ── Texto de acento (antes: gradiente índigo→violeta) ── */
  .h-grad {
    color: var(--accent);
  }

  /* ══════════════════════════════════════════
     HERO — ERP
  ══════════════════════════════════════════ */
  .h-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
    padding: 5rem 0 5.5rem;
    color: #fff;
  }

  .h-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, .22) 0%, transparent 70%);
    pointer-events: none;
  }

  .h-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, .2) 0%, transparent 70%);
    pointer-events: none;
  }

  .h-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 4rem;
    align-items: center;
  }

  .h-hero-text h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    margin: 0 0 1.25rem;
  }

  .h-hero-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 0 2rem;
  }

  .h-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn-hero-prim {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    padding: .85rem 1.75rem;
    border-radius: 12px;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .4);
    transition: transform .2s, box-shadow .2s;
  }

  .btn-hero-prim:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, .5);
    color: #fff;
  }

  .btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .2);
    font-weight: 700;
    padding: .85rem 1.75rem;
    border-radius: 12px;
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, border-color .2s;
  }

  .btn-hero-ghost:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
  }

  /* Panel flotante hero */
  .h-hero-panel {
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .h-panel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }

  .h-panel-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: .875rem 1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
  }

  .h-panel-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
  }

  .h-panel-card-text strong {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
  }

  .h-panel-card-text span {
    font-size: .72rem;
    color: rgba(255, 255, 255, .55);
  }

  .h-panel-card-wide {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: .875rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
  }

  .h-panel-stat {
    text-align: center;
  }

  .h-panel-stat strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
  }

  .h-panel-stat span {
    font-size: .72rem;
    color: rgba(255, 255, 255, .55);
  }

  .h-panel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
  }

  /* ══════════════════════════════════════════
     HERO — QR landing pages (page_type)
  ══════════════════════════════════════════ */
  .h-qrhero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .6) 100%),
      linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  }

  .h-qrhero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
  }

  .h-qrhero-text {
    flex: 1;
    min-width: 0;
  }

  .h-qrhero-text h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin: 0 0 1rem;
  }

  .h-qrhero-text p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 1.75rem;
    max-width: 540px;
  }

  .h-qrhero-card {
    flex: 0 1 520px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  }

  .h-qrhero-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 1.25rem;
  }

  /* ══════════════════════════════════════════
     STATS BAR
  ══════════════════════════════════════════ */
  .h-stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 0;
  }

  .h-stats-bar-inner {
    display: flex;
    justify-content: center;
    gap: 0;
  }

  .h-stat-item {
    text-align: center;
    padding: 0 3rem;
    border-right: 1px solid var(--border);
  }

  .h-stat-item:last-child {
    border-right: none;
  }

  .h-stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
  }

  .h-stat-lbl {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .25rem;
    font-weight: 500;
  }

  /* ══════════════════════════════════════════
     MÓDULOS GRID
  ══════════════════════════════════════════ */
  .h-modules {
    padding: 5rem 0;
    background: var(--bg);
  }

  .h-section-head {
    text-align: center;
    margin-bottom: 3rem;
  }

  .h-section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    margin: .75rem 0 1rem;
  }

  .h-section-head p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
  }

  .h-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .h-mod-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
    transition: transform .22s, box-shadow .22s, border-color .22s;
    text-decoration: none;
    display: block;
  }

  .h-mod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .1);
    border-color: var(--blue);
  }

  .h-mod-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
  }

  .h-mod-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 .4rem;
  }

  .h-mod-card p {
    font-size: .875rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
  }

  .h-mod-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 999px;
    margin-top: .6rem;
    letter-spacing: .04em;
  }

  /* ══════════════════════════════════════════
     QR SECTION
  ══════════════════════════════════════════ */
  .h-qr-section {
    padding: 5rem 0;
    background: #fff;
  }

  .h-qr-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  .h-qr-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--dark);
    margin: .75rem 0 1rem;
  }

  .h-qr-text p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 1.75rem;
  }

  .h-qr-features {
    display: flex;
    flex-direction: column;
    gap: .875rem;
    margin-bottom: 2rem;
  }

  .h-qr-feat {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .95rem;
    color: var(--mid);
    font-weight: 500;
  }

  .h-qr-feat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* Generador widget */
  .h-qr-widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
  }

  .h-qr-widget-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
  }

  .h-qr-widget-head h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
  }

  .h-qr-widget-head p {
    font-size: .8rem;
    color: var(--muted);
    margin: 0;
  }

  .h-qr-types {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
  }

  .h-qr-type-btn {
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--mid);
    cursor: pointer;
    transition: all .15s;
  }

  .h-qr-type-btn.active,
  .h-qr-type-btn:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
  }

  .h-qr-input-wrap {
    position: relative;
    margin-bottom: 1rem;
  }

  .h-qr-input {
    width: 100%;
    padding: .75rem 1rem .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .95rem;
    outline: none;
    color: var(--dark);
    background: #fff;
    transition: border-color .15s;
    box-sizing: border-box;
  }

  .h-qr-input:focus {
    border-color: var(--blue);
  }

  .btn-qr-gen {
    width: 100%;
    padding: .85rem;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .2s;
  }

  .btn-qr-gen:hover {
    background: #1d4ed8;
  }

  .btn-qr-gen:disabled {
    opacity: .6;
    cursor: not-allowed;
  }

  .h-qr-hint {
    font-size: .78rem;
    color: var(--muted);
    text-align: center;
    margin-top: .75rem;
  }

  /* ══════════════════════════════════════════
     HERRAMIENTAS BUSINESS
  ══════════════════════════════════════════ */
  .h-tools {
    padding: 5rem 0;
    background: var(--bg);
  }

  .h-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .h-tool-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
  }

  .h-tool-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
  }

  .h-tool-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 .5rem;
  }

  .h-tool-card p {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 1.25rem;
  }

  .h-tool-features {
    display: flex;
    flex-direction: column;
    gap: .5rem;
  }

  .h-tool-feat {
    font-size: .82rem;
    color: var(--mid);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
  }

  .h-tool-feat svg {
    color: var(--ok);
    flex-shrink: 0;
  }

  /* ══════════════════════════════════════════
     FINANZAS SPLIT
  ══════════════════════════════════════════ */
  .h-finanzas {
    padding: 5rem 0;
    background: #fff;
  }

  .h-finanzas-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  .h-finanzas-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    margin: .75rem 0 1rem;
  }

  .h-finanzas-text p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 2rem;
  }

  .h-finanzas-cards {
    display: flex;
    flex-direction: column;
    gap: .875rem;
  }

  .h-fin-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
  }

  .h-fin-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .h-fin-card strong {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .2rem;
  }

  .h-fin-card span {
    font-size: .82rem;
    color: var(--muted);
  }

  /* ══════════════════════════════════════════
     TEAMS SECTION
  ══════════════════════════════════════════ */
  .h-teams {
    padding: 5rem 0;
    color: #fff;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
  }

  .h-teams::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, .22) 0%, transparent 70%);
    pointer-events: none;
  }

  .h-teams-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  .h-teams-text .h-chip {
    background: rgba(37, 99, 235, .2);
    color: #93c5fd;
    border-color: rgba(37, 99, 235, .3);
  }

  .h-teams-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin: .75rem 0 1rem;
  }

  .h-teams-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
    margin: 0 0 2rem;
  }

  .h-teams-feats {
    display: flex;
    flex-direction: column;
    gap: .875rem;
  }

  .h-team-feat {
    display: flex;
    align-items: center;
    gap: .875rem;
  }

  .h-team-feat-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(37, 99, 235, .2);
    border: 1px solid rgba(37, 99, 235, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #93c5fd;
  }

  .h-team-feat span {
    font-size: .95rem;
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
  }

  .h-teams-visual {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .875rem;
  }

  .h-team-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 1rem;
  }

  .h-team-card strong {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .2rem;
  }

  .h-team-card span {
    font-size: .72rem;
    color: rgba(255, 255, 255, .5);
  }

  .h-team-avatars {
    display: flex;
    gap: -8px;
    margin-top: .625rem;
  }

  .h-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .15);
    font-size: .65rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -6px;
  }

  /* ══════════════════════════════════════════
     PLANES
  ══════════════════════════════════════════ */
  .h-plans {
    padding: 5rem 0;
    background: var(--bg);
  }

  .h-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
  }

  .h-plan-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .2s, box-shadow .2s;
  }

  .h-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .1);
  }

  .h-plan-card.h-plan-featured {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
  }

  .h-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: .25rem .875rem;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: .04em;
  }

  .h-plan-name {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin: 0 0 .5rem;
  }

  .h-plan-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
    margin: 0 0 .25rem;
  }

  .h-plan-price sup {
    font-size: 1rem;
    vertical-align: super;
  }

  .h-plan-price span {
    font-size: .875rem;
    font-weight: 500;
    color: var(--muted);
  }

  .h-plan-desc {
    font-size: .82rem;
    color: var(--muted);
    margin: .5rem 0 1.5rem;
    line-height: 1.5;
  }

  .h-plan-feats {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    flex: 1;
    margin-bottom: 1.75rem;
  }

  .h-plan-feat {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .82rem;
    color: var(--mid);
  }

  .h-plan-feat svg {
    flex-shrink: 0;
    margin-top: .1rem;
  }

  .h-plan-feat.disabled {
    color: #cbd5e1;
  }

  .h-plan-feat.disabled svg {
    color: #e2e8f0;
  }

  .btn-plan {
    display: block;
    text-align: center;
    padding: .75rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s;
    margin-top: auto;
  }

  .btn-plan-outline {
    border: 2px solid var(--border);
    color: var(--mid);
  }

  .btn-plan-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
  }

  .btn-plan-solid {
    background: var(--blue);
    color: #fff;
  }

  .btn-plan-solid:hover {
    background: #1d4ed8;
    color: #fff;
  }

  /* ══════════════════════════════════════════
     CTA FINAL
  ══════════════════════════════════════════ */
  .h-cta {
    padding: 5.5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
  }

  .h-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: .75rem 0 1.25rem;
  }

  .h-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, .72);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
  }

  .h-cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ══════════════════════════════════════════
     QR MODAL
  ══════════════════════════════════════════ */
  .qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 1rem;
  }

  .qr-modal-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 32px 64px rgba(15, 23, 42, .25);
    position: relative;
    text-align: center;
  }

  .qr-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: .35rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
  }

  .qr-modal-close:hover {
    background: var(--bg);
  }

  .qr-modal-check {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ok-bg, #f0fdf4);
    color: var(--ok);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .75rem;
  }

  .qr-modal-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 .35rem;
  }

  .qr-modal-sub {
    font-size: .875rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
  }

  .qr-modal-preview {
    margin-bottom: 1.5rem;
  }

  .qr-modal-preview img {
    max-width: 200px;
    border-radius: 12px;
    border: 1px solid var(--border);
  }

  .qr-modal-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.25rem;
  }

  .btn-modal-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    padding: .85rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: .95rem;
    transition: background .2s;
  }

  .btn-modal-dl:hover {
    background: #1d4ed8;
    color: #fff;
  }

  .btn-modal-secondary {
    display: block;
    padding: .75rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--mid);
    font-weight: 700;
    text-decoration: none;
    font-size: .9rem;
    transition: border-color .2s;
  }

  .btn-modal-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
  }

  .qr-modal-note {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.6;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin: 0;
  }

  .qr-modal-note a {
    color: var(--blue);
  }

  /* ══════════════════════════════════════════
     QR INPUT FORM (hero page_type)
  ══════════════════════════════════════════ */
  .tool-form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
  }

  .hero-input {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .95rem;
    color: var(--dark);
    outline: none;
    background: #fff;
    transition: border-color .15s;
    box-sizing: border-box;
  }

  .hero-input:focus {
    border-color: var(--blue);
  }

  .btn-generate {
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    padding: .8rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: background .2s;
    white-space: nowrap;
  }

  .btn-generate:hover {
    background: #1d4ed8;
  }

  .btn-generate:disabled {
    opacity: .6;
    cursor: not-allowed;
  }

  .tool-input-row {
    display: flex;
    gap: .75rem;
  }

  .tool-input-row .hero-input {
    flex: 1;
  }

  .qr-alert {
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .85rem;
    margin-top: .5rem;
  }

  .qr-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
  }

  /* ══════════════════════════════════════════
     BACK TO TOP
  ══════════════════════════════════════════ */
  .home-back-to-top {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #334155;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
    backdrop-filter: blur(10px);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
    text-decoration: none;
  }

  .home-back-to-top:hover,
  .home-back-to-top:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .35);
    color: var(--blue);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
  }

  .home-back-to-top:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .18);
    outline-offset: 3px;
  }

  .home-back-to-top .btt-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }

  .home-back-to-top .btt-label {
    position: absolute;
    left: calc(100% + .6rem);
    top: 50%;
    transform: translate(-6px, -50%);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    padding: .38rem .62rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 999px;
    background: rgba(15, 23, 42, .94);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
    transition: opacity .18s ease, transform .18s ease;
  }

  .home-back-to-top .btt-label::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%) rotate(45deg);
    background: rgba(15, 23, 42, .94);
  }

  .home-back-to-top:hover .btt-label,
  .home-back-to-top:focus-visible .btt-label,
  .home-back-to-top.is-label-visible .btt-label {
    opacity: 1;
    transform: translate(0, -50%);
  }

  /* ══════════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════════ */
  @media (max-width:1024px) {
    .h-hero-inner {
      grid-template-columns: 1fr;
      gap: 3rem;
    }

    .h-hero-text p {
      max-width: 100%;
    }

    .h-hero-panel {
      display: none;
    }

    .h-modules-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .h-plans-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .h-tools-grid {
      grid-template-columns: 1fr 1fr;
    }

    .h-qr-inner,
    .h-finanzas-inner,
    .h-teams-inner {
      grid-template-columns: 1fr;
      gap: 3rem;
    }
  }

  @media (max-width:768px) {
    .h-hero {
      padding: 3.5rem 0 4rem;
    }

    .h-stats-bar-inner {
      flex-wrap: wrap;
      gap: 1.5rem;
      justify-content: center;
    }

    .h-stat-item {
      border-right: none;
      padding: 0 1.5rem;
    }

    .h-modules-grid {
      grid-template-columns: 1fr;
    }

    .h-tools-grid {
      grid-template-columns: 1fr;
    }

    .h-plans-grid {
      grid-template-columns: 1fr 1fr;
    }

    .h-qrhero-inner {
      flex-direction: column;
    }

    .h-teams-visual {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width:540px) {
    body.home-page {
      --chat--toggle--size: 52px;
      --chat--window--right: .75rem;
      --chat--window--bottom: .75rem;
    }

    body.home-page .chat-window-toggle {
      width: 52px;
      height: 52px;
    }

    body.home-page .chat-window-wrapper {
      transition: opacity .18s ease, transform .18s ease;
    }

    body.home-page.home-chat-clear .chat-window-wrapper {
      opacity: 0;
      pointer-events: none;
      transform: translateY(8px);
    }

    .h-plans-grid {
      grid-template-columns: 1fr;
    }

    .h-cta-btns {
      flex-direction: column;
      align-items: center;
    }
  }

.h-ascii {
    background: #05070d;
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .h-ascii-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .h-ascii-text h2 {
    color: #fff;
    font-size: 2rem;
    margin: .5rem 0 1rem;
  }

  .h-ascii-text p {
    color: #94a3b8;
    max-width: 42ch;
    line-height: 1.6;
  }

  .h-ascii-stage {
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .h-ascii-stage>div {
    font-family: 'Courier New', monospace;
  }

  @media (max-width:768px) {
    .h-ascii-inner {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    .h-ascii-stage {
      min-height: 260px;
    }
  }
