/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── TOKENS ─── */
:root {
  --teal:      #1AA082;
  --teal-light:#F0FAF6;
  --teal-mid:  #c5e8de;
  --amber:     #F5C427;
  --amber-bg:  #FEFAE7;
  --ink:       #1a1a1a;
  --ink-mid:   #444;
  --ink-soft:  #777;
  --ink-faint: #aaa;
  --white:     #ffffff;
  --rule:      #e5e5e5;
  --max:       1120px;
  --gap:       clamp(1.5rem, 4vw, 3rem);
  --section:   clamp(4rem, 8vw, 7rem);
}

/* ─── LOGO LETTERS (background-clip:text approach) ─── */
.logo-word {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
}
.lv {
  display: inline-block;
  color: var(--ink);
}
.lv-sp {
  display: inline-block;
  width: 0.28em;
}
/* Bottom teal — M, O, B(HUB) */
.lv-bt {
  background: linear-gradient(to top, #1AA082 42%, #1a1a1a 42%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Bottom amber — S, U */
.lv-ba {
  background: linear-gradient(to top, #F5C427 42%, #1a1a1a 42%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Right amber — B (MOBILIS) */
.lv-ra {
  background: linear-gradient(to right, #1a1a1a 48%, #F5C427 48%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Left teal — H */
.lv-lt {
  background: linear-gradient(to left, #1a1a1a 52%, #1AA082 52%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Right teal — B (HUB) */
.lv-rt {
  background: linear-gradient(to right, #1a1a1a 48%, #1AA082 48%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo size variants */
.nav-logo-sz  { font-size: clamp(0.95rem, 1.8vw, 1.2rem); }
.hero-logo-sz { font-size: clamp(2.4rem, 7vw, 4.8rem); }
.footer-logo-sz { font-size: 1rem; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--gap);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.2s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.07); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--ink-mid); text-transform: uppercase;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 0.42rem 1rem; border-radius: 4px;
  font-size: 0.74rem !important; letter-spacing: 0.06em !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--teal) !important; color: var(--white) !important; }

/* Language button */
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.lang-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--teal); background: var(--teal-light);
  border: 1.5px solid var(--teal-mid); border-radius: 4px;
  padding: 0.32rem 0.65rem; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lang-btn:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--rule);
  padding: 1.5rem var(--gap); flex-direction: column; gap: 1.2rem;
  z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.95rem; font-weight: 500; color: var(--ink-mid); }

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  background: var(--teal-light);
  display: flex; flex-direction: column;
  padding-top: 64px;
  position: relative;
}
.hero-inner {
  flex: 1; max-width: var(--max); margin: 0 auto; width: 100%;
  padding: clamp(3rem, 8vw, 6rem) var(--gap) 2rem;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-logo { margin-bottom: 2.5rem; }
.hero-tagline {
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--teal); opacity: 0.75; margin-bottom: 2rem;
}
.hero-rule { width: 44px; height: 3px; background: var(--amber); margin-bottom: 2rem; }
.hero-headline {
  font-size: clamp(1.55rem, 3.8vw, 2.7rem);
  font-weight: 300; line-height: 1.22;
  color: var(--ink); max-width: 640px;
  margin-bottom: 1.25rem; letter-spacing: -0.02em;
}
.hero-headline strong { font-weight: 600; }
.hero-sub {
  font-size: clamp(0.9rem, 1.7vw, 1.02rem);
  color: var(--ink-mid); line-height: 1.74;
  max-width: 520px; font-weight: 300; margin-bottom: 2.5rem;
}
.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--ink); color: var(--white);
  padding: 0.75rem 1.75rem; border-radius: 4px;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer; border: none; display: inline-block;
}
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--ink);
  padding: 0.75rem 1.75rem; border-radius: 4px;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.02em;
  border: 1.5px solid rgba(26,26,26,0.4);
  transition: border-color 0.15s, color 0.15s, transform 0.1s;
  cursor: pointer; display: inline-block;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }

/* Hero image slot */
.hero-img-slot {
  display: block;
  position: absolute; right: var(--gap); top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 32%, 420px);
  margin-top: 64px;
}
/* To show hero image: change display:none above to display:block */

/* Hero stats strip */
.hero-stats { background: var(--amber); padding: 1.4rem var(--gap); }
.hero-stats-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
}
.hero-stat { padding-right: 1.5rem; }
.hero-stat:not(:last-child) { border-right: 1px solid rgba(26,26,26,0.18); margin-right: 1.5rem; }
.hero-stat-n { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 0.2rem; }
.hero-stat-l { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.13em; color: rgba(26,26,26,0.55); line-height: 1.35; }

/* ─── SECTION WRAPPER ─── */
.section { padding: var(--section) var(--gap); }
.section-alt { background: #fafafa; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.eyebrow { font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--teal); font-weight: 600; margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.45rem, 3.4vw, 2.2rem); font-weight: 600; color: var(--ink); line-height: 1.16; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.section-lead { font-size: clamp(0.93rem, 1.7vw, 1.06rem); color: var(--ink-mid); line-height: 1.72; max-width: 580px; font-weight: 300; margin-bottom: 2.5rem; }
.divider { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* ─── IMAGE SLOTS ─── */
.img-slot { border-radius: 8px; overflow: hidden; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }

.img-placeholder {
  width: 100%; background: var(--teal-light);
  border: 2px dashed var(--teal-mid); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.5rem; padding: 2rem 1rem;
  color: var(--teal); min-height: 140px;
}
.img-placeholder svg { opacity: 0.5; }
.img-placeholder span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.img-placeholder code { font-size: 0.62rem; color: var(--ink-soft); font-family: monospace; background: rgba(26,160,130,0.06); padding: 0.2rem 0.5rem; border-radius: 3px; }

.ip-std  { min-height: 260px; }
.ip-wide { min-height: 200px; aspect-ratio: 16/6; }
.ip-tall { min-height: 320px; aspect-ratio: 3/4; }
.ip-svc  { min-height: 110px; margin-bottom: 0.85rem; }
.ip-hero { min-height: 300px; aspect-ratio: 4/3; }

/* Team image slot */
.team-img-slot { margin-bottom: 2.5rem; }

/* Service card image slot */
.svc-img-slot { margin-bottom: 0.85rem; }

/* Why Mobilis image column */
.why-img-sticky { position: sticky; top: 80px; }

/* ─── WHO WE ARE ─── */
#who-we-are { background: var(--white); }
.quienes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 1.5rem; }
.quienes-text .lead-quote {
  font-size: 1.03rem; font-weight: 400; color: var(--ink);
  line-height: 1.68; border-left: 3px solid var(--amber);
  padding-left: 1.25rem; margin-bottom: 1.5rem;
}
.quienes-text p { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.78; font-weight: 300; margin-bottom: 1rem; }
.quienes-text p strong { color: var(--ink); font-weight: 600; }
.who-right { display: flex; flex-direction: column; }

/* Pills */
.pill-wrap { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.4rem 0; }
.pill {
  font-size: 0.7rem; padding: 0.28rem 0.8rem;
  border-radius: 20px; border: 1px solid var(--teal-mid);
  color: var(--teal); background: var(--teal-light);
  font-weight: 500; letter-spacing: 0.02em;
}

/* Model box */
.model-box {
  background: var(--teal-light); border: 1px solid var(--teal-mid);
  border-left: 3px solid var(--teal); border-radius: 0 6px 6px 0;
  padding: 1.2rem 1.35rem;
}
.model-box-lbl { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 0.45rem; }
.model-box-text { font-size: 0.83rem; color: var(--ink-mid); line-height: 1.65; }

/* ─── ECOSYSTEM ─── */
#ecosystem { background: #fafafa; }
.eco-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; margin-top: 1rem;
}
.eco-diagram { width: 100%; }
.spoke-diagram-wrap { position: relative; width: 100%; max-width: 480px; margin: 0 auto; aspect-ratio: 1; }
.spoke-svg { width: 100%; height: 100%; }
.eco-content h3 {
  font-size: 1.15rem; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em; margin-bottom: 0.85rem;
}
.eco-content p { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.75; font-weight: 300; margin-bottom: 0.85rem; }

/* ─── OUR TEAM ─── */
#our-team { background: var(--white); }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cap-item {
  padding: 1.35rem 0; border-bottom: 1px solid var(--rule);
  display: flex; gap: 1rem; align-items: flex-start;
}
.cap-item:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--rule); }
.cap-item:nth-child(even) { padding-left: 2rem; }
.cap-item:nth-last-child(-n+2) { border-bottom: none; }
.cap-dot-wrap { flex-shrink: 0; margin-top: 3px; }
.cap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: block; }
.cap-name { font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; }
.cap-desc { font-size: 0.78rem; color: var(--ink-mid); line-height: 1.62; font-weight: 300; }

/* ─── SERVICES ─── */
#services { background: #fafafa; }
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2.5rem; }
.area-card {
  border: 1px solid var(--rule); border-top: 3px solid var(--teal);
  padding: 1.2rem 1.3rem; border-radius: 0 0 6px 6px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.area-card:hover { box-shadow: 0 4px 20px rgba(26,160,130,0.1); transform: translateY(-2px); }
.area-card.amber { border-top-color: var(--amber); }
.area-card.teal-bg { border-top-color: var(--teal); background: var(--teal-light); }
.area-name { font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.area-desc { font-size: 0.78rem; color: var(--ink-mid); line-height: 1.62; margin-bottom: 0.6rem; }
.area-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.area-tag { font-size: 0.6rem; padding: 0.14rem 0.48rem; border: 1px solid #ddd; border-radius: 10px; color: var(--ink-soft); }

/* Geo strip */
.geo-strip {
  display: grid; grid-template-columns: repeat(2,1fr);
  background: var(--teal-light); border: 1px solid var(--teal-mid);
  border-radius: 6px; overflow: hidden;
}
.geo-item { padding: 1.5rem 1.75rem; }
.geo-item:not(:last-child) { border-right: 1px solid var(--teal-mid); }
.geo-region { font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.geo-detail { font-size: 0.76rem; color: #5a8a7a; line-height: 1.62; }

/* ─── WHY MOBILIS ─── */
#why-mobilis { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr 360px; gap: 3.5rem; align-items: start; margin-top: 1rem; }
.dif-lead {
  font-size: 1.02rem; font-weight: 400; color: var(--ink); line-height: 1.68;
  border-left: 3px solid var(--amber); padding-left: 1.25rem;
  margin-bottom: 2.5rem; max-width: 640px;
}
.dif-list { list-style: none; }
.dif-item {
  display: grid; grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem; padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule); align-items: start;
}
.dif-item:last-child { border-bottom: none; }
.dif-num { font-size: 0.68rem; font-weight: 700; color: var(--teal); padding-top: 0.2rem; letter-spacing: 0.06em; }
.dif-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 0.25rem; }
.dif-desc { font-size: 0.8rem; color: var(--ink-mid); line-height: 1.68; font-weight: 300; }
.why-img-col { display: flex; flex-direction: column; gap: 1.25rem; }

/* Why Mobilis stats box */
.why-stat-box {
  background: var(--teal-light); border: 1px solid var(--teal-mid);
  border-radius: 8px; padding: 1.4rem 1.6rem;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  text-align: center;
}
.why-stat { padding: 0 0.75rem; }
.why-stat:not(:last-child) { border-right: 1px solid var(--teal-mid); }
.why-stat-n { font-size: 1.5rem; font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 0.25rem; }
.why-stat-n span { font-size: 1rem; }
.why-stat-l { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); line-height: 1.3; }

/* ─── CONTACT ─── */
#contact { background: var(--teal-light); }
.contacto-inner {
  max-width: var(--max); margin: 0 auto;
  padding: var(--section) var(--gap);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.contacto-hl { font-size: clamp(1.7rem, 3.8vw, 2.9rem); font-weight: 300; color: var(--ink); line-height: 1.17; margin-bottom: 1rem; letter-spacing: -0.022em; }
.contacto-sub { font-size: 0.9rem; color: var(--ink-mid); line-height: 1.72; font-weight: 300; margin-bottom: 1.5rem; }
.loc-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.loc { display: flex; align-items: center; gap: 8px; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.loc-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.loc-dot.teal  { background: var(--teal); }
.loc-dot.amber { background: var(--amber); border: 1px solid rgba(0,0,0,.08); }
.contacto-box { background: var(--amber); border-radius: 10px; padding: 2rem 2.25rem; }
.contacto-field { margin-bottom: 1.25rem; }
.contacto-lbl { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(26,26,26,0.5); margin-bottom: 0.2rem; }
.contacto-val { font-size: 1.04rem; font-weight: 700; color: var(--ink); }
.contacto-val a { transition: opacity 0.15s; }
.contacto-val a:hover { opacity: 0.7; }

/* ─── FOOTER ─── */
footer {
  background: var(--white); border-top: 1px solid var(--rule);
  padding: 1.5rem var(--gap);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-copy { font-size: 0.7rem; color: var(--ink-faint); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.7rem; color: var(--ink-faint); transition: color 0.15s; }
.footer-links a:hover { color: var(--teal); }

/* ─── ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE 768px ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero-stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(2) { border-right: none; margin-right: 0; }
  .hero-stat:nth-child(3) { grid-column: span 2; border-right: none; margin-right: 0; padding-top: 1rem; border-top: 1px solid rgba(26,26,26,0.18); }

  .quienes-grid { grid-template-columns: 1fr; gap: 2rem; }
  .eco-grid { grid-template-columns: 1fr; gap: 2rem; }
  .spoke-diagram-wrap { max-width: 380px; }

  .cap-grid { grid-template-columns: 1fr; }
  .cap-item:nth-child(odd) { padding-right: 0; border-right: none; }
  .cap-item:nth-child(even) { padding-left: 0; }
  .cap-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .cap-item:last-child { border-bottom: none; }

  .areas-grid { grid-template-columns: 1fr; }
  .geo-strip { grid-template-columns: 1fr; }
  .geo-item { border-right: none !important; }
  .geo-item:not(:last-child) { border-bottom: 1px solid var(--teal-mid); }

  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-img-col { order: -1; }
  .why-img-sticky { position: static; }
  .why-stat-box { grid-template-columns: 1fr 1fr 1fr; }

  .contacto-inner { grid-template-columns: 1fr; gap: 2rem; padding: 3rem var(--gap); }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ─── RESPONSIVE 480px ─── */
@media (max-width: 480px) {
  .hero-logo-sz { font-size: 2.2rem; }
  .hero-stats-inner { grid-template-columns: 1fr 1fr; }
  .why-stat-box { grid-template-columns: 1fr; gap: 1rem; }
  .why-stat:not(:last-child) { border-right: none; border-bottom: 1px solid var(--teal-mid); padding-bottom: 0.75rem; }
  .ip-std { min-height: 200px; }
  .ip-tall { min-height: 220px; }
}

/* ─── GEAR DIAGRAM ─── */
.gear-diagram-wrap { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
.gear-diagram-svg { width: 100%; height: auto; display: block; }
.gear-cw {
  transform-box: fill-box;
  transform-origin: center;
  animation: gear-cw 24s linear infinite;
}
.gear-ccw {
  transform-box: fill-box;
  transform-origin: center;
  animation: gear-ccw 18s linear infinite;
}
@keyframes gear-cw  { to { transform: rotate(360deg); } }
@keyframes gear-ccw { to { transform: rotate(-360deg); } }

/* Team profile characteristics row */
.team-profile-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.tpcard {
  background: var(--teal-light); border: 1px solid var(--teal-mid);
  border-top: 3px solid var(--teal); border-radius: 0 0 6px 6px;
  padding: 1.15rem 1.25rem;
}
.tpcard-title { font-size: 0.84rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.tpcard-desc { font-size: 0.76rem; color: var(--ink-mid); line-height: 1.62; font-weight: 300; }
@media (max-width: 768px) {
  .team-profile-row { grid-template-columns: 1fr; }
  .gear-diagram-wrap { max-width: 360px; }
}
