/* ============================================================
   styles/landing.css — TuftingMaker
   Estilos de la landing/home (/). Extraídos del <style is:global>
   inline de index.astro (respeta la regla de 300 líneas). Cargado
   vía <link slot="head"> igual que public.css / community.css.
   ============================================================ */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      /* Landing tokens — cálidos, expresivos */
      --clay: #B5491E;
      --clay-dk: #8C3515;
      --clay-soft: #E8C5B2;
      --clay-pale: #F8EDE7;
      --cream: #FAF6F1;
      --cream-2: #F3EDE5;
      --sand: #EDE4D8;
      --sand-2: #D9CCBF;
      --ink: #1C1410;
      --ink-2: #3D2E27;
      --ink-3: #7A6058;
      --ink-4: #A89680;
      --white: #FFFFFF;
      --success: #2D6A4A;
      --error: #A8282A;
      /* App tokens — para el modal */
      --bg-app: #F2EEE8;
      --border-app: #DDD7CF;
      --surface-app: #FFFFFF;
      --text-app: #1A1614;
      --text-2-app: #48403A;
      --text-3-app: #7A706A;
      --accent-dim: rgba(181, 73, 30, .09);

      --r: 12px;
      --r-lg: 20px;
      --r-xl: 28px;
      --sh: 0 4px 32px rgba(28, 20, 16, .10);
      --sh-lg: 0 16px 64px rgba(28, 20, 16, .18);
      --sh-xl: 0 24px 80px rgba(28, 20, 16, .22);

      --font-display: 'Playfair Display', Georgia, serif;
      --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
      --font-mono: 'Geist Mono', ui-monospace, monospace;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      background: var(--cream);
      color: var(--ink);
      line-height: 1.6;
      overflow-y: scroll;
      -webkit-font-smoothing: antialiased;
    }

    /* ══════════════════════════════════════════
       NAVBAR
    ══════════════════════════════════════════ */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 300;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 48px;
      height: 64px;
      background: rgba(250, 246, 241, .92);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid transparent;
      transition: border-color .3s, box-shadow .3s;
    }

    nav.scrolled {
      border-bottom-color: var(--sand-2);
      box-shadow: 0 2px 20px rgba(28, 20, 16, .07);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--ink);
    }

    .nav-logo-text {
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 15px;
      letter-spacing: -.3px;
    }

    .nav-logo-text span {
      color: var(--ink-3);
      font-weight: 400;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 32px;
      list-style: none;
      flex-shrink: 0;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--ink-2);
      font-size: 14px;
      font-weight: 500;
      transition: color .2s;
      white-space: nowrap;
    }

    .nav-links a:hover {
      color: var(--clay);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    /* ── Botones ── */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 10px 22px;
      border-radius: 50px;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border: none;
      text-decoration: none;
      transition: all .2s;
      white-space: nowrap;
      letter-spacing: -.1px;
    }

    .btn-ghost {
      background: transparent;
      color: var(--ink-2);
    }

    .btn-ghost:hover {
      background: var(--sand);
      color: var(--ink);
    }

    .btn-primary {
      background: var(--clay);
      color: var(--white);
      box-shadow: 0 2px 12px rgba(181, 73, 30, .35);
    }

    .btn-primary:hover {
      background: var(--clay-dk);
      box-shadow: 0 4px 20px rgba(181, 73, 30, .45);
      transform: translateY(-1px);
    }

    .btn-primary:active {
      transform: translateY(0);
    }

    .btn-outline {
      background: transparent;
      color: var(--clay);
      border: 1.5px solid var(--clay);
    }

    .btn-outline:hover {
      background: var(--clay);
      color: var(--white);
    }

    .btn-white {
      background: var(--white);
      color: var(--clay);
      box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
    }

    .btn-white:hover {
      background: var(--cream);
      box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
      transform: translateY(-1px);
    }

    .btn-lg {
      padding: 14px 32px;
      font-size: 15px;
    }

    .btn-full {
      width: 100%;
      justify-content: center;
    }

    /* ══════════════════════════════════════════
       HERO
    ══════════════════════════════════════════ */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 120px 24px 80px;
      position: relative;
      overflow: hidden;
    }

    /* Gradiente de fondo cálido */
    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      background:
        radial-gradient(ellipse 90% 65% at 50% -5%, rgba(181, 73, 30, .09) 0%, transparent 68%),
        radial-gradient(ellipse 55% 45% at 85% 90%, rgba(181, 73, 30, .055) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 10% 70%, rgba(181, 73, 30, .04) 0%, transparent 50%);
    }

    /* Cuadrícula — evoca la tela de tufting */
    .hero-grid {
      position: absolute;
      inset: 0;
      z-index: 0;
      opacity: .028;
      background-image:
        repeating-linear-gradient(0deg, var(--ink) 0, var(--ink) 1px, transparent 1px, transparent 28px),
        repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 1px, transparent 1px, transparent 28px);
    }

    /* ── Canvas: rastro de hilo sobre el lienzo ── */
    #tufting-canvas {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
    }

    /* ── Pistola de tufting (PNG transparente, discreta) ── */
    #tufting-gun {
      position: absolute;
      z-index: 2;
      pointer-events: none;
      width: 70px;
      height: auto;
      opacity: 0;
      transition: opacity .6s ease;
      filter: drop-shadow(0 2px 6px rgba(28, 20, 16, .20));
    }

    /* ── Ovillo SVG que aparece al terminar el bordado ── */
    #yarn-reveal {
      position: absolute;
      z-index: 3;
      pointer-events: none;
      opacity: 0;
      transform: scale(0.6);
      transition: opacity .55s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1);
      filter: drop-shadow(0 4px 14px rgba(181, 73, 30, .30));
    }

    #yarn-reveal.visible {
      opacity: 1;
      transform: scale(1);
    }

    /* ── Destellos de celebración ── */
    #sparkles-canvas {
      position: absolute;
      inset: 0;
      z-index: 4;
      pointer-events: none;
    }

    .hero-content {
      position: relative;
      z-index: 3;
      max-width: 780px;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--white);
      border: 1px solid var(--sand-2);
      border-radius: 50px;
      padding: 6px 16px 6px 10px;
      font-size: 13px;
      font-weight: 500;
      color: var(--ink-2);
      margin-bottom: 32px;
      box-shadow: 0 2px 8px rgba(28, 20, 16, .07);
      animation: fadeDown .6s ease both;
    }

    .badge-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--clay);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {

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

      50% {
        opacity: .5;
        transform: scale(.75)
      }
    }

    .hero h1 {
      font-family: var(--font-display);
      font-size: clamp(44px, 7.5vw, 82px);
      font-weight: 900;
      line-height: 1.04;
      letter-spacing: -2px;
      color: var(--ink);
      margin-bottom: 24px;
      animation: fadeUp .7s .1s ease both;
    }

    .hero h1 em {
      font-style: italic;
      color: var(--clay);
    }

    .hero-sub {
      font-size: clamp(16px, 2vw, 18px);
      color: var(--ink-3);
      max-width: 540px;
      margin: 0 auto 40px;
      line-height: 1.7;
      animation: fadeUp .7s .18s ease both;
    }

    .hero-ctas {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      animation: fadeUp .7s .26s ease both;
    }

    .hero-proof {
      margin-top: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
      animation: fadeUp .7s .34s ease both;
    }

    .proof-item {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 13px;
      color: var(--ink-3);
    }

    .proof-sep {
      color: var(--sand-2);
    }

    /* ══════════════════════════════════════════
       MOCKUP
    ══════════════════════════════════════════ */
    .mockup-section {
      padding: 0 24px 80px;
      display: flex;
      justify-content: center;
    }

    .mockup-wrap {
      width: 100%;
      max-width: 980px;
      background: var(--ink);
      border-radius: var(--r-lg);
      overflow: hidden;
      box-shadow: var(--sh-xl);
      border: 1px solid rgba(255, 255, 255, .06);
      animation: fadeUp .8s .42s ease both;
    }

    .mockup-bar {
      background: #1A100C;
      padding: 11px 18px;
      display: flex;
      align-items: center;
      gap: 7px;
      border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .m-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
    }

    .mockup-bar-url {
      flex: 1;
      margin-left: 10px;
      background: rgba(255, 255, 255, .05);
      border-radius: 5px;
      padding: 3px 10px;
      font-size: 11px;
      color: rgba(255, 255, 255, .25);
      font-family: var(--font-mono);
    }

    .mockup-body {
      display: grid;
      grid-template-columns: 196px 1fr;
      min-height: 390px;
    }

    .mock-sb {
      background: #140E0B;
      padding: 16px 0;
      border-right: 1px solid rgba(255, 255, 255, .05);
    }

    .mock-logo-row {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0 14px 14px;
      border-bottom: 1px solid rgba(255, 255, 255, .05);
      margin-bottom: 14px;
    }

    .mock-logo-ic {
      width: 22px;
      height: 22px;
      border-radius: 5px;
      background: var(--clay);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .mock-logo-txt {
      font-size: 11px;
      color: rgba(255, 255, 255, .6);
      font-weight: 600;
      font-family: var(--font-mono);
    }

    .mock-sl {
      font-size: 9px;
      color: rgba(255, 255, 255, .2);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      padding: 0 14px 6px;
    }

    .mock-ni {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 6px 14px;
      font-size: 10px;
      color: rgba(255, 255, 255, .35);
      margin-bottom: 1px;
    }

    .mock-ni.on {
      background: rgba(181, 73, 30, .12);
      color: rgba(232, 197, 178, .9);
      border-left: 2px solid var(--clay);
      padding-left: 12px;
    }

    .mock-main {
      background: #1E1410;
      padding: 18px;
    }

    .mock-pt {
      font-size: 15px;
      font-weight: 600;
      color: rgba(255, 255, 255, .8);
      margin-bottom: 3px;
    }

    .mock-ps {
      font-size: 9px;
      color: rgba(255, 255, 255, .25);
      font-family: var(--font-mono);
      margin-bottom: 16px;
    }

    .mock-stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-bottom: 12px;
    }

    .mock-sc {
      background: rgba(255, 255, 255, .03);
      border: 1px solid rgba(255, 255, 255, .06);
      border-radius: 8px;
      padding: 11px;
    }

    .mock-sl2 {
      font-size: 8px;
      color: rgba(255, 255, 255, .28);
      margin-bottom: 5px;
    }

    .mock-sv {
      font-size: 18px;
      font-weight: 700;
      color: rgba(255, 255, 255, .75);
    }

    .mock-sv.hi {
      color: #D4896A;
    }

    .mock-ss {
      font-size: 7px;
      color: rgba(255, 255, 255, .22);
      margin-top: 2px;
    }

    .mock-g2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .mock-card {
      background: rgba(255, 255, 255, .03);
      border: 1px solid rgba(255, 255, 255, .06);
      border-radius: 8px;
      padding: 11px;
    }

    .mock-ct {
      font-size: 9px;
      font-weight: 600;
      color: rgba(255, 255, 255, .3);
      text-transform: uppercase;
      letter-spacing: .8px;
      margin-bottom: 8px;
    }

    .mock-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 4px 0;
      border-bottom: 1px solid rgba(255, 255, 255, .04);
      font-size: 8px;
      color: rgba(255, 255, 255, .35);
    }

    .mock-tag {
      font-size: 7px;
      padding: 2px 6px;
      border-radius: 10px;
    }

    .mock-tag.clay {
      background: rgba(181, 73, 30, .18);
      color: #D4896A;
    }

    .mock-tag.green {
      background: rgba(45, 106, 74, .2);
      color: #6FCF97;
    }

    .mock-tag.yellow {
      background: rgba(122, 92, 0, .2);
      color: #E4BB47;
    }

    .mock-price {
      color: #6FCF97;
      font-weight: 700;
      font-size: 13px;
    }

    /* ══════════════════════════════════════════
       SECCIONES
    ══════════════════════════════════════════ */
    .section {
      padding: 88px 24px;
    }

    .section-inner {
      max-width: 1080px;
      margin: 0 auto;
    }

    .kicker {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--clay-dk);
      margin-bottom: 14px;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(30px, 4.5vw, 50px);
      font-weight: 700;
      line-height: 1.08;
      letter-spacing: -1px;
      color: var(--ink);
      margin-bottom: 14px;
    }

    .section-sub {
      font-size: 16px;
      color: var(--ink-3);
      max-width: 480px;
      line-height: 1.7;
    }

    /* ── Pilares (fondo oscuro) ── */
    .pillars {
      background: var(--ink);
      padding: 88px 24px;
    }

    .pillars .section-title {
      color: var(--white);
    }

    .pillars .section-sub {
      color: rgba(255, 255, 255, .45);
    }

    .pillars .kicker {
      color: var(--clay-soft);
    }

    .pillars-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 52px;
    }

    .pillar {
      background: rgba(255, 255, 255, .04);
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: var(--r-lg);
      padding: 32px 26px;
      position: relative;
      overflow: hidden;
      transition: background .25s, border-color .25s, transform .25s;
    }

    .pillar:hover {
      background: rgba(255, 255, 255, .07);
      border-color: rgba(181, 73, 30, .35);
      transform: translateY(-3px);
    }

    .pillar::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--clay), transparent);
      opacity: 0;
      transition: opacity .25s;
    }

    .pillar:hover::before {
      opacity: 1;
    }

    .pillar-icon {
      width: 44px;
      height: 44px;
      border-radius: 11px;
      background: rgba(181, 73, 30, .13);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      margin-bottom: 20px;
    }

    .pillar-title {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 10px;
    }

    .pillar-desc {
      font-size: 13px;
      color: rgba(255, 255, 255, .5);
      line-height: 1.7;
    }

    /* ── Módulos ── */
    .modules-section {
      background: var(--cream-2);
    }

    .modules-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 52px;
    }

    .module {
      background: var(--white);
      border: 1px solid var(--sand-2);
      border-radius: var(--r-lg);
      padding: 24px 20px;
      transition: box-shadow .2s, transform .2s, border-color .2s;
    }

    .module:hover {
      box-shadow: var(--sh);
      transform: translateY(-3px);
      border-color: var(--clay-soft);
    }

    .module-icon {
      font-size: 22px;
      margin-bottom: 12px;
      display: block;
      color: var(--ink-3);
    }

    .module-name {
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 6px;
      letter-spacing: -.2px;
    }

    .module-desc {
      font-size: 13px;
      color: var(--ink-3);
      line-height: 1.65;
    }

    /* Centra la última tarjeta cuando queda sola en la fila final de una
       grilla de 3 columnas (7 módulos, 4 pilares) en vez de dejarla pegada
       a la izquierda con dos columnas vacías al lado. Solo aplica cuando
       hay exactamente 1 elemento sobrante (posición 3n+1 y último hijo);
       si vuelve a cambiar la cantidad de módulos/pilares, revisar si sigue
       aplicando. Fuera del breakpoint mobile (grid ya es 1 columna ahí). */
    @media (min-width: 769px) {
      .modules-grid > .module:nth-child(3n+1):last-child,
      .pillars-grid > .pillar:nth-child(3n+1):last-child {
        grid-column: 2;
      }
    }

    /* ── Para quién ── */
    .audience-section {
      background: var(--sand);
    }

    .audience-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 52px;
    }

    .audience-card {
      background: var(--white);
      border: 1px solid var(--sand-2);
      border-radius: var(--r-lg);
      padding: 26px 22px;
    }

    .audience-em {
      font-size: 28px;
      margin-bottom: 14px;
    }

    .audience-ttl {
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 8px;
    }

    .audience-dsc {
      font-size: 13px;
      color: var(--ink-3);
      line-height: 1.65;
    }

    /* ── CTA final ── */
    /* ══════════════════════════════════════════
       PRICING PREVIEW
    ══════════════════════════════════════════ */
    .pricing-preview-section {
      background: var(--cream);
    }

    .pricing-preview-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin: 52px 0 36px;
      align-items: stretch;
    }

    .pp-card {
      background: var(--white);
      border: 1.5px solid var(--sand-2);
      border-radius: var(--r-lg);
      padding: 28px 24px 24px;
      position: relative;
      transition: box-shadow .2s, transform .2s;
      display: flex;
      flex-direction: column;
    }

    .pp-card:hover {
      box-shadow: var(--sh);
      transform: translateY(-3px);
    }

    .pp-card--featured {
      border-color: var(--clay);
      border-width: 2px;
      box-shadow: 0 8px 40px rgba(181, 73, 30, .14);
    }

    .pp-card--featured:hover {
      box-shadow: 0 16px 56px rgba(181, 73, 30, .20);
      transform: translateY(-4px);
    }

    .pp-badge {
      display: inline-block;
      background: var(--clay);
      color: var(--white);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      padding: 3px 10px;
      border-radius: 50px;
      margin-bottom: 14px;
    }

    .pp-plan-name {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 8px;
    }

    .pp-price {
      display: flex;
      align-items: baseline;
      gap: 4px;
      margin-bottom: 10px;
    }

    .pp-amount {
      font-family: var(--font-display);
      font-size: 38px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1;
    }

    .pp-period {
      font-size: 13px;
      color: var(--ink-3);
    }

    .pp-desc {
      font-size: 13px;
      color: var(--ink-3);
      line-height: 1.55;
      margin-bottom: 18px;
      min-height: 38px;
    }

    .pp-features {
      list-style: none;
      margin: 0 0 22px;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex-grow: 1;
    }

    .pp-features li {
      font-size: 13px;
      color: var(--ink-2);
      line-height: 1.4;
    }

    .pp-footer {
      text-align: center;
    }

    .pp-link {
      font-size: 14px;
      font-weight: 600;
      color: var(--clay);
      text-decoration: none;
      border-bottom: 1.5px solid rgba(181, 73, 30, .25);
      padding-bottom: 1px;
      transition: border-color .2s;
    }

    .pp-link:hover {
      border-color: var(--clay);
    }

    .pp-note {
      font-size: 12px;
      color: var(--ink-3);
      margin-top: 14px;
      font-family: var(--font-mono);
    }

    @media (max-width: 860px) {
      .pricing-preview-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
      }
    }

    .cta-section {
      background: var(--clay);
      padding: 88px 24px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .cta-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 65% 80% at 50% -10%, rgba(255, 255, 255, .09) 0%, transparent 60%);
    }

    /* Mini cuadrícula en el CTA también */
    .cta-section::after {
      content: '';
      position: absolute;
      inset: 0;
      opacity: .04;
      background-image:
        repeating-linear-gradient(0deg, #fff 0, #fff 1px, transparent 1px, transparent 28px),
        repeating-linear-gradient(90deg, #fff 0, #fff 1px, transparent 1px, transparent 28px);
    }

    .cta-inner {
      position: relative;
      z-index: 1;
      max-width: 580px;
      margin: 0 auto;
    }

    .cta-h {
      font-family: var(--font-display);
      font-size: clamp(32px, 5vw, 54px);
      font-weight: 700;
      color: var(--white);
      letter-spacing: -1.2px;
      line-height: 1.08;
      margin-bottom: 16px;
    }

    .cta-h em {
      font-style: italic;
    }

    .cta-p {
      font-size: 16px;
      color: rgba(255, 255, 255, .68);
      margin-bottom: 32px;
      line-height: 1.65;
    }

    .cta-note {
      font-size: 13px;
      color: rgba(255, 255, 255, .45);
      margin-top: 14px;
    }

    /* ── Footer ── */
    footer {
      background: var(--ink);
      padding: 40px 24px;
      text-align: center;
    }

    .footer-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      margin-bottom: 10px;
      text-decoration: none;
    }

    .footer-logo-txt {
      font-size: 14px;
      font-weight: 600;
      color: rgba(255, 255, 255, .65);
    }

    .footer-tag {
      font-size: 12px;
      color: rgba(255, 255, 255, .28);
      margin-bottom: 22px;
    }

    .footer-nav {
      display: flex;
      justify-content: center;
      gap: 26px;
      list-style: none;
      flex-wrap: wrap;
    }

    .footer-nav a {
      font-size: 13px;
      color: rgba(255, 255, 255, .3);
      text-decoration: none;
      transition: color .2s;
    }

    .footer-nav a:hover {
      color: rgba(255, 255, 255, .7);
    }

    .footer-copy {
      font-size: 11px;
      color: rgba(255, 255, 255, .15);
      margin-top: 22px;
      font-family: var(--font-mono);
    }

    /* Ocultar pistola, lienzo, brillos y ovillo al abrir modal para reducir distracciones */
    body.modal-open #tufting-gun,
    body.modal-open #tufting-canvas,
    body.modal-open #sparkles-canvas,
    body.modal-open #yarn-reveal {
      opacity: 0 !important;
      transition: opacity 0.3s ease !important;
    }

    /* ══════════════════════════════════════════
       MODAL AUTH — estilo v2 (limpio, app-like)
    ══════════════════════════════════════════ */
    .overlay {
      position: fixed;
      inset: 0;
      z-index: 500;
      background: rgba(28, 20, 16, .68);
      backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      opacity: 0;
      pointer-events: none;
      transition: opacity .22s;
    }

    .overlay.open {
      opacity: 1;
      pointer-events: all;
    }

    .modal {
      background: var(--surface-app);
      border: 1px solid var(--border-app);
      border-radius: var(--r-lg);
      width: 100%;
      max-width: 400px;
      box-shadow: var(--sh-xl);
      overflow: hidden;
      transform: translateY(14px) scale(.97);
      transition: transform .28s cubic-bezier(.34, 1.4, .64, 1);
      font-family: var(--font-body);
    }

    .overlay.open .modal {
      transform: translateY(0) scale(1);
    }

    .modal-top {
      padding: 20px 22px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .modal-brand {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .modal-brand-txt {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-app);
    }

    .modal-x {
      background: none;
      border: none;
      cursor: pointer;
      width: 28px;
      height: 28px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-3-app);
      font-size: 18px;
      transition: background .15s;
    }

    .modal-x:hover {
      background: var(--bg-app);
    }

    .modal-tabs {
      display: flex;
      padding: 14px 22px 0;
      gap: 2px;
      border-bottom: 1px solid var(--border-app);
    }

    .tab-btn {
      flex: 1;
      padding: 8px;
      text-align: center;
      font-size: 13px;
      font-weight: 500;
      font-family: var(--font-body);
      cursor: pointer;
      border: none;
      background: none;
      color: var(--text-3-app);
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
      transition: color .15s, border-color .15s;
    }

    .tab-btn.on {
      color: var(--clay);
      border-bottom-color: var(--clay);
    }

    .modal-body {
      padding: 20px 22px 24px;
    }

    .modal-panel {
      display: none;
    }

    .modal-panel.on {
      display: block;
    }

    .modal-h {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 700;
      color: var(--text-app);
      letter-spacing: -.3px;
      margin-bottom: 4px;
    }

    .modal-sub {
      font-size: 12px;
      color: var(--text-3-app);
      margin-bottom: 20px;
      line-height: 1.5;
    }

    .m-alert {
      font-size: 12px;
      padding: 9px 12px;
      border-radius: 6px;
      margin-bottom: 14px;
      display: none;
      line-height: 1.5;
    }

    .m-alert.err {
      background: rgba(168, 40, 42, .07);
      color: var(--error);
      border: 1px solid rgba(168, 40, 42, .15);
      display: block;
    }

    .m-alert.ok {
      background: rgba(45, 106, 74, .08);
      color: var(--success);
      border: 1px solid rgba(45, 106, 74, .15);
      display: block;
    }

    .fg {
      margin-bottom: 13px;
    }

    .fl {
      display: block;
      font-size: 12px;
      font-weight: 500;
      color: var(--text-2-app);
      margin-bottom: 5px;
    }

    .fi {
      width: 100%;
      padding: 8px 11px;
      background: var(--bg-app);
      border: 1px solid var(--border-app);
      border-radius: 8px;
      font-family: var(--font-body);
      font-size: 13px;
      color: var(--text-app);
      outline: none;
      transition: border-color .15s, box-shadow .15s;
    }

    .fi:focus {
      border-color: var(--clay);
      box-shadow: 0 0 0 2px var(--accent-dim);
      background: var(--white);
    }

    .fi.err {
      border-color: var(--error);
    }

    .fe {
      font-size: 11px;
      color: var(--error);
      margin-top: 3px;
      display: none;
    }

    .fe.on {
      display: block;
    }

    .modal-note {
      background: var(--bg-app);
      border: 1px solid var(--border-app);
      border-radius: 8px;
      padding: 9px 12px;
      font-size: 11px;
      color: var(--text-3-app);
      margin-top: 14px;
      line-height: 1.6;
    }

    .modal-note strong {
      color: var(--text-2-app);
    }

    .modal-foot {
      text-align: center;
      font-size: 12px;
      color: var(--text-3-app);
      margin-top: 14px;
    }

    .modal-foot a, .modal-foot .link-btn {
      color: var(--clay);
      cursor: pointer;
    }
    .link-btn {
      background: none; border: none; padding: 0;
      font: inherit; color: var(--clay); cursor: pointer;
      text-decoration: underline;
    }

    /* ══════════════════════════════════════════
       ANIMACIONES
    ══════════════════════════════════════════ */
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(18px)
      }

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

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

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

    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity .55s ease, transform .55s ease;
    }

    .reveal.in {
      opacity: 1;
      transform: translateY(0);
    }

    /* ══════════════════════════════════════════
       RESPONSIVE
    ══════════════════════════════════════════ */
    @media(max-width:768px) {
      nav {
        padding: 0 20px;
      }

      .nav-links {
        display: none;
      }

      .pillars-grid,
      .modules-grid,
      .audience-grid {
        grid-template-columns: 1fr;
      }

      .mockup-body {
        grid-template-columns: 1fr;
      }

      .mock-sb {
        display: none;
      }

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

      .mock-g2 {
        grid-template-columns: 1fr;
      }
    }
