/* ===========================================================
   TERRA VISION — Deep Operations
   Dark-first · Pure CSS · No frameworks
   =========================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Surfaces (dark first) */
  --bg-0:        #152E3C;   /* page background — brand petroleum */
  --bg-1:        #1E3F50;   /* elevated surface */
  --bg-2:        #264B5D;   /* card hover / chips */
  --bg-3:        #2E576A;   /* highest elevation */

  /* Brand */
  --brand:       #0F2330;   /* petroleum dark, used for sidebar / accents */
  --accent:      #FF9443;   /* orange — hero / cta / highlights */
  --accent-2:    #FFB770;   /* soft orange glow */

  /* Text */
  --text:        #E9EEF1;
  --text-dim:    #98A6AD;
  --text-mute:   #6E7A82;
  --line:        rgba(255, 255, 255, .08);
  --line-2:      rgba(255, 255, 255, .14);

  /* Type */
  --ff-display: "Manrope", system-ui, -apple-system, sans-serif;
  --ff-mono:    "Michroma", system-ui, sans-serif;

  /* Layout */
  --container: 1240px;
  --radius:    14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur:  .5s;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg-0);
  overflow-x: hidden;
}

body {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #000;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--text);
  text-wrap: balance;
}

p { text-wrap: pretty; color: var(--text-dim); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  padding: .45em .9em;
  border: 1px solid rgba(255,148,67,.65);
  border-radius: 999px;
  background: rgba(255,148,67,.14);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.accent  { color: var(--accent); }
.gradient-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  margin-block: 1.2rem 1rem;
}

.section-lead {
  font-size: clamp(1rem, .6vw + .9rem, 1.2rem);
  color: var(--text-dim);
  max-width: 56ch;
  line-height: 1.55;
}

/* ---------- 4. Layout primitives ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 9vw, 8rem);
}

.section-head {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  max-width: 64rem;
}

/* Decorative grid pattern */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.grid-bg.fade-edges {
  mask-image: radial-gradient(closest-side at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, black 30%, transparent 80%);
}

/* Decorative orb */
.orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
  will-change: transform;
}

.orb--accent {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.orb--brand {
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
}

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1rem 1.6rem;
  background: var(--accent);
  color: #1A0F03;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.005em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  box-shadow: 0 12px 28px rgba(255,148,67,.22),
              inset 0 1px 0 rgba(255,255,255,.3);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-2);
  box-shadow: 0 18px 36px rgba(255,148,67,.36),
              inset 0 1px 0 rgba(255,255,255,.4);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--accent);
}

.btn--whatsapp {
  background: #25D366;
  color: #06381A;
  box-shadow: 0 12px 28px rgba(37,211,102,.22);
}
.btn--whatsapp:hover {
  background: #2EE078;
  box-shadow: 0 18px 36px rgba(37,211,102,.36);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-0) 70%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg-0) 92%, transparent);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.nav__logo img { height: 48px; width: auto; }

.nav__list {
  display: none;
  gap: 2.25rem;
  align-items: center;
}

.nav__list a {
  position: relative;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  padding: .4rem 0;
  transition: color var(--dur) var(--ease);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__list a:hover { color: var(--accent); }
.nav__list a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: none;
  padding: .7rem 1.2rem;
  font-size: 1rem;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__toggle:hover { background: var(--bg-2); border-color: rgba(255,255,255,.25); }
.nav__toggle[aria-expanded="true"] { background: var(--bg-2); border-color: var(--accent); }
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__mobile {
  position: fixed;
  inset: 80px 0 auto 0;  /* 80px = logo 48px + padding-block 2×16px */
  z-index: 150;           /* sobre el header (z-index: 100) y el contenido */
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2rem;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.nav__mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Backdrop oscuro cuando el menú está abierto */
.nav-backdrop {
  position: fixed;
  inset: 80px 0 0 0;
  z-index: 140;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.nav__mobile ul { display: flex; flex-direction: column; gap: .25rem; }
.nav__mobile a {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 1rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__mobile a:hover { background: var(--bg-1); border-color: var(--line); }
.nav__mobile .btn { margin-top: 1rem; width: 100%; }

/* Tablet: mostrar CTA sin la lista de links */
@media (min-width: 640px) and (max-width: 1023px) {
  .nav__cta { display: inline-flex; }
}

/* Desktop completo */
@media (min-width: 1024px) {
  .nav__list { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 8rem 0 4rem;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(255,148,67,.14), transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--bg-0) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(closest-side at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, black 30%, transparent 75%);
}

/* Halftone canvas — fills with base color + interactive dots, replaces photo */
.hero__halftone {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Decorative parallax layers — mix-blend-screen on the dark photo */
.hero__deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero__layer {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  will-change: transform;
}

.hero__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  user-select: none;
  -webkit-user-select: none;
  display: block;
}

/* Ensure content is always above decorative layers */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
}

.hero__eyebrow {
  margin-bottom: 2rem;
  color: #fff;
  background: rgba(10, 18, 30, 0.60);
  border-color: rgba(255, 148, 67, .70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: 1.75rem;
  max-width: 18ch;
}

.hero h1 .accent {
  color: var(--accent);
  position: relative;
}

.hero__sub {
  font-size: clamp(1.05rem, .6vw + .95rem, 1.35rem);
  color: var(--text-dim);
  max-width: 52ch;
  line-height: 1.55;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__cta .btn { padding: 1.1rem 1.9rem; font-size: 1rem; }

.hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  max-width: 64rem;
}

@media (min-width: 700px) {
  .hero__meta { grid-template-columns: repeat(3, 1fr); }
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.hero__stat-label {
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hero__stat-value {
  font-size: clamp(1.25rem, 1.5vw + .8rem, 1.85rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.015em;
}
.hero__stat-value .accent { font-weight: 800; }

/* ---------- 8. Industries strip ---------- */
.industries {
  border-block: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  position: relative;
}

.industries__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-block: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.industries__label {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}

.industries__list {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.industries__item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-dim);
  letter-spacing: -.005em;
  transition: color var(--dur) var(--ease);
}
.industries__item:hover { color: var(--text); }
.industries__item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- 9. Values section ---------- */
.values { background: var(--bg-0); position: relative; overflow: hidden; }

.values .orb--accent {
  width: 600px; height: 600px;
  top: -200px; right: -200px;
  opacity: .15;
}

.values > .container { position: relative; z-index: 1; }

.values__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .values__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.value-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.85rem;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 0% 0%, rgba(255,148,67,.07), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  background: var(--bg-2);
}
.value-card:hover::before { opacity: 1; }

.value-card__num {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .25em;
  color: var(--accent);
  margin-bottom: 2.25rem;
}

.value-card__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  background: rgba(255,148,67,.08);
  border: 1px solid rgba(255,148,67,.2);
  border-radius: 14px;
  color: var(--accent);
}
.value-card__icon svg { width: 28px; height: 28px; }

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  line-height: 1.15;
}

.value-card p {
  color: var(--text-dim);
  font-size: .98rem;
  line-height: 1.6;
}

/* ---------- 9b. Stats strip ---------- */
.stats {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0;
}

.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stats__item {
  flex: 1;
  text-align: center;
  padding: 1.5rem 2rem;
}

.stats__num {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -1px;
  margin-bottom: .75rem;
}

.stats__unit {
  font-size: .55em;
  font-weight: 700;
  letter-spacing: 0;
  opacity: .85;
}

.stats__label {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.45;
}

.stats__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  color: var(--accent);
}

.stats__icon svg {
  width: clamp(2.75rem, 5vw, 4rem);
  height: clamp(2.75rem, 5vw, 4rem);
}

.stats__divider {
  width: 1px;
  height: 80px;
  background: var(--line-2);
  flex-shrink: 0;
}

/* ---------- 10. Modules / Services (stacked) ---------- */
.services { background: var(--bg-0); position: relative; overflow: hidden; }

.services .orb--brand {
  width: 800px; height: 800px;
  top: 30%; left: -300px;
  opacity: .2;
}

.services > .container { position: relative; z-index: 1; }

.modules {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 7vw, 6rem);
}

.module {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .module {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  .module--right .module__media { order: 2; }
}

.module__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-1);
  aspect-ratio: 4 / 3;
}

.module__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.module:hover .module__media img { transform: scale(1.04); }

.module__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(21,46,60,.5) 100%);
  pointer-events: none;
}

.module__tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(21,46,60,.7);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: .45rem .85rem;
  border-radius: 999px;
}
.module__tag .accent { color: var(--accent); }

.module__body { max-width: 36rem; }

.module__num {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .28em;
  color: var(--text-mute);
  margin-bottom: 1.25rem;
}

.module__body h3 {
  font-size: clamp(1.65rem, 3vw + .5rem, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.module__body p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.module__bullets {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 2rem;
}
.module__bullets li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.5;
}
.module__bullets svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

/* ---------- 10b. Platform (own management app) ---------- */
.platform {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

.platform .orb--accent {
  width: 700px; height: 700px;
  top: -200px; right: -300px;
  opacity: .15;
}

.platform > .container { position: relative; z-index: 1; }

.platform__wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 980px) {
  .platform__wrap {
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

.platform__body { max-width: 38rem; }

.platform__body .section-title {
  font-size: clamp(2rem, 4.5vw + .5rem, 3.5rem);
  margin-block: 1.2rem 1rem;
}

.platform__features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2.25rem 0;
}

.platform__features li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: flex-start;
}

.platform__features strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .25rem;
  letter-spacing: -.01em;
}

.platform__features p {
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.55;
}

.platform__feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255,148,67,.08);
  border: 1px solid rgba(255,148,67,.2);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.platform__feature-icon svg { width: 22px; height: 22px; }

.platform__cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* --- Dashboard mock --- */
.platform__mock {
  position: relative;
}

.platform__mock::before {
  content: "";
  position: absolute;
  inset: -20px;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(255,148,67,.18), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.mock {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,.5),
    0 8px 24px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.04);
  transform: perspective(1500px) rotateY(-3deg) rotateX(1deg);
  transition: transform .8s var(--ease);
  font-family: var(--ff-display);
}

@media (min-width: 980px) {
  .mock:hover { transform: perspective(1500px) rotateY(-1deg) rotateX(0); }
}

@media (max-width: 979px) {
  .mock { transform: none; }

  /* Platform: centrar texto en single-column */
  .platform__body {
    max-width: 100%;
    text-align: center;
  }
  .platform__features { text-align: left; }
  .platform__cta { justify-content: center; }

  /* Mock: romper márgenes del container para ir full-width */
  .platform__mock {
    margin-inline: -1.25rem;
  }
  .mock {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

.mock__chrome {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
}

.mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-2);
}
.mock__dot:nth-child(1) { background: #FF5F57; }
.mock__dot:nth-child(2) { background: #FEBC2E; }
.mock__dot:nth-child(3) { background: #28C840; }

.mock__url {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--ff-mono);
  font-size: .58rem;
  color: var(--text-mute);
  letter-spacing: .12em;
  background: var(--bg-1);
  padding: .25rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock__body {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 360px;
  background: var(--bg-1);
}

.mock__sidebar {
  background: var(--brand);
  padding: 1rem .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.mock__logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 1rem;
  color: var(--accent);
}
.mock__logo svg { width: 24px; height: 24px; }

.mock__nav-item {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.mock__nav-item.is-active {
  background: rgba(255,255,255,.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,148,67,.18);
}

.mock__main {
  background: #F7F4ED;
  padding: 1.25rem 1.5rem;
  color: #1A2F38;
  overflow: hidden;
}

.mock__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(35,68,81,.1);
}

.mock__title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #1A2F38;
  letter-spacing: -.02em;
}
.mock__subtitle {
  font-size: .7rem;
  color: #5A6B72;
  margin-top: .15rem;
}

.mock__user {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.mock__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border: 2px solid rgba(255,255,255,.5);
}

.mock__section-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,148,67,.2);
}
.mock__section-title svg {
  width: 16px;
  height: 16px;
}

.mock__label {
  font-size: .7rem;
  font-weight: 700;
  color: #5A6B72;
  letter-spacing: .02em;
  margin: 1rem 0 .5rem;
}
.mock__label:first-of-type { margin-top: 0; }

.mock__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}

.mock__stat {
  background: #FFFFFF;
  border: 1px solid rgba(35,68,81,.08);
  border-radius: 10px;
  padding: .55rem .7rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-height: 50px;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(35,68,81,.04);
}

.mock__stat-label {
  font-size: .58rem;
  color: #5A6B72;
  font-weight: 600;
  line-height: 1.2;
}
.mock__stat-value {
  font-weight: 800;
  font-size: 1.25rem;
  color: #1A2F38;
  letter-spacing: -.03em;
  line-height: 1;
}
.mock__stat-value.accent { color: var(--accent); }

@media (max-width: 520px) {
  .mock__grid { grid-template-columns: repeat(2, 1fr); }
  .mock__url { font-size: .5rem; max-width: 70%; }
  .mock__main { padding: 1rem; }
}

/* ---------- 11. Contact ---------- */
.contact {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

.contact .orb--accent {
  width: 700px; height: 700px;
  bottom: -250px; right: -200px;
  opacity: .18;
}

.contact > .container { position: relative; z-index: 1; }

.contact__wrap {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact__wrap { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
}

.contact__intro h2 {
  font-size: clamp(2rem, 4vw + .5rem, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.contact__intro p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 32ch;
  line-height: 1.6;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__info li {
  display: flex;
  gap: .85rem;
  align-items: center;
  color: var(--text);
  font-weight: 500;
}
.contact__info svg {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact__info a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-1);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.field label {
  font-family: var(--ff-mono);
  font-size: .65rem;
  font-weight: 400;
  color: var(--text-mute);
  letter-spacing: .25em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-0);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--ff-display);
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-mute); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-0);
  box-shadow: 0 0 0 4px rgba(255,148,67,.12);
}

.field textarea { resize: vertical; min-height: 130px; }

.field-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .5rem;
}

@media (min-width: 640px) {
  .form-actions { flex-direction: row; }
  .form-actions .btn { flex: 1; }
}

.form-status {
  font-size: .9rem;
  color: var(--text-mute);
  min-height: 1.4em;
  text-align: center;
}
.form-status.is-success { color: #4FD18B; font-weight: 600; }

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--bg-0);
  color: var(--text-dim);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.footer__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
}

.footer__brand img {
  height: 36px;
  margin-bottom: 1.25rem;
  width: auto;
}
.footer__brand p {
  color: var(--text-mute);
  font-size: .95rem;
  max-width: 32ch;
  line-height: 1.6;
}

.footer__col h4 {
  font-family: var(--ff-mono);
  font-weight: 400;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.footer__col ul { display: flex; flex-direction: column; gap: .75rem; }
.footer__col a, .footer__col li {
  color: var(--text-dim);
  font-size: .95rem;
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--accent); }

.footer__contact li { display: flex; gap: .65rem; align-items: center; }
.footer__contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--text);
  transition: all var(--dur) var(--ease);
}
.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1A0F03;
  transform: translateY(-2px);
}
.footer__social svg { width: 18px; height: 18px; }

.footer__bottom {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  font-size: .82rem;
  color: var(--text-mute);
}

@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- 13. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { animation: none; transform: none; }
}

/* ---------- 14. Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--accent);
  color: #1A0F03;
  padding: .65rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- 15. Mobile responsive ---------- */

/* ---- 15a. Módulos: contenido antes que imagen en mobile ---- */
@media (max-width: 899px) {
  .module__body  { order: -1; }
  .module__media { order: 1; }
}

/* ---- 15b. Phones — hasta 639px (logo más chico para que no desborde) ---- */
@media (max-width: 639px) {
  /* Logo: 36px de alto → ancho proporcional ~209px, cabe junto al toggle en 280px+ */
  .nav__logo img { height: 36px; }
}

/* ---- 15c. Tablets y phones — hasta 767px ---- */
@media (max-width: 767px) {

  /* Eyebrow: letter-spacing reducido para que no se corte */
  .eyebrow { letter-spacing: .16em; font-size: .66rem; }

  /* Hero: altura más razonable en mobile */
  .hero {
    min-height: min(100svh, 680px);
    padding: 6rem 0 3.5rem;
  }
  .hero__eyebrow { margin-bottom: 1.25rem; }

  /* Hero h1: mínimo más pequeño en mobile */
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.5rem); max-width: 100%; }

  /* Hero sub: un poco más compacto */
  .hero__sub { font-size: 1rem; margin-bottom: 2rem; }

  /* Hero CTA: full-width apilados */
  .hero__cta {
    flex-direction: column;
    gap: .65rem;
    margin-bottom: 2.5rem;
  }
  .hero__cta .btn { width: 100%; min-height: 48px; }

  /* Sections: ritmo vertical más compacto */
  .section { padding-block: clamp(3rem, 8vw, 4.5rem); }
  .section-head { margin-bottom: clamp(2rem, 6vw, 3rem); }
  .section-lead { font-size: 1rem; }

  /* Value cards: stack vertical en mobile */
  .values__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .value-card { width: 100%; padding: 1.75rem 1.5rem; }

  /* Industries: gaps más chicos */
  .industries__inner { gap: 1.5rem; padding-block: 1.5rem; }
  .industries__list { gap: 1.25rem; }

  /* Services: menos espacio entre módulos */
  .modules { gap: 2.5rem; }

  /* Módulos: imagen 16/9 en mobile (menos alta que 4/3) */
  .module__media { aspect-ratio: 16 / 9; }
  .module__body { max-width: 100%; }

  /* Platform mock: menos altura mínima */
  .mock__body { min-height: 280px; }

  /* Platform CTA: stackear botones */
  .platform__cta {
    flex-direction: column;
    gap: .65rem;
  }
  .platform__cta .btn { width: 100%; min-height: 48px; }

  /* Contact */
  .contact__intro h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .contact__intro p { margin-bottom: 1.75rem; max-width: 100%; }

  /* Contact form: más compacto */
  .contact-form { padding: 1.5rem 1.25rem; }

  /* Botones del form: siempre apilados en mobile */
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; min-height: 48px; }

  /* Touch target mínimo para botones generales */
  .btn { min-height: 48px; }
  .nav__toggle { width: 44px; height: 44px; }

  /* Footer: centrar brand en mobile */
  .footer__brand { text-align: center; }
  .footer__brand img { margin-inline: auto; }
}

/* ---- 15d. Tablets medianas: footer en 2 columnas ---- */
@media (min-width: 480px) and (max-width: 767px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; text-align: left; }
  .footer__brand img { margin-inline: 0; }
  .footer__social { justify-content: flex-start; }
}

/* ---- 15e. Phones chicos — hasta 479px ---- */
@media (max-width: 479px) {

  /* Hero: aún menos padding top */
  .hero { padding-top: 5rem; min-height: 100svh; }

  /* Sections: mínimo posible */
  .section { padding-block: 2.75rem; }
  .section-head { margin-bottom: 1.75rem; }

  /* Section title: mínimo más chico */
  .section-title { font-size: clamp(1.85rem, 8vw, 2.25rem); }

  /* Stats: stack vertical en phones */
  .stats__grid { flex-direction: column; gap: 0; }
  .stats__divider { width: 80px; height: 1px; }
  .stats__item { padding: 1.25rem 1rem; }

  /* Módulos: volvemos a 3:2 en phones muy chicos */
  .module__media { aspect-ratio: 3 / 2; }

  /* Value card min-width ajustada a pantalla chica */
  .value-card { padding: 1.5rem 1.25rem; }

  /* Platform mock: más compacto */
  .mock__body { min-height: 240px; }
  .mock__main { padding: .9rem 1rem; }

  /* Footer: una columna, centrado */
  .footer__brand { text-align: center; }
  .footer__brand img { margin-inline: auto; }
  .footer__social { justify-content: center; }
}
