:root{
  --brand:#083433;
  --brand2:#698473;
  --paper:#edeae4;
  --soft:#c0cfb5;

  --ink:#0b1f1d;
  --dark:#041717;

  --radius:22px;
  --shadow: 0 20px 60px rgba(0,0,0,.22);
  --shadow2: 0 18px 40px rgba(8,52,51,.18);

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background: linear-gradient(180deg, #fff, var(--paper));
  overflow-x:hidden;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.wrap{width:min(1180px, 92%); margin-inline:auto}

/* ===== Top strip ===== */
.topstrip{
  background: rgba(8,52,51,.92);
  color:#fff;
  font-size:.92rem;
}
.topstrip__in{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  flex-wrap:wrap;
  align-items:center;
}
.topstrip__tag{opacity:.9}
.topstrip__cta{opacity:.92}
.topstrip__cta:hover{opacity:1; text-decoration:underline}

/* ===== Header ===== */
.header{
  position:sticky;
  top:0;
  z-index:60;
  background: rgba(237,234,228,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(8,52,51,.10);
}
.header__in{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:12px}
.brand__logo{
  width:44px; height:44px;
  border-radius:14px;
  background:#fff;
  padding:6px;
  box-shadow: 0 12px 26px rgba(8,52,51,.14);
}
.brand__name{
  font-family:var(--display);
  font-weight:700;
  letter-spacing:.06em;
}
.brand__sub{opacity:.7; font-size:.9rem}

.nav{display:flex; align-items:center; gap:18px}
.nav a{opacity:.86; font-weight:600}
.nav a:hover{opacity:1}

.burger{
  display:none;
  width:46px; height:46px;
  border-radius:16px;
  border:1px solid rgba(8,52,51,.16);
  background:#fff;
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  background: var(--brand);
  margin:5px auto;
  border-radius:999px;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  background: var(--brand);
  color:#fff;
  font-weight:800;
  border:1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow2);
  transition: transform .18s ease, filter .18s ease;
}
.btn:hover{transform: translateY(-2px); filter: brightness(1.05)}
.btn--ghost{
  background: rgba(255,255,255,.85);
  color: var(--brand);
  border: 1px solid rgba(8,52,51,.18);
  box-shadow: 0 14px 30px rgba(8,52,51,.12);
}
.btn--small{padding:10px 14px; font-size:.95rem}

/* ===== HERO (dinámico) ===== */
.hero{
  position:relative;
  color:#fff;
  padding:72px 0 0;
  overflow:hidden;
  background: linear-gradient(135deg, #041717 0%, #0b2a29 40%, #0a3b3a 100%);
}
.hero__bg{position:absolute; inset:0; pointer-events:none}
.grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity:.35;
  mask-image: radial-gradient(circle at 30% 10%, rgba(0,0,0,.75), transparent 70%);
}
.orb{
  position:absolute;
  border-radius:50%;
  filter: blur(40px);
  opacity:.75;
  animation: float 8s ease-in-out infinite;
}
.orb--a{width:520px; height:520px; left:-220px; top:-180px; background: rgba(105,132,115,.75)}
.orb--b{width:520px; height:520px; right:-240px; top:-160px; background: rgba(192,207,181,.55); animation-delay:-2s}
.orb--c{width:420px; height:420px; left:30%; bottom:-260px; background: rgba(8,52,51,.55); animation-delay:-4s}
@keyframes float{0%,100%{transform: translate(0,0)}50%{transform: translate(18px,22px)}}

.hero__in{
  position:relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:22px;
  align-items:stretch;
  padding-bottom: 110px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  font-weight:600;
  opacity:.95;
}
.badge .dot{
  width:10px; height:10px;
  border-radius:50%;
  background: linear-gradient(90deg, var(--soft), var(--brand2));
  box-shadow: 0 0 0 6px rgba(192,207,181,.12);
}

.hero__title{
  font-family:var(--display);
  font-weight:800;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height:1.02;
  margin:16px 0 12px;
}
.hero__title span{
  background: linear-gradient(90deg, #fff, rgba(192,207,181,.95));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero__lead{
  opacity:.9;
  line-height:1.8;
  max-width: 62ch;
  font-size: 1.05rem;
}
.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.metrics{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:20px;
}
.metric{
  padding:14px 14px;
  border-radius:18px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
}
.metric__k{opacity:.85; font-weight:700; font-size:.9rem}
.metric__v{font-weight:900; font-size:1.15rem; margin-top:4px}

.chips{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.chip{
  padding:9px 14px;
  border-radius:999px;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  font-weight:700;
  opacity:.95;
  transition: transform .18s ease, background .18s ease;
}
.chip:hover{transform: translateY(-2px); background: rgba(255,255,255,.16)}

/* Right card */
.hero__card{
  align-self:stretch;
  display:flex;
}
.dash{
  width:100%;
  border-radius: 26px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow:hidden;
}
.dash__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.dash__title{font-weight:900; letter-spacing:.02em}
.dash__pill{
  padding:7px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  font-size:.9rem;
  opacity:.9;
}
.dash__grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
  padding:16px;
}
.stat{
  border-radius:18px;
  padding:14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.stat__k{opacity:.85; font-weight:700}
.stat__v{font-weight:900; font-size:1.6rem; margin-top:6px}
.stat__s{opacity:.75; margin-top:4px; font-size:.9rem}

.bars{
  padding: 0 16px 16px;
  display:grid;
  gap:10px;
}
.bar{
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  overflow:hidden;
}
.bar span{
  display:block;
  height:100%;
  width: var(--w);
  border-radius:999px;
  background: linear-gradient(90deg, rgba(192,207,181,.85), rgba(105,132,115,.9));
  animation: fill 1.1s ease forwards;
}
@keyframes fill{from{width:0}to{width:var(--w)}}

.dash__foot{
  padding:12px 16px;
  border-top:1px solid rgba(255,255,255,.10);
  opacity:.9;
}

/* Wave divider */
.hero__wave{
  height:120px;
  background: var(--paper);
  clip-path: polygon(0 35%, 10% 45%, 22% 55%, 35% 52%, 48% 45%, 62% 55%, 76% 62%, 88% 55%, 100% 45%, 100% 100%, 0 100%);
}

/* ===== Sections ===== */
.section{padding:88px 0; background: linear-gradient(180deg, var(--paper) 0%, #ffffff 100%)}
.section--alt{
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(192,207,181,.25), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}
.section__head h2{
  font-family:var(--display);
  font-weight:900;
  font-size: clamp(2rem, 2.8vw, 2.7rem);
  margin:0 0 10px;
  color: var(--brand);
}
.section__head p{margin:0; opacity:.75}

/* Cards */
.cards{
  margin-top:22px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.card{
  border-radius: 22px;
  background:#fff;
  border:1px solid rgba(8,52,51,.10);
  box-shadow: 0 16px 40px rgba(8,52,51,.10);
  padding:18px;
  transition: transform .18s ease, box-shadow .18s ease;
  position:relative;
  overflow:hidden;
}
.card:before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(420px 220px at 20% 0%, rgba(192,207,181,.30), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.card h3{margin:0 0 8px; color:var(--brand); font-weight:900}
.card p{margin:0 0 12px; opacity:.78; line-height:1.7}
.card ul{margin:0; padding-left:18px; opacity:.8; line-height:1.8}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(8,52,51,.16);
}

/* About */
.about{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:start;
}
.about h2{
  font-family:var(--display);
  font-weight:900;
  color:var(--brand);
  margin:0 0 10px;
}
.about p{opacity:.82; line-height:1.8}
.quote{
  margin:16px 0;
  padding:16px 18px;
  border-radius:18px;
  background:#fff;
  border-left:5px solid var(--brand);
  box-shadow: 0 14px 30px rgba(8,52,51,.10);
  font-weight:800;
  color:var(--brand);
}
.stack{display:grid; gap:12px}
.stack__card{
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(8,52,51,.10);
  box-shadow: 0 16px 40px rgba(8,52,51,.10);
  padding:18px;
}
.stack__card h3{margin:0 0 8px; color:var(--brand); font-weight:900}
.stack__card p{margin:0; opacity:.78; line-height:1.7}

/* Clientes */
.logoWall{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
.logoBox{
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(8,52,51,.10);
  box-shadow: 0 14px 28px rgba(8,52,51,.08);
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color: rgba(8,52,51,.65);
}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:start;
}
.infoList{margin-top:14px; display:grid; gap:10px; opacity:.85}
.form{
  border-radius: 22px;
  background:#fff;
  border:1px solid rgba(8,52,51,.10);
  box-shadow: 0 18px 50px rgba(8,52,51,.12);
  padding:18px;
}
.form label{display:block; font-weight:800; margin-bottom:10px}
.form input,.form textarea{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(8,52,51,.18);
  padding:12px;
  font-family:var(--font);
  outline:none;
  margin-top:6px;
}
.form input:focus,.form textarea:focus{
  border-color: rgba(8,52,51,.42);
  box-shadow: 0 0 0 4px rgba(192,207,181,.35);
}
.row{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
.form small{display:block; margin-top:10px; opacity:.7}

/* Footer */
.footer{
  padding:26px 0;
  border-top:1px solid rgba(8,52,51,.10);
  background: rgba(8,52,51,.05);
}
.footer__in{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  opacity:.85;
}
.footer__links{display:flex; gap:14px}

/* WhatsApp */
.wa{
  position:fixed;
  right:18px;
  bottom:18px;
  padding:12px 16px;
  border-radius:999px;
  background:#1aa96b;
  color:#fff;
  font-weight:900;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  transition: transform .18s ease;
}
.wa:hover{transform: translateY(-2px)}

/* Reveal animations */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--d, 0ms);
}
.reveal.is-in{
  opacity:1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px){
  .cards{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 980px){
  .hero__in{grid-template-columns:1fr; padding-bottom: 70px}
  .metrics{grid-template-columns:1fr}
  .about{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .logoWall{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 680px){
  .nav{
    display:none;
    position:absolute;
    right:4%;
    top:72px;
    background: rgba(237,234,228,.96);
    border: 1px solid rgba(8,52,51,.12);
    border-radius:18px;
    padding:12px;
    width:min(92vw, 380px);
    box-shadow: 0 18px 50px rgba(8,52,51,.16);
  }
  .nav a{padding:10px 10px}
  .burger{display:inline-block}
  .nav.nav--open{display:grid; gap:6px}
  .row{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
}
