/* LABRISKY - estilos de la portada */
    :root {
      --bg: #0E1218;
      --bg-2: #0A0D12;
      --surface: #171D26;
      --surface-2: #1E2631;
      --border: #293240;
      --text: #E9EDF3;
      --text-dim: #8A96A8;
      --text-faint: #5C6779;
      --accent: #FF7A50;
      --accent-dim: #7A3B29;
      --accent-2: #43C6B0;
      --accent-2-dim: #1F4B44;
      --accent-3: #FFC857;
      --danger: #FF5470;
      --radius: 16px;
      --font-display: 'Space Grotesk', -apple-system, sans-serif;
      --font-body: 'Inter', -apple-system, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --bg-top: #1A2029;
      --on-accent-2: #06201C;
      --header-h: 74px;
      --max-w: 1240px;
      color-scheme: dark;
    }

    :root[data-theme="light"] {
      --bg: #F4F6FA;
      --bg-2: #E9EDF4;
      --bg-top: #FFFFFF;
      --surface: #FFFFFF;
      --surface-2: #EEF1F6;
      --border: #D3DAE5;
      --text: #161B24;
      --text-dim: #566174;
      --text-faint: #7B8798;
      --accent: #E5532A;
      --accent-dim: #F6C9BB;
      --accent-2: #0E8A76;
      --accent-2-dim: #BFE6DF;
      --accent-3: #C98A00;
      --danger: #D6284A;
      --on-accent-2: #FFFFFF;
      color-scheme: light;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
    html { scroll-behavior: smooth; font-size: 15px; }
    body {
      background: radial-gradient(ellipse 120% 80% at 50% -10%, var(--bg-top) 0%, var(--bg) 45%, var(--bg-2) 100%);
      color: var(--text);
      font-family: var(--font-body);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
      line-height: 1.6;
      transition: background 0.3s ease, color 0.3s ease;
    }

    /* BARRA SUPERIOR DE ANUNCIOS */
    .announcement-bar {
      background: linear-gradient(90deg, rgba(255,122,80,0.15), rgba(67,198,176,0.15));
      border-bottom: 1px solid var(--border);
      padding: 8px 24px;
      font-size: 12.5px;
      text-align: center;
      color: var(--text-dim);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }
    .announcement-bar b { color: var(--accent); }
    .announcement-bar a {
      color: var(--accent-2);
      text-decoration: none;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .announcement-bar a:hover { text-decoration: underline; }

    /* CABECERA CORPORATIVA FIJA */
    header.corp-header {
      position: sticky;
      top: 0; left: 0; right: 0;
      height: var(--header-h);
      background: color-mix(in srgb, var(--surface) 90%, transparent);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 40px;
      z-index: 1000;
      max-width: 100%;
    }

    .brand-group {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }
    .brand-mark {
      width: 40px; height: 40px; border-radius: 10px;
      background: linear-gradient(135deg, var(--accent), #C4451F);
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 14px -4px rgba(255, 122, 80, 0.55);
      flex-shrink: 0;
    }
    .brand-mark svg { width: 30px; height: 30px; }
    .brand-name {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 21px;
      letter-spacing: -0.02em;
      color: var(--text);
    }
    .brand-risky { color: var(--accent); }
    .live-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: var(--accent-2);
      box-shadow: 0 0 0 0 rgba(67, 198, 176, 0.6);
      animation: pulse 2.2s infinite;
      display: inline-block;
      margin-left: 6px;
      vertical-align: middle;
    }
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(67, 198, 176, 0.55); }
      70% { box-shadow: 0 0 0 6px rgba(67, 198, 176, 0); }
      100% { box-shadow: 0 0 0 0 rgba(67, 198, 176, 0); }
    }

    /* MENÚ DE NAVEGACIÓN CORPORATIVO */
    nav.main-nav {
      display: flex;
      align-items: center;
      gap: 28px;
    }
    .nav-link {
      color: var(--text-dim);
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: color 0.15s ease;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .nav-link:hover { color: var(--text); }
    .nav-link.active { color: var(--accent); }

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

    /* BOTONES */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 9px 18px;
      border-radius: 11px;
      font-family: var(--font-display);
      font-size: 13.5px;
      font-weight: 700;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.2s ease;
      border: 1px solid transparent;
      white-space: nowrap;
    }
    .btn-primary {
      background: linear-gradient(135deg, var(--accent), #E85A32);
      color: #1A0E08;
      box-shadow: 0 4px 16px -4px rgba(255, 122, 80, 0.55);
    }
    .btn-primary:hover {
      box-shadow: 0 6px 24px -2px rgba(255, 122, 80, 0.7);
      transform: translateY(-1px);
      color: #1A0E08;
    }
    .btn-secondary {
      background: var(--surface);
      border-color: var(--border);
      color: var(--text);
    }
    .btn-secondary:hover {
      border-color: var(--accent);
      background: var(--surface-2);
    }
    .btn-outline-teal {
      background: transparent;
      border-color: var(--accent-2);
      color: var(--accent-2);
    }
    .btn-outline-teal:hover {
      background: rgba(67, 198, 176, 0.12);
    }
    .btn-icon {
      padding: 9px;
      border-radius: 10px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-dim);
      font-size: 14px;
      cursor: pointer;
    }
    .btn-icon:hover { border-color: var(--accent); color: var(--text); }
    .btn-lang-toggle {
      padding: 8px 12px;
      border-radius: 10px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
      letter-spacing: 0.04em;
    }
    .btn-lang-toggle:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--surface-2);
    }
    .btn-lang-toggle .lang-badge {
      background: rgba(255,122,80,0.16);
      color: var(--accent);
      padding: 1px 6px;
      border-radius: 5px;
      font-size: 11px;
    }

    /* CONTENEDOR CENTRAL */
    .container {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 32px;
    }

    /* HERO CORPORATIVO */
    section.hero-corp {
      padding: 72px 0 60px;
      position: relative;
    }
    .hero-badge-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,122,80,0.12);
      border: 1px solid rgba(255,122,80,0.3);
      padding: 5px 14px;
      border-radius: 999px;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--accent);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 24px;
    }
    .hero-heading {
      font-family: var(--font-display);
      font-size: 54px;
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: -0.03em;
      color: var(--text);
      margin-bottom: 20px;
      max-width: 900px;
    }
    .hero-heading span.gradient-text {
      background: linear-gradient(135deg, var(--accent) 20%, #FFA885 60%, var(--accent-2) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .hero-sub {
      font-size: 18px;
      color: var(--text-dim);
      max-width: 820px;
      line-height: 1.6;
      margin-bottom: 34px;
    }
    .hero-actions {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 48px;
    }

    /* DEMO INTERACTIVA EN EL HERO */
    .hero-preview-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: 0 24px 60px rgba(0,0,0,0.55);
      padding: 28px;
      position: relative;
      overflow: hidden;
      margin-top: 10px;
    }
    .preview-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--border);
      padding-bottom: 16px;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .preview-tabs {
      display: flex;
      gap: 6px;
      background: var(--surface-2);
      padding: 4px;
      border-radius: 12px;
      border: 1px solid var(--border);
    }
    .preview-tab {
      padding: 6px 14px;
      border-radius: 8px;
      border: none;
      background: transparent;
      color: var(--text-dim);
      font-family: var(--font-display);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s;
    }
    .preview-tab.active {
      background: var(--accent);
      color: #1A0E08;
    }

    .preview-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      gap: 28px;
      align-items: center;
    }
    @media (max-width: 900px) {
      .preview-grid { grid-template-columns: 1fr; }
    }

    .preview-stats-col {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    .corp-stat-box {
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px;
    }
    .corp-stat-box .v {
      font-family: var(--font-mono);
      font-size: 20px;
      font-weight: 700;
      color: var(--accent);
    }
    .corp-stat-box .v.teal { color: var(--accent-2); }
    .corp-stat-box .v.gold { color: var(--accent-3); }
    .corp-stat-box .l {
      font-size: 10.5px;
      font-family: var(--font-mono);
      text-transform: uppercase;
      color: var(--text-faint);
      margin-top: 3px;
    }
    .corp-stat-box {
      cursor: pointer;
      transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .corp-stat-box:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
      box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }
    .canvas-container {
      background: var(--bg-2);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 18px;
      position: relative;
    }
    .chart-tooltip {
      position: absolute;
      pointer-events: none;
      background: var(--surface);
      border: 1px solid var(--accent);
      border-radius: 8px;
      padding: 6px 10px;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text);
      box-shadow: 0 8px 24px rgba(0,0,0,0.5);
      display: none;
      white-space: nowrap;
      z-index: 10;
      transform: translate(-50%, -130%);
      line-height: 1.4;
    }
    .sim-badge-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: 6px;
      background: rgba(67, 198, 176, 0.12);
      border: 1px solid rgba(67, 198, 176, 0.35);
      color: var(--accent-2);
      font-size: 11.5px;
      font-family: var(--font-mono);
      cursor: pointer;
      transition: all 0.15s;
    }
    .sim-badge-btn:hover {
      background: rgba(67, 198, 176, 0.25);
      border-color: var(--accent-2);
      transform: scale(1.03);
    }
    .preview-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--border);
      background: var(--surface);
      border-radius: 10px;
      padding: 12px 14px;
    }
    .preview-ctrl-item {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1;
      min-width: 105px;
    }
    .preview-ctrl-item label {
      font-size: 11px;
      font-family: var(--font-mono);
      color: var(--text-faint);
      display: flex;
      justify-content: space-between;
    }
    .preview-ctrl-item input[type="range"] {
      width: 100%;
      accent-color: var(--accent);
      cursor: pointer;
    }
    .decision-insight-box {
      margin-top: 14px;
      padding: 12px 16px;
      background: var(--surface-2);
      border-left: 3px solid var(--accent-2);
      border-radius: 10px;
      border: 1px solid var(--border);
      font-size: 12.5px;
      color: var(--text-dim);
      line-height: 1.5;
    }

    /* LOGOS DE CONFIANZA / REGULATORIOS */
    .trust-strip {
      padding: 38px 0 54px;
      border-bottom: 1px solid var(--border);
      text-align: center;
    }
    .trust-title {
      font-family: var(--font-mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-faint);
      margin-bottom: 22px;
    }
    .trust-badges {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 32px;
      flex-wrap: wrap;
    }
    .trust-badge-item {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text-dim);
      font-family: var(--font-display);
      font-size: 13.5px;
      font-weight: 600;
      background: var(--surface);
      border: 1px solid var(--border);
      padding: 9px 18px;
      border-radius: 12px;
    }
    .trust-badge-item span.icon { font-size: 17px; }

    /* SECCIONES CORPORATIVAS */
    section.corp-section {
      padding: 80px 0;
      border-bottom: 1px solid var(--border);
    }
    .section-eyebrow {
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--accent);
      margin-bottom: 10px;
    }
    .section-title {
      font-family: var(--font-display);
      font-size: 36px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--text);
      margin-bottom: 16px;
      line-height: 1.2;
    }
    .section-desc {
      font-size: 16px;
      color: var(--text-dim);
      max-width: 760px;
      line-height: 1.6;
      margin-bottom: 48px;
    }

    /* GRID DE SOLUCIONES */
    .solutions-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 24px;
    }
    .sol-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 30px;
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
      display: flex;
      flex-direction: column;
      position: relative;
    }
    .sol-card:hover {
      transform: translateY(-4px);
      border-color: var(--accent);
      box-shadow: 0 16px 36px -10px rgba(0,0,0,0.5);
    }
    .sol-icon {
      width: 48px; height: 48px;
      border-radius: 12px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      font-size: 22px;
      margin-bottom: 20px;
      color: var(--accent);
    }
    .sol-icon.teal { color: var(--accent-2); }
    .sol-icon.gold { color: var(--accent-3); }
    .sol-title {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 12px;
    }
    .sol-desc {
      font-size: 14px;
      color: var(--text-dim);
      line-height: 1.6;
      margin-bottom: 20px;
      flex: 1;
    }
    .sol-features {
      list-style: none;
      margin-bottom: 24px;
      border-top: 1px solid var(--border);
      padding-top: 16px;
    }
    .sol-features li {
      font-size: 12.5px;
      color: var(--text-faint);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .sol-features li::before {
      content: "•";
      color: var(--accent-2);
      font-size: 18px;
      line-height: 0;
    }
    .sol-link {
      color: var(--accent);
      font-family: var(--font-display);
      font-size: 13.5px;
      font-weight: 700;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .sol-link:hover { text-decoration: underline; }

    /* TABLA COMPARATIVA VS HERRAMIENTAS LEGACY */
    .comparison-table-wrap {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow-x: auto;
      margin-top: 32px;
    }
    table.comp-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13.5px;
    }
    table.comp-table th, table.comp-table td {
      padding: 16px 20px;
      border-bottom: 1px solid var(--border);
      text-align: left;
    }
    table.comp-table th {
      background: var(--surface-2);
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
    }
    table.comp-table th.highlight {
      background: rgba(255,122,80,0.12);
      color: var(--accent);
      border-top: 3px solid var(--accent);
    }
    table.comp-table td.highlight {
      background: rgba(255,122,80,0.04);
      font-weight: 600;
      color: var(--text);
    }

    /* BANNER DE DOBLE ECOSISTEMA: WEB + EXCEL */
    .dual-ecosystem {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
      gap: 28px;
      margin-top: 32px;
    }
    .eco-box {
      background: radial-gradient(circle at top right, rgba(255,122,80,0.08), transparent 70%), var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 36px;
    }
    .eco-tag {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--accent-2);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 12px;
    }
    .eco-title {
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 14px;
    }

    /* BANNER CTA DE CONVERSIÓN FINAL */
    .cta-banner {
      background: radial-gradient(circle at top right, rgba(67,198,176,0.15), transparent 60%),
                  radial-gradient(circle at bottom left, rgba(255,122,80,0.18), transparent 60%),
                  var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 60px 48px;
      text-align: center;
      margin: 80px 0;
      box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }
    .cta-title {
      font-family: var(--font-display);
      font-size: 40px;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 16px;
    }
    .cta-sub {
      font-size: 17px;
      color: var(--text-dim);
      max-width: 680px;
      margin: 0 auto 34px;
      line-height: 1.6;
    }

    /* FOOTER CORPORATIVO */
    footer.corp-footer {
      background: var(--bg-2);
      border-top: 1px solid var(--border);
      padding: 72px 0 40px;
      color: var(--text-dim);
      font-size: 13px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 2fr repeat(4, 1fr);
      gap: 40px;
      margin-bottom: 56px;
    }
    @media (max-width: 960px) {
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 600px) {
      .footer-grid { grid-template-columns: 1fr; }
    }
    .footer-col-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 14px;
      color: var(--text);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 18px;
    }
    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 10px; }
    .footer-links a {
      color: var(--text-dim);
      text-decoration: none;
      transition: color 0.15s;
    }
    .footer-links a:hover { color: var(--accent); }

    .footer-bottom {
      border-top: 1px solid var(--border);
      padding-top: 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 12px;
      color: var(--text-faint);
    }

    /* RESPONSIVE */
    @media (max-width: 1024px) {
      header.corp-header { padding: 0 20px; }
      nav.main-nav { display: none; }
      .hero-heading { font-size: 38px; }
      .container { padding: 0 20px; }
    }
    @media (max-width: 680px) {
      .header-ctas { gap: 6px; }
      .header-ctas a.btn-secondary { display: none; }
      .btn { padding: 8px 12px; font-size: 12.5px; }
      .btn-lang-toggle { padding: 6px 8px; font-size: 11px; }
    }
  
    /* ACCESIBILIDAD */
    .skip-link {
      position: absolute; left: 12px; top: -64px; z-index: 2000;
      background: var(--accent); color: #0E1218; padding: 10px 16px; border-radius: 8px;
      font-weight: 700; text-decoration: none; transition: top 0.15s ease;
    }
    .skip-link:focus { top: 12px; }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    main:focus { outline: none; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }
/* Enlaces legales del pie */
.footer-legal { font-size: 12px; color: var(--text-faint); width: 100%; }
.footer-legal a { color: var(--text-dim); text-decoration: underline; }
.footer-legal a:hover { color: var(--text); }

/* Encabezado en pantallas medianas: menos relleno lateral para que quepan navegación y botones */
@media (max-width: 1180px) { header.corp-header { padding: 0 20px; } }
@media (max-width: 1150px) { nav.main-nav { display: none; } }   /* misma regla que ya se aplicaba a 1024 px, un poco antes para que no desborde */
@media (max-width: 440px) { .header-ctas a.btn-secondary { display: none; } }   /* teléfonos muy angostos: queda «Crear cuenta»; «Ingresar» está en la página de acceso */
@media (max-width: 400px) { .corp-header .brand-group > div:not(.brand-mark) { display: none; } }   /* teléfonos muy angostos: solo la marca del logo */
