/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Colores */
  --white:       #ffffff;
  --gray-50:     #f7f7f7;
  --gray-100:    #f0f0f0;
  --gray-200:    #e2e2e2;
  --gray-400:    #9e9e9e;
  --gray-600:    #5a5a5a;
  --gray-800:    #2d2d2d;
  --gray-900:    #1a1a1a;
  --black:       #0f0f0f;
  --red:         #CC1111;
  --red-dark:    #a00d0d;
  --red-light:   #e52020;
  --green-wa:    #25D366;
  --green-wa-dk: #1aad53;

  /* Semánticos */
  --bg:          var(--white);
  --bg-alt:      var(--gray-50);
  --bg-dark:     var(--gray-900);
  --ink:         var(--gray-900);
  --ink-soft:    var(--gray-600);
  --ink-muted:   var(--gray-400);
  --accent:      var(--red);
  --accent-dark: var(--red-dark);
  --border:      var(--gray-200);

  /* Tipografía */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Layout */
  --max-w:    1280px;
  --gutter:   clamp(1.25rem, 5vw, 2.5rem);
  --sec-pad:  clamp(5rem, 9vw, 8rem);
  --nav-h:    72px;
  --radius:   8px;
  --radius-lg:16px;

  /* Sombras */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 30px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.14);

  /* Transiciones */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-fast:  200ms;
  --dur-base:  350ms;
  --dur-slow:  600ms;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
::selection { background: var(--accent); color: var(--white); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm, 4px);
}

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.2rem;
  background: var(--accent); color: var(--white);
  font-weight: 600; font-size: .875rem;
  z-index: 10000; border-radius: var(--radius);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sec-pad);
  position: relative;
}

/* Kicker / eyebrow */
.kicker {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.kicker-light { color: rgba(255,255,255,.55); }

/* Section head */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .75rem;
}
.h2-light { color: var(--white) !important; }
.section-sub {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.7;
}

/* Reveal animations — default state */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
/* CRITICAL: prevent invisible split-text conflicts */
.reveal[data-split] { opacity: 1; transform: none; }

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

/* =============================================================
   4. BOTONES
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(204,17,17,.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 28px rgba(204,17,17,.45);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

/* =============================================================
   5. NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition:
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.nav.is-solid {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-logo img {
  height: 50px;
  width: auto;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.20);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.nav-logo:hover img { transform: translateY(-1px); }
.nav.is-solid .nav-logo img {
  box-shadow: 0 1px 7px rgba(0,0,0,.12);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2rem);
}
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: .02em;
  padding: .3rem .1rem;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--dur-base) var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav.is-solid .nav-link { color: var(--ink-soft); }
.nav.is-solid .nav-link:hover { color: var(--ink); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: .55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition:
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.nav.is-solid .bar { background: var(--ink); }
.nav.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .bar:nth-child(2) { opacity: 0; }
.nav.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   6. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

/* ── Media layer (image + optional drop-in video) ── */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media-img,
.hero-media-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero-media-img {
  transform: scale(1.06);
  transform-origin: 62% 42%;
}
.hero-media-video {
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.hero-media-video.is-playing { opacity: 1; }

/* ── Scrim: dark on the left for legibility, lets the image breathe on the right ── */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,12,13,.88) 0%, rgba(12,12,13,.64) 35%, rgba(12,12,13,.28) 66%, rgba(12,12,13,.52) 100%),
    linear-gradient(0deg, rgba(12,12,13,.6) 0%, rgba(12,12,13,0) 30%, rgba(12,12,13,0) 60%, rgba(12,12,13,.42) 100%);
}

/* ── Content ── */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--nav-h);
}
.hero-text { max-width: 50rem; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}
.hero-eyebrow-bar {
  width: 34px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(3rem, 7.6vw, 6rem);
  line-height: .94;
  letter-spacing: -.005em;
  margin-bottom: clamp(1.25rem, 3vh, 1.9rem);
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero-title-1 { color: var(--accent); }
.hero-title-2 { display: inline-block; color: #fff; }

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.6;
  color: rgba(255,255,255,.8);
  max-width: 50ch;
  margin-bottom: clamp(2rem, 4vh, 2.85rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-cta {
  padding: 1.05rem 2.1rem;
  font-size: 1rem;
  border-radius: var(--radius);
}
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.10);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ── Scroll cue ── */
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.55);
  transition: color var(--dur-fast) var(--ease-out);
}
.hero-scroll:hover { color: #fff; }
.hero-scroll-label {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero-scroll-line {
  position: relative;
  width: 1px; height: 56px;
  background: rgba(255,255,255,.22);
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  left: 0; top: -60%;
  width: 100%; height: 60%;
  background: var(--accent);
}

/* ── Entrance + ambient motion (only when motion is welcome) ── */
.hero-eyebrow, .hero-title, .hero-sub, .hero-cta { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hero-media-img { animation: heroZoom 34s ease-in-out infinite alternate; }

  .hero-eyebrow, .hero-title, .hero-sub, .hero-cta { opacity: 0; }
  .hero-eyebrow { animation: heroRise 1s var(--ease-out) .2s forwards; }
  .hero-title   { animation: heroRise 1.1s var(--ease-out) .38s forwards; }
  .hero-sub     { animation: heroRise 1s var(--ease-out) .62s forwards; }
  .hero-cta-1   { animation: heroRise .85s var(--ease-out) .86s forwards; }
  .hero-cta-2   { animation: heroRise .85s var(--ease-out) 1s forwards; }

  .hero-scroll { animation: heroFade 1s var(--ease-out) 1.3s both; }
  .hero-scroll-line::after { animation: heroScroll 2.4s var(--ease-soft) infinite; }
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.16); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroScroll {
  0%   { top: -60%; }
  100% { top: 100%; }
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================================
   7. STATS BAR
   ============================================================= */
.stats-bar {
  background: var(--accent);
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  position: relative;
  z-index: 2;
}
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--white);
  gap: .2rem;
}
.stat-num, .stat-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  vertical-align: super;
  margin-left: 1px;
}
.stat-lbl {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.stat-sep {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

/* =============================================================
   8. MARQUEE
   ============================================================= */
.marquee {
  background: var(--gray-900);
  overflow: hidden;
  padding: .9rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
  animation: marqueeRun 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  padding: 0 1.5rem;
}
.mq-dot {
  color: var(--accent) !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
}
@keyframes marqueeRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   9. SOBRE GEOBRAS
   ============================================================= */
.sobre { background: var(--bg); }

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.sobre-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sobre-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.sobre-img-wrap:hover img { transform: scale(1.03); }

.sobre-badge {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 8px 24px rgba(204,17,17,.4);
}
.sobre-badge-n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}
.sobre-badge-t {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .9;
  line-height: 1.4;
}

.sobre-text h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.sobre-text p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.sobre-text p strong { color: var(--ink); }
.sobre-text .btn { margin-top: 1rem; }

/* Red accent line on h2 */
.sobre-text h2::before {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--accent);
  margin-bottom: 1rem;
  border-radius: 2px;
}

/* =============================================================
   10. SERVICIOS
   ============================================================= */
.servicios {
  background: var(--bg-alt);
  overflow: hidden;
}
.servicios-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 110% 0%, rgba(204,17,17,.055) 0%, transparent 55%),
    radial-gradient(ellipse at -10% 100%, rgba(204,17,17,.04) 0%, transparent 50%);
  pointer-events: none;
}
.servicios .section-head h2,
.ventajas .section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-transform: uppercase;
}
.servicios .kicker ~ h2::before,
.ventajas .kicker ~ h2::before {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--accent);
  margin-bottom: .75rem;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.svc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  border-top: 3px solid transparent;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  cursor: default;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
}
.svc-icon {
  width: 48px; height: 48px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.svc-icon svg {
  width: 100%; height: 100%;
}
.svc-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: .75rem;
}
.svc-card p {
  font-size: .9375rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.svc-card p a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.svc-card p a:hover { color: var(--accent-dark); text-decoration: underline; }

/* =============================================================
   11. VENTAJAS
   ============================================================= */
.ventajas { background: var(--bg); }

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.vent-item {
  padding: 2rem 1.75rem;
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  position: relative;
  transition: background var(--dur-fast) var(--ease-out);
}
.vent-item:hover { background: var(--gray-50); }

.vent-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
  user-select: none;
}
.vent-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ink);
  margin-bottom: .6rem;
}
.vent-body p {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* =============================================================
   12. GALERÍA / TRABAJOS
   ============================================================= */
.trabajos { background: var(--bg); }
.trabajos .section-head h2 { text-transform: uppercase; }
.trabajos .section-head h2::before {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--accent);
  margin-bottom: .75rem;
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 0;
  cursor: pointer;
  background: var(--gray-100);
  aspect-ratio: 4 / 3;
}
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,10,10,.85));
  color: var(--white);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2rem 1rem .85rem;
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease-out);
}
.gal-item:hover figcaption { transform: translateY(0); }

.gallery-cta {
  margin-top: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.gallery-cta p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* Project links on gallery cards + text link (multi-page) */
.gal-link {
  position: absolute;
  inset: 0;
  display: block;
}
.gal-cap-title { display: block; }
.gal-cap-cta {
  display: block;
  margin-top: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--red-light);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--accent);
  letter-spacing: .01em;
  transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.text-link:hover { gap: .7rem; color: var(--accent-dark); }

/* =============================================================
   13. PROCESO
   ============================================================= */
.proceso {
  background: var(--gray-900);
  overflow: hidden;
}
.proceso-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(204,17,17,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(204,17,17,.07) 0%, transparent 50%);
  pointer-events: none;
}
.proceso .section-head { max-width: none; }

.proceso-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  counter-reset: step;
}

.proc-step {
  display: grid;
  grid-template-columns: 64px 32px 1fr;
  align-items: start;
  gap: 0 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.proc-step:last-child { border-bottom: none; }
.proc-step:last-child .proc-line { background: transparent; }

.proc-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
  padding-top: .1rem;
}
.proc-line {
  width: 1px;
  background: rgba(255,255,255,.15);
  align-self: stretch;
  margin: .4rem auto 0;
}
.proc-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: .5rem;
}
.proc-text p {
  font-size: .9375rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 55ch;
}

/* =============================================================
   14. CONTACTO
   ============================================================= */
.contacto { background: var(--bg); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.contacto-left .kicker { color: var(--accent); }
.contacto-left h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.contacto-left h2::before {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--accent);
  margin-bottom: .75rem;
  border-radius: 2px;
}
.contacto-desc {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 50ch;
}
.contacto-data {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.cd-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.cd-item svg { color: var(--accent); flex-shrink: 0; }
.cd-item a {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--dur-fast);
}
.cd-item a:hover { color: var(--accent-dark); }

/* WhatsApp card */
.wa-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--green-wa);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(37,211,102,.3);
  transition:
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.wa-card:hover {
  background: var(--green-wa-dk);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37,211,102,.4);
}
.wa-card-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.wa-card-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}
.wa-card-text span {
  font-size: .85rem;
  opacity: .85;
}
.wa-card-arrow { flex-shrink: 0; opacity: .7; }
.contacto-horario {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--ink-muted);
  text-align: center;
}

/* =============================================================
   15. FOOTER
   ============================================================= */
.footer {
  background: var(--black);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  color: rgba(255,255,255,.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--white);
  display: block;
  margin-bottom: .75rem;
  text-transform: uppercase;
}
.footer-logo em {
  font-style: normal;
  color: var(--accent);
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(255,255,255,.45);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer-nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  transition: color var(--dur-fast);
}
.footer-nav a:hover { color: var(--white); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-contact p {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
}
.footer-contact a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--dur-fast);
}
.footer-contact a:hover { color: var(--white); }
.footer-partner {
  font-size: .8rem !important;
  color: rgba(255,255,255,.3) !important;
  margin-top: .25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
.footer-credits-link {
  font-size: .78rem;
  color: rgba(255,255,255,.25) !important;
  transition: color var(--dur-fast);
}
.footer-credits-link:hover { color: rgba(255,255,255,.5) !important; }

/* =============================================================
   16. WHATSAPP FLOATING BUTTON
   ============================================================= */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 60px; height: 60px;
  background: var(--green-wa);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background var(--dur-fast);
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.35);
  animation: waPulse 2.5s ease-in-out infinite;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 30px rgba(37,211,102,.6);
  background: var(--green-wa-dk);
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0; }
}

/* =============================================================
   17. RESPONSIVE — mobile-first
   ============================================================= */
@media (min-width: 540px) {
  .stat-sep { display: block; }
}

@media (min-width: 720px) {
  .sobre-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .contacto-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 1rem 2rem; }
}

@media (min-width: 960px) {
  .proc-step {
    grid-template-columns: 80px 40px 1fr;
    gap: 0 1.75rem;
    padding: 2rem 0;
  }
  .proc-num { font-size: 3.5rem; }

  .nav-toggle { display: none; }
  .nav-menu { display: flex !important; position: static; background: none; }
}

@media (min-width: 1280px) {
  .sobre-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
  }
}

/* =============================================================
   18. MOBILE NAV (burger)
   ============================================================= */
@media (max-width: 959px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav-link {
    font-size: 1.6rem !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    color: rgba(255,255,255,.75) !important;
  }
  .nav-cta {
    font-size: 1rem !important;
    padding: .85rem 2rem !important;
    font-family: var(--font-body) !important;
    text-transform: none !important;
    letter-spacing: .02em !important;
  }
  .nav-link::after { display: none; }
  .nav.is-solid .nav-toggle .bar { background: var(--ink); }

  /* Gallery — 2 columns on tablet */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats — wrap */
  .stats-row { gap: 1.25rem; }
  .stat-sep { display: none; }

  /* Process — simplify on small screens */
  .proc-step {
    grid-template-columns: 56px 1fr;
    gap: 0 1rem;
  }
  .proc-line { display: none; }
}

@media (max-width: 539px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .vent-item { padding: 1.5rem 1.25rem; }
  .svc-card { padding: 1.5rem; }
  .wa-card { padding: 1.25rem; }
  .wa-card-icon { width: 46px; height: 46px; }
  .ventajas-grid {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .proc-step {
    grid-template-columns: 48px 1fr;
  }
  .proc-num { font-size: 2.2rem; }
}

/* =============================================================
   19. REDUCED MOTION — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused; }
  .wa-float::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   20. PORTFOLIO (home) — simplificación SOLO mobile/tablet (≤1024px)
   El desktop (>1024px) queda EXACTAMENTE igual.
   ============================================================= */
@media (max-width: 1024px) {
  /* Ocultar el indicador "Scroll" del hero en mobile/tablet */
  .hero-scroll { display: none; }

  /* Mostrar solo 4 proyectos destacados (oculta 5º y 6º) */
  .gallery-grid .gal-item:nth-child(n+5) { display: none; }

  /* Título + "Ver proyecto" SIEMPRE visibles (en touch no hay hover) */
  .gallery-grid .gal-item figcaption {
    transform: none;
    background: linear-gradient(transparent, rgba(10,10,10,.55) 45%, rgba(10,10,10,.9));
    padding: 2.5rem .9rem .9rem;
  }
  .gallery-grid .gal-cap-title { font-size: .92rem; }
  .gallery-grid .gal-cap-cta { color: #fff; }

  /* Menos texto: ocultar el párrafo de apoyo de la sección */
  .trabajos .section-sub { display: none; }

  /* CTA limpio: dejar solo el botón "Ver todos los proyectos" */
  .gallery-cta p,
  .gallery-cta .text-link { display: none; }
  .gallery-cta { margin-top: 1.75rem; }
}

/* Tablet 960–1024px: grilla a 2 columnas (4 cards = 2×2 prolijo) */
@media (min-width: 960px) and (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* Mobile (<540px): mostrar solo 3 proyectos */
@media (max-width: 539px) {
  .gallery-grid .gal-item:nth-child(n+4) { display: none; }
}
