:root{
    --ink:#14181c;
    --slate:#5b6570;
    --paper:#f6f8f9;
    --white:#ffffff;
    --teal:#3bbbc6;
    --teal-deep:#0f3a40;
    --mist:#e3f4f5;
    --line:#dde4e6;
    --maxw:1120px;
    --rail-w:14px;
    --radius:3px;
  }

  *,*::before,*::after{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
  }

  body{
    margin:0;
    font-family:'Inter',system-ui,sans-serif;
    color:var(--ink);
    background:var(--white);
    -webkit-font-smoothing:antialiased;
    line-height:1.5;
  }

  h1,h2,h3{ font-family:'Space Grotesk',system-ui,sans-serif; margin:0; letter-spacing:-0.01em; }
  p{ margin:0; }
  a{ color:inherit; }
  img{ max-width:100%; display:block; }
  ul{ margin:0; padding:0; list-style:none; }

  .mono{ font-family:'JetBrains Mono',monospace; }

  .skip-link{
    position:absolute; left:-999px; top:0; background:var(--ink); color:var(--white);
    padding:10px 16px; z-index:200; border-radius:0 0 4px 0;
  }
  .skip-link:focus{ left:0; }

  :focus-visible{ outline:2px solid var(--teal-deep); outline-offset:3px; }

  .wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }

  /* ---------- Header ---------- */
  .site-header{
    position:sticky; top:0; z-index:100;
    background:rgba(255,255,255,0.92);
    backdrop-filter:saturate(160%) blur(8px);
    border-bottom:1px solid var(--line);
  }
  .header-inner{
    max-width:var(--maxw); margin:0 auto; padding:14px 28px;
    display:flex; align-items:center; gap:24px;
  }
  .brand{ display:flex; align-items:center; text-decoration:none; flex-shrink:0; }
  .brand-logo{ height:26px; width:auto; }
  .site-nav{ flex:1; display:flex; justify-content:center; }
  .site-nav ul{ display:flex; gap:28px; }
  .site-nav a{
    text-decoration:none; font-size:0.94rem; font-weight:500; color:var(--ink);
    padding:6px 2px; border-bottom:2px solid transparent;
  }
  .site-nav a:hover{ border-bottom-color:var(--teal); }
  .nav-toggle{ display:none; }

  .btn{
    display:inline-flex; align-items:center; gap:8px; text-decoration:none;
    font-weight:600; font-size:0.94rem; padding:10px 20px; border-radius:2px;
    border:1px solid transparent; cursor:pointer; white-space:nowrap;
  }
  .btn-primary{ background:var(--ink); color:var(--white); }
  .btn-primary:hover{ background:var(--teal-deep); }
  .btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
  .btn-ghost:hover{ border-color:var(--ink); }
  .btn-small{ padding:8px 16px; font-size:0.88rem; }

  /* ---------- Hero ---------- */
  .hero{
    padding:76px 0 64px;
    background:
      linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
    border-bottom:1px solid var(--line);
  }
  .hero .wrap{ display:grid; grid-template-columns: 1.15fr 0.85fr; gap:48px; align-items:center; }
  .eyebrow{
    display:flex; align-items:center; gap:10px;
    font-size:0.8rem; letter-spacing:0.08em; text-transform:uppercase;
    color:var(--teal-deep); font-weight:500; margin-bottom:20px;
  }
  .eyebrow .tick{
    width:9px; height:13px; border-radius:2px; background:var(--ink); flex-shrink:0;
  }
  .hero h1{
    font-size:clamp(2rem, 4vw, 2.9rem); line-height:1.12; font-weight:700; color:var(--ink);
    max-width:15ch;
  }
  .hero h1 em{ font-style:normal; color:var(--teal-deep); }
  .hero-sub{
    margin-top:22px; font-size:1.08rem; color:var(--slate); max-width:46ch;
  }
  .hero-cta{ margin-top:32px; display:flex; gap:14px; flex-wrap:wrap; }
  .hero-meta{
    margin-top:36px; display:flex; gap:28px; flex-wrap:wrap;
  }
  .hero-meta div{ font-size:0.82rem; color:var(--slate); }
  .hero-meta strong{ display:block; font-family:'Space Grotesk',sans-serif; font-size:1.3rem; color:var(--ink); font-weight:600; }

  .hero-art{ display:flex; justify-content:center; align-items:center; }
  .hero-art svg{ width:100%; max-width:360px; height:auto; }
  .net-line{
    stroke:var(--teal); stroke-width:1.6; fill:none;
    stroke-dasharray:220; stroke-dashoffset:220;
    animation:draw 1.3s ease-out forwards;
  }
  .net-line.l2{ animation-delay:0.15s; }
  .net-line.l3{ animation-delay:0.3s; }
  .net-line.l4{ animation-delay:0.45s; }
  .net-line.l5{ animation-delay:0.6s; }
  .net-dot{ fill:var(--ink); }
  .net-dot.accent{ fill:var(--teal-deep); }
  @keyframes draw{ to{ stroke-dashoffset:0; } }
  @media (prefers-reduced-motion: reduce){
    .net-line{ stroke-dashoffset:0; animation:none; }
  }

  /* ---------- Intro strip ---------- */
  .intro{ padding:56px 0; border-bottom:1px solid var(--line); }
  .intro .wrap{ display:grid; grid-template-columns: 1fr auto; gap:40px; align-items:start; }
  .intro p{ font-size:1.15rem; max-width:62ch; color:var(--ink); }
  .intro-tags{ display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
  .tag{
    font-family:'JetBrains Mono',monospace; font-size:0.76rem; letter-spacing:0.02em;
    background:var(--mist); color:var(--teal-deep); padding:5px 10px; border-radius:2px;
    white-space:nowrap;
  }

  /* ---------- Rail sections ---------- */
  .rail-section{ border-bottom:1px solid var(--line); }
  .rail-section.alt{ background:var(--paper); }
  .rail-section .wrap{
    display:grid; grid-template-columns: var(--rail-w) 1fr; column-gap:26px;
    padding-top:64px; padding-bottom:64px;
  }
  .rail-line-col{ position:relative; }
  .rail-line-col::before{
    content:''; position:absolute; left:5px; top:0; bottom:0; width:2px; background:var(--teal);
  }
  .rail-line-col .tick{
    position:absolute; left:1px; top:5px; width:10px; height:14px; border-radius:2px; background:var(--ink);
  }
  .rail-content{ max-width:840px; }
  .rail-content .eyebrow{ margin-bottom:16px; }
  .rail-content .eyebrow .tick{ display:none; } /* tick lives on the rail line instead */
  .rail-content h2{ font-size:clamp(1.5rem, 2.6vw, 2rem); font-weight:600; max-width:22ch; }
  .rail-content .lede{ margin-top:18px; font-size:1.05rem; color:var(--slate); max-width:64ch; }

  /* process list (real sequence → numbered) */
  .process-list{
    margin-top:36px; display:grid; grid-template-columns:repeat(2, 1fr); gap:1px;
    background:var(--line); border:1px solid var(--line);
  }
  .process-item{ background:var(--white); padding:26px 24px; }
  .rail-section.alt .process-item{ background:var(--paper); }
  .process-num{ font-family:'JetBrains Mono',monospace; color:var(--teal-deep); font-size:0.85rem; }
  .process-item h3{ margin-top:10px; font-size:1.05rem; font-weight:600; }
  .process-item p{ margin-top:8px; font-size:0.94rem; color:var(--slate); }

  /* feature grid (parallel capabilities → no numbers) */
  .feature-grid{ margin-top:36px; display:grid; grid-template-columns:repeat(2, 1fr); gap:20px 28px; }
  .feature{ display:flex; gap:14px; }
  .feature .mark{
    flex-shrink:0; width:10px; height:14px; border-radius:2px; background:var(--teal); margin-top:5px;
  }
  .feature p{ font-size:0.97rem; color:var(--ink); }
  .feature p strong{ display:block; font-weight:600; margin-bottom:3px; }

  /* AI section visual */
  .ia-panel{
    margin-top:36px; border:1px solid var(--line); background:var(--white); padding:22px 24px;
    display:flex; align-items:center; gap:18px; max-width:520px;
  }
  .rail-section.alt .ia-panel{ background:var(--white); }
  .wave{ display:flex; align-items:flex-end; gap:3px; height:34px; flex-shrink:0; }
  .wave span{ width:4px; background:var(--teal); border-radius:1px; animation:wave 1.2s ease-in-out infinite; }
  .wave span:nth-child(1){ height:40%; animation-delay:0s; }
  .wave span:nth-child(2){ height:80%; animation-delay:0.1s; }
  .wave span:nth-child(3){ height:55%; animation-delay:0.2s; }
  .wave span:nth-child(4){ height:100%; animation-delay:0.3s; }
  .wave span:nth-child(5){ height:65%; animation-delay:0.4s; }
  .wave span:nth-child(6){ height:35%; animation-delay:0.5s; }
  @keyframes wave{ 0%,100%{ transform:scaleY(0.55); } 50%{ transform:scaleY(1); } }
  @media (prefers-reduced-motion: reduce){ .wave span{ animation:none; } }
  .ia-panel-text .mono{ font-size:0.76rem; color:var(--teal-deep); letter-spacing:0.04em; }
  .ia-panel-text p{ margin-top:4px; font-size:0.95rem; font-weight:500; }

  /* Enfoque contrast cards */
  .contrast-grid{ margin-top:36px; display:grid; grid-template-columns:repeat(2, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
  .contrast-card{ background:var(--white); padding:24px; }
  .rail-section.alt .contrast-card{ background:var(--paper); }
  .contrast-usual{ font-size:0.88rem; color:var(--slate); text-decoration:line-through; text-decoration-color:var(--line); text-decoration-thickness:1.5px; }
  .contrast-usual::before{ content:'Lo habitual — '; text-decoration:none; color:var(--slate); font-family:'JetBrains Mono',monospace; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.03em; display:block; margin-bottom:6px; }
  .contrast-iniced{ margin-top:14px; font-size:1rem; font-weight:600; color:var(--ink); border-left:2px solid var(--teal); padding-left:14px; }
  .contrast-iniced .label{ display:block; font-family:'JetBrains Mono',monospace; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.03em; color:var(--teal-deep); font-weight:500; margin-bottom:6px; }

  /* ---------- CTA / contact ---------- */
  .cta-band{ padding:72px 0; }
  .cta-band .wrap{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; }
  .cta-copy h2{ font-size:clamp(1.6rem,3vw,2.2rem); font-weight:700; max-width:14ch; }
  .cta-copy p{ margin-top:18px; color:var(--slate); font-size:1.02rem; max-width:40ch; }

  .form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .form-field{ display:flex; flex-direction:column; gap:6px; }
  .form-field.full{ grid-column:1 / -1; }
  .form-field label{ font-size:0.82rem; font-weight:500; color:var(--ink); }
  .form-field input, .form-field textarea{
    font:inherit; padding:11px 12px; border:1px solid var(--line); border-radius:2px;
    background:var(--white); color:var(--ink);
  }
  .form-field input:focus, .form-field textarea:focus{ border-color:var(--teal-deep); }
  .form-field textarea{ resize:vertical; min-height:110px; }
  .form-actions{ margin-top:6px; display:flex; align-items:center; gap:16px; }
  .form-note{ font-size:0.8rem; color:var(--slate); }
  /* honeypot */
  .hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

  .form-status{
    margin-bottom:16px; padding:12px 14px; border-radius:2px; font-size:0.92rem; font-weight:500;
  }
  .form-status.ok{ background:var(--mist); color:var(--teal-deep); border:1px solid var(--teal); }
  .form-status.err{ background:#FBEAEA; color:#8A2E2E; border:1px solid #E3A9A9; }

  /* ---------- Footer ---------- */
  .site-footer{ border-top:1px solid var(--line); background:var(--paper); padding:40px 0; }
  .footer-inner{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; }
  .footer-logo{ display:flex; align-items:center; gap:10px; }
  .footer-logo img{ height:20px; width:auto; }
  .footer-nav ul{ display:flex; gap:20px; flex-wrap:wrap; }
  .footer-nav a{ text-decoration:none; font-size:0.85rem; color:var(--slate); }
  .footer-nav a:hover{ color:var(--ink); }
  .footer-copy{ font-size:0.8rem; color:var(--slate); }
  .footer-bottom{
    max-width:var(--maxw); margin:0 auto; padding:20px 28px 0; margin-top:24px;
    border-top:1px solid var(--line);
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
  }
  .legal-nav ul{ display:flex; gap:18px; flex-wrap:wrap; }
  .legal-nav a, .legal-nav button{
    text-decoration:none; font-size:0.8rem; color:var(--slate); background:none; border:none;
    padding:0; font-family:inherit; cursor:pointer;
  }
  .legal-nav a:hover, .legal-nav button:hover{ color:var(--ink); text-decoration:underline; }

  /* ---------- Cookie consent banner ---------- */
  .cookie-banner{
    position:fixed; left:0; right:0; bottom:0; z-index:300;
    background:var(--white); border-top:1px solid var(--line);
    box-shadow:0 -6px 24px rgba(20,24,28,0.08);
  }
  .cookie-banner-inner{
    max-width:var(--maxw); margin:0 auto; padding:20px 28px;
    display:flex; align-items:center; gap:24px; flex-wrap:wrap;
  }
  .cookie-banner-inner p{ flex:1 1 380px; font-size:0.88rem; color:var(--slate); min-width:240px; }
  .cookie-banner-inner p a{ color:var(--teal-deep); text-decoration:underline; }
  .cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
  .cookie-settings{
    max-width:var(--maxw); margin:0 auto; padding:0 28px 20px; border-top:1px solid var(--line);
  }
  .cookie-cat{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); }
  .cookie-cat:last-of-type{ border-bottom:none; }
  .cookie-cat-text strong{ display:block; font-size:0.92rem; margin-bottom:2px; }
  .cookie-cat-text p{ font-size:0.82rem; color:var(--slate); max-width:56ch; }
  .cookie-settings-actions{ padding-top:14px; }
  .switch{ position:relative; display:inline-block; width:38px; height:22px; flex-shrink:0; }
  .switch input{ opacity:0; width:0; height:0; }
  .switch .track{
    position:absolute; inset:0; background:var(--line); border-radius:22px; transition:background 0.15s ease; cursor:pointer;
  }
  .switch .track::before{
    content:''; position:absolute; width:16px; height:16px; left:3px; top:3px; background:var(--white);
    border-radius:50%; transition:transform 0.15s ease;
  }
  .switch input:checked + .track{ background:var(--teal); }
  .switch input:checked + .track::before{ transform:translateX(16px); }
  .switch input:disabled + .track{ background:var(--teal-deep); opacity:0.5; cursor:not-allowed; }

  /* reveal-on-scroll: visible by default; only animated once JS confirms it can drive it */
  .reveal{ opacity:1; transform:none; }
  .js .reveal{ opacity:0; transform:translateY(14px); transition:opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-visible{ opacity:1; transform:none; }
  @media (prefers-reduced-motion: reduce){ .js .reveal{ opacity:1; transform:none; transition:none; } }

  /* ---------- Responsive ---------- */
  @media (max-width:860px){
    .hero .wrap{ grid-template-columns:1fr; }
    .hero-art{ order:-1; max-width:220px; margin:0 auto; }
    .intro .wrap{ grid-template-columns:1fr; }
    .intro-tags{ flex-direction:row; align-items:flex-start; flex-wrap:wrap; }
    .process-list, .feature-grid, .contrast-grid{ grid-template-columns:1fr; }
    .cta-band .wrap{ grid-template-columns:1fr; }
    .form-grid{ grid-template-columns:1fr; }
  }

  @media (max-width:720px){
    .site-nav{ position:fixed; inset:60px 0 auto 0; background:var(--white); border-bottom:1px solid var(--line);
      display:none; }
    .site-nav.open{ display:block; }
    .site-nav ul{ flex-direction:column; padding:18px 28px 24px; gap:4px; }
    .site-nav a{ display:block; padding:10px 0; }
    .nav-toggle{
      display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px;
      border:1px solid var(--line); background:var(--white); border-radius:2px; cursor:pointer;
      order:3;
    }
    .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
      content:''; display:block; width:16px; height:2px; background:var(--ink); position:relative;
    }
    .nav-toggle span::before{ position:absolute; top:-5px; }
    .nav-toggle span::after{ position:absolute; top:5px; }
    .header-inner{ flex-wrap:wrap; }
    .btn-small{ order:2; }
  }

  @media (max-width:520px){
    :root{ --rail-w:10px; }
    .rail-section .wrap{ column-gap:16px; }
    .rail-line-col .tick{ width:8px; height:12px; }
  }

  /* ---------- Añadidos: sitio multipágina ---------- */
  .site-nav a[aria-current="page"]{ border-bottom-color:var(--teal); }
  .page-hero{ padding:64px 0 52px; background:linear-gradient(180deg, var(--paper) 0%, var(--white) 100%); border-bottom:1px solid var(--line); }
  .page-hero h1{ font-size:clamp(1.9rem, 3.6vw, 2.6rem); line-height:1.14; font-weight:700; max-width:20ch; }
  .page-hero h1 em{ font-style:normal; color:var(--teal-deep); }
  .page-hero .lede{ margin-top:20px; font-size:1.08rem; color:var(--slate); max-width:60ch; }
  .text-link{ color:var(--teal-deep); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
  .text-link:hover{ color:var(--ink); }
  .after-block{ margin-top:28px; }

  .product-grid{ margin-top:32px; display:grid; grid-template-columns:repeat(2, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
  .product{ background:var(--white); padding:26px 24px; }
  .rail-section.alt .product{ background:var(--paper); }
  .product h3{ font-size:1.1rem; font-weight:600; }
  .product > p{ margin-top:8px; font-size:0.95rem; color:var(--slate); }
  .product dl{ margin:16px 0 0; display:grid; grid-template-columns:auto 1fr; gap:6px 16px; font-size:0.92rem; }
  .product dt{ font-family:'JetBrains Mono',monospace; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.03em; color:var(--teal-deep); padding-top:3px; }
  .product dd{ margin:0; color:var(--ink); }
  .product-grid.single{ grid-template-columns:1fr; }

  .audience{ margin-top:28px; display:flex; flex-wrap:wrap; gap:8px; }
  .audience .tag{ font-size:0.8rem; padding:7px 12px; white-space:normal; }

  .cta-band.stack .wrap{ display:block; }
  .contact-grid{ margin-top:36px; display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
  .contact-card{ background:var(--white); padding:28px 24px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
  .contact-card .mono{ font-size:0.72rem; text-transform:uppercase; letter-spacing:0.04em; color:var(--teal-deep); }
  .contact-card h3{ font-size:1.1rem; font-weight:600; }
  .contact-card p{ font-size:0.93rem; color:var(--slate); }
  .contact-card .big{ font-family:'Space Grotesk',system-ui,sans-serif; font-size:1.12rem; font-weight:600; color:var(--ink); text-decoration:none; border-bottom:2px solid var(--teal); overflow-wrap:anywhere; }
  .contact-card .big:hover{ border-bottom-color:var(--ink); }
  .contact-card .btn{ margin-top:4px; white-space:normal; text-align:left; }
  .plain-list{ margin-top:22px; display:grid; gap:12px; max-width:64ch; }
  .plain-list li{ display:flex; gap:14px; font-size:0.98rem; }
  .plain-list li::before{ content:''; flex-shrink:0; width:10px; height:14px; border-radius:2px; background:var(--teal); margin-top:5px; }

  .service-photo{ margin:28px 0 0; max-width:760px; }
  .service-photo img{ width:100%; height:auto; display:block; border:1px solid var(--line); border-radius:var(--radius); background:var(--mist); }
  .process-list.three{ grid-template-columns:repeat(3, 1fr); }
  @media (max-width:860px){ .process-list.three{ grid-template-columns:1fr; } }
  .privacy-note{ display:block; max-width:84ch; line-height:1.55; }
  .privacy-note strong{ color:var(--ink); font-weight:600; }
  .info-table{ margin-top:28px; width:100%; border-collapse:collapse; font-size:0.94rem; border-top:1px solid var(--line); }
  .info-table th, .info-table td{ text-align:left; vertical-align:top; padding:12px 14px 12px 0; border-bottom:1px solid var(--line); }
  .info-table th{ width:10.5rem; font-family:'JetBrains Mono',monospace; font-size:0.72rem; font-weight:500; text-transform:uppercase; letter-spacing:0.03em; color:var(--teal-deep); padding-top:15px; }

  @media (max-width:860px){
    .product-grid, .contact-grid{ grid-template-columns:1fr; }
  }
  @media (max-width:520px){
    .info-table th, .info-table td{ display:block; width:auto; }
    .info-table th{ border-bottom:none; padding-bottom:0; }
    .info-table td{ padding-top:4px; }
  }
