:root {
    --bg: #16181D;
    --surface: #1D2026;
    --surface-2: #23272F;
    --line: #2E333D;
    --text: #EDEFF2;
    --text-muted: #8C93A1;
    --accent: #C9874A;
    --accent-soft: #C9874A22;
    --accent-2: #5C8B82;
    --radius: 3px;
    --display: 'Space Grotesk', sans-serif;
    --body: 'IBM Plex Sans', sans-serif;
    --mono: 'JetBrains Mono', monospace;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; }

  ::selection { background: var(--accent); color: #16181D; }

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

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

  .wrap-wide {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 40px;
  }

  /* ---------- NAV ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(22,24,29,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
  }
  .logo {
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }
  .logo .dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    font-size: 14px;
    color: var(--text-muted);
  }
  .nav-links a { text-decoration: none; transition: color .15s; }
  .nav-links a:hover { color: var(--text); }
  .nav-cta {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    background: var(--accent);
    color: #16181D;
    border: 1px solid var(--accent);
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform .15s, opacity .15s;
    white-space: nowrap;
  }
  .nav-cta:hover { transform: translateY(-1px); opacity: 0.92; }

  /* Hamburger */
  .menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
  }
  .mobile-menu {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--line);
    padding: 16px 0;
  }
  .mobile-menu a {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: color .15s;
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a:hover { color: var(--text); }
  .mobile-menu.open { display: flex; }

  @media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .menu-btn { display: flex; }
  }

  /* ---------- HERO ---------- */
  .hero {
    padding: 96px 0 80px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
  }
  .eyebrow {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .eyebrow::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--accent-2);
  }
  h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 22px;
  }
  h1 span { color: var(--accent); }
  .hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 34px;
  }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn-primary, .btn-secondary {
    font-family: var(--mono);
    font-size: 14px;
    padding: 13px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s, opacity .15s;
  }
  .btn-primary {
    background: var(--accent);
    color: #16181D;
    font-weight: 500;
  }
  .btn-primary:hover { transform: translateY(-1px); opacity: 0.92; }
  .btn-secondary {
    border: 1px solid var(--line);
    color: var(--text);
  }
  .btn-secondary:hover { border-color: var(--text-muted); }

  /* ---------- PIPELINE DIAGRAM (signature element) ---------- */
  .pipeline {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px 22px;
    position: relative;
    overflow: hidden;
  }
  .pipeline-head {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
  }
  .pipeline-head .live { color: var(--accent-2); }
  .node {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 0;
    position: relative;
  }
  .node-label {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
  }
  .node-body {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
  }
  .connector {
    height: 28px;
    width: 1px;
    background: var(--line);
    margin-left: 16px;
    position: relative;
  }
  .connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: -1.5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    animation: travel 2.6s ease-in-out infinite;
  }
  .connector.d2::after { animation-delay: 1.3s; }
  @keyframes travel {
    0% { top: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  .pipeline-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
  }

  /* ---------- SECTION SCAFFOLD ---------- */
  section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; max-width: 560px; }
  .section-tag {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
  }
  h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.2;
    margin-bottom: 14px;
  }
  .section-desc { color: var(--text-muted); font-size: 15.5px; }

  /* ---------- SERVICES (bento) ---------- */
  .capabilities, .section-alt {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .service-card {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    transition: border-color .15s, background .15s;
  }
  .service-card:hover { background: var(--surface-2); border-color: #3A4150; }
  .service-card.featured {
    grid-column: span 2;
  }
  .service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
  }
  .service-icon {
    width: 30px;
    height: 30px;
    color: var(--accent);
  }
  .service-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }
  .service-sys {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--accent-2);
    letter-spacing: 0.05em;
  }
  .service-card h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
  .service-card.featured h3 { font-size: 1.35rem; }
  .service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    max-width: 480px;
  }
  .service-meta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-muted);
  }
  .service-card.featured .service-meta {
    grid-template-columns: 1fr 1fr;
  }

  /* ---------- PROCESS ---------- */
  .process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .process-step {
    background: var(--bg);
    padding: 36px 26px 32px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
  }
  .process-num {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 13px;
    margin-bottom: 20px;
  }
  .process-step h4 {
    font-family: var(--display);
    font-size: 15.5px;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .process-step p { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }
  .process-deliverable {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }


  /* ---------- ENFOQUE ---------- */
  .approach-wrap {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
  }
  .approach-left h2 { margin-bottom: 18px; }
  .approach-left p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 420px;
  }
  .approach-item {
    padding: 26px 0;
    border-top: 1px solid var(--line);
  }
  .approach-item:first-child { border-top: none; padding-top: 0; }
  .approach-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 8px;
  }
  .approach-title {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
  }
  .approach-item p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 480px;
  }

  /* ---------- CTA ---------- */
  .cta-section {
    border-top: 1px solid var(--line);
  }
  .contact-wrap {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
  }
  .contact-left h2 { margin-bottom: 16px; }
  .contact-left p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 420px;
    margin-bottom: 36px;
  }
  .contact-meta {
    border-top: 1px solid var(--line);
    padding-top: 4px;
  }
  .contact-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
  }
  .contact-meta-row span:first-child { color: var(--text-muted); }
  .contact-meta-row span:last-child {
    font-family: var(--mono);
    color: var(--text);
  }

  .contact-right form {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 32px;
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .form-group { margin-bottom: 20px; }
  .form-group label {
    display: block;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: var(--body);
    font-size: 14.5px;
    padding: 12px 14px;
    border-radius: var(--radius);
    transition: border-color .15s;
  }
  .form-group input::placeholder,
  .form-group textarea::placeholder { color: #5C616C; }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
  }
  .form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238C93A1' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
  }
  .form-group textarea {
    resize: vertical;
    min-height: 110px;
    font-family: var(--body);
  }
  .btn-submit {
    font-family: var(--mono);
    font-size: 14px;
    background: var(--accent);
    color: #16181D;
    font-weight: 500;
    border: none;
    padding: 13px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform .15s, opacity .15s;
  }
  .btn-submit:hover { transform: translateY(-1px); opacity: 0.92; }


  /* ---------- PHONE PICKER ---------- */
  .phone-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    position: relative;
    transition: border-color .15s;
  }
  .phone-wrapper:focus-within { border-color: var(--accent); }
  .dial-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 12px;
    border: none;
    border-right: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-family: var(--mono);
    font-size: 13.5px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 96px;
    transition: background .15s;
  }
  .dial-trigger:hover { background: rgba(255,255,255,0.04); }
  .dial-chevron { opacity: 0.4; font-size: 10px; margin-left: 2px; }
  .phone-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 290px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    z-index: 200;
    display: none;
    flex-direction: column;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  }
  .phone-dropdown-menu.open { display: flex; }
  .dial-search-input {
    padding: 11px 13px;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-family: var(--body);
    font-size: 13.5px;
    outline: none;
    width: 100%;
  }
  .dial-search-input::placeholder { color: #5C616C; }
  .country-list {
    list-style: none;
    max-height: 210px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .country-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--text-muted);
    transition: background .1s, color .1s;
  }
  .country-list li:hover { background: rgba(255,255,255,0.05); color: var(--text); }
  .country-list li.selected { color: var(--text); background: rgba(201,135,74,0.08); }
  .country-flag { font-size: 16px; line-height: 1; }
  .country-name { flex: 1; font-size: 13px; }
  .country-dial { font-family: var(--mono); font-size: 11.5px; color: var(--accent-2); }
  .phone-number-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--body);
    font-size: 14.5px;
    padding: 12px 14px;
    outline: none;
  }
  .phone-number-input::placeholder { color: #5C616C; }

  /* ---------- FOOTER ---------- */
  footer {
    border-top: 1px solid var(--line);
    padding: 56px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
    font-size: 13.5px;
    color: var(--text-muted);
  }
  .footer-links a { text-decoration: none; }
  .footer-links a:hover { color: var(--text); }
  .footer-meta {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
  }

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

  /* ---------- RESPONSIVE MÓVIL ---------- */
  @media (max-width: 900px) {
    .hero {
      grid-template-columns: 1fr;
      padding: 52px 0 48px;
      gap: 36px;
    }
    .hero-sub { max-width: 100%; font-size: 16px; }
    section { padding: 64px 0; }
    .section-head { margin-bottom: 36px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card.featured { grid-column: span 1; }
    .approach-wrap { grid-template-columns: 1fr; gap: 32px; }
    .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .process-grid { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 600px) {
    .wrap { padding: 0 20px; }
    .wrap-wide { padding: 0 20px; }
    h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
    h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-secondary { justify-content: center; }
    .process-grid { grid-template-columns: 1fr; }
    .phone-dropdown-menu { width: 100%; left: 0; right: 0; }
    .contact-right form { padding: 22px 18px; }
    .pipeline { font-size: 12px; }
    .node-body { font-size: 12px; }
    .pipeline-footer { flex-direction: column; gap: 6px; }
    section { padding: 52px 0; }
  }