/* Magixtral — hoja de estilos compartida */

:root{
        color-scheme: dark;
        --bg: #09090f;
        --bg-soft: #0d0d16;
        --surface: #14131f;
        --surface-2: #191826;
        --border: rgba(255,255,255,0.08);
        --border-soft: rgba(255,255,255,0.05);
        --text: #f4f3f9;
        --text-muted: #d8d7dd;
        --text-dim: #b3b3b8;

        --cyan: #2fd7e8;
        --indigo: #5c4ce8;
        --magenta: #ec1f9e;
        --purple: #a63bd0;

        --grad-main: linear-gradient(120deg, var(--cyan) 0%, var(--indigo) 45%, var(--magenta) 100%);
        --grad-soft: linear-gradient(120deg, rgba(47,215,232,0.15) 0%, rgba(92,76,232,0.15) 45%, rgba(236,31,158,0.15) 100%);

        --font-display: 'Space Grotesk', sans-serif;
        --font-body: 'Inter', sans-serif;
        --font-mono: 'JetBrains Mono', monospace;

        --radius-lg: 22px;
        --radius-md: 14px;
        --radius-sm: 9px;

        --header-bg: rgba(9,9,15,0.72);
      }

      /* ---------- Light theme ---------- */
      html[data-theme="light"]{
        color-scheme: light;
        --bg: #f6f6fa;
        --bg-soft: #ffffff;
        --surface: #ffffff;
        --surface-2: #eeedf5;
        --border: rgba(9,9,15,0.10);
        --border-soft: rgba(9,9,15,0.06);
        --text: #100f1a;
        --text-muted: #4d4b5c;
        --text-dim: #6f6d80;
      }
      html[data-theme="light"] body{
        background: var(--bg);
      }
      html[data-theme="light"] .module-icon,
      html[data-theme="light"] .form-field-priority,
      html[data-theme="light"] .metrics-panel,
      html[data-theme="light"] .price-card-featured{
        background: var(--grad-soft);
      }
      html, body{ transition: background-color .3s ease, color .3s ease; }
      html[data-theme="light"] .demo-form{ background: rgba(255,255,255,0.75); }
      html[data-theme="light"] .final-cta-scrim{
        background: radial-gradient(80% 100% at 50% 100%, rgba(9,9,15,0.95) 0%, rgba(9,9,15,0.75) 55%, rgba(9,9,15,0.55) 100%);
      }
      html[data-theme="light"] .compare-table thead th{ color: var(--text-muted); }
      html[data-theme="light"]{ --header-bg: rgba(246,246,250,0.86); }

      *{ box-sizing: border-box; margin:0; padding:0; }
      html{ scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
      body{
        padding-top: var(--header-height);
        background: var(--bg);
        color: var(--text);
        font-family: var(--font-body);
        line-height: 1.55;
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
      }
      img{ max-width:100%; display:block; }
      a{ color: inherit; text-decoration:none; }
      ul{ list-style:none; }
      section{ position: relative; }

      .wrap{
        max-width: 1180px;
        margin: 0 auto;
        padding: 0 32px;
      }

      ::selection{ background: var(--magenta); color:#fff; }

      /* ---------- Background ambience ---------- */
      .bg-noise{
        position: fixed; inset:0; pointer-events:none; z-index:0;
        background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
        background-size: 3px 3px;
        opacity: 0.5;
      }
      .glow{
        position:absolute; border-radius:50%;
        filter: blur(90px);
        pointer-events:none;
        opacity: 0.35;
        z-index:0;
      }

      /* ---------- Dot cluster motif (from logo) ---------- */
      .dot-cluster{ position:absolute; pointer-events:none; z-index:0; opacity:0.9; }

      /* ---------- Rising icon silhouettes ---------- */
      .icon-rain{
        position: fixed; inset:0;
        pointer-events:none;
        z-index: 1;
        overflow: hidden;
      }
      .rising-icon{
        position: absolute;
        bottom: -80px;
        opacity: 0;
        animation-name: floatUp;
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
        will-change: transform, opacity;
      }
      .rising-icon svg{
        width: 100%; height:100%;
        display:block;
      }
      @keyframes floatUp{
        0%{
          transform: translateY(0) translateX(0) rotate(0deg);
          opacity: 0;
        }
        12%{
          opacity: var(--icon-peak, 0.16);
        }
        50%{
          transform: translateY(-52vh) translateX(var(--drift, 20px)) rotate(var(--spin, 8deg));
        }
        88%{
          opacity: var(--icon-peak, 0.16);
        }
        100%{
          transform: translateY(-108vh) translateX(calc(var(--drift, 20px) * -1)) rotate(calc(var(--spin, 8deg) * -1));
          opacity: 0;
        }
      }
      @media (max-width: 680px){
        .rising-icon{ display: none; }
        .rising-icon:nth-child(-n+7){ display: block; }
      }

      /* ---------- Nav ---------- */
      header{
        position: fixed; top:0; left:0; right:0; z-index:100;
        backdrop-filter: blur(14px) saturate(140%);
        background: var(--header-bg);
        border-bottom: 1px solid var(--border-soft);
        transition: border-color .3s ease, background-color .3s ease;
      }
      main, footer{ position: relative; z-index: 2; }
      .nav{
        display:flex; align-items:center; justify-content:space-between;
        padding: 14px 32px;
        max-width: 1180px; margin: 0 auto;
      }
      .nav-brand{
        display: flex;
        align-items: center;
        gap: 14px;
      }
      .nav-brand img{ height: 30px; width:auto; display:block; }
      .theme-logo{ transition: opacity .2s ease; }
      .nav-tagline{
        font-family: var(--font-mono);
        font-size: 10.5px;
        line-height: 1.35;
        letter-spacing: 0.02em;
        color: var(--text-dim);
        padding-left: 14px;
        border-left: 1px solid var(--border);
      }
      @media (max-width: 680px){
        .nav-tagline{ display: none; }
      }
      .nav-links{ display:flex; gap:36px; align-items:center; }
      .nav-links a{
        font-size: 14.5px; color: var(--text-muted); font-weight:500;
        transition: color .2s ease;
      }
      .nav-links a:hover{ color: var(--text); }
      .nav-cta{
        padding: 10px 20px;
        border-radius: 100px;
        background: var(--grad-main);
        color: #08060c;
        font-weight: 700;
        font-size: 14px;
        letter-spacing: -0.01em;
        transition: transform .2s ease, box-shadow .2s ease;
        white-space: nowrap;
      }
      .nav-cta:hover{ transform: translateY(-1px); box-shadow: 0 8px 24px rgba(236,31,158,0.35); }

      /* ---------- Mobile menu ---------- */
      .nav-toggle{
        display: none;
        width: 38px; height: 38px;
        border-radius: 50%;
        background: var(--surface-2);
        border: 1px solid var(--border);
        color: var(--text);
        align-items: center; justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
      }
      .nav-toggle svg{ width: 18px; height: 18px; }
      .nav-toggle .icon-close{ display: none; }
      .nav-toggle.open .icon-burger{ display: none; }
      .nav-toggle.open .icon-close{ display: block; }

      .mobile-menu{
        display: none;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        border-top: 1px solid var(--border-soft);
      }
      .mobile-menu.open{ max-height: 420px; }
      .mobile-menu a{
        padding: 16px 32px;
        font-size: 15px;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border-soft);
      }
      .mobile-menu a:hover{ color: var(--text); }
      .mobile-menu-cta{
        color: var(--cyan) !important;
        font-weight: 700;
      }

      @media (max-width: 900px){
        .nav-links{ display:none; }
        .nav-toggle{ display: flex; }
        .mobile-menu{ display: flex; }
      }
      @media (max-width: 480px){
        .nav-cta{ display: none; }
      }

      .nav-right{ display:flex; align-items:center; gap:16px; }
      .theme-toggle{
        width: 38px; height: 38px;
        border-radius: 50%;
        background: var(--surface-2);
        border: 1px solid var(--border);
        color: var(--text-muted);
        display:flex; align-items:center; justify-content:center;
        cursor: pointer;
        flex-shrink: 0;
        transition: background .2s ease, border-color .2s ease, color .2s ease;
      }
      .theme-toggle:hover{ background: var(--surface); color: var(--text); }
      .theme-toggle svg{ width: 18px; height: 18px; }
      .theme-toggle .icon-moon{ display: none; }
      html[data-theme="light"] .theme-toggle .icon-sun{ display: none; }
      html[data-theme="light"] .theme-toggle .icon-moon{ display: block; }

      /* ---------- Buttons ---------- */
      .btn{
        display:inline-flex; align-items:center; gap:8px;
        padding: 15px 28px;
        border-radius: 100px;
        font-weight: 700;
        font-size: 15px;
        cursor:pointer;
        border: none;
        transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
      }
      .btn-primary{
        background: var(--grad-main);
        background-size: 180% 180%;
        color: #08060c;
        animation: shimmer 6s ease-in-out infinite;
      }
      .btn-primary:hover{ transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px rgba(236,31,158,0.3); }
      .btn-primary:active{ transform: translateY(0) scale(0.98); }
      @keyframes shimmer{
        0%,100%{ background-position: 0% 50%; }
        50%{ background-position: 100% 50%; }
      }
      .btn-ghost{
        background: transparent;
        color: var(--text);
        border: 1px solid var(--border);
      }
      .btn-ghost:hover{ background: var(--surface); border-color: rgba(255,255,255,0.16); }

      /* ---------- Eyebrow / labels ---------- */
      .eyebrow{
        font-family: var(--font-mono);
        font-size: 12.5px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--cyan);
        display:flex; align-items:center; gap:10px;
        margin-bottom: 18px;
        font-weight: 500;
        margin-top: 100px;
      }
      .eyebrow::before{
        content:'';
        width: 22px; height: 1px;
        background: var(--cyan);
        display:inline-block;
      }

      h1,h2,h3,h4{ font-family: var(--font-display); letter-spacing: -0.02em; font-weight:600; }

      /* ---------- Scroll-driven hero scene ---------- */
      .scene-hero{
        position: relative;
        height: 100vh; /* scroll distance that drives the transition */
      }
      .scene-sticky{
        position: sticky;
        top: 0;
        height: 80vh;
        overflow: hidden;
        display: flex;
        align-items: center;
      }
      .scene-vignette{
        position: absolute;
        inset: 0;
        background: radial-gradient(120% 90% at 50% 100%, rgba(9,9,15,0.95) 0%, rgba(9,9,15,0) 60%);
        opacity: 0;
        pointer-events: none;
        z-index: 3;
      }
      #heroText, #heroVisual{
        will-change: transform, opacity;
      }
      @media (max-width: 900px){
        .scene-hero{ height: auto; }
        .scene-sticky{ position: relative; height: auto; }
      }

      /* ---------- Hero ---------- */
      .hero{
        width: 100%;
        padding: 96px 0 60px;
        position: relative;
      }
      .hero-grid{
        display:grid;
        grid-template-columns: 1.05fr 1fr;
        gap: 56px;
        align-items:center;
        position: relative; z-index:2;
      }
      .hero h1{
        font-size: clamp(2.4rem, 4.6vw, 3.6rem);
        line-height: 1.06;
        margin-bottom: 22px;
      }
      .hero h1 .accent{
        background: var(--grad-main);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
      .hero p.lead{
        font-size: 17.5px;
        color: var(--text-muted);
        max-width: 480px;
        margin-bottom: 34px;
      }
      .hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 40px; }
      .hero-chips{ display:flex; gap: 10px; flex-wrap:wrap; }
      .chip{
        font-family: var(--font-mono);
        font-size: 12px;
        color: var(--text-muted);
        border: 1px solid var(--border);
        padding: 7px 13px;
        border-radius: 100px;
        display:flex; align-items:center; gap:7px;
        background: rgba(255,255,255,0.02);
      }
      .chip .dot{ width:6px; height:6px; border-radius:50%; background: var(--magenta); flex-shrink:0; animation: pulseDot 2.2s ease-in-out infinite; }
      @keyframes pulseDot{
        0%,100%{ opacity:1; transform: scale(1); }
        50%{ opacity:.4; transform: scale(1.3); }
      }

      /* dashboard preview */
      .browser-frame{
        position: relative;
        border-radius: var(--radius-lg);
        background: var(--surface);
        border: 1px solid var(--border);
        box-shadow: 0 30px 90px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
        transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
        transition: transform .6s cubic-bezier(.16,1,.3,1);
        overflow:hidden;
        animation: gentleFloat 6s ease-in-out infinite;
      }
      .browser-frame:hover{ transform: perspective(1400px) rotateY(-2deg) rotateX(1deg) translateY(-4px); animation-play-state: paused; }
      .browser-bar{
        display:flex; align-items:center; gap:7px;
        padding: 13px 16px;
        background: var(--surface-2);
        border-bottom: 1px solid var(--border-soft);
      }
      .browser-bar span{ width:10px; height:10px; border-radius:50%; background: rgba(255,255,255,0.14); }
      .browser-bar span:nth-child(1){ background:#ec1f9e; opacity:.7; }
      .browser-bar span:nth-child(2){ background:#f2b300; opacity:.7; }
      .browser-bar span:nth-child(3){ background:#2fd7e8; opacity:.7; }
      .browser-frame img{ width:100%; display:block; }
      .hero-visual{ position:relative; z-index:2; }
      .hero-visual::after{
        content:'';
        position:absolute;
        inset: -30px -30px auto auto;
        width: 220px; height:220px;
        background: var(--grad-main);
        filter: blur(80px);
        opacity: 0.28;
        z-index:-1;
        top: -10%;
        animation: breathe 5s ease-in-out infinite;
      }
      @keyframes breathe{
        0%,100%{ opacity:0.22; transform: scale(1); }
        50%{ opacity:0.36; transform: scale(1.15); }
      }
      @keyframes gentleFloat{
        0%,100%{ transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(0); }
        50%{ transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(-10px); }
      }

      /* ---------- Stats bar ---------- */
      .statsbar{
        border-top: 1px solid var(--border-soft);
        border-bottom: 1px solid var(--border-soft);
        padding: 34px 0;
      }
      .statsbar .wrap{
        display:grid;
        grid-template-columns: repeat(4, 1fr);
      }
      .stat{
        text-align:center;
        padding: 0 16px;
        border-left: 1px solid var(--border-soft);
        opacity:0; transform: translateY(14px) scale(.96);
        transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1.2);
      }
      .stat.in-view{ opacity:1; transform:none; }
      .stat:nth-child(1){ transition-delay: 0s; }
      .stat:nth-child(2){ transition-delay: .08s; }
      .stat:nth-child(3){ transition-delay: .16s; }
      .stat:nth-child(4){ transition-delay: .24s; }
      .stat:first-child{ border-left:none; }
      .stat .num{
        font-family: var(--font-mono);
        font-size: 30px;
        font-weight: 600;
        background: var(--grad-main);
        -webkit-background-clip:text; background-clip:text; color:transparent;
      }
      .stat .label{
        font-size: 13px; color: var(--text-muted); margin-top:6px;
      }

      /* ---------- Section heading ---------- */
      .section{ 
        padding: 100px 0; 
      }
      .section-head{ max-width: 80%; margin-bottom: 56px; }
      .section-head h2{ font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
      .section-head p{ color: var(--text-muted); font-size: 16.5px; }

      /* ---------- Módulos grid ---------- */
      .modules-grid{
        display:grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        background: var(--border-soft);
        border: 1px solid var(--border-soft);
        border-radius: var(--radius-lg);
        overflow:hidden;
      }
      .module-card{
        background: var(--bg-soft);
        padding: 32px 28px;
        transition: background .25s ease, transform .35s cubic-bezier(.2,.9,.3,1.3);
        opacity:0; transform: translateY(16px);
        cursor: pointer;
      }
      .module-card.in-view{ opacity:1; transform:none; transition: opacity .6s ease, transform .6s ease, background .25s ease; }
      .module-card:hover{ background: var(--surface); transform: translateY(-4px); }
      .module-card:hover .module-icon{ transform: scale(1.12) rotate(-6deg); }
      .module-card:nth-child(1){ transition-delay: 0s; }
      .module-card:nth-child(2){ transition-delay: .05s; }
      .module-card:nth-child(3){ transition-delay: .1s; }
      .module-card:nth-child(4){ transition-delay: .15s; }
      .module-card:nth-child(5){ transition-delay: .2s; }
      .module-card:nth-child(6){ transition-delay: .25s; }
      .module-card:nth-child(7){ transition-delay: .3s; }
      .module-card:nth-child(8){ transition-delay: .35s; }
      .module-card:nth-child(9){ transition-delay: .4s; }
      .module-icon{
        width: 42px; height:42px;
        border-radius: 12px;
        display:flex; align-items:center; justify-content:center;
        font-size: 19px;
        margin-bottom: 18px;
        transition: transform .35s cubic-bezier(.2,.9,.3,1.5);
      }
      .module-card h3{ font-size: 16.5px; margin-bottom: 10px; font-weight:600; }
      .module-card p{ font-size: 14px; color: var(--text-muted); }
      .module-card-hint{
        display:inline-flex; align-items:center; gap:5px;
        font-family: var(--font-mono);
        font-size: 11px;
        color: var(--cyan);
        margin-top: 12px;
        opacity: 0;
        transform: translateX(-4px);
        transition: opacity .25s ease, transform .25s ease;
      }
      .module-card:hover .module-card-hint{ opacity: 1; transform: none; }

      .module-card-wide{
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 22px;
        background: var(--grad-soft);
      }
      .module-card-wide .module-icon{ margin-bottom: 0; flex-shrink: 0; }
      .module-card-wide h3{ margin-bottom: 6px; }
      .module-card-wide p{ max-width: 640px; }
      @media (max-width: 680px){
        .module-card-wide{ flex-direction: column; align-items: flex-start; gap: 14px; }
      }

      /* ---------- See-all button ---------- */
      .see-all-btn{
        display:flex; align-items:center; justify-content:center; gap:8px;
        width: 100%;
        margin-top: 20px;
        padding: 16px;
        background: transparent;
        border: 1px dashed var(--border);
        border-radius: var(--radius-md);
        color: var(--text-muted);
        font-family: var(--font-mono);
        font-size: 13px;
        cursor: pointer;
        transition: border-color .2s ease, color .2s ease, background .2s ease;
      }
      .see-all-btn:hover{ border-color: var(--cyan); color: var(--text); background: rgba(47,215,232,0.06); }
      .see-all-btn svg{ width:16px; height:16px; transition: transform .25s ease; }
      .see-all-btn.expanded svg{ transform: rotate(180deg); }

      /* ---------- Full catalog (grouped by category) ---------- */
      .catalog-category{ margin-bottom: 40px; }
      .catalog-category:last-child{ margin-bottom: 0; }
      .catalog-category-head{
        display:flex; align-items:baseline; gap:10px;
        margin-bottom: 16px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-soft);
      }
      .catalog-category-head .cat-icon{ font-size: 18px; }
      .catalog-category-head h3{
        font-family: var(--font-display);
        font-size: 16px;
        font-weight: 600;
      }
      .catalog-category-head .cat-count{
        font-family: var(--font-mono);
        font-size: 11.5px;
        color: var(--text-dim);
      }
      .catalog-chips{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 10px;
      }
      .catalog-chip{
        display:flex; align-items:flex-start; gap: 12px;
        padding: 14px 16px;
        background: var(--bg-soft);
        border: 1px solid var(--border-soft);
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: background .2s ease, border-color .2s ease, transform .2s ease;
        text-align: left;
      }
      .catalog-chip:hover{ background: var(--surface); border-color: rgba(255,255,255,0.14); transform: translateY(-2px); }
      .catalog-chip .chip-icon{ font-size: 17px; flex-shrink:0; margin-top: 1px; }
      .catalog-chip h4{ font-size: 13.5px; font-weight:600; margin-bottom: 4px; }
      .catalog-chip p{ font-size: 12px; color: var(--text-muted); line-height: 1.4; }

      /* ---------- Feature detail modal ---------- */
      .feature-modal-overlay{
        position: fixed; inset: 0;
        background: rgba(5,5,9,0.72);
        backdrop-filter: blur(6px);
        z-index: 1000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 24px;
        opacity: 0;
        transition: opacity .25s ease;
      }
      .feature-modal-overlay.open{ display:flex; }
      .feature-modal-overlay.show{ opacity: 1; }
      .feature-modal{
        width: 100%;
        max-width: 520px;
        max-height: 85vh;
        overflow-y: auto;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 36px;
        position: relative;
        transform: translateY(16px) scale(.97);
        opacity: 0;
        transition: transform .3s cubic-bezier(.2,.9,.3,1.2), opacity .3s ease;
      }
      .feature-modal-overlay.show .feature-modal{ transform: none; opacity: 1; }
      .feature-modal-close{
        position: absolute; top: 20px; right: 20px;
        width: 32px; height: 32px;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
        border: 1px solid var(--border);
        color: var(--text-muted);
        display:flex; align-items:center; justify-content:center;
        cursor: pointer;
        transition: background .2s ease, color .2s ease;
      }
      .feature-modal-close:hover{ background: rgba(255,255,255,0.12); color: var(--text); }
      .feature-modal-close svg{ width:16px; height:16px; }
      .feature-modal-icon{
        width: 52px; height: 52px;
        border-radius: 14px;
        background: var(--grad-soft);
        display:flex; align-items:center; justify-content:center;
        font-size: 24px;
        margin-bottom: 20px;
      }
      .feature-modal-cat{
        font-family: var(--font-mono);
        font-size: 11.5px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--cyan);
        margin-bottom: 8px;
      }
      .feature-modal h3{ font-family: var(--font-display); font-size: 22px; margin-bottom: 14px; }
      .feature-modal p{ font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }
      .feature-modal-cta{
        display:flex; align-items:center; gap:8px;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid var(--border-soft);
        font-size: 13px;
        color: var(--text-dim);
      }
      .feature-modal-cta a{ color: var(--cyan); font-weight:600; }
      @media (max-width: 680px){
        .feature-modal{ padding: 28px 24px; }
        .catalog-chips{ grid-template-columns: 1fr; }
      }

      /* icon color rotation */
      .ic-cyan{ background: rgba(47,215,232,0.14); }
      .ic-indigo{ background: rgba(92,76,232,0.16); }
      .ic-magenta{ background: rgba(236,31,158,0.14); }

      /* ---------- Feature spotlight ---------- */
      .spotlight{
        display:grid;
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items:center;
      }
      .spotlight.reverse .spotlight-visual{ 
        order: 2; 
      }
      .spotlight.reverse .spotlight-text{ 
        order:1; 
      }
      .spotlight-text h2{ 
        font-size: clamp(1.7rem,2.6vw,2.2rem); 
        margin-bottom:18px; 
      }
      .spotlight-text p{ 
        color: var(--text-muted); 
        font-size: 16px; margin-bottom: 26px; 
      }
      .spotlight-list{ display:flex; flex-direction:column; gap:12px; }
      .spotlight-list li{
        display:flex; 
        align-items:center; 
        gap:12px;
        font-size: 14.5px; 
        color: var(--text);
      }
      .spotlight-list .bullet{
        width: 8px; 
        height:8px; 
        border-radius:50%;
        background: var(--grad-main);
        flex-shrink:0;
      }

      .card-panel{
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 32px;
      }

      /* bitacora stepper */
      .stepper{ display:flex; align-items:center; margin-bottom: 28px; }
      .step{
        font-family: var(--font-mono);
        font-size: 11.5px;
        color: var(--text-dim);
        text-align:center;
        flex:1;
        position:relative;
      }
      .step .circle{
        width: 30px; height:30px; border-radius:50%;
        background: var(--surface-2);
        border: 1px solid var(--border);
        display:flex; align-items:center; justify-content:center;
        margin: 0 auto 8px;
        font-size: 13px;
      }
      .step.active .circle{ background: var(--grad-main); color:#08060c; border:none; }
      .step:not(:last-child)::after{
        content:'';
        position:absolute; top:15px; left:60%; width:80%; height:1px;
        background: var(--border);
      }
      .event-badges{ display:flex; flex-wrap:wrap; gap:9px; }
      .event-badge{
        background: var(--surface-2);
        border:1px solid var(--border);
        border-radius: 100px;
        padding: 8px 14px;
        font-size: 12.5px;
        display:flex; align-items:center; gap:7px;
      }

      /* calendar mock */
      .cal-mock{ }
      .cal-grid{
        display:grid; grid-template-columns: repeat(7,1fr); gap:6px;
        margin-top: 18px;
      }
      .cal-day{
        aspect-ratio: 1;
        border-radius: 8px;
        background: var(--surface-2);
        display:flex; align-items:center; justify-content:center;
        font-family: var(--font-mono);
        font-size: 11px;
        color: var(--text-dim);
      }
      .cal-day.holiday{ background: rgba(236,31,158,0.18); color: var(--magenta); font-weight:600; }
      .cal-day.event{ background: rgba(47,215,232,0.16); color: var(--cyan); font-weight:600; }
      .cal-legend{ display:flex; gap:18px; margin-top:16px; font-size:12.5px; color:var(--text-muted); }
      .cal-legend span{ display:flex; align-items:center; gap:7px; }
      .cal-legend .sw{ width:10px; height:10px; border-radius:3px; }

      /* ---------- Pilares (errores + visibilidad) ---------- */
      .pillars-grid{
        display:grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
      }
      .pillar-card{
        position: relative;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 40px 36px;
        overflow:hidden;
      }
      .pillar-card::before{
        content:'';
        position:absolute; top:0; left:0; right:0; height:2px;
        background: var(--grad-main);
      }
      .pillar-num{
        font-family: var(--font-mono);
        font-size: 13px;
        color: var(--text-dim);
        letter-spacing: 0.1em;
        margin-bottom: 18px;
      }
      .pillar-card h3{ font-size: 22px; margin-bottom: 16px; }
      .pillar-lead{ color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }
      .pillar-checks{ 
        display:flex; 
        flex-direction:column; 
        gap: 14px; 
      }
      .pillar-checks li{
        display:flex;
        align-items:flex-start; 
        gap: 12px;
        font-size: 14.5px; color: var(--text-muted);
      }
      .pillar-checks .check{
        flex-shrink:0;
        width: 20px; height:20px;
        border-radius: 6px;
        background: var(--grad-soft);
        color: var(--cyan);
        display:flex;
        align-items:center; 
        justify-content:flex-start;
        font-size: 11px;
        font-weight:700;
        margin-top: 1px;
      }
      .pillar-checks b{ 
        color: var(--text); 
        font-weight:600; 
      }

      @media (max-width: 900px){
        .pillars-grid{ grid-template-columns: 1fr; }
      }

      /* ---------- Full-bleed parallax photo band ---------- */
      .photo-band{
        position: relative;
        height: 62vh;
        min-height: 420px;
        overflow: hidden;
        margin: 0;
      }
      .photo-band-img{
        position: absolute;
        top: -12%; left: 0;
        width: 100%;
        height: 124%;
        object-fit: cover;
        will-change: transform;
        filter: saturate(1.05) contrast(1.03);
      }
      .photo-band-scrim{
        position: absolute; inset:0;
        background:
          linear-gradient(180deg, rgba(9,9,15,0.55) 0%, rgba(9,9,15,0.25) 35%, rgba(9,9,15,0.35) 70%, rgba(9,9,15,0.92) 100%),
          linear-gradient(90deg, rgba(9,9,15,0.55) 0%, rgba(9,9,15,0.05) 45%);
      }
      .photo-band-content{
        position: relative; z-index: 2;
        height: 100%;
        display: flex; flex-direction: column; justify-content: flex-end;
        padding: 0 32px 56px;
        max-width: 1180px; margin: 0 auto;
      }
      .photo-band-content .eyebrow{ color: var(--cyan); }
      .photo-band-content h2{
        font-size: clamp(1.6rem, 3vw, 2.3rem);
        max-width: 560px;
        margin-bottom: 10px;
        color: #f4f3f9;
      }
      .photo-band-content p{ color: rgba(244,243,249,0.78); max-width: 480px; font-size: 15px; }

      /* ---------- Supporting parallax photo card (bitácora spotlight) ---------- */
      .photo-card{
        position: relative;
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid var(--border);
        aspect-ratio: 4 / 3.1;
      }
      .photo-card img{
        width: 100%; height: 118%;
        object-fit: cover;
        position: absolute; top: -9%; left:0;
        will-change: transform;
      }
      .photo-card-tag{
        position: absolute; left: 18px; bottom: 18px; z-index: 2;
        background: rgba(9,9,15,0.65);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 100px;
        padding: 8px 16px;
        font-family: var(--font-mono);
        font-size: 12px;
        color: var(--text);
        display:flex; align-items:center; gap:8px;
      }
      .photo-card-tag::before{ content:''; width:6px; height:6px; border-radius:50%; background: var(--magenta); }

      @media (max-width: 680px){
        .photo-band{ height: 50vh; min-height: 340px; }
        .photo-band-content{ padding: 0 20px 36px; }
      }

      /* ---------- Comparativa ---------- */
      .compare-table{
        width:100%;
        border-collapse: collapse;
        border-radius: var(--radius-lg);
        overflow:hidden;
        border: 1px solid var(--border);
      }
      .compare-table th, .compare-table td{
        padding: 16px 22px;
        text-align:left;
        font-size: 14.5px;
        border-bottom: 1px solid var(--border-soft);
      }
      .compare-table thead th{
        font-family: var(--font-mono);
        font-size: 12px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-muted);
        background: var(--surface-2);
        font-weight:500;
      }
      .compare-table thead th.win{ color: var(--cyan); }
      .compare-table td:first-child{ color: var(--text-muted); }
      .compare-table td.win{
        color: var(--text);
        background: rgba(47,215,232,0.045);
        font-weight:500;
      }
      .compare-table tbody tr:last-child td{ border-bottom:none; }

      /* ---------- Métricas ---------- */
      .metrics-panel{
        background: var(--grad-soft);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 56px 48px;
        display:grid;
        grid-template-columns: repeat(4,1fr);
        gap: 32px;
      }
      .metric-item .big{
        font-family: var(--font-display);
        font-size: 34px;
        font-weight: 700;
        margin-bottom: 8px;
      }
      .metric-item .small{ font-size: 13.5px; color: var(--text-muted); }

      /* ---------- Solid gradient CTA band ---------- */
      .cta-band-solid{
        position: relative;
        overflow: hidden;
        padding: 76px 0;
        text-align: center;
        background: var(--surface);
        border-top: 1px solid var(--border-soft);
        border-bottom: 1px solid var(--border-soft);
      }
      .cta-band-solid-glow{
        position: absolute;
        inset: -40% -10%;
        background: var(--grad-main);
        opacity: 0.14;
        filter: blur(100px);
        z-index: 0;
      }
      .cta-band-solid-inner{ position: relative; z-index: 1; }
      .cta-band-solid-inner h2{
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        max-width: 640px;
        margin: 14px auto 14px;
      }
      .cta-band-solid-inner p{
        color: var(--text-muted);
        font-size: 15.5px;
        max-width: 480px;
        margin: 0 auto 30px;
      }
      .cta-band-solid-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

      /* ---------- Pricing ---------- */
      .price-toggle-wrap{ display:flex; justify-content:center; margin-bottom: 44px; }
      .price-toggle{
        display:inline-flex;
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: 100px;
        padding: 5px;
        gap: 4px;
      }
      .price-toggle-btn{
        border: none;
        background: transparent;
        color: var(--text-muted);
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 14px;
        padding: 10px 22px;
        border-radius: 100px;
        cursor: pointer;
        display:flex; align-items:center; gap:8px;
        transition: background .2s ease, color .2s ease;
      }
      .price-toggle-btn.active{
        background: var(--grad-main);
        color: #08060c;
      }
      .price-toggle-badge{
        font-family: var(--font-mono);
        font-size: 10.5px;
        background: rgba(255,255,255,0.18);
        padding: 2px 7px;
        border-radius: 100px;
      }
      .price-toggle-btn.active .price-toggle-badge{ background: rgba(8,6,12,0.18); }

      .pricing-grid{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        align-items: stretch;
      }
      .price-card{
        position: relative;
        background: var(--bg-soft);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 30px 26px;
        display: flex;
        flex-direction: column;
      }
      .price-card h3{ font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
      .price-card-desc{ font-size: 13px; color: var(--text-muted); min-height: 48px; margin-bottom: 18px; }
      .price-amount{ display:flex; align-items:baseline; gap: 3px; margin-bottom: 4px; }
      .price-currency{ font-family: var(--font-display); font-size: 20px; font-weight:600; color: var(--text-muted); }
      .price-number{ font-family: var(--font-display); font-size: 40px; font-weight:700; line-height:1; }
      .price-period{ font-size: 13.5px; color: var(--text-muted); }
      .price-save{
        display: none;
        font-size: 11.5px;
        color: #34d399;
        font-family: var(--font-mono);
        margin-bottom: 18px;
      }
      .price-save.show{ display: inline-block; }
      .price-features{
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 18px 0 26px;
        flex-grow: 1;
      }
      .price-features li{
        font-size: 13.5px;
        color: var(--text-muted);
        padding-left: 20px;
        position: relative;
      }
      .price-features li::before{
        content: '✓';
        position: absolute; left: 0;
        color: var(--cyan);
        font-weight: 700;
      }
      .price-cta{ width: 100%; justify-content: center; }

      .price-card-featured{
        background: var(--grad-soft);
        border-color: rgba(236,31,158,0.35);
        transform: scale(1.03);
        box-shadow: 0 20px 50px -20px rgba(236,31,158,0.25);
      }
      .price-card-tag{
        position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
        background: var(--grad-main);
        color: #08060c;
        font-family: var(--font-mono);
        font-size: 11px;
        font-weight: 700;
        padding: 5px 14px;
        border-radius: 100px;
        white-space: nowrap;
      }

      .price-footnote{
        text-align: center;
        margin-top: 36px;
        font-size: 13.5px;
        color: var(--text-muted);
      }
      .price-footnote a{ color: var(--cyan); font-weight: 600; }

      @media (max-width: 980px){
        .pricing-grid{ grid-template-columns: repeat(2, 1fr); }
        .price-card-featured{ transform: none; grid-column: span 2; }
      }
      @media (max-width: 640px){
        .pricing-grid{ grid-template-columns: 1fr; }
        .price-card-featured{ grid-column: auto; }
      }

      /* ---------- Audience ---------- */
      .audience-grid{
        display:grid;
        grid-template-columns: repeat(4,1fr);
        gap: 20px;
      }
      .audience-card{
        padding: 30px 24px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--bg-soft);
        text-align:left;
      }
      .audience-card .emoji{ font-size: 26px; margin-bottom:16px; display:block; }
      .audience-card h4{ font-size: 15px; margin-bottom:8px; }
      .audience-card p{ font-size: 13.5px; color: var(--text-muted); }

      .audience-card-photo{
        padding: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
      }
      .audience-card-photo img{
        width: 100%;
        height: 140px;
        object-fit: cover;
        display: block;
        transition: transform .5s ease;
      }
      .audience-card-photo:hover img{ transform: scale(1.06); }
      .audience-card-body{ padding: 20px 22px 24px; }
      .audience-card-body h4{ font-size: 15px; margin-bottom: 8px; }
      .audience-card-body p{ font-size: 13.5px; color: var(--text-muted); }

      /* ---------- Final CTA ---------- */
      .final-cta{
        position:relative;
        border-radius: var(--radius-lg);
        padding: 72px 48px;
        text-align:center;
        overflow:hidden;
        isolation: isolate;
        background: var(--surface);
        border: 1px solid var(--border);
      }
      .final-cta::before{
        content:'';
        position:absolute; inset:0;
        background: var(--grad-main);
        opacity: 0.12;
        z-index:0;
      }
      .final-cta-photo{
        position: absolute; inset: 0;
        width: 100%; height: 100%;
        object-fit: cover;
        opacity: 0.28;
        z-index: 0;
      }
      .final-cta-scrim{
        position: absolute; inset: 0;
        z-index: 1;
        background: radial-gradient(80% 100% at 50% 100%, rgba(9,9,15,0.95) 0%, rgba(9,9,15,0.75) 55%, rgba(9,9,15,0.55) 100%);
      }
      .final-cta-inner{ position:relative; z-index:2; min-width:0; }
      .final-cta h2{ font-size: clamp(1.9rem,3.4vw,2.7rem); margin-bottom:16px; }
      .final-cta p{ color: var(--text-muted); font-size:16px; }
      .final-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

      /* ---------- CTA split layout (pitch + form) ---------- */
      .cta-split{
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
        gap: 48px;
        text-align: left;
        align-items: start;
        min-width: 0;
      }
      .cta-split > *{ min-width:0; }
      .cta-pitch h2{ font-size: clamp(1.7rem, 2.8vw, 2.3rem); color: #f4f3f9; }
      .cta-pitch p{ max-width: 420px; margin: 0 0 30px; color: rgba(244,243,249,0.78); }
      .cta-direct{ display:flex; flex-direction:column; gap: 12px; }
      .cta-direct-item{
        display:flex; align-items:center; gap: 14px;
        padding: 14px 18px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: var(--radius-md);
        transition: background .2s ease, border-color .2s ease, transform .2s ease;
      }
      .cta-direct-item:hover{ background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); transform: translateX(3px); }
      .cta-direct-icon{ font-size: 20px; flex-shrink:0; }
      .cta-direct-text{ font-size: 13.5px; color: rgba(244,243,249,0.7); line-height:1.4; }
      .cta-direct-text strong{ color: #f4f3f9; font-size: 14px; }

      /* ---------- Demo form ---------- */
      .demo-form{
        background: rgba(9,9,15,0.55);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 30px;
        margin-top: 30px;
        min-width: 0;
      }
      .form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
      .form-field{ margin-bottom: 18px; }
      .form-field label{
        display:block;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--text-muted);
        margin-bottom: 7px;
      }
      .form-field label .req{ color: var(--magenta); }
      .form-field label .optional{ font-weight:400; color: var(--text-dim); }
      .form-field input,
      .form-field select,
      .form-field textarea{
        width: 100%;
        background: rgba(255,255,255,0.04);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 12px 14px;
        color: var(--text);
        font-family: var(--font-body);
        font-size: 14.5px;
        transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
      }
      .form-field textarea{ resize: vertical; min-height: 60px; }
      .form-field input::placeholder,
      .form-field textarea::placeholder{ color: var(--text-dim); }
      .form-field input:focus,
      .form-field select:focus,
      .form-field textarea:focus{
        outline:none;
        border-color: var(--cyan);
        background: rgba(255,255,255,0.06);
        box-shadow: 0 0 0 3px rgba(47,215,232,0.12);
      }
      .form-field select{
        appearance: none;
        cursor: pointer;
        color: var(--text);
        padding-right: 42px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a6b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 16px;
      }
      /* Los menús nativos de <select> suelen abrir con fondo blanco. */
      .form-field select option{
        background: #ffffff;
        color: #100f1a;
      }
      .form-field select option[value=""]{ color: #6f6d80; }

      /* Priority fields: phone + email get extra visual weight */
      .form-row-priority{ margin-bottom: 4px; }
      .form-field-priority{
        background: var(--grad-soft);
        border: 1px solid rgba(47,215,232,0.25);
        border-radius: var(--radius-md);
        padding: 14px 16px 12px;
      }
      .form-field-priority label{ color: var(--text); font-size: 13px; }
      .input-icon{ position: relative; display:flex; align-items:center; }
      .input-icon svg{
        position:absolute; left: 13px;
        width: 17px; height:17px;
        color: var(--cyan);
        pointer-events:none;
      }
      .input-icon input{
        padding-left: 40px;
        background: rgba(9,9,15,0.4);
        font-weight: 500;
      }
      .field-hint{ display:block; font-size: 11.5px; color: var(--text-dim); margin-top: 7px; }
      .field-error{ display:none; font-size: 11.5px; color: var(--magenta); margin-top: 7px; font-weight:600; }
      .form-field-priority.invalid{ border-color: var(--magenta); }
      .form-field-priority.invalid .input-icon input{ border-color: var(--magenta); }
      .form-field-priority.invalid .field-hint{ display:none; }
      .form-field-priority.invalid .field-error{ display:block; }
      .form-field-priority.valid .input-icon svg{ color: #34d399; }

      .form-submit{ width:100%; justify-content:center; margin-top: 4px; }
      .form-note{ font-size: 12px; color: var(--text-dim); text-align:center; margin-top: 14px; }
      .form-note strong{ color: var(--text-muted); }
      .form-success{
        display:none;
        align-items:center; gap:10px;
        background: rgba(52,211,153,0.1);
        border: 1px solid rgba(52,211,153,0.3);
        border-radius: var(--radius-sm);
        padding: 12px 16px;
        font-size: 13.5px;
        color: #34d399;
        margin-top: 14px;
      }
      .form-success.show{ display:flex; }

      @media (max-width: 900px){
        .final-cta{ padding: 48px 28px; }
        .cta-split{ grid-template-columns: minmax(0, 1fr); gap: 32px; }
        .demo-form{ margin-top: 0; }
        .form-row{ grid-template-columns: minmax(0, 1fr); gap: 0; }
      }
      @media (max-width: 680px){
        .final-cta{ padding: 36px 18px; border-radius: 16px; }
        .demo-form{ padding: 22px 18px; }
        .cta-direct-item{ padding: 13px 14px; }
        .cta-direct-text{ overflow-wrap: anywhere; }
      }

      /* ---------- Footer ---------- */
      footer{ padding: 64px 0 40px; border-top: 1px solid var(--border-soft); }
      .footer-grid{
        display:grid;
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 40px;
        margin-bottom: 48px;
      }
      .footer-logo img{ height:26px; margin-bottom:16px; }
      .footer-tagline{
        font-family: var(--font-mono);
        font-size: 12.5px;
        color: var(--cyan);
        letter-spacing: 0.02em;
        margin-bottom: 14px;
      }
      .footer-grid p{ color: var(--text-muted); font-size: 13.5px; max-width: 280px; }
      .footer-col h5{
        font-family: var(--font-mono);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--text-dim);
        margin-bottom: 18px;
        font-weight:500;
      }
      .footer-col ul{ display:flex; flex-direction:column; gap:11px; }
      .footer-col a{ font-size: 14px; color: var(--text-muted); transition: color .2s; }
      .footer-col a:hover{ color: var(--text); }
      .footer-bottom{
        display:flex; justify-content:space-between; align-items:center;
        padding-top: 28px; border-top: 1px solid var(--border-soft);
        font-size: 13px; color: var(--text-dim);
        flex-wrap:wrap; gap:12px;
      }

      /* ---------- reveal on scroll ---------- */
      .reveal{ opacity:0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
      .reveal.in-view{ opacity:1; transform:none; }

      @media (prefers-reduced-motion: reduce){
        *{ transition:none !important; animation:none !important; }
      }

      /* ---------- Responsive ---------- */
      @media (max-width: 980px){
        .hero-grid{ grid-template-columns: 1fr; }
        .hero-visual{ order:-1; }
        .browser-frame{ transform:none; }
        .modules-grid{ grid-template-columns: repeat(2,1fr); }
        .spotlight{ grid-template-columns: 1fr; gap:36px; }
        .spotlight.reverse .spotlight-visual{ order:1; }
        .spotlight.reverse .spotlight-text{ order:2; }
        .metrics-panel{ grid-template-columns: repeat(2,1fr); }
        .audience-grid{ grid-template-columns: repeat(2,1fr); }
        .footer-grid{ grid-template-columns: 1fr 1fr; }
        .statsbar .wrap{ grid-template-columns: repeat(2,1fr); gap: 24px; }
        .stat:nth-child(3){ border-left:none; }
      }
      @media (max-width: 680px){
        .wrap{ padding: 0 20px; }
        .modules-grid{ grid-template-columns: 1fr; }
        .compare-table{ font-size: 12px; }
        .compare-table th, .compare-table td{ padding: 12px 12px; }
        .metrics-panel{ grid-template-columns: 1fr 1fr; padding: 36px 24px; }
        .audience-grid{ grid-template-columns: 1fr; }
        .footer-grid{ grid-template-columns: 1fr; }
        .section{ padding: 72px 0; }
        .hero{ padding-top: 48px; }
      }

/* ---------- Catalog page: mini hero ---------- */
      .catalog-hero{
        padding: 64px 0 40px;
        text-align: center;
      }
      .catalog-hero .eyebrow{ justify-content: center; }
      .catalog-hero h1{
        font-family: var(--font-display);
        font-size: clamp(2rem, 4vw, 2.8rem);
        margin-bottom: 14px;
      }
      .catalog-hero p{
        color: var(--text-muted);
        font-size: 16.5px;
        max-width: 560px;
        margin: 0 auto;
      }
      .catalog-back{
        display: inline-flex; align-items: center; gap: 8px;
        font-size: 13.5px;
        color: var(--text-dim);
        margin-bottom: 26px;
      }
      .catalog-back:hover{ color: var(--text); }
      .catalog-back svg{ width: 15px; height: 15px; }

      /* ---------- Tab navigation ---------- */
      .tab-nav-wrap{
        position: sticky;
        top: 73px;
        z-index: 50;
        background: rgba(9,9,15,0.85);
        backdrop-filter: blur(14px) saturate(140%);
        border-bottom: 1px solid var(--border-soft);
        padding: 16px 0;
        margin-bottom: 48px;
      }
      html[data-theme="light"] .tab-nav-wrap{ background: rgba(246,246,250,0.88); }
      .tab-nav{
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 2px;
      }
      .tab-nav::-webkit-scrollbar{ display: none; }
      .tab-btn{
        flex-shrink: 0;
        display: flex; align-items: center; gap: 8px;
        padding: 10px 18px;
        border-radius: 100px;
        border: 1px solid var(--border);
        background: var(--surface-2);
        color: var(--text-muted);
        font-size: 13.5px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: background .2s ease, color .2s ease, border-color .2s ease;
      }
      .tab-btn:hover{ color: var(--text); border-color: rgba(255,255,255,0.18); }
      .tab-btn.active{
        background: var(--grad-main);
        color: #08060c;
        border-color: transparent;
      }
      .tab-btn .tab-count{
        font-family: var(--font-mono);
        font-size: 10.5px;
        opacity: 0.75;
      }

      /* ---------- Large legible catalog cards ---------- */
      .catalog-panel-head{ margin-bottom: 28px; }
      .catalog-panel-head h2{
        font-family: var(--font-display);
        font-size: 26px;
        display: flex; align-items: center; gap: 12px;
        margin-bottom: 8px;
      }
      .catalog-panel-head p{ color: var(--text-muted); font-size: 15px; }

      .catalog-cards-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 80px;
      }
      .catalog-card-lg{
        background: var(--bg-soft);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 30px;
        display: flex;
        gap: 20px;
        transition: background .2s ease, border-color .2s ease, transform .2s ease;
        opacity: 0; transform: translateY(14px);
      }
      .catalog-card-lg.in-view{ opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
      .catalog-card-lg:hover{ background: var(--surface); border-color: rgba(255,255,255,0.14); transform: translateY(-3px); }
      .catalog-card-lg-icon{
        width: 52px; height: 52px;
        flex-shrink: 0;
        border-radius: 14px;
        background: var(--grad-soft);
        display: flex; align-items: center; justify-content: center;
        font-size: 24px;
      }
      .catalog-card-lg h3{
        font-family: var(--font-display);
        font-size: 18px;
        margin-bottom: 8px;
      }
      .catalog-card-lg p{
        font-size: 14.5px;
        color: var(--text-muted);
        line-height: 1.65;
      }

      @media (max-width: 780px){
        .catalog-cards-grid{ grid-template-columns: 1fr; }
        .tab-nav-wrap{ top: 0; }
      }

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
body.page-legal{
  min-height:100vh;
}
body.page-legal html{
  scroll-padding-top:96px;
}
body.page-legal .legal-hero{
  position:relative;
  overflow:hidden;
  padding:88px 0 56px;
}
body.page-legal .legal-hero::after{
  content:"";
  position:absolute;
  width:460px;
  height:460px;
  right:-180px;
  top:-250px;
  background:var(--grad-main);
  filter:blur(120px);
  opacity:.16;
  pointer-events:none;
}
body.page-legal .legal-hero .wrap{
  position:relative;
  z-index:1;
}
body.page-legal .legal-hero .eyebrow{
  margin-top:0;
}
body.page-legal .legal-hero h1{
  max-width:850px;
  font-size:clamp(2.2rem,5vw,4rem);
  line-height:1.04;
}
body.page-legal .hero-lead{
  max-width:760px;
  margin-top:20px;
  color:var(--text-muted);
  font-size:17px;
}
body.page-legal .legal-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:26px;
  color:var(--text-dim);
  font:500 12px/1.3 var(--font-mono);
}
body.page-legal .legal-meta span{
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--bg-soft);
}
body.page-legal .legal-shell{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:42px;
  align-items:start;
  padding:20px 0 100px;
}
body.page-legal .legal-toc{
  position:sticky;
  top:96px;
  padding:20px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--bg-soft);
}
body.page-legal .legal-toc strong{
  display:block;
  margin-bottom:12px;
  color:var(--text-dim);
  font:600 11px/1 var(--font-mono);
  text-transform:uppercase;
  letter-spacing:.1em;
}
body.page-legal .legal-toc nav{
  display:flex;
  flex-direction:column;
  gap:3px;
}
body.page-legal .legal-toc a{
  padding:8px 10px;
  border-radius:8px;
  color:var(--text-muted);
  font-size:13px;
  line-height:1.35;
}
body.page-legal .legal-toc a:hover{
  color:var(--text);
  background:var(--surface-2);
}
body.page-legal .legal-document{
  min-width:0;
  padding:clamp(26px,5vw,58px);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:var(--bg-soft);
  box-shadow:0 24px 80px -50px rgba(0,0,0,.6);
}
body.page-legal .notice{
  margin-bottom:36px;
  padding:18px 20px;
  border:1px solid rgba(47,215,232,.25);
  border-radius:var(--radius-md);
  background:var(--grad-soft);
  color:var(--text-muted);
  font-size:14px;
}
body.page-legal .notice strong,
body.page-legal .legal-section strong{
  color:var(--text);
}
body.page-legal .legal-section{
  margin:0 0 34px;
  padding:0 0 34px;
  border-bottom:1px solid var(--border-soft);
}
body.page-legal .legal-section:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:0;
}
body.page-legal .legal-section h2{
  margin-bottom:14px;
  font-size:clamp(1.3rem,2.4vw,1.75rem);
}
body.page-legal .legal-section h3{
  margin:22px 0 8px;
  font-size:1rem;
}
body.page-legal .legal-section p{
  margin:0 0 14px;
  color:var(--text-muted);
}
body.page-legal .legal-section ul,
body.page-legal .legal-section ol{
  margin:0 0 16px;
  padding-left:22px;
  color:var(--text-muted);
  list-style:initial;
}
body.page-legal .legal-section ol{
  list-style:decimal;
}
body.page-legal .legal-section li{
  margin-bottom:8px;
}
body.page-legal .legal-section a{
  color:var(--cyan);
  text-decoration:underline;
  text-underline-offset:3px;
}
body.page-legal .legal-table-wrap{
  overflow-x:auto;
  margin:18px 0;
}
body.page-legal .legal-table{
  width:100%;
  min-width:620px;
  border-collapse:collapse;
}
body.page-legal .legal-table th,
body.page-legal .legal-table td{
  padding:14px;
  border:1px solid var(--border);
  text-align:left;
  vertical-align:top;
  font-size:13px;
}
body.page-legal .legal-table th{
  background:var(--surface-2);
  color:var(--text);
  font-family:var(--font-mono);
}
body.page-legal .legal-table td{
  color:var(--text-muted);
}
body.page-legal .contact-card{
  padding:22px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--surface);
}
@media (max-width:860px){
  body.page-legal .legal-shell{
    grid-template-columns:1fr;
  }
  body.page-legal .legal-toc{
    position:relative;
    top:auto;
  }
  body.page-legal .legal-toc nav{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:680px){
  body.page-legal .legal-hero{
    padding:64px 0 42px;
  }
  body.page-legal .legal-shell{
    gap:24px;
    padding-bottom:72px;
  }
  body.page-legal .legal-document{
    padding:26px 20px;
    border-radius:16px;
  }
  body.page-legal .legal-toc nav{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   COMPONENTES DINÁMICOS
   ========================================================= */
header.is-scrolled{
  box-shadow:0 10px 28px rgba(0,0,0,.14);
  border-bottom-color:rgba(255,255,255,.13);
}
html[data-theme="light"] header.is-scrolled{
  border-bottom-color:rgba(9,9,15,.14);
  box-shadow:0 10px 28px rgba(30,25,50,.08);
}
.nav-links a[aria-current="page"],
.mobile-menu a[aria-current="page"]{
  color:var(--cyan);
}
.footer-bottom a{
  color:inherit;
}
.footer-bottom a:hover{
  color:var(--text);
}

/* =========================================================
   FORMULARIO DE CONTACTO Y WHATSAPP
   ========================================================= */
.form-honeypot{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.form-consent{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin:2px 0 18px;
  color:var(--text-muted);
  font-size:12.5px;
  line-height:1.5;
  cursor:pointer;
}

.form-consent input{
  width:17px;
  height:17px;
  margin-top:2px;
  flex:0 0 auto;
  accent-color:var(--cyan);
}

.form-consent a{
  color:var(--cyan);
  text-decoration:underline;
  text-underline-offset:3px;
}

.demo-form.was-validated .form-consent input:invalid{
  outline:2px solid var(--magenta);
  outline-offset:2px;
}

.form-submit{
  position:relative;
  min-height:52px;
}

.form-submit:disabled{
  cursor:wait;
  opacity:.78;
  transform:none;
}

.form-submit-loader{
  display:none;
  width:18px;
  height:18px;
  border:2px solid rgba(8,6,12,.25);
  border-top-color:#08060c;
  border-radius:50%;
  animation:formSpin .75s linear infinite;
}

.form-submit.is-loading .form-submit-loader{
  display:inline-block;
}

.form-submit.is-loading .form-submit-label{
  opacity:.75;
}

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

.form-status{
  display:none;
  margin-top:14px;
  padding:12px 15px;
  border:1px solid transparent;
  border-radius:var(--radius-sm);
  font-size:13px;
  line-height:1.45;
}

.form-status.is-success,
.form-status.is-error{
  display:block;
}

.form-status.is-success{
  color:#34d399;
  background:rgba(52,211,153,.10);
  border-color:rgba(52,211,153,.30);
}

.form-status.is-error{
  color:#fb7185;
  background:rgba(251,113,133,.10);
  border-color:rgba(251,113,133,.30);
}

.whatsapp-float{
  position:fixed;
  right:max(20px,env(safe-area-inset-right));
  bottom:max(20px,env(safe-area-inset-bottom));
  z-index:500;
  min-height:56px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 20px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:999px;
  background:#25d366;
  color:#07180d;
  font-size:14px;
  font-weight:800;
  box-shadow:0 16px 42px rgba(0,0,0,.32);
  isolation:isolate;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}

.whatsapp-float:hover{
  transform:translateY(-3px);
  filter:brightness(1.04);
  box-shadow:0 20px 52px rgba(0,0,0,.38);
}

.whatsapp-float:focus-visible{
  outline:3px solid var(--cyan);
  outline-offset:4px;
}

.whatsapp-float__icon{
  width:26px;
  height:26px;
  flex:0 0 auto;
}

.whatsapp-float__label{
  white-space:nowrap;
}

.whatsapp-float__pulse{
  position:absolute;
  inset:-1px;
  z-index:-1;
  border-radius:inherit;
  background:#25d366;
  animation:whatsappPulse 2.4s ease-out infinite;
}

@keyframes whatsappPulse{
  0%{transform:scale(1);opacity:.42}
  70%,100%{transform:scale(1.22);opacity:0}
}

@media (max-width:680px){
  .whatsapp-float{
    right:max(16px,env(safe-area-inset-right));
    bottom:max(16px,env(safe-area-inset-bottom));
    width:56px;
    padding:0;
  }

  .whatsapp-float__label{
    display:none;
  }
}

@media (prefers-reduced-motion:reduce){
  .form-submit-loader,
  .whatsapp-float__pulse{
    animation:none !important;
  }
}

/* =========================================================
   HEADER FIJO, DOCUMENTACIÓN Y REDES SOCIALES
   ========================================================= */
#site-header{
  position:relative;
  z-index:100;
}

header{
  width:100%;
}

.mobile-menu{
  max-height:0;
  overflow-y:auto;
}

.mobile-menu.open{
  max-height:calc(100vh - var(--header-height));
}

.nav-doc-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--text-muted);
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  transition:color .2s ease,border-color .2s ease,background .2s ease,transform .2s ease;
}

.nav-doc-link:hover{
  color:var(--text);
  border-color:rgba(47,215,232,.45);
  background:rgba(47,215,232,.08);
  transform:translateY(-1px);
}

.nav-doc-link svg,
.mobile-doc-link svg{
  width:15px;
  height:15px;
  flex:0 0 auto;
}

.nav-doc-link.is-disabled,
.mobile-doc-link.is-disabled{
  opacity:.48;
  cursor:not-allowed;
}

.mobile-doc-link{
  display:flex;
  align-items:center;
  gap:9px;
  padding:16px 32px;
  border-bottom:1px solid var(--border-soft);
  color:var(--text-muted);
  font-size:15px;
}

.footer-socials{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}

.social-button{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface-2);
  color:var(--text-muted);
  transition:transform .2s ease,color .2s ease,border-color .2s ease,background .2s ease;
}

.social-button:hover{
  transform:translateY(-2px);
  color:var(--text);
  border-color:rgba(47,215,232,.40);
  background:var(--surface);
}

.social-button svg{
  width:19px;
  height:19px;
}

.social-button.is-disabled{
  opacity:.42;
  cursor:not-allowed;
}

.social-button.is-disabled:hover{
  transform:none;
  color:var(--text-muted);
  border-color:var(--border);
  background:var(--surface-2);
}

.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

@media (max-width:1100px){
  .nav-links{
    gap:20px;
  }

  .nav-doc-link{
    padding:8px 10px;
  }
}

@media (max-width:900px){
  .nav-doc-link{
    display:none;
  }
}

@media (max-width:680px){
  :root{
    --header-height:67px;
  }
}

/* =========================================================
   SISTEMA VISUAL ORBITAL MAGIXTRAL
   Halos ovalados inspirados en los colores del logotipo.
   ========================================================= */

.orbit-section{
  --orbit-top: 58%;
  --orbit-width: 148%;
  --orbit-height: 560px;
  --orbit-line-opacity: .74;
  --orbit-glow-opacity: .82;
  --orbit-blur: 34px;

  position:relative;
  overflow:hidden;
  isolation:isolate;
}

.orbit-section > .wrap{
  position:relative;
  z-index:2;
}

/* Halo difuso detrás del arco. */
.orbit-section::before{
  content:"";
  position:absolute;
  left:50%;
  top:calc(var(--orbit-top) - 110px);
  width:var(--orbit-width);
  height:330px;
  transform:translateX(-50%);
  border-radius:50%;
  pointer-events:none;
  z-index:0;
  opacity:var(--orbit-glow-opacity);
  filter:blur(var(--orbit-blur));
  background:
    radial-gradient(
      ellipse at center,
      rgba(47,215,232,.24) 0%,
      rgba(92,76,232,.20) 30%,
      rgba(166,59,208,.17) 48%,
      rgba(236,31,158,.14) 61%,
      rgba(9,9,15,0) 78%
    );
}

/* Óvalo principal. La mayor parte queda fuera del área visible,
   por eso solo se percibe el horizonte curvo superior. */
.orbit-section::after{
  content:"";
  position:absolute;
  left:50%;
  top:var(--orbit-top);
  width:var(--orbit-width);
  height:var(--orbit-height);
  transform:translateX(-50%);
  border:2px solid transparent;
  border-radius:50%;
  pointer-events:none;
  z-index:1;
  opacity:var(--orbit-line-opacity);
  background:
    linear-gradient(var(--bg),var(--bg)) padding-box,
    linear-gradient(
      90deg,
      rgba(47,215,232,.05) 3%,
      rgba(47,215,232,.82) 25%,
      rgba(92,76,232,.95) 48%,
      rgba(166,59,208,.92) 66%,
      rgba(236,31,158,.78) 82%,
      rgba(236,31,158,.04) 97%
    ) border-box;
  box-shadow:
    0 -8px 22px rgba(47,215,232,.12),
    0 -18px 48px rgba(92,76,232,.14),
    0 -32px 86px rgba(236,31,158,.13);
}

/* El contenido del hero necesita permanecer por encima del halo. */
.orbit-hero .hero-grid{
  position:relative;
  z-index:2;
}

.orbit-hero{
  --orbit-top: 60%;
  --orbit-width: 150%;
  --orbit-height: 570px;
  --orbit-line-opacity: .72;
  --orbit-glow-opacity: .78;
}

/* Un halo más bajo para no competir con las tarjetas de precios. */
.orbit-pricing{
  --orbit-top: 58%;
  --orbit-width: 154%;
  --orbit-height: 620px;
  --orbit-line-opacity: .62;
  --orbit-glow-opacity: .72;
}

.orbit-pricing .pricing-grid,
.orbit-pricing .price-footnote{
  position:relative;
  z-index:2;
}

/* El CTA utiliza una órbita más intensa como cierre comercial. */
.orbit-contact{
  --orbit-top: 52%;
  --orbit-width: 156%;
  --orbit-height: 650px;
  --orbit-line-opacity: .84;
  --orbit-glow-opacity: .92;
  padding-bottom:132px;
}

.orbit-contact .final-cta{
  position:relative;
  z-index:2;
}

/* Catálogo y páginas legales: una versión sobria y compacta. */
.orbit-catalog{
  --orbit-top: 54%;
  --orbit-width: 145%;
  --orbit-height: 430px;
  --orbit-line-opacity: .55;
  --orbit-glow-opacity: .56;
}

.orbit-legal{
  --orbit-top: 56%;
  --orbit-width: 145%;
  --orbit-height: 420px;
  --orbit-line-opacity: .46;
  --orbit-glow-opacity: .48;
}

/* En tema claro se conserva la identidad, pero con menos intensidad. */
html[data-theme="light"] .orbit-section::before{
  opacity:calc(var(--orbit-glow-opacity) * .62);
  background:
    radial-gradient(
      ellipse at center,
      rgba(47,215,232,.18) 0%,
      rgba(92,76,232,.14) 32%,
      rgba(166,59,208,.12) 50%,
      rgba(236,31,158,.10) 63%,
      rgba(246,246,250,0) 80%
    );
}

html[data-theme="light"] .orbit-section::after{
  opacity:calc(var(--orbit-line-opacity) * .74);
  box-shadow:
    0 -8px 22px rgba(47,215,232,.08),
    0 -18px 46px rgba(92,76,232,.09),
    0 -30px 78px rgba(236,31,158,.08);
}

/* Footer compartido: resplandor tenue, sin repetir un arco dominante. */
footer.site-footer{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:
    linear-gradient(
      180deg,
      rgba(47,215,232,.025),
      transparent 34%
    ),
    var(--bg);
}

footer.site-footer::before{
  content:"";
  position:absolute;
  left:50%;
  top:-230px;
  width:150%;
  height:390px;
  transform:translateX(-50%);
  border-radius:50%;
  pointer-events:none;
  z-index:0;
  opacity:.46;
  filter:blur(42px);
  background:
    radial-gradient(
      ellipse at center,
      rgba(47,215,232,.18),
      rgba(92,76,232,.15) 36%,
      rgba(236,31,158,.12) 57%,
      transparent 76%
    );
}

footer.site-footer > .wrap{
  position:relative;
  z-index:2;
}

html[data-theme="light"] footer.site-footer::before{
  opacity:.28;
}

/* Ajustes responsivos para que los óvalos no deformen el layout. */
@media (max-width:980px){
  .orbit-section{
    --orbit-width: 185%;
    --orbit-height: 520px;
  }

  .orbit-hero{
    --orbit-top: 66%;
  }

  .orbit-pricing{
    --orbit-top: 62%;
  }

  .orbit-contact{
    --orbit-top: 58%;
    padding-bottom:104px;
  }
}

@media (max-width:680px){
  .orbit-section{
    --orbit-width: 245%;
    --orbit-height: 440px;
    --orbit-blur: 28px;
  }

  .orbit-section::before{
    top:calc(var(--orbit-top) - 72px);
    height:230px;
  }

  .orbit-section::after{
    border-width:1.5px;
  }

  .orbit-hero{
    --orbit-top: 72%;
    --orbit-line-opacity: .52;
    --orbit-glow-opacity: .58;
  }

  .orbit-pricing{
    --orbit-top: 66%;
    --orbit-line-opacity: .48;
  }

  .orbit-contact{
    --orbit-top: 61%;
    --orbit-line-opacity: .62;
    padding-bottom:82px;
  }

  .orbit-catalog,
  .orbit-legal{
    --orbit-top: 65%;
    --orbit-line-opacity: .38;
  }

  footer.site-footer::before{
    width:220%;
    top:-205px;
  }
}

@media (prefers-reduced-motion:reduce){
  .orbit-section::before,
  .orbit-section::after,
  footer.site-footer::before{
    transition:none !important;
  }
}

/* Corrección del selector mensual/anual */
.price-number,
.price-period,
.price-save{
  transition:opacity .16s ease,transform .16s ease;
}

.price-toggle-btn:focus-visible{
  outline:3px solid rgba(47,215,232,.42);
  outline-offset:2px;
}

