:root{
    --bg:#F6F7F4;
    --surface:#FFFFFF;
    --ink:#1B231C;
    --ink-soft:#5B655D;
    --green:#4C7A32;
    --green-dark:#33531F;
    --green-soft:#EAF2DF;
    --border:#E3E6DF;
    --footer-bg:#1E2A18;
    --shadow:0 1px 2px rgba(27,35,28,0.04), 0 8px 24px rgba(27,35,28,0.06);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  body{
    background:var(--bg); color:var(--ink);
    font-family:'Inter', sans-serif; line-height:1.6;
    overflow-x:hidden;
  }
  h1,h2,h3{ font-family:'Manrope', sans-serif; font-weight:700; line-height:1.15; letter-spacing:-0.01em; }
  .mono{ font-family:'IBM Plex Mono', monospace; }
  .wrap{ max-width:1120px; margin:0 auto; padding:0 32px; }
  a{ color:inherit; }
  img,svg{ max-width:100%; }
  a:focus-visible, button:focus-visible{ outline:2px solid var(--green); outline-offset:2px; }
  @media (max-width:600px){ .wrap{ padding:0 20px; } }

  .eyebrow{
    font-family:'IBM Plex Mono'; font-size:12.5px; color:var(--green-dark);
    text-transform:uppercase; letter-spacing:0.06em; margin-bottom:10px;
    display:flex; align-items:center; gap:8px;
  }
  .eyebrow::before{ content:""; width:16px; height:2px; background:var(--green); display:inline-block; }

  /* NAV */
  nav{
    position:sticky; top:0; background:rgba(246,247,244,0.92);
    backdrop-filter:blur(6px); z-index:20; border-bottom:1px solid var(--border);
  }
  .nav-inner{
    display:flex; align-items:center; justify-content:space-between;
    max-width:1120px; margin:0 auto; padding:18px 32px;
  }
  nav .logo{ font-family:'Manrope'; font-weight:700; font-size:19px; color:var(--ink); display:flex; align-items:center; gap:10px; flex-shrink:0; }
  nav .logo svg{ flex-shrink:0; }
  nav .logo span{ white-space:nowrap; }
  nav .links{ display:flex; gap:30px; font-size:14.5px; font-weight:500; }
  nav .links a{ text-decoration:none; color:var(--ink-soft); }
  nav .links a:hover{ color:var(--ink); }
  nav .cta-btn{
    background:var(--green-dark); color:#fff; padding:10px 20px; border-radius:100px;
    font-size:13.5px; font-weight:600; text-decoration:none; white-space:nowrap;
  }
  .nav-toggle{
    display:none; background:none; border:1px solid var(--border); border-radius:8px; padding:8px 10px;
    font-size:20px; line-height:1; color:var(--ink); cursor:pointer;
  }
  .nav-mobile-panel{ display:none; }
  @media (max-width:760px){
    .nav-inner{ padding:14px 16px; }
    nav .links{ display:none; }
    .nav-toggle{ display:inline-flex; align-items:center; }
    nav .cta-btn{ display:none; }
    .nav-mobile-panel{
      display:none; flex-direction:column; background:var(--surface);
      border-bottom:1px solid var(--border); position:sticky; top:57px; z-index:19;
    }
    .nav-mobile-panel.open{ display:flex; }
    .nav-mobile-panel a{
      padding:14px 24px; text-decoration:none; color:var(--ink); font-size:15px; font-weight:500;
      border-top:1px solid var(--border); display:flex; align-items:center; gap:8px;
    }
    .nav-mobile-panel a.wa-link{ color:var(--green-dark); font-weight:600; }
  }

  /* HERO */
  .hero-form{
    background:var(--surface); border:1px solid var(--border); border-radius:20px;
    padding:28px; box-shadow:var(--shadow); color:var(--ink);
  }
  .hero-form .form-title{ font-family:'Manrope'; font-weight:700; font-size:17px; margin-bottom:4px; color:var(--ink); }
  .hero-form .form-sub{ font-size:13.5px; color:var(--ink-soft); margin-bottom:18px; }
  .hero-form label{ font-size:12.5px; font-weight:600; color:var(--ink-soft); display:block; margin-bottom:5px; }
  .hero-form input, .hero-form textarea{
    width:100%; border:1px solid var(--border); border-radius:10px; padding:10px 12px;
    font-family:'Inter'; font-size:14px; color:var(--ink); background:var(--bg); margin-bottom:14px; resize:vertical;
  }
  .hero-form input:focus, .hero-form textarea:focus{ outline:2px solid var(--green); outline-offset:1px; }
  .hero-form button{
    width:100%; background:var(--green-dark); color:#fff; border:none; border-radius:100px;
    padding:13px 20px; font-size:14.5px; font-weight:600; font-family:'Inter'; cursor:pointer;
  }
  .hero-form .form-note{ font-size:11.5px; color:var(--ink-soft); margin-top:10px; text-align:center; }
  header.hero{ padding:clamp(56px,9vw,96px) 0 clamp(40px,6vw,64px); }
  .hero h1{ font-size:clamp(32px,6vw,58px); max-width:760px; }
  .hero h1 span{ color:var(--green-dark); }
  .hero p.lead{ font-size:clamp(15.5px,2.2vw,18.5px); color:var(--ink-soft); max-width:580px; margin-top:22px; }
  .pills-label{ font-family:'IBM Plex Mono'; font-size:12px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.05em; margin-top:32px; }
  .pills{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
  .pill{
    font-size:13.5px; font-weight:600; padding:8px 16px; border-radius:100px;
    background:var(--green-soft); color:var(--green-dark);
  }
  .pill.outline{ background:transparent; border:1px solid var(--border); color:var(--ink-soft); }
  .hero-cta{ display:flex; gap:14px; margin-top:36px; flex-wrap:wrap; }
  .btn-primary{
    display:inline-block; background:var(--green-dark); color:#fff; padding:14px 28px; border-radius:100px;
    text-decoration:none; font-size:14.5px; font-weight:600; text-align:center;
  }
  .btn-secondary{
    display:inline-block; background:var(--surface); border:1px solid var(--border); color:var(--ink); padding:14px 28px; border-radius:100px;
    text-decoration:none; font-size:14.5px; font-weight:600; text-align:center;
  }
  @media (max-width:480px){ .hero-cta{ flex-direction:column; } .hero-cta a{ width:100%; } }

  section{ padding:clamp(48px,8vw,80px) 0; }
  section h2{ font-size:clamp(24px,4vw,34px); margin-bottom:10px; max-width:100%; }
  section > .wrap > p.section-intro{ color:var(--ink-soft); max-width:580px; margin-bottom:44px; font-size:15.5px; }

  /* CARDS - servicios / especialidades */
  .card-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
  .card-grid.cols-3{ grid-template-columns:repeat(3,1fr); }
  .icon-card{
    background:var(--surface); border:1px solid var(--border); border-radius:18px;
    padding:26px 22px; box-shadow:var(--shadow);
  }
  .icon-circle{
    width:44px; height:44px; border-radius:12px; background:var(--green-soft); color:var(--green-dark);
    display:flex; align-items:center; justify-content:center; font-size:21px; margin-bottom:16px;
  }
  .icon-card h3{ font-size:18px; margin-bottom:8px; }
  .icon-card p{ font-size:14px; color:var(--ink-soft); }
  @media (max-width:860px){ .card-grid{ grid-template-columns:repeat(2,1fr) !important; } }
  @media (max-width:520px){ .card-grid{ grid-template-columns:1fr !important; } }

  /* CASOS */
  .case-list{ display:flex; flex-direction:column; gap:18px; }
  .case{
    background:var(--surface); border:1px solid var(--border); border-radius:20px;
    padding:30px 32px; box-shadow:var(--shadow);
  }
  .case-top{ display:flex; align-items:center; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
  .case-tag{
    font-size:12.5px; font-weight:600; background:var(--green-dark); color:#fff;
    padding:5px 14px; border-radius:100px;
  }
  .case .meta{ font-size:13px; color:var(--ink-soft); }
  .case h3{ font-size:clamp(19px,3.2vw,23px); margin-bottom:12px; }
  .case p{ font-size:15px; color:var(--ink-soft); max-width:700px; }
  @media (max-width:600px){ .case{ padding:24px 22px; border-radius:16px; } }

  /* TRAYECTORIA */
  .proof-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:20px; margin-bottom:24px; }
  @media (max-width:860px){ .proof-grid{ grid-template-columns:1fr; } }
  .proof-main{
    background:var(--footer-bg); color:#EFF3EA; border-radius:20px; padding:clamp(26px,4vw,36px);
  }
  .proof-main .eyebrow{ color:#A9C98F; }
  .proof-main .eyebrow::before{ background:#A9C98F; }
  .proof-main h3{ color:#fff; font-size:clamp(22px,3.5vw,28px); margin:8px 0 12px; }
  .proof-main p{ color:#C4D0BC; font-size:15px; max-width:520px; }
  .proof-stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:28px; }
  .proof-stat{ padding-top:14px; border-top:1px solid #3E4F35; }
  .proof-stat .big{ font-family:'Manrope'; font-weight:800; font-size:32px; color:#D1E7C8; line-height:1; }
  .proof-stat p{ font-size:13px; color:#C9D1CA; margin-top:6px; max-width:none; }
  .proof-quote{
    background:var(--green-soft); border-radius:20px; padding:clamp(26px,4vw,34px);
    display:flex; flex-direction:column; justify-content:space-between;
  }
  .proof-quote blockquote{
    font-family:'Manrope'; font-weight:700; font-size:clamp(19px,2.6vw,23px); line-height:1.32;
    color:var(--ink); margin:0;
  }
  .proof-quote figcaption{ margin-top:24px; font-size:13.5px; color:var(--ink-soft); }
  .proof-quote figcaption b{ display:block; color:var(--ink); font-family:'Manrope'; font-weight:700; margin-bottom:2px; }

  .stack-tags{ display:flex; flex-wrap:wrap; gap:9px; margin-top:8px; }
  .stack-group{ margin-bottom:20px; }
  .stack-cat-label{ font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:8px; }
  .stack-tag.ai{ background:var(--green-soft); border-color:var(--green); color:var(--green-dark); font-weight:600; }
  .ai-highlight{
    margin-top:32px; background:var(--green-soft); border:1px solid var(--green); border-radius:18px;
    padding:26px 28px;
  }
  .stack-tag{
    font-size:13px; font-weight:500; padding:7px 14px; border-radius:100px;
    background:var(--surface); border:1px solid var(--border); color:var(--ink-soft);
  }

  /* MODELO */
  .model-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
  .model-card{
    background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:28px 24px;
  }
  .model-card .eyebrow{ margin-bottom:14px; }
  .model-card h3{ font-size:18.5px; margin-bottom:10px; }
  .model-card p{ font-size:14px; color:var(--ink-soft); }
  @media (max-width:760px){ .model-grid{ grid-template-columns:1fr !important; } }

  /* FOOTER */
  footer{ background:var(--footer-bg); color:#EFF3EA; padding:clamp(56px,9vw,88px) 0; margin-top:24px; border-radius:32px 32px 0 0; }
  footer .eyebrow{ color:#A9C98F; }
  footer .eyebrow::before{ background:#A9C98F; }
  footer h2{ font-size:clamp(28px,5vw,38px); max-width:100%; margin-bottom:16px; color:#fff; }
  footer p.lead{ color:#C4D0BC; max-width:480px; font-size:15.5px; }
  .footer-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
  @media (max-width:860px){ .footer-grid{ grid-template-columns:1fr; gap:36px; } }
  .contact-list{ list-style:none; margin-top:32px; }
  .contact-list li{ padding:14px 0; border-top:1px solid #3E4F35; font-size:15px; color:#EFF3EA; }
  .contact-list li:last-child{ border-bottom:1px solid #3E4F35; }
  .contact-list li a{ color:inherit; text-decoration:none; }
  .contact-list li a:hover{ text-decoration:underline; }
  .msi{
    font-family:'Material Symbols Outlined'; font-weight:normal; font-style:normal;
    display:inline-block; line-height:1; text-transform:none; letter-spacing:normal;
    word-wrap:normal; white-space:nowrap; direction:ltr; -webkit-font-smoothing:antialiased;
    vertical-align:middle;
  }
  .wa-icon{ display:inline-block; }
  .icon-circle-sm{
    width:34px; height:34px; border-radius:10px; background:var(--green-soft); color:var(--green-dark);
    display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0;
  }
  .btn-primary i, .btn-secondary i{ margin-right:8px; vertical-align:-2px; }

/* --- Agregado para la versión MVC: validación, mensajes y honeypot --- */
.field-validation-error{ display:block; font-size:12.5px; color:#B3261E; margin-top:-10px; margin-bottom:14px; }
.validation-summary-errors{ background:#FBEAE9; border:1px solid #B3261E; color:#8C1D14; border-radius:10px; padding:12px 16px; margin-bottom:16px; font-size:14px; }
.validation-summary-errors ul{ margin:0; padding-left:18px; }
input.input-validation-error, textarea.input-validation-error{ border-color:#B3261E; }
.hp-field{ position:absolute; left:-9999px; top:-9999px; opacity:0; height:0; width:0; overflow:hidden; }
.sent-banner{
  background:var(--green-soft); border:1px solid var(--green); color:var(--green-dark);
  border-radius:14px; padding:16px 20px; margin-bottom:20px; font-size:14.5px; font-weight:600;
}
.lang-switch{ display:flex; gap:6px; font-family:'IBM Plex Mono'; font-size:12.5px; }
.lang-switch a{ padding:5px 9px; border-radius:8px; color:var(--ink-soft); text-decoration:none; }
.lang-switch a.active{ background:var(--green-soft); color:var(--green-dark); font-weight:600; }

/* --- Case studies extendidos (usado en la landing en inglés) --- */
.case-feature{
  background:var(--surface); border:1px solid var(--border); border-radius:22px;
  padding:clamp(28px,5vw,44px); box-shadow:var(--shadow); margin-bottom:22px;
}
.case-feature-top{ display:flex; align-items:center; gap:14px; margin-bottom:18px; flex-wrap:wrap; }
.case-feature .client-name{ font-family:'Manrope'; font-weight:800; font-size:20px; }
.case-feature .meta{ font-size:13px; color:var(--ink-soft); }
.case-feature h3{ font-size:clamp(20px,3.5vw,26px); margin-bottom:14px; max-width:640px; }
.case-feature p{ font-size:15.5px; color:var(--ink-soft); max-width:720px; margin-bottom:10px; }
.case-feature .highlight-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.case-feature .highlight{ font-size:13px; font-weight:600; padding:7px 14px; border-radius:100px; background:var(--green-soft); color:var(--green-dark); }
.case-feature .highlight.past{ background:var(--border); color:var(--ink-soft); }
