/* ============================================
   ERGOSPAZZIO V2 — Full-page block scroll
   Each panel = 100vh, snaps on scroll,
   blocks animate in on entry.
   ============================================ */

:root {
  --sage:     #adb5a1;
  --teal:     #61736b;
  --offwhite: #fafaf0;
  --dark:     #474747;
  --white:    #ffffff;
  --gray-light: #d4d9d0; /* soft silver-sage — 5th palette tone */
  --line:     #adb5a1;   /* grid line color (body bg) */
  --hh:       64px;      /* header height */
  --ph:       calc(100vh - var(--hh));    /* panel height — fallback */
  --ph:       calc(100dvh - var(--hh));   /* dvh: excludes mobile browser chrome */

  --f-head: 'Montserrat', sans-serif;
  --f-body: 'Inter Tight', sans-serif;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow: hidden; }

body {
  font-family: var(--f-body);
  color: var(--dark);
  background: var(--line);
  -webkit-font-smoothing: antialiased;
  height: 100vh; height: 100dvh; /* dvh excludes mobile browser chrome */
  overflow: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }


/* ============================================
   FIXED HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hh);
  z-index: 300;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 32px;
  gap: 40px;
}

.h-logo a { display: flex; align-items: center; }
.h-logo img { height: 34px; width: auto; }

.h-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.h-nav a {
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--dark);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.h-nav a:hover { opacity: 1; }

.h-cta a {
  font-family: var(--f-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: gap 0.2s;
}
.h-cta a::after { content: '→'; }
.h-cta a:hover { gap: 12px; }

.h-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.h-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: transform 0.25s, opacity 0.25s;
}


/* ============================================
   SCROLL CONTAINER
   Fixed below header, snap-scrolls panels
   ============================================ */
.scroller {
  position: fixed;
  top: var(--hh);
  left: 0; right: 0; bottom: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }


/* ============================================
   PANELS — each = one viewport height
   ============================================ */
.panel {
  height: var(--ph);
  scroll-snap-align: start;
  /* each panel is its own grid with 1px gaps */
  display: grid;
  gap: 1px;
  background: var(--line);
  outline: 1px solid var(--line);
  overflow: hidden;
}

/* Grid columns per panel */
.panel--hero     { grid-template-columns: 1fr 1.3fr; grid-template-rows: 1fr; }
.panel--products { grid-template-columns: repeat(4, 1fr); grid-template-rows: 56px 1fr 1fr; }
.panel--diff     { grid-template-columns: repeat(4, 1fr); grid-template-rows: 64px 1fr 1fr; }
.panel--showcase { grid-template-columns: repeat(4, 1fr); grid-template-rows: 56px 1fr 1fr 130px; }
.panel--contact  { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr auto; }

/* Base block */
.b {
  background: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 0; /* allow shrink inside grid */
}

.b--offwhite   { background: var(--offwhite); }
.b--sage       { background: var(--sage); }
.b--teal       { background: var(--teal); }
.b--dark       { background: var(--dark); }
.b--gray-light { background: var(--gray-light); }

.b--c2 { grid-column: span 2; }
.b--c3 { grid-column: span 3; }
.b--c4 { grid-column: span 4; }


/* ============================================
   BLOCK ENTRANCE ANIMATION
   Blocks start invisible; .panel.is-active
   triggers staggered fade-in per block.
   ============================================ */
@keyframes blockIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel .b {
  opacity: 0;
}

.panel.is-active .b {
  animation: blockIn 0.55s var(--ease) forwards;
}

/* Stagger: each successive block delays slightly */
.panel.is-active .b:nth-child(1)  { animation-delay: 0.00s; }
.panel.is-active .b:nth-child(2)  { animation-delay: 0.06s; }
.panel.is-active .b:nth-child(3)  { animation-delay: 0.10s; }
.panel.is-active .b:nth-child(4)  { animation-delay: 0.14s; }
.panel.is-active .b:nth-child(5)  { animation-delay: 0.18s; }
.panel.is-active .b:nth-child(6)  { animation-delay: 0.22s; }
.panel.is-active .b:nth-child(7)  { animation-delay: 0.26s; }
.panel.is-active .b:nth-child(8)  { animation-delay: 0.30s; }
.panel.is-active .b:nth-child(9)  { animation-delay: 0.34s; }
.panel.is-active .b:nth-child(10) { animation-delay: 0.38s; }
.panel.is-active .b:nth-child(11) { animation-delay: 0.40s; }
.panel.is-active .b:nth-child(12) { animation-delay: 0.42s; }
.panel.is-active .b:nth-child(13) { animation-delay: 0.44s; }
.panel.is-active .b:nth-child(14) { animation-delay: 0.46s; }


/* ============================================
   SIDE NAV DOTS
   ============================================ */
.side-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 400;
}

.side-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: height 0.3s var(--ease), border-radius 0.3s var(--ease), background 0.3s;
}
.side-dot.is-active {
  height: 20px;
  border-radius: 3px;
  background: var(--teal);
}


/* ============================================
   PANEL 1 — HERO
   ============================================ */
.b-hero-text {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.hero-eyebrow {
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.8;
}

.hero-title {
  font-family: var(--f-head);
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--dark);
}
.hero-accent {
  color: var(--teal);
}


.btn-hero {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background 0.22s, letter-spacing 0.22s;
  align-self: flex-start;
}
.btn-hero:hover { background: var(--teal); letter-spacing: 0.2em; }

.b-hero-photo {
  overflow: hidden;
}
.b-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 8s ease;
}
.panel.is-active .b-hero-photo img { transform: scale(1.05); }

/* Scroll cue */
.scroll-cue {
  font-family: var(--f-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.28;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
}


/* ============================================
   PANEL 2 — PRODUCTS
   ============================================ */
.b-section-label {
  padding: 0 28px;
  display: flex;
  align-items: center;
}

.section-tag {
  font-family: var(--f-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--teal);
}

.b-section-intro {
  padding: 0 36px;
  display: flex;
  align-items: center;
}
.b-section-intro p {
  font-family: var(--f-body);
  font-size: 1.05rem;
  color: var(--dark);
  opacity: 0.65;
  line-height: 1.65;
}

/* Product image block — always cover, full bleed */
.b-pimg {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.b-pimg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s ease;
}
.b-pimg:hover img { transform: scale(1.05); }

/* Hover / tap overlay — injected by JS as .pimg-overlay inside each .b-pimg */
.pimg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(71, 71, 71, 0.88);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.b-pimg:hover .pimg-overlay,
.b-pimg.is-active .pimg-overlay {
  opacity: 1;
  pointer-events: auto;
}
.pimg-overlay .pname {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: white;
  margin-bottom: 8px;
  line-height: 1.05;
}
.pimg-overlay .psub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  margin-bottom: 0;
  opacity: 1;
}
.pimg-overlay .parrow { display: none; }

/* Product name block */
.b-pname {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pname {
  font-family: var(--f-head);
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 14px;
}

.psub {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--dark);
  opacity: 0.6;
  line-height: 1.65;
  margin-bottom: 18px;
}

.parrow {
  font-family: var(--f-head);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: gap 0.2s, opacity 0.2s;
}
.parrow::after { content: '→'; }
.b-pname:hover .parrow { gap: 10px; opacity: 1; }


/* ============================================
   PANEL 3 — DIFFERENTIATORS
   ============================================ */
.b-diff-header {
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.diff-header-title {
  font-family: var(--f-head);
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
}
.diff-header-count {
  font-family: var(--f-head);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.b-diff {
  padding: 36px 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative; /* number is absolutely placed as watermark */
}

/* Ghost number — purely decorative watermark */
.diff-num {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--f-head);
  font-size: clamp(5rem, 8vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.1);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}

/* Light-bg diff cells need dark text (offwhite/white backgrounds) */
.b-diff--light .diff-num   { color: rgba(71, 71, 71, 0.07); }
.b-diff--light .diff-title { color: var(--dark); }
.b-diff--light .diff-body  { color: var(--dark); opacity: 0.55; }

/* Actual readable content at the bottom */
.diff-content { display: flex; flex-direction: column; gap: 12px; }

.diff-title {
  font-family: var(--f-head);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.95);
  line-height: 1.1;
}
.diff-body {
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

/* Desktop stat blocks */
.b-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
/* Mobile combined stats block — hidden on desktop */
.b-stat-combined {
  display: none;
}
.stat-num {
  font-family: var(--f-head);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-family: var(--f-body);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark);
  opacity: 0.55;
  line-height: 1.6;
}


/* ============================================
   PANEL 4 — SHOWCASE (Projects + Clients)
   Row 1: label row for projects
   Row 2: 3 project photos + text block
   Row 3: label row for clients
   Row 4: single logo rectangle (full width)
   ============================================ */

/* Project blocks */
.b-project {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.b-project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.b-project:hover img { transform: scale(1.05); }

.proj-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 26px;
  background: linear-gradient(to top, rgba(71,71,71,0.88), transparent);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}
.b-project:hover .proj-cap { opacity: 1; transform: none; }
.proj-cap h3 {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.03em;
}
.proj-cap p {
  font-family: var(--f-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
}

/* The "+100 proyectos" text block */
.b-proj-text {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.proj-big-n {
  font-family: var(--f-head);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 12px;
}
.proj-big-l {
  font-family: var(--f-head);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.proj-big-s {
  font-family: var(--f-body);
  font-size: 0.88rem;
  color: var(--dark);
  opacity: 0.45;
  line-height: 1.65;
}

/* Clients label block (col 1 of the label row) */
.b-clients-lbl {
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.clients-lbl-text {
  font-family: var(--f-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--teal);
}
.clients-lbl-sub {
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: var(--dark);
  opacity: 0.45;
}

/* Logo banner — stepped block carousel, individual hover */
.b-logo-rect {
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: var(--white);
}

.logo-track {
  display: flex;
  align-items: stretch;
  /* JS drives the transform; CSS provides the slide transition */
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.logo-cell {
  flex-shrink: 0;
  /* width set dynamically by JS based on container / visible count */
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  transition: background 0.22s;
  cursor: default;
}
.logo-cell:hover { background: var(--offwhite); }
.logo-cell img {
  max-width: 120px;
  max-height: 44px;
  width: auto; height: auto;
  object-fit: contain;
  opacity: 0.38;
  filter: grayscale(1);
  transition: opacity 0.22s, filter 0.22s;
}
.logo-cell:hover img { opacity: 1; filter: none; }



.b-client {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background 0.22s;
}
.b-client:hover { background: var(--offwhite); }
.b-client img {
  max-width: 90px;
  max-height: 32px;
  width: auto; height: auto;
  object-fit: contain;
  opacity: 0.38;
  filter: grayscale(1);
  transition: opacity 0.22s, filter 0.22s;
}
.b-client:hover img { opacity: 0.85; filter: none; }
.b-client span {
  font-family: var(--f-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dark);
  opacity: 0.25;
  text-transform: uppercase;
  text-align: center;
}


/* ============================================
   PANEL 5 — CONTACT + FOOTER
   ============================================ */
.b-cta {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-title {
  font-family: var(--f-head);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.cta-sub {
  font-family: var(--f-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 340px;
}

.b-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 32px;
  gap: 18px;
}
.btn-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--white);
  color: var(--dark);
  font-family: var(--f-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background 0.2s, gap 0.2s;
}
.btn-block::after { content: '→'; font-size: 1rem; }
.btn-block:hover { gap: 16px; background: var(--offwhite); }

.btn-ghost {
  font-family: var(--f-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--white); }

.b-addr {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.addr-lbl {
  font-family: var(--f-head);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.2);
  margin-bottom: 14px;
}
.addr-txt {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

/* Footer row */
.b-foot-brand {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.foot-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.social-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.social-icon:hover { color: white; border-color: rgba(255,255,255,0.5); }
.social-icon svg { width: 18px; height: 18px; }
.foot-logo {
  height: 28px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  display: block;
  margin-bottom: 16px;
}
.foot-tag {
  font-family: var(--f-head);
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.18);
}

.b-foot-col {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot-col-head {
  font-family: var(--f-head);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.18);
  margin-bottom: 10px;
  display: block;
}
.b-foot-col a {
  font-family: var(--f-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1;
  transition: color 0.2s, padding-left 0.2s;
  padding-left: 0;
}
.b-foot-col a:hover { color: var(--white); padding-left: 5px; }

.b-foot-copy {
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.b-foot-copy p {
  font-family: var(--f-body);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.18);
}


/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  padding: 80px 36px 48px;
}
.mobile-nav.open { display: flex; }

.mobile-nav__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--hh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__bar img { height: 30px; }
.mnav-close {
  background: none; border: none;
  font-size: 1.6rem; cursor: pointer;
  color: var(--dark); line-height: 1; padding: 4px;
}

.mobile-nav a {
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 10vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: var(--dark);
  line-height: 1.15;
  opacity: 0.12;
  transition: opacity 0.2s, padding-left 0.2s;
  padding-left: 0;
}
.mobile-nav a:hover { opacity: 1; padding-left: 10px; }

.mobile-nav__footer {
  margin-top: 48px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.mobile-nav__footer a {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  opacity: 0.3 !important;
  line-height: 1 !important;
  padding-left: 0 !important;
}
.mobile-nav__footer a:hover { opacity: 0.7 !important; }

/* WhatsApp */
.wa {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 46px; height: 46px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
  box-shadow: 0 3px 14px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa:hover { transform: scale(1.1); box-shadow: 0 5px 22px rgba(37,211,102,0.55); }


/* ============================================
   RESPONSIVE — MOBILE
   Remove snap, stack everything, 2-col grids
   ============================================ */
/* ============================================
   MOBILE — Snap scroll preserved, panels
   simplified to fit one screen each.
   ============================================ */
@media (max-width: 768px) {
  /* Keep snap scrolling exactly like desktop */
  html, body { overflow: hidden; height: 100vh; height: 100dvh; }

  .scroller {
    position: fixed;
    top: var(--hh);
    left: 0; right: 0; bottom: 0;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
  }
  .scroller::-webkit-scrollbar { display: none; }

  .panel {
    height: var(--ph);
    scroll-snap-align: start;
    overflow: hidden;
    outline: 1px solid var(--line);
  }

  /* Blocks visible immediately — no stagger on mobile */
  .panel .b { opacity: 1; animation: none !important; }

  /* Header stays fixed */
  .site-header { position: fixed; }

  /* Side nav dots — smaller */
  .side-nav { display: flex; right: 10px; gap: 8px; }
  .side-dot { width: 4px; height: 4px; }
  .side-dot.is-active { height: 14px; }
  /* scroll-cue shown on mobile — see hero overrides below */

  /* Burger visible, desktop nav hidden */
  .h-nav, .h-cta { display: none; }
  .h-burger { display: flex; }


  /* ── PANEL 1: HERO ──────────────────────
     Full-bleed image with all text overlaid.
     Both elements stacked in the same grid cell. */
  .panel--hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  /* Image fills full panel */
  .b-hero-photo {
    grid-column: 1; grid-row: 1;
    position: relative;
  }
  /* Dark gradient — heavier at bottom where text lives */
  .b-hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(20, 20, 20, 0.82) 0%,
      rgba(20, 20, 20, 0.45) 45%,
      rgba(20, 20, 20, 0.08) 100%
    );
    pointer-events: none;
  }
  /* Text sits on top, transparent bg */
  .b-hero-text {
    grid-column: 1; grid-row: 1;
    position: relative;
    z-index: 1;
    background: transparent !important;
    padding: 28px 28px 32px;
    justify-content: flex-end;
  }
  .hero-eyebrow {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.65);
  }
  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
    color: white;
    margin-bottom: 24px;
  }
  .hero-accent { color: var(--sage); }
  .btn-hero {
    font-size: 0.72rem;
    padding: 14px 24px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
  }
  .btn-hero:hover {
    background: rgba(255,255,255,0.22);
  }
  .scroll-cue {
    display: flex;
    color: white;
    opacity: 0.4;
    margin-top: 20px;
  }


  /* ── PANEL 2: PRODUCTS ──────────────────
     2×2 image grid. Pnames hidden from flow;
     shown as tap overlay inside each pimg. */
  .panel--products {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 40px 1fr 1fr;
  }
  .panel--products .b-section-label { grid-column: span 2; }
  .panel--products .b-section-intro { display: none; }
  .b-pname { display: none; }
  /* Overlay styles are in base CSS — tap behaviour added by JS */


  /* ── PANEL 3: DIFF ──────────────────────
     2-col, 3 content rows (header + 3 rows of 2) */
  .panel--diff {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 48px 1fr 1fr 1fr;
  }
  .b-diff-header.b--c4 { grid-column: span 2; padding: 0 16px; }
  .diff-header-title { font-size: clamp(0.75rem, 3vw, 1rem); }
  .diff-header-count { display: none; }
  .b-diff { padding: 12px 14px; }
  .diff-num { font-size: clamp(2rem, 7vw, 2.8rem); top: 5px; left: 10px; }
  .diff-title { font-size: 0.78rem; line-height: 1.2; letter-spacing: 0; }
  .diff-body  { display: none; }
  .b-stat     { display: none; }
  /* Combined stats in 6th slot */
  .b-stat-combined {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 12px 16px;
    gap: 0;
  }
  .stat-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(71,71,71,0.08);
  }
  .stat-row:last-child { border-bottom: none; }
  .b-stat-combined .stat-num { line-height: 1; font-size: clamp(1rem, 4.5vw, 1.3rem); }
  .b-stat-combined .stat-label { line-height: 1.25; }
  .stat-row:last-child { border-bottom: none; }
  .b-stat-combined .stat-num {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    font-weight: 900;
    color: var(--teal);
    letter-spacing: -0.03em;
    line-height: 1;
    flex-shrink: 0;
  }
  .b-stat-combined .stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dark);
    opacity: 0.6;
    line-height: 1.3;
  }


  /* ── PANEL 4: SHOWCASE ──────────────────
     4-photo 2×2 grid + thin logo strip.
     Label rows, stat block, extra photos hidden. */
  .panel--showcase {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr 90px;
  }
  .panel--showcase .b-section-label,
  .panel--showcase .b-section-intro,
  .panel--showcase .b-proj-text,
  .panel--showcase .b-clients-lbl { display: none; }
  /* Hide project photos 5, 6, 7 — keep only first 4 */
  .panel--showcase > :nth-child(7),
  .panel--showcase > :nth-child(8),
  .panel--showcase > :nth-child(9) { display: none; }
  .b-logo-rect.b--c3 { grid-column: span 2; }
  .logo-cell { width: 140px; }
  .logo-cell img { max-width: 90px; max-height: 32px; }


  /* ── PANEL 5: CONTACT ───────────────────
     Bento grid: big CTA square | teal button+address | logo strip
     ┌────────────────────┐
     │     CTA text       │ (span 2, 1fr)
     ├──────────┬─────────┤
     │ COTIZAR  │ address │ (teal | dark square)
     ├──────────┴─────────┤
     │ logo + social icons│ (span 2, auto)
     ├────────────────────┤
     │ copyright          │ (span 2, thin)
     └────────────────────┘ */
  .panel--contact {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto auto auto;
  }
  .b-cta.b--c2 {
    grid-column: span 2;
    padding: 32px 28px;
    justify-content: center;
  }
  .cta-title { font-size: clamp(1.8rem, 6.5vw, 2.5rem); }
  .cta-sub   { font-size: 0.85rem; margin-top: 14px; max-width: 300px; }
  /* Teal button block — left square */
  .b-cta-btn {
    grid-column: 1;
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }
  .btn-block { font-size: 0.72rem; padding: 14px 20px; }
  /* Address block — right square, visible */
  .b-addr {
    display: flex;
    grid-column: 2;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
  }
  .addr-lbl { font-size: 0.6rem; margin-bottom: 8px; }
  .addr-txt  { font-size: 0.75rem; line-height: 1.55; }
  /* Brand + social icons — full width strip */
  .b-foot-brand.b--c2 {
    grid-column: span 2;
    padding: 18px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .b-foot-brand .foot-social { margin-top: 0; }
  .foot-logo  { margin-bottom: 0; height: 20px; }
  .foot-tag   { display: none; }
  /* Hide nav and social text columns — info shown via icons */
  .b-foot-col { display: none; }
  .b-foot-copy.b--c4 { grid-column: span 2; padding: 10px 24px; }
}
