:root {
  --bg: #1B4A3E;
  --surface: rgba(255, 255, 255, .07);
  --surface-2: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .14);
  --brand: #1F8A5A;
  --brand-hi: #7FE0A8;
  --ink: #F2F5F3;
  --muted: #BFD6CB;

  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --text-hero: clamp(2.6rem, 1.2rem + 5.5vw, 6rem);
  --text-h2: clamp(1.9rem, 1rem + 3vw, 3.4rem);
  --space-section: clamp(4rem, 2.5rem + 6vw, 9rem);
  --gutter: clamp(16px, 4vw, 72px);
  --radius: 20px;

  --dur: 300ms;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 700px at 85% -5%, rgba(127, 224, 168, .35), transparent 60%),
    radial-gradient(900px 600px at -10% 35%, rgba(31, 138, 90, .45), transparent 60%),
    radial-gradient(800px 500px at 60% 110%, rgba(127, 224, 168, .22), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.03em; line-height: 1.02; margin: 0; }
h1 { font-size: var(--text-hero); font-weight: 800; max-width: 11ch; }
h2 { font-size: var(--text-h2); font-weight: 800; max-width: 18ch; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
strong, dd { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-hi);
  margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-hi); box-shadow: 0 0 0 0 rgba(127, 224, 168, .6); animation: ping 2.2s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(127, 224, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 224, 168, 0); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 26px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur), box-shadow var(--dur);
  box-shadow: 0 10px 30px -12px rgba(31, 138, 90, .8);
}
.btn:hover { background: #24a06a; transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line); box-shadow: none; color: var(--ink); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: var(--surface); border-color: var(--brand); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(27, 74, 62, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-hi); }
.brand-eye { height: 32px; width: auto; }
.brand-word { height: 30px; width: auto; display: block; }
.brand-name { display: inline-flex; flex-direction: column; line-height: 1; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); }
.brand-name small { font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 500; margin-top: 4px; }
.menu { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; color: var(--muted); }
.menu a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .menu a:not(.btn) { display: none; } }

/* layout */
main > section, .foot { padding-inline: var(--gutter); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.section-head .muted { margin-top: 16px; max-width: 60ch; }

/* marca de agua */
.watermark { position: fixed; right: -6vw; top: 8vh; width: min(58vw, 760px); height: auto; opacity: .06; pointer-events: none; z-index: 0; filter: grayscale(.2); }
main, .top, .foot { position: relative; z-index: 1; }

/* hero */
.hero { position: relative; }
.hero-copy, .hero-map { position: relative; z-index: 1; }
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  min-height: calc(100svh - 70px); padding-block: clamp(48px, 8vw, 110px);
}
.lead { margin-top: 26px; max-width: 46ch; font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); color: #D9E6DF; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-map { margin: 0; position: relative; border-radius: var(--radius); background: rgba(8, 28, 23, .6); border: 1px solid var(--line); padding: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 40px 80px -40px rgba(0, 0, 0, .7); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.85); }
.hero-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,26,.1), rgba(11,31,26,.65)); pointer-events: none; }
#netmap, .hero-status { position: relative; z-index: 1; }
.hero-status { position: absolute; }
#netmap { width: 100%; height: auto; display: block; }
#netmap .links path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s var(--ease) forwards; opacity: .9; }
#netmap .links path:nth-child(n+7) { animation-delay: .7s; }
#netmap .nodes circle { opacity: 0; animation: pop .5s var(--ease) forwards; animation-delay: 1.1s; }
#netmap .nodes circle:nth-child(n+8) { animation-delay: 1.5s; }
#netmap .core { fill: var(--brand); }
#netmap .pulse { opacity: 0; animation: pulse 3s 1.6s ease-out infinite; transform-origin: 280px 210px; }
#netmap .labels { opacity: 0; animation: fade .8s 1.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }
.hero-status { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--brand-hi); background: rgba(11, 31, 26, .75); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: 0; } h1 { max-width: 14ch; } }

/* trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.trust-item { padding: 28px 8px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); padding-left: 24px; }
.trust-item:first-child { border-left: 0; padding-left: 8px; }
.trust-item strong { font-family: var(--font-head); font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.03em; color: var(--brand-hi); }
.trust-item span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(3) { border-left: 0; padding-left: 8px; } }

/* proceso */
.proceso { padding-block: var(--space-section); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 32px 28px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 24px 50px -30px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 14px; }
.step-n { font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; color: rgba(127, 224, 168, .18); position: absolute; top: 10px; right: 20px; letter-spacing: -.05em; }
.ic { width: 36px; height: 36px; stroke: var(--brand-hi); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* servicios */
.servicios { padding-block: var(--space-section); }
.group { margin-top: clamp(32px, 4vw, 56px); }
.group-h { font-size: 1.1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.group-h span { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--ink); letter-spacing: -.03em; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 24px 50px -30px rgba(0, 0, 0, .6);
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}
.card:hover { transform: translateY(-6px); border-color: rgba(127, 224, 168, .6); background: rgba(255, 255, 255, .11); }
.card-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 8px; border: 1px solid var(--line); background: var(--surface-2); filter: saturate(.9) contrast(1.02); transition: transform .6s var(--ease); }
.card:hover .card-art { transform: scale(1.03); }
.card-line { font-weight: 600; color: var(--brand-hi); }
.card p:not(.card-line) { color: var(--muted); font-size: .95rem; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: #CFE0D7; }
.card li::before { content: "— "; color: var(--brand); }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards-2 { grid-template-columns: 1fr; } }

/* caso */
.caso { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: var(--space-section); border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(127, 224, 168, .08), transparent 60%); }
.caso .muted { margin-top: 18px; max-width: 52ch; }
.caso-stats { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.caso-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 24px 50px -30px rgba(0, 0, 0, .6); }
.caso-stats .hi { background: var(--brand); border-color: var(--brand); color: #fff; grid-column: span 1; }
.caso-stats .hi dt { color: rgba(255, 255, 255, .8); }
.caso-stats dt { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.caso-stats dd { margin: 6px 0 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); letter-spacing: -.03em; line-height: 1; }
.caso-stats small { font-size: .9rem; font-weight: 500; color: inherit; opacity: .7; }
@media (max-width: 900px) { .caso { grid-template-columns: 1fr; } }

/* reporte */
.reporte { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: var(--space-section); }
.reporte-copy .muted { margin-top: 18px; max-width: 52ch; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); box-shadow: inset 0 0 0 4px var(--bg), 0 0 0 1px var(--brand); }
.rep-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; transform: rotate(-1.5deg); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 24px 50px -30px rgba(0, 0, 0, .6); }
.rep-head { display: flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rep-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--muted); }
.rep-row strong { color: var(--ink); }
.rep-row .ok { color: var(--brand-hi); }
.rep-bars { display: flex; align-items: end; gap: 6px; height: 70px; padding: 8px 0; }
.rep-bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--brand-hi), var(--brand)); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
@media (max-width: 900px) { .reporte { grid-template-columns: 1fr; } .reporte-visual { order: 2; } }

/* industrias */
.industrias { padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: #D9E6DF; font-size: .95rem; background: var(--surface); backdrop-filter: blur(12px); }

/* contacto */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); padding-block: var(--space-section); border-top: 1px solid var(--line); }
.contacto .muted { margin-top: 18px; max-width: 48ch; }
.contact-lines { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; font-weight: 600; color: var(--brand-hi); }
.form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 24px 50px -30px rgba(0, 0, 0, .6); }
.form label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.form input, .form textarea { font: inherit; color: var(--ink); background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color var(--dur); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand-hi); }
.form .btn { justify-self: start; margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .contacto { grid-template-columns: 1fr; } }

/* footer */
.foot { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: start; padding-block: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a:hover { color: var(--ink); }
.foot .muted { margin-top: 10px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  #netmap .links path { stroke-dashoffset: 0; } #netmap .nodes circle, #netmap .labels { opacity: 1; }
}
