:root{
  --teal-900:#08272F;
  --teal-800:#0B333D;
  --teal-700:#015768;
  --teal-600:#0E7284;
  --gold:#FED269;
  --gold-dark:#E7B94A;
  --ink:#16262A;
  --ink-soft:#3E5459;
  --paper:#FFFFFF;
  --mist:#EEF4F4;
  --line:#D7E3E3;
  --radius:2px;
  --maxw:1180px;
  --gutter:28px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Sans', -apple-system, sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.wordmark{
  font-family:'Space Grotesk', 'IBM Plex Sans', sans-serif;
  font-weight:700;
  line-height:1.08;
  letter-spacing:-0.01em;
  margin:0;
  color:var(--teal-900);
}
p{margin:0;}
a{color:inherit;}
img{max-width:100%;display:block;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter);}

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

/* ---------- NAV ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,0.92);
  backdrop-filter:saturate(150%) blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none;}
.brand img{height:34px; width:auto;}
.brand span{font-size:1.15rem; letter-spacing:-0.02em; color:var(--teal-900);}
nav.links{display:flex; align-items:center; gap:30px;}
nav.links a{
  text-decoration:none; color:var(--ink-soft); font-size:0.96rem; font-weight:500;
}
nav.links a:hover{color:var(--teal-700);}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--teal-700); color:#fff;
  padding:11px 20px; border-radius:var(--radius);
  text-decoration:none; font-weight:600; font-size:0.95rem;
  border:1px solid var(--teal-700);
  transition:background .15s ease, transform .1s ease;
}
.btn:hover{background:var(--teal-900);}
.btn:active{transform:translateY(1px);}
.btn.gold{background:var(--gold); border-color:var(--gold); color:var(--teal-900);}
.btn.gold:hover{background:var(--gold-dark);}
.btn.ghost{background:transparent; color:var(--teal-800); border:1px solid var(--line);}
.btn.ghost:hover{border-color:var(--teal-700); color:var(--teal-700);}
.menu-toggle{display:none; background:none; border:0; cursor:pointer; padding:6px;}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{
  display:block; width:22px; height:2px; background:var(--teal-900); position:relative; transition:.2s;
}
.menu-toggle span::before, .menu-toggle span::after{content:''; position:absolute; left:0;}
.menu-toggle span::before{top:-7px;}
.menu-toggle span::after{top:7px;}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  overflow:hidden;
  padding:104px 0 120px;
  background:
    radial-gradient(ellipse 900px 500px at 78% 8%, rgba(1,87,104,0.07), transparent 60%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}
.hero-sweep{
  position:absolute; inset:0; width:100%; height:100%;
  pointer-events:none; z-index:0;
}
.hero-sweep .sweep-echo{
  stroke:var(--teal-600);
  stroke-width:2;
  fill:none;
  opacity:0.18;
}
.hero-sweep .sweep-main{
  stroke:var(--gold);
  stroke-width:7;
  fill:none;
  stroke-linecap:round;
  stroke-dasharray:1650;
  stroke-dashoffset:1650;
  animation:draw 1.8s cubic-bezier(.2,.7,.3,1) .2s forwards;
}
@media (prefers-reduced-motion:reduce){
  .hero-sweep .sweep-main{animation:none; stroke-dashoffset:0;}
}
@keyframes draw{ to{ stroke-dashoffset:0; } }
.hero .wrap{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:28px;
  align-items:center;
}
.hero h1{
  font-size:clamp(2.6rem, 4.2vw + 1rem, 4rem);
  max-width:12ch;
}
.hero .lede{
  margin-top:24px;
  max-width:46ch;
  font-size:1.14rem;
  color:var(--ink-soft);
}
.hero .cta-row{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap;}
.hero-art{position:relative; display:flex; align-items:center; justify-content:center;}
.hero-art svg{width:min(100%, 480px); height:auto; overflow:visible;}
.orbit-ring{fill:none; stroke:var(--teal-700); opacity:0.28;}
.orbit-ring.dashed{stroke-dasharray:3 9; opacity:0.22;}
.orbit-link{stroke:var(--teal-600); stroke-width:1.5; stroke-dasharray:2 6; opacity:0.55;}
.orbit-badge-bg{fill:var(--paper); stroke:var(--teal-700); stroke-width:2;}
.orbit-badge-icon{stroke:var(--teal-700); stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round;}
.hero-center-mark{filter:drop-shadow(0 14px 26px rgba(1,87,104,0.22));}

.trustline{
  margin-top:36px; padding-top:22px; border-top:1px solid var(--line);
  display:flex; gap:34px; flex-wrap:wrap; color:var(--ink-soft); font-size:0.92rem;
}
.trustline strong{color:var(--teal-800); font-family:'Space Grotesk',sans-serif;}

/* ---------- DIVIDER ---------- */
.diagonal-divider{
  height:46px; overflow:hidden; position:relative;
}
.diagonal-divider svg{width:100%; height:100%; display:block;}

/* ---------- SECTION SHELL ---------- */
section{padding:84px 0;}
section.alt{background:var(--mist);}
.section-head{max-width:60ch; margin-bottom:48px;}
.section-head h2{font-size:clamp(1.7rem,2.4vw,2.15rem);}
.section-head p{margin-top:14px; color:var(--ink-soft); font-size:1.02rem;}

/* ---------- SERVICES ---------- */
.services-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.service{
  background:var(--paper);
  padding:34px 32px;
  display:flex; flex-direction:column; gap:14px;
}
.service .icon{width:42px; height:42px; color:var(--teal-700);}
.service h3{font-size:1.15rem; color:var(--teal-900);}
.service p{color:var(--ink-soft); font-size:0.98rem;}
.service{position:relative; transition:background .25s ease;}
.service::before{
  content:''; position:absolute; left:0; top:0; height:3px; width:100%;
  background:var(--gold); transform:scaleX(0); transform-origin:left;
  transition:transform .35s cubic-bezier(.2,.7,.3,1);
}
.service:hover::before{transform:scaleX(1);}
.service .icon{transition:transform .35s cubic-bezier(.2,.7,.3,1), color .25s ease;}
.service:hover .icon{transform:translateY(-3px) rotate(-4deg); color:var(--teal-600);}
.service.featured{
  grid-column:1 / -1;
  background:var(--teal-900);
  display:grid; grid-template-columns:auto 1fr auto; gap:28px; align-items:center;
}
.service.featured .icon{color:var(--gold); width:52px; height:52px;}
.service.featured:hover .icon{color:var(--gold);}
.service.featured h3{color:#fff; font-size:1.3rem;}
.service.featured p{color:#BFD7D9; margin-top:10px; max-width:62ch;}
.chips{list-style:none; margin:16px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px;}
.chips li{
  font-size:0.84rem; color:#EAF3F3;
  border:1px solid rgba(255,255,255,0.22); border-radius:20px; padding:4px 12px;
}

/* ---------- WORK COMPARISON ---------- */
.work-compare{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.work-compare figure{
  margin:0; position:relative; border-radius:3px; overflow:hidden;
  border:1px solid var(--line);
}
.work-compare img{width:100%; height:100%; object-fit:cover; object-position:50% 35%; display:block; aspect-ratio:4/3;}
.work-compare figcaption{
  position:absolute; left:0; bottom:0;
  background:rgba(8,39,47,0.82); color:#fff;
  font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:0.9rem;
  padding:8px 14px;
}

/* ---------- PROCESS ---------- */
.steps{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:28px;
}
.step{position:relative; padding-top:8px;}
.step .num{
  font-family:'Space Grotesk',sans-serif; font-weight:700;
  font-size:0.95rem; color:var(--gold-dark);
  background:var(--teal-900); color:var(--gold);
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.step h3{font-size:1.05rem; color:var(--teal-900); margin-bottom:8px;}
.step p{color:var(--ink-soft); font-size:0.95rem;}
.step:not(:last-child)::after{
  content:'';
  position:absolute; top:16px; left:calc(100% - 8px);
  width:calc(28px + 16px); height:1px;
  background:var(--line);
  display:none;
}
@media (min-width:881px){
  .step:not(:last-child)::after{display:block;}
}

/* ---------- FAQ ---------- */
.faq-list{max-width:74ch;}
.faq-item{
  border-bottom:1px solid var(--line);
}
.faq-item summary{
  padding:20px 4px;
  cursor:pointer;
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  color:var(--teal-900);
  font-size:1.02rem;
  list-style:none;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{
  content:'+';
  font-size:1.4rem;
  color:var(--teal-600);
  flex-shrink:0;
  transition:transform .15s ease;
}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item p{padding:0 4px 22px; color:var(--ink-soft); font-size:0.98rem; max-width:64ch;}

/* ---------- WEB SERVICES TEASER ---------- */
.teaser{
  background:var(--teal-900);
  color:#EAF3F3;
  border-radius:4px;
  padding:52px 44px;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:36px;
  align-items:center;
}
.teaser h2{color:#fff; font-size:clamp(1.5rem,2.2vw,1.9rem);}
.teaser p{color:#BFD7D9; margin-top:14px; font-size:1rem;}
.teaser .tag{
  display:inline-block; font-size:0.82rem; font-weight:600;
  background:var(--gold); color:var(--teal-900);
  padding:5px 12px; border-radius:20px; margin-bottom:16px;
}
.teaser .side{
  border-left:1px solid rgba(255,255,255,0.15);
  padding-left:32px;
  font-size:0.95rem;
  color:#BFD7D9;
}
.teaser .side strong{display:block; color:#fff; font-family:'Space Grotesk',sans-serif; font-size:1.05rem; margin-bottom:6px;}

/* ---------- ABOUT ---------- */
.about{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:56px;
  align-items:start;
}
.about .quote{
  font-family:'Space Grotesk',sans-serif;
  font-size:1.5rem;
  color:var(--teal-900);
  line-height:1.35;
  border-left:3px solid var(--gold);
  padding-left:22px;
}
.about .body p{color:var(--ink-soft); font-size:1.02rem;}
.about .body p + p{margin-top:16px;}
.stats{display:flex; gap:36px; margin-top:28px; flex-wrap:wrap;}
.stats div{min-width:110px;}
.stats strong{display:block; font-family:'Space Grotesk',sans-serif; font-size:1.5rem; color:var(--teal-700);}
.stats span{font-size:0.88rem; color:var(--ink-soft);}

/* ---------- CONTACT ---------- */
.contact-panel{
  background:var(--teal-700);
  border-radius:4px;
  padding:52px 44px;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:40px;
  color:#fff;
  align-items:center;
}
.contact-panel h2{color:#fff; font-size:clamp(1.6rem,2.4vw,2.1rem);}
.contact-panel p{color:#CFE7EA; margin-top:14px; max-width:44ch;}
.contact-links{display:flex; flex-direction:column; gap:12px;}
.contact-links a{
  display:flex; align-items:center; gap:12px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.22);
  padding:14px 18px; border-radius:3px;
  text-decoration:none; color:#fff; font-weight:500; font-size:0.98rem;
  transition:background .15s ease;
}
.contact-links a:hover{background:rgba(255,255,255,0.16);}
.contact-links svg{width:20px; height:20px; flex-shrink:0;}
.contact-links .whatsapp{background:var(--gold); border-color:var(--gold); color:var(--teal-900); font-weight:600;}
.contact-links .whatsapp:hover{background:var(--gold-dark);}

/* ---------- FOOTER ---------- */
footer{padding:36px 0; border-top:1px solid var(--line);}
footer .wrap{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
}
.foot-brand{display:flex; align-items:center; gap:10px;}
.foot-brand img{height:24px;}
.foot-brand span{font-family:'Space Grotesk',sans-serif; font-weight:700; color:var(--teal-900); font-size:0.95rem;}
footer small{color:var(--ink-soft); font-size:0.85rem;}
.foot-social{display:flex; gap:16px;}
.foot-social a{color:var(--ink-soft);}
.foot-social a:hover{color:var(--teal-700);}
.foot-social svg{width:18px; height:18px;}

/* ---------- WHATSAPP FLOATING BUTTON ---------- */
.float-wa{
  position:fixed; right:22px; bottom:22px; z-index:60;
  background:var(--gold); color:var(--teal-900);
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(1,87,104,0.35);
  text-decoration:none;
}
.float-wa svg{width:26px; height:26px;}

/* ---------- MOTION ---------- */
header.site{transition:box-shadow .25s ease;}
header.site.scrolled{box-shadow:0 6px 20px rgba(8,39,47,0.08);}
.hero-art svg .spin{transform-origin:200px 200px; animation:spin 60s linear infinite;}
.hero-art svg .bob{transform-box:fill-box; transform-origin:center; animation:bob 6s ease-in-out infinite;}
.badge-float{animation:bob 5s ease-in-out infinite; animation-delay:var(--d,0s);}
@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes bob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-6px); } }

.work-compare figure img{transition:transform .6s cubic-bezier(.2,.7,.3,1);}
.work-compare figure:hover img{transform:scale(1.04);}

.float-wa::after{
  content:''; position:absolute; inset:0; border-radius:50%;
  border:2px solid var(--gold); opacity:0;
  animation:ping 2.4s ease-out 1.5s 3;
}
@keyframes ping{ 0%{ transform:scale(1); opacity:.8; } 100%{ transform:scale(1.7); opacity:0; } }

/* Scroll reveal: only hides content once JS has confirmed it can show it again */
.js .reveal{
  opacity:0; transform:translateY(22px);
  transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
  transition-delay:var(--stagger,0s);
}
.js .reveal.in{opacity:1; transform:none;}
.step:not(:last-child)::after{transform:scaleX(0); transform-origin:left; transition:transform .6s ease .3s;}
.steps.in .step::after{transform:scaleX(1);}
html:not(.js) .step::after{transform:scaleX(1);}

@media (prefers-reduced-motion:reduce){
  .hero-art svg .spin, .hero-art svg .bob, .badge-float, .float-wa::after{animation:none;}
  .js .reveal{opacity:1; transform:none; transition:none;}
  .step::after{transform:none !important;}
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:880px){
  .hero .wrap{grid-template-columns:1fr;}
  .hero-art{order:-1; max-width:260px; margin:0 auto;}
  .about, .teaser, .contact-panel{grid-template-columns:1fr;}
  .teaser .side{border-left:0; border-top:1px solid rgba(255,255,255,0.15); padding-left:0; padding-top:20px;}
  .services-grid{grid-template-columns:1fr;}
  .service.featured{grid-template-columns:1fr; gap:18px;}
  .service.featured .btn{justify-self:start;}
  .about{gap:36px;}
  .steps{grid-template-columns:repeat(2, 1fr); gap:32px 28px;}
}
@media (max-width:720px){
  nav.links{
    position:fixed; top:64px; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--line);
    flex-direction:column; align-items:flex-start; gap:0;
    padding:8px var(--gutter) 16px;
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:.18s ease;
  }
  nav.links.open{transform:translateY(0); opacity:1; pointer-events:auto;}
  nav.links a{padding:12px 0; width:100%; border-bottom:1px solid var(--line);}
  nav.links .btn{margin-top:12px;}
  .menu-toggle{display:block;}
  .trustline{gap:20px;}
}
@media (max-width:560px){
  :root{--gutter:18px;}
  .hero{padding:64px 0 76px;}
  section{padding:60px 0;}
  .section-head{margin-bottom:32px;}
  .service{padding:26px 20px;}
  .teaser, .contact-panel{padding:36px 22px; gap:28px;}
  .work-compare{grid-template-columns:1fr; gap:14px;}
  .steps{grid-template-columns:1fr; gap:24px;}
  .about .quote{font-size:1.3rem;}
  .stats{gap:24px;}
}
