/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #0a1420;
  --bg-2:        #0f1e2e;
  --bg-3:        #142a3d;
  --surface:     #f4f6f8;
  --surface-2:   #e9edf1;
  --white:       #ffffff;
  --ink:         #0a1420;
  --ink-soft:    #2b3a4a;
  --ink-mute:    #5b6b7a;
  --cream:       #f4f6f8;
  --cream-mute:  rgba(244,246,248,0.68);
  --cream-line:  rgba(244,246,248,0.14);
  --line:        rgba(10,20,32,0.1);
  --accent:      #2e7cf6;
  --accent-2:    #5fd4e8;
  --accent-ink:  #06264d;

  --serif: "Space Grotesk", "Inter", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
  --radius: 14px;
}

@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--white); color: var(--ink);
  border-radius: 8px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: 820px; }
.center { text-align: center; margin-inline: auto; }
.light { color: var(--cream); }
.mono { font-family: var(--mono); letter-spacing: .04em; }

.kicker {
  display: inline-block; font-family: var(--mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; font-weight: 500;
}
.kicker.light { color: var(--accent-2); }

h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1rem; max-width: 34ch; }
h2.center { max-width: 30ch; }
.lead { font-size: 1.1rem; color: var(--ink-mute); max-width: 56ch; margin-bottom: 1.6rem; }
.lead.center { margin-inline: auto; }
.lead.light { color: var(--cream-mute); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--bg); color: var(--cream); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  white-space: nowrap; position: relative;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
}
.btn-primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(46,124,246,.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(46,124,246,.6); }
.btn-outline { background: transparent; color: var(--cream); border: 1.5px solid var(--cream-line); }
.btn-outline:hover { transform: translateY(-3px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-outline-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline-dark:hover { transform: translateY(-3px); background: var(--surface); border-color: var(--accent); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0); transition-duration: .12s; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 300; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), height .3s;
}
.nav.is-scrolled {
  background: rgba(10,20,32,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06); height: 66px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: .6rem; color: var(--cream); }
.nav-logo-mark { width: 34px; height: 34px; object-fit: contain; }
.nav-brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.nav-links { display: none; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--cream-mute); font-size: .92rem; font-weight: 500; position: relative; padding: .25rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent-2);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-actions .btn-ghost { color: var(--cream); border-color: var(--cream-line); display: none; }
.nav-burger { display: grid; place-items: center; width: 42px; height: 42px; color: var(--cream); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 290; background: var(--bg);
  display: flex; flex-direction: column; gap: .2rem; padding: 1.5rem 1.25rem 2rem;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { color: var(--cream-mute); font-size: 1.05rem; padding: .8rem .2rem; border-bottom: 1px solid var(--cream-line); }
.nav-mobile a.btn { border: none; margin-top: 1rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn-ghost { display: inline-flex; }
  .nav-burger { display: none; }
}

/* =============================================================
   6. Hero + topographic signature effect
   ============================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: clip; color: var(--cream); isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-bg-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,12,20,.55) 0%, rgba(8,16,26,.35) 35%, rgba(8,15,23,.88) 100%),
              linear-gradient(90deg, rgba(6,12,20,.65) 0%, rgba(6,12,20,.1) 55%);
}

/* Signature effect: animated topographic contour lines */
.topo-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; mix-blend-mode: screen;
  background-image:
    repeating-radial-gradient(ellipse 140% 90% at 18% 30%, transparent 0px, transparent 26px, rgba(95,212,232,.16) 27px, rgba(95,212,232,.16) 28px),
    repeating-radial-gradient(ellipse 120% 140% at 85% 75%, transparent 0px, transparent 34px, rgba(46,124,246,.14) 35px, rgba(46,124,246,.14) 36px);
  background-size: 160% 160%, 140% 180%;
  animation: topoDrift 34s ease-in-out infinite alternate;
}
.topo-lines-soft { opacity: .16; mix-blend-mode: normal; }
@keyframes topoDrift {
  0%   { background-position: 0% 0%, 100% 100%; }
  100% { background-position: 10% 8%, 92% 90%; }
}

.hero-inner { position: relative; padding-block: 8rem 5rem; z-index: 1; }
.hero-kicker { color: var(--accent-2); font-size: .82rem; margin-bottom: 1.2rem; opacity: .9; }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); max-width: 16ch; margin-bottom: 1.4rem; }
.hero-title em { font-style: normal; color: var(--accent-2); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--cream-mute); max-width: 46ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 1.5px solid rgba(244,246,248,.4); border-radius: 20px;
}
.hero-scroll span {
  display: block; width: 4px; height: 8px; border-radius: 2px; background: var(--accent-2);
  margin: 7px auto 0; animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(16px); opacity: 0; } }

.tech-strip { background: var(--bg-2); overflow: hidden; padding-block: .9rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.tech-strip-track { display: inline-flex; gap: 1.4rem; white-space: nowrap; will-change: transform; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--cream-mute); padding-left: 1.4rem; }
.tech-strip-track .dot { color: var(--accent-2); }

/* =============================================================
   7. Reveal / grid / figure components
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.grid-2 { display: grid; gap: 3rem; align-items: start; }
.grid-2.reverse { direction: rtl; }
.grid-2.reverse > * { direction: ltr; }
@media (min-width: 960px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .grid-2.align-center { align-items: center; }
}

.about-figure { position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.about-figure img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.about-figure-badge {
  position: absolute; bottom: 1rem; left: 1rem; background: rgba(10,20,32,.82); backdrop-filter: blur(8px);
  color: var(--cream); padding: .7rem 1rem; border-radius: 10px; font-size: .78rem; display: flex; flex-direction: column; gap: .1rem;
}
.about-figure-badge span { color: var(--accent-2); font-size: .72rem; }

.check-list { display: flex; flex-direction: column; gap: 1rem; margin-block: 1.6rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; }
.check-list .icon { color: var(--accent); margin-top: .15rem; }
.check-list strong { color: var(--ink); }
.check-list div { color: var(--ink-mute); font-size: .96rem; }

/* Services overview */
.services-overview { display: grid; gap: 1.5rem; margin-top: 3rem; }
.service-feature {
  display: block; background: var(--bg); color: var(--cream); border-radius: 20px; padding: clamp(2rem, 4vw, 3rem);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.service-feature::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60%; height: 140%; z-index: -1;
  background: radial-gradient(circle, rgba(46,124,246,.35), transparent 70%); filter: blur(60px);
}
.service-feature:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.service-feature-icon { width: 60px; height: 60px; border-radius: 16px; background: rgba(95,212,232,.14); color: var(--accent-2); display: grid; place-items: center; margin-bottom: 1.6rem; }
.service-feature-tag { color: var(--accent-2); display: block; font-size: .74rem; margin-bottom: .6rem; }
.service-feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .8rem; }
.service-feature p { color: var(--cream-mute); max-width: 60ch; margin-bottom: 1.4rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent-2); }

.services-overview-grid { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .services-overview-grid { grid-template-columns: repeat(3, 1fr); } }
.service-mini {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), border-color .3s;
}
.service-mini:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(10,20,32,.2); border-color: transparent; }
.service-mini .icon { color: var(--accent); margin-bottom: .9rem; }
.service-mini h4 { font-size: 1.05rem; margin-bottom: .4rem; }
.service-mini p { color: var(--ink-mute); font-size: .92rem; }

/* CTA bands */
.cta-band { background: var(--surface-2); padding: 2.4rem 0; }
.cta-band-dark { background: var(--bg-2); color: var(--cream); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.cta-band-inner p { font-size: 1.05rem; font-weight: 500; max-width: 46ch; }
.cta-band-dark p { color: var(--cream-mute); }

/* =============================================================
   8. Topografía grid (flagship section)
   ============================================================= */
.section-topo { position: relative; background: var(--white); }
.topo-grid { display: grid; gap: 1.1rem; margin-top: 3.5rem; }
@media (min-width: 640px) { .topo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .topo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .topo-grid { grid-template-columns: repeat(4, 1fr); } }

.topo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem;
  --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .3s, background .3s;
}
.topo-card:hover { transition-duration: .15s; box-shadow: 0 24px 50px -22px rgba(10,20,32,.28); border-color: transparent; background: var(--white); }
.topo-card .icon { color: var(--accent); margin-bottom: 1rem; }
.topo-card h3 { font-size: 1.05rem; margin-bottom: .5rem; line-height: 1.2; }
.topo-card p { color: var(--ink-mute); font-size: .9rem; margin-bottom: .9rem; }
.topo-benefit { display: inline-block; font-size: .74rem; font-weight: 600; color: var(--accent-ink); background: rgba(46,124,246,.1); padding: .3rem .7rem; border-radius: 999px; }
.topo-card-feature { background: linear-gradient(155deg, var(--bg), var(--bg-2)); border-color: transparent; color: var(--cream); }
.topo-card-feature h3, .topo-card-feature p { color: var(--cream); }
.topo-card-feature p { color: var(--cream-mute); }
.topo-card-feature .icon { color: var(--accent-2); }
.topo-card-feature .topo-benefit { background: rgba(95,212,232,.16); color: var(--accent-2); }

/* Support services (consultoria/render/construccion) */
.support-head { max-width: 60ch; margin-bottom: 2.5rem; }
.cards-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cards-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-row { grid-template-columns: repeat(4, 1fr); } }
.cards-row-2 { margin-top: 1.6rem; }
@media (min-width: 640px) { .cards-row-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cards-row-5 { grid-template-columns: repeat(5, 1fr); } }
.mini-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.mini-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(10,20,32,.2); }
.mini-card .icon { color: var(--accent); margin-bottom: .8rem; }
.mini-card h4 { font-size: 1rem; margin-bottom: .35rem; }
.mini-card p { color: var(--ink-mute); font-size: .88rem; }

/* =============================================================
   9. Equipos
   ============================================================= */
.equip-grid { display: grid; gap: 1.2rem; margin-top: 3rem; }
@media (min-width: 640px) { .equip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .equip-grid { grid-template-columns: repeat(5, 1fr); } }
.equip-card {
  --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  background: var(--bg-2); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 1.8rem 1.5rem;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .3s;
}
.equip-card:hover { transition-duration: .15s; box-shadow: 0 24px 50px -20px rgba(0,0,0,.5); border-color: rgba(95,212,232,.4); }
.equip-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: .03em; color: var(--cream); margin-bottom: .8rem; }
.equip-card p { color: var(--cream-mute); font-size: .88rem; }
.equip-card-feature { background: linear-gradient(155deg, rgba(46,124,246,.16), rgba(95,212,232,.08)); border-color: rgba(95,212,232,.3); }
.equip-card-feature .equip-name { color: var(--accent-2); }

/* =============================================================
   10. Por qué elegirnos
   ============================================================= */
.why-grid { display: grid; gap: 1.2rem; margin-top: 3rem; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card { background: var(--surface); border-radius: 16px; padding: 1.8rem; transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft); }
.why-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(10,20,32,.2); }
.why-card .icon { color: var(--accent); margin-bottom: 1rem; }
.why-card h4 { font-size: 1.02rem; margin-bottom: .5rem; }
.why-card p { color: var(--ink-mute); font-size: .9rem; }

.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-num { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--accent); }
.stat p { color: var(--ink-mute); font-size: .88rem; margin-top: .3rem; }

/* =============================================================
   11. Proyectos (filterable)
   ============================================================= */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 2.5rem 0 2.5rem; }
.filter-btn {
  padding: .55rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .88rem; font-weight: 600;
  color: var(--ink-mute); transition: all .3s var(--ease-out);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.projects-grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card {
  background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.project-card.is-hidden { display: none; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(10,20,32,.25); }
.project-img { aspect-ratio: 4/3; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.project-card:hover .project-img img { transform: scale(1.08); }
.project-tag { display: inline-block; margin: 1.1rem 1.2rem 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.project-card h3 { font-size: 1.05rem; margin: .5rem 1.2rem .4rem; }
.project-card p { color: var(--ink-mute); font-size: .88rem; margin: 0 1.2rem 1.3rem; }

/* =============================================================
   12. Galería + lightbox
   ============================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: 3rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-soft), filter .5s; }
.gallery-item:hover img { transform: scale(1.1); filter: saturate(1.15) brightness(1.03); }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(6,10,16,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out);
}
.lightbox[data-open="true"] { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--cream); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.lightbox-close:hover { background: rgba(255,255,255,.16); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--cream); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.lightbox-nav:hover { background: rgba(255,255,255,.16); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (max-width: 640px) { .lightbox-nav { width: 42px; height: 42px; } }

/* =============================================================
   13. Proceso
   ============================================================= */
.process-grid { display: grid; gap: 1.4rem; margin-top: 3rem; }
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.process-step { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; position: relative; }
.process-num { display: block; font-size: 2.2rem; font-weight: 700; color: var(--accent); opacity: .9; margin-bottom: .6rem; }
.process-step h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.process-step p { color: var(--ink-mute); font-size: .9rem; }

/* =============================================================
   14. FAQ accordion
   ============================================================= */
.faq-list { margin-top: 3rem; display: flex; flex-direction: column; gap: .7rem; }
.faq-item { background: var(--surface); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; cursor: pointer; font-weight: 600; font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--accent); transition: transform .35s var(--ease-out); flex-shrink: 0; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-a { padding: 0 1.4rem 1.3rem; color: var(--ink-mute); font-size: .94rem; max-width: 68ch; }

/* =============================================================
   15. Forms
   ============================================================= */
.form-card { background: var(--white); border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.6rem); margin-top: 2.5rem; color: var(--ink); box-shadow: 0 30px 70px -30px rgba(0,0,0,.4); }
.section-dark .form-card { background: var(--white); }
.form-grid { display: grid; gap: 1.1rem; margin-bottom: 1.6rem; }
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink);
  background: var(--surface); transition: border-color .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--white); outline: none; }
.field textarea { resize: vertical; min-height: 100px; }
.field-hint { font-size: .78rem; color: var(--ink-mute); margin-top: .3rem; }

.file-field { position: relative; }
.file-field input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-field-label {
  display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border: 1.5px dashed var(--line);
  border-radius: 10px; color: var(--ink-mute); font-size: .9rem; background: var(--surface);
}

.btn.btn-block .btn-spinner { display: none; }
.form-card.is-sending .btn-label { opacity: 0; }
.form-card.is-sending .btn-spinner {
  display: block; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { text-align: center; font-size: .82rem; color: var(--ink-mute); margin-top: 1rem; }
.section-dark .form-note { color: var(--cream-mute); }

.form-success {
  display: none; text-align: center; background: var(--white); border-radius: 20px; padding: 3rem 2rem; margin-top: 2.5rem; color: var(--ink);
}
.form-success.is-visible { display: block; }
.form-success .icon { color: var(--accent); margin-inline: auto; margin-bottom: 1rem; }
.form-success h3 { margin-bottom: .6rem; }
.form-success p { color: var(--ink-mute); margin-bottom: 1.4rem; }
.form-success .btn { margin-inline: auto; }

/* =============================================================
   16. Contacto
   ============================================================= */
.contact-grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.contact-info { display: flex; flex-direction: column; gap: .9rem; }
.contact-info-card {
  display: flex; align-items: center; gap: 1rem; background: var(--surface); border-radius: 14px; padding: 1.1rem 1.3rem;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.contact-info-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(10,20,32,.22); }
.contact-info-card .icon { color: var(--accent); }
.contact-info-card strong { display: block; font-size: .92rem; }
.contact-info-card span { color: var(--ink-mute); font-size: .86rem; }
.contact-social { display: flex; gap: .7rem; margin-top: .6rem; }
.contact-social a { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--ink); transition: background .3s, color .3s, transform .3s; }
.contact-social a:hover { background: var(--accent); color: var(--white); transform: translateY(-3px); }
.footer .contact-social a { background: rgba(255,255,255,.08); color: var(--cream); }
.footer .contact-social a:hover { background: var(--accent); }

.map-wrap { margin-top: 3rem; border-radius: 20px; overflow: hidden; aspect-ratio: 16/7; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) { .map-wrap { aspect-ratio: 4/5; } }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { background: var(--bg); color: var(--cream); padding: 4.5rem 0 0; }
.footer-grid { display: grid; gap: 2.4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-logo { width: 140px; height: auto; }
.footer-brand p { color: var(--cream-mute); font-size: .92rem; margin: 1rem 0 1.2rem; max-width: 32ch; }
.footer-col h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2); margin-bottom: 1.1rem; }
.footer-col a, .footer-col p { display: block; color: var(--cream-mute); font-size: .92rem; margin-bottom: .7rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding: 1.6rem 0; font-size: .8rem; color: var(--cream-mute); }
.footer-bottom a:hover { color: var(--cream); }

/* =============================================================
   18. WhatsApp floating button
   ============================================================= */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 400; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.wa-float:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 18px 40px -10px rgba(37,211,102,.7); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* =============================================================
   19. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .topo-lines { animation: none; }
  .hero-scroll span { animation: none; }
  .tech-strip-track { animation-duration: .01ms !important; }
}

/* =============================================================
   20. Responsive base tweaks
   ============================================================= */
@media (max-width: 539px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
