:root {
    --ink: #1a2744;
    --paper: #f5f7fa;
    --cream: #eaf0f8;
    --rust: #2d6a4f;
    --rust-light: #40916c;
    --gold: #1e4080;
    --mid: #4a5568;
    --light: #8fa3b8;
    --rule: rgba(26,39,68,0.1);
    --navy: #1a2744;
    --green: #2d6a4f;
    --teal: #1a7a8a;
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 3rem;
    background: rgba(244,241,235,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
  }
  .nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-logo img {
    display: block;
    width: auto;
    height: 60px;
    object-fit: contain;
  }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links a:hover { color: var(--rust); }

  /* ── HAMBURGER ── */
  .nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 110;
  }
  .nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 768px) {
    nav {
      padding: 1rem 1.5rem;
    }
    .nav-burger {
      display: flex;
    }
    .nav-links {
      position: fixed;
      top: 0; right: -100%;
      width: 75%;
      max-width: 300px;
      height: 100dvh;
      background: rgba(244,241,235,0.97);
      backdrop-filter: blur(16px);
      flex-direction: column;
      justify-content: center;
      gap: 2rem;
      padding: 2rem;
      border-left: 1px solid var(--rule);
      transition: right 0.35s ease;
      z-index: 105;
    }
    .nav-links.open {
      right: 0;
    }
    .nav-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(26,39,68,0.35);
      z-index: 99;
    }
    .nav-overlay.open {
      display: block;
    }
    .nav-links a {
      font-size: 1rem;
      letter-spacing: 0.06em;
    }
  }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 80px;
  }
  .hero-left {
    padding: 8rem 4rem 6rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--rule);
  }
  .hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--navy);
  }
  .hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
  }
  .hero-name em {
    font-style: italic;
    color: var(--rust);
  }
  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 400;
    font-style: italic;
    color: var(--mid);
    margin-bottom: 2.5rem;
  }
  .hero-desc {
    font-size: 1rem;
    color: var(--mid);
    max-width: 480px;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.8;
  }
  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--navy);
    color: #fff;
    padding: 0.9rem 2rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    align-self: flex-start;
  }
  .hero-cta:hover { background: var(--teal); transform: translateY(-2px); }
  .hero-cta svg { width: 14px; height: 14px; }

  .hero-right {
    background: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
  }
  .hero-right::before {
    content: '';
    position: absolute;
    top: 3rem; right: 3rem;
    width: 200px; height: 200px;
    border: 1px solid var(--rule);
    border-radius: 50%;
  }
  .hero-right::after {
    content: '';
    position: absolute;
    top: 4rem; right: 4rem;
    width: 160px; height: 160px;
    border: 1px solid var(--rule);
    border-radius: 50%;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat {
    padding: 2rem;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    animation: fadeUp 0.7s ease both;
  }
  .stat:nth-child(1) { border-left: none; animation-delay: 0.1s; }
  .stat:nth-child(2) { animation-delay: 0.2s; }
  .stat:nth-child(3) { border-left: none; animation-delay: 0.3s; }
  .stat:nth-child(4) { animation-delay: 0.4s; }
  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--rust);
    line-height: 1;
    margin-bottom: 0.4rem;
  }
  .stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mid);
  }

  /* ── SECTION BASE ── */
  section { padding: 7rem 3rem; }
  .section-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 5rem;
  }
  .section-num {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1;
    flex-shrink: 0;
  }
  .section-title-wrap {}
  .section-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 0.4rem;
  }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  /* ── PERFIL ── */
  #perfil { background: var(--ink); color: #f4f1eb; }
  #perfil .section-num { color: rgba(255,255,255,0.06); }
  #perfil .section-title { color: #f4f1eb; }
  #perfil .section-eyebrow { color: #40916c; }

  .perfil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .perfil-text {
    font-size: 1.05rem;
    color: rgba(244,241,235,0.75);
    line-height: 1.85;
    font-weight: 300;
  }
  .perfil-text p + p { margin-top: 1.25rem; }
  .perfil-text strong { color: #f4f1eb; font-weight: 500; }

  .skills-cols {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .skill-group-title {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #40916c;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .skill-tag {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(244,241,235,0.7);
    letter-spacing: 0.02em;
  }

  /* ── SERVICIOS ── */
  #servicios { background: var(--paper); }
  .servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--rule);
  }
  .servicio {
    padding: 2.5rem;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
  }
  .servicio:hover { background: var(--cream); }
  .servicio:hover .serv-icon { color: var(--rust); }
  .serv-icon {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    color: var(--light);
    transition: color 0.3s;
    display: block;
  }
  .serv-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
  }
  .serv-desc {
    font-size: 0.875rem;
    color: var(--mid);
    line-height: 1.7;
    font-weight: 300;
  }
  .serv-num {
    position: absolute;
    bottom: 1.5rem; right: 1.75rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(0,0,0,0.05);
    line-height: 1;
  }

  /* ── CASOS ── */
  #casos { background: var(--cream); }
  .casos-list { display: flex; flex-direction: column; gap: 0; }

  .caso {
    display: grid;
    grid-template-columns: 280px 1fr;
    border-top: 1px solid var(--rule);
    cursor: pointer;
    transition: background 0.2s;
  }
  .caso:last-child { border-bottom: 1px solid var(--rule); }
  .caso:hover { background: rgba(255,255,255,0.5); }

  .caso-meta {
    padding: 2.5rem 2rem 2.5rem 0;
    border-right: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
	margin-left: 2.5rem;
  }
  .caso-sector {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rust);
  }
  .caso-empresa {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
  }
  .caso-pais {
    font-size: 0.8rem;
    color: var(--light);
  }
  .caso-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
  }
  .caso-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--rule);
    color: var(--mid);
    background: var(--paper);
  }

  .caso-body {
    padding: 2.5rem 0 2.5rem 2rem;
  }
  .caso-summary {
    font-size: 0.95rem;
    color: var(--mid);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 1rem;
  }
  .caso-logros {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    animation: fadeUp 0.3s ease;
  }
  .caso.open .caso-logros { display: flex; }
  .logro {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--ink);
    font-weight: 300;
    line-height: 1.5;
  }
  .logro::before {
    content: '→';
    color: var(--rust);
    flex-shrink: 0;
    font-size: 0.8rem;
    margin-top: 0.15em;
  }
  .caso-toggle {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rust);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-top: 0.5rem;
    border: none;
    background: none;
    font-family: 'DM Sans', sans-serif;
    padding: 0;
  }
  .caso-toggle::after {
    content: '+';
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s;
  }
  .caso.open .caso-toggle::after { transform: rotate(45deg); }

  /* ── PROCESO ── */
  #proceso { background: var(--paper); }
  .proceso-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
  }
  .proceso-steps::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 10%;
    width: 80%;
    height: 1px;
    background: var(--rule);
    z-index: 0;
  }
  .proceso-step {
    text-align: center;
    padding: 0 1.5rem 2rem;
    position: relative;
    z-index: 1;
  }
  .step-circle {
    width: 4rem; height: 4rem;
    border: 1px solid var(--rule);
    background: var(--paper);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rust);
    transition: background 0.3s, border-color 0.3s;
  }
  .proceso-step:hover .step-circle {
    background: var(--navy);
    color: #fff;
    border-color: var(--rust);
  }
  .step-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  .step-desc {
    font-size: 0.8rem;
    color: var(--mid);
    font-weight: 300;
    line-height: 1.6;
  }

  /* ── CONTACTO ── */
  #contacto {
    background: var(--ink);
    color: #f4f1eb;
    text-align: center;
  }
  #contacto .section-num { color: rgba(255,255,255,0.05); }
  #contacto .section-title { color: #f4f1eb; }
  #contacto .section-eyebrow { color: #40916c; }
  #contacto .section-header { justify-content: center; }

  .contacto-tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-style: italic;
    color: rgba(244,241,235,0.6);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.5;
  }
  .contacto-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .contacto-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
  }
  .contacto-link.primary {
    background: var(--navy);
    color: #fff;
  }
  .contacto-link.primary:hover {
    background: var(--teal);
    transform: translateY(-2px);
  }
  .contacto-link.secondary {
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(244,241,235,0.7);
  }
  .contacto-link.secondary:hover {
    border-color: rgba(255,255,255,0.5);
    color: #f4f1eb;
    transform: translateY(-2px);
  }

  /* ── FOOTER ── */
  footer {
    background: #0a0908;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.4);
  }
  .footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-left > * {
    animation: fadeUp 0.7s ease both;
  }
  .hero-left > *:nth-child(1) { animation-delay: 0.1s; }
  .hero-left > *:nth-child(2) { animation-delay: 0.25s; }
  .hero-left > *:nth-child(3) { animation-delay: 0.35s; }
  .hero-left > *:nth-child(4) { animation-delay: 0.45s; }
  .hero-left > *:nth-child(5) { animation-delay: 0.55s; }

  /* ── RESPONSIVE ── */
  /* ── TABLET ── */
  @media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 0.75rem; }
    .nav-links a { font-size: 0.75rem; }
    #hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 6rem 1.5rem 3rem; border-right: none; border-bottom: 1px solid var(--rule); }
    .hero-right { padding: 2.5rem 1.5rem; }
    .hero-right::before, .hero-right::after { display: none; }
    section { padding: 4rem 1.5rem; }
    .section-header { gap: 1rem; }
    .section-num { font-size: 2.5rem; }
    .perfil-grid { grid-template-columns: 1fr; }
    .servicios-grid { grid-template-columns: 1fr 1fr; }
    .caso { grid-template-columns: 1fr; }
    .caso-meta { border-right: none; border-bottom: 1px solid var(--rule); padding: 1.5rem 0; margin-left: 2.5rem;}
    .caso-body { padding: 1.5rem 0; }
    .proceso-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .proceso-steps::before { display: none; }
    footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  }

  /* ── MOBILE ── */
  @media (max-width: 600px) {
    /* Nav: hamburger-style scroll horizontal */
    nav {
      padding: 0.875rem 1.25rem;
    }
    .nav-logo img { height: 34px; }
    .nav-links {
      gap: 0.5rem;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 2px;
      flex-wrap: nowrap;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a { font-size: 0.7rem; white-space: nowrap; }

    /* Hero */
    #hero { padding-top: 70px; }
    .hero-left { padding: 2.5rem 1.25rem 2rem; }
    .hero-eyebrow { font-size: 0.68rem; margin-bottom: 1.25rem; }
    .hero-name { font-size: 2.4rem; }
    .hero-title { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .hero-desc { font-size: 0.9rem; margin-bottom: 2rem; }
    .hero-cta { padding: 0.8rem 1.5rem; font-size: 0.78rem; }
    .hero-right { padding: 1.5rem 1.25rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat { padding: 1.25rem; }
    .stat-num { font-size: 2rem; }
    .stat-label { font-size: 0.7rem; }

    /* Sections general */
    section { padding: 3rem 1.25rem; }
    .section-header { flex-direction: column; gap: 0.25rem; margin-bottom: 2.5rem; }
    .section-num { font-size: 2rem; line-height: 1; }

    /* Perfil */
    .skills-cols { gap: 1.5rem; }
    .skill-tags { gap: 0.4rem; }
    .skill-tag { font-size: 0.75rem; }

    /* Servicios */
    .servicios-grid { grid-template-columns: 1fr; }
    .servicio { padding: 1.75rem 1.5rem; }
    .serv-num { display: none; }

    /* Casos */
    .caso-empresa { font-size: 1.05rem; }
    .caso-tags { gap: 0.3rem; }
    .caso-tag { font-size: 0.65rem; padding: 0.15rem 0.5rem; }
    .caso-summary { font-size: 0.875rem; }
    .logro { font-size: 0.82rem; }

    /* Showcase (inline styles override) */
    #showcase > div:last-child {
      display: flex !important;
      flex-direction: column !important;
      grid-template-columns: unset !important;
    }

    /* Showcase grid */
    .showcase-grid { grid-template-columns: 1fr !important; }

    /* Proceso */
    .proceso-steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .proceso-step { padding: 0 0 0.5rem; text-align: left; display: flex; gap: 1.25rem; align-items: flex-start; }
    .step-circle { flex-shrink: 0; margin: 0; width: 3rem; height: 3rem; font-size: 0.95rem; }
    .step-title { font-size: 0.9rem; margin-bottom: 0.25rem; }
    .step-desc { font-size: 0.78rem; }

    /* Contacto */
    .contacto-tagline { font-size: 1.15rem; margin-bottom: 2rem; }
    .contacto-links { flex-direction: column; align-items: center; gap: 0.75rem; }
    .contacto-link { width: 100%; max-width: 280px; justify-content: center; padding: 0.85rem 1.5rem; }

    /* Footer */
    footer { padding: 1.5rem 1.25rem; flex-direction: column; gap: 0.5rem; text-align: center; }
    footer img { height: 26px !important; }
  }