/* ============================================================
   BioCivil M&M — Servicios Page
   Immersive dual-discipline layout with 8 enhancements:
   1. Icon micro-interactions
   2. Number count-up animation
   3. Scroll progress indicator
   4. Badge "Nuevo"
   5. Mobile floating CTA
   6. Discipline comparador
   7. Conexión con proyectos destacados
   8. Copy refinada en gateway
   ============================================================ */

/* ── 1. DISCIPLINE GATEWAY ──────────────────────────────────
   Two large clickable panels immediately after the hero.
   Hover: background zooms + CTA appears.
   ──────────────────────────────────────────────────────────── */
.srv-gateway {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 400px;
  overflow: hidden;
}

.srv-gate {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.8rem 3rem;
  text-decoration: none;
  cursor: pointer;
}

.srv-gate-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.srv-gate:hover .srv-gate-bg { transform: scale(1.07); }

.srv-gate-overlay {
  position: absolute;
  inset: 0;
}
.srv-gate.civil .srv-gate-overlay {
  background: linear-gradient(170deg, oklch(11% 0.045 248 / 0.55) 0%, oklch(11% 0.045 248 / 0.93) 100%);
}
.srv-gate.ambiental .srv-gate-overlay {
  background: linear-gradient(170deg, oklch(14% 0.090 142 / 0.55) 0%, oklch(14% 0.090 142 / 0.93) 100%);
}
.srv-gate.civil::after {
  content: '';
  position: absolute;
  right: 0; top: 8%; bottom: 8%;
  width: 1px;
  background: oklch(100% 0 0 / 0.15);
  z-index: 2;
}

.srv-gate-content {
  position: relative;
  z-index: 1;
  color: white;
}

.srv-gate-eyebrow {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.50;
  margin-bottom: 0.7rem;
}

.srv-gate-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

.srv-gate-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.55;
  margin-bottom: 1.4rem;
}

.srv-gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  width: fit-content;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.srv-gate:hover .srv-gate-btn { opacity: 1; transform: translateY(0); }
.srv-gate.civil    .srv-gate-btn { background: oklch(48% 0.14 248 / 0.28); color: oklch(80% 0.15 248); border: 1px solid oklch(52% 0.14 248 / 0.45); }
.srv-gate.ambiental .srv-gate-btn { background: oklch(46% 0.24 148 / 0.28); color: oklch(80% 0.24 148); border: 1px solid oklch(55% 0.24 148 / 0.45); }

/* ── 2. DISCIPLINE COMPARADOR ───────────────────────────────
   Expandable comparison between the two disciplines.
   ──────────────────────────────────────────────────────────── */
.srv-compare-strip {
  background: oklch(11% 0.042 248);
  border-bottom: 1px solid oklch(100% 0 0 / 0.07);
}

.srv-compare-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: oklch(100% 0 0 / 0.40);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.srv-compare-btn:hover { color: oklch(100% 0 0 / 0.72); }

.srv-compare-pill {
  font-weight: 700;
  color: oklch(64% 0.26 148);
  background: oklch(44% 0.22 148 / 0.14);
  border: 1px solid oklch(52% 0.24 148 / 0.28);
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  font-size: 0.78rem;
  transition: background 0.2s;
}
.srv-compare-btn:hover .srv-compare-pill { background: oklch(44% 0.22 148 / 0.28); }

.srv-compare-chevron {
  transition: transform 0.35s var(--ease-expo);
  color: oklch(100% 0 0 / 0.25);
}
.srv-compare-btn[aria-expanded="true"] .srv-compare-chevron { transform: rotate(180deg); }

.srv-compare-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.srv-compare-panel.is-open { max-height: 700px; }

.srv-compare-inner {
  padding: 0 5% 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.srv-compare-grid {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  gap: 1rem;
  align-items: start;
}

.srv-compare-col {
  padding: 1.8rem 2rem;
  border-radius: 18px;
}
.srv-compare-col.civil {
  background: oklch(9% 0.038 248);
  border: 1px solid oklch(50% 0.14 248 / 0.22);
}
.srv-compare-col.ambiental {
  background: oklch(11% 0.082 142);
  border: 1px solid oklch(52% 0.24 148 / 0.22);
}

.srv-compare-head {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.civil    .srv-compare-head { color: oklch(72% 0.16 248); }
.ambiental .srv-compare-head { color: oklch(74% 0.24 148); }

.srv-compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  margin-bottom: 1.5rem;
}
.srv-compare-col ul li {
  font-size: 0.845rem;
  color: oklch(100% 0 0 / 0.55);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.45;
}
.srv-compare-col ul li::before {
  content: '→';
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 0.12em;
}
.civil    .srv-compare-col ul li::before { color: oklch(58% 0.16 248); }
.ambiental .srv-compare-col ul li::before { color: oklch(62% 0.26 148); }

.srv-compare-link {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.srv-compare-link:hover { gap: 0.7rem; }
.civil    .srv-compare-link { color: oklch(68% 0.16 248); }
.ambiental .srv-compare-link { color: oklch(70% 0.26 148); }

.srv-compare-vs {
  display: flex;
  align-items: start;
  justify-content: center;
  padding-top: 2rem;
}
.srv-compare-vs-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.06);
  border: 1px solid oklch(100% 0 0 / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: oklch(100% 0 0 / 0.28);
  flex-shrink: 0;
}

.srv-compare-note {
  text-align: center;
  font-size: 0.845rem;
  color: oklch(100% 0 0 / 0.32);
  margin-top: 1.8rem;
  padding: 1.1rem 2rem;
  border: 1px dashed oklch(100% 0 0 / 0.10);
  border-radius: 12px;
  line-height: 1.55;
}
.srv-compare-note strong { color: oklch(66% 0.26 148); }

/* ── 3. SECTION WRAPPER ────────────────────────────────────── */
.srv-section { scroll-margin-top: 72px; }
.srv-section.civil     { background: oklch(9%  0.038 248); }
.srv-section.ambiental { background: oklch(11% 0.082 142); }

.srv-section::before { content: ''; display: block; height: 2px; }
.srv-section.civil::before {
  background: linear-gradient(90deg, transparent, oklch(42% 0.14 248) 25%, oklch(56% 0.18 248) 50%, oklch(42% 0.14 248) 75%, transparent);
}
.srv-section.ambiental::before {
  background: linear-gradient(90deg, transparent, oklch(46% 0.24 148) 25%, oklch(66% 0.27 148) 50%, oklch(46% 0.24 148) 75%, transparent);
}

/* ── 4. STICKY / LIST SPLIT ────────────────────────────────── */
.srv-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  max-width: 1440px;
  margin: 0 auto;
}

/* ── LEFT — STICKY PANEL ──────────────────────────────────── */
.srv-sticky {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.srv-sticky-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.srv-sticky-veil { position: absolute; inset: 0; }
.civil    .srv-sticky-veil { background: linear-gradient(to top, oklch(9%  0.038 248 / 0.97) 0%, oklch(9%  0.038 248 / 0.78) 45%, oklch(9%  0.038 248 / 0.28) 100%); }
.ambiental .srv-sticky-veil { background: linear-gradient(to top, oklch(11% 0.082 142 / 0.97) 0%, oklch(11% 0.082 142 / 0.78) 45%, oklch(11% 0.082 142 / 0.28) 100%); }

.srv-sticky-body {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ── SCROLL PROGRESS TRACK ────────────────────────────────────
   Thin vertical line on the right edge of the sticky panel.
   Fills up as the service list scrolls.
   ──────────────────────────────────────────────────────────── */
.srv-progress-track {
  position: absolute;
  right: 1rem;
  top: 2.5rem;
  bottom: 3rem;
  width: 2px;
  background: oklch(100% 0 0 / 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.srv-progress-fill {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.18s linear;
}
.civil    .srv-progress-fill { background: linear-gradient(to bottom, oklch(52% 0.18 248), oklch(70% 0.16 248)); }
.ambiental .srv-progress-fill { background: linear-gradient(to bottom, oklch(50% 0.26 148), oklch(70% 0.26 148)); }

/* Small "tick" marks on the track */
.srv-progress-track::before,
.srv-progress-track::after {
  content: '';
  position: absolute;
  left: -2px;
  width: 6px;
  height: 1px;
  background: oklch(100% 0 0 / 0.15);
}
.srv-progress-track::before { top: 25%; }
.srv-progress-track::after  { top: 75%; }

.srv-sticky-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  width: fit-content;
}
.civil    .srv-sticky-chip { background: oklch(40% 0.13 248 / 0.28); color: oklch(72% 0.15 248); border: 1px solid oklch(50% 0.14 248 / 0.35); }
.ambiental .srv-sticky-chip { background: oklch(38% 0.22 148 / 0.28); color: oklch(75% 0.22 148); border: 1px solid oklch(52% 0.24 148 / 0.38); }

.srv-sticky-heading {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: oklch(97% 0 0);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.srv-sticky-desc {
  font-size: 0.845rem;
  color: oklch(100% 0 0 / 0.46);
  line-height: 1.68;
}

.srv-sticky-stats {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  border-top: 1px solid oklch(100% 0 0 / 0.08);
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
  margin: 0.4rem 0;
}

.srv-sticky-stat-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.civil    .srv-sticky-stat-val { color: oklch(70% 0.15 248); }
.ambiental .srv-sticky-stat-val { color: oklch(70% 0.24 148); }

.srv-sticky-stat-lbl {
  font-size: 0.72rem;
  color: oklch(100% 0 0 / 0.38);
  margin-top: 0.2rem;
  line-height: 1.35;
}

.srv-sticky-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.62rem 1.25rem;
  border-radius: 100px;
  border: 1px solid oklch(100% 0 0 / 0.18);
  color: oklch(100% 0 0 / 0.62);
  text-decoration: none;
  width: fit-content;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.srv-sticky-cta:hover {
  background: oklch(100% 0 0 / 0.10);
  color: white;
  border-color: oklch(100% 0 0 / 0.38);
}

/* ── RIGHT — SCROLLABLE LIST ──────────────────────────────── */
.srv-list {
  padding: 3.5rem 3rem 5rem 3.5rem;
  border-left: 1px solid oklch(100% 0 0 / 0.06);
}

.srv-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
}

.srv-list-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(100% 0 0 / 0.28);
}

.srv-list-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: oklch(100% 0 0 / 0.22);
}

/* ── SERVICE ROW ──────────────────────────────────────────── */
.srv-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: 1.6rem;
  padding: 1.9rem 1rem 1.9rem 0.4rem;
  border-bottom: 1px solid oklch(100% 0 0 / 0.065);
  position: relative;
  transition: background 0.25s;
  border-radius: 10px;
  align-items: start;
}
.srv-row:last-child { border-bottom: none; }

.srv-row::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 3px;
  border-radius: 3px;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.civil    .srv-row::before { background: oklch(56% 0.18 248); }
.ambiental .srv-row::before { background: oklch(62% 0.26 148); }

.srv-row:hover { background: oklch(100% 0 0 / 0.035); }
.srv-row:hover::before { transform: scaleY(1); }

/* Ghost number — animated by JS on scroll */
.srv-num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  padding-top: 0.25rem;
  color: white;
  opacity: 0.11;
  transition: opacity 0.25s, color 0.25s;
  user-select: none;
  text-align: right;
}
.civil    .srv-row:hover .srv-num { opacity: 0.65; color: oklch(62% 0.18 248); }
.ambiental .srv-row:hover .srv-num { opacity: 0.65; color: oklch(66% 0.27 148); }

/* Row body */
.srv-row-body { min-width: 0; }

.srv-row-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

/* ── ICON MICRO-INTERACTION ───────────────────────────────────
   Icon rotates and scales on row hover.
   ──────────────────────────────────────────────────────────── */
.srv-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.srv-row-icon svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.srv-row:hover .srv-row-icon { transform: scale(1.12); }
.srv-row:hover .srv-row-icon svg { transform: rotate(12deg); }

.civil    .srv-row-icon { background: oklch(45% 0.13 248 / 0.22); color: oklch(68% 0.16 248); }
.civil    .srv-row:hover .srv-row-icon { background: oklch(45% 0.13 248 / 0.42); }
.ambiental .srv-row-icon { background: oklch(42% 0.22 148 / 0.22); color: oklch(70% 0.26 148); }
.ambiental .srv-row:hover .srv-row-icon { background: oklch(42% 0.22 148 / 0.42); }

.srv-row-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: oklch(95% 0 0);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.srv-row-desc {
  font-size: 0.865rem;
  color: oklch(100% 0 0 / 0.44);
  line-height: 1.7;
}

/* ── BADGE "NUEVO" ────────────────────────────────────────────
   Pill tag for recently added or highlighted services.
   ──────────────────────────────────────────────────────────── */
.srv-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.60rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.58rem;
  border-radius: 100px;
  flex-shrink: 0;
  animation: badge-pulse 2.8s ease-in-out infinite;
}
.civil    .srv-badge-new { background: oklch(44% 0.14 248 / 0.28); color: oklch(76% 0.16 248); border: 1px solid oklch(52% 0.14 248 / 0.48); }
.ambiental .srv-badge-new { background: oklch(42% 0.24 148 / 0.28); color: oklch(78% 0.24 148); border: 1px solid oklch(56% 0.26 148 / 0.48); }

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.60; }
}

/* ── SECTION BRIDGE ───────────────────────────────────────── */
.srv-bridge {
  height: 3px;
  background: linear-gradient(90deg, oklch(9% 0.038 248) 0%, oklch(32% 0.12 200) 50%, oklch(11% 0.082 142) 100%);
}

/* ── FINALE CTA ───────────────────────────────────────────── */
.srv-finale {
  background: oklch(9% 0.038 248);
  padding: 7rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.srv-finale::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 12% 50%, oklch(38% 0.14 248 / 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 88% 50%, oklch(44% 0.24 148 / 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.srv-finale-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(66% 0.26 148);
  margin-bottom: 1.1rem;
}

.srv-finale-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 18ch;
  margin: 0 auto 1.2rem;
}

.srv-finale-sub {
  font-size: 1rem;
  color: oklch(100% 0 0 / 0.48);
  max-width: 50ch;
  margin: 0 auto 2.8rem;
  line-height: 1.68;
}

.srv-finale-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.srv-finale-actions .btn-primary { font-size: 0.95rem; padding: 0.9rem 2rem; }

.srv-finale-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: oklch(100% 0 0 / 0.55);
  text-decoration: none;
  border: 1px solid oklch(100% 0 0 / 0.18);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.srv-finale-secondary:hover {
  background: oklch(100% 0 0 / 0.08);
  color: white;
  border-color: oklch(100% 0 0 / 0.38);
}

/* ── FEATURED PROJECTS ────────────────────────────────────────
   3 compact project cards bridging services → footer.
   ──────────────────────────────────────────────────────────── */
.srv-featured {
  background: oklch(9% 0.038 248);
  padding: 1rem 5% 6rem;
  border-top: 1px solid oklch(100% 0 0 / 0.06);
}

.sfp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.sfp-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}

.sfp-all {
  font-size: 0.85rem;
  font-weight: 700;
  color: oklch(64% 0.26 148);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: gap 0.2s;
}
.sfp-all:hover { gap: 0.7rem; }

.sfp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.sfp-card {
  border-radius: 16px;
  overflow: hidden;
  background: oklch(12% 0.042 248);
  border: 1px solid oklch(100% 0 0 / 0.07);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.35s var(--ease-expo), box-shadow 0.35s;
}
.sfp-card:hover {
  border-color: oklch(52% 0.22 145 / 0.40);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px oklch(0% 0 0 / 0.32);
}

.sfp-card-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.sfp-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-expo);
}
.sfp-card:hover .sfp-card-img img { transform: scale(1.07); }

.sfp-cat {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  color: white;
  backdrop-filter: blur(6px);
}
.sfp-cat.civil     { background: oklch(22% 0.08 248 / 0.82); }
.sfp-cat.ambiental { background: oklch(26% 0.16 142 / 0.82); }
.sfp-cat.mant      { background: oklch(22% 0.06 280 / 0.82); }

.sfp-card-body {
  padding: 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
}

.sfp-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: oklch(94% 0 0);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.sfp-card-loc {
  font-size: 0.77rem;
  color: oklch(100% 0 0 / 0.32);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── MOBILE FLOATING CTA ──────────────────────────────────────
   Shown only on mobile/tablet. Slides up after 500px scroll.
   ──────────────────────────────────────────────────────────── */
.srv-float-cta {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2.5rem));
  z-index: 200;
  display: none;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.srv-float-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.srv-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: oklch(52% 0.22 145);
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.88rem 1.9rem;
  border-radius: 100px;
  text-decoration: none;
  box-shadow:
    0 8px 32px oklch(52% 0.22 145 / 0.50),
    0 2px 8px oklch(0% 0 0 / 0.25);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.srv-float-btn:hover {
  background: oklch(58% 0.24 147);
  transform: translateY(-2px);
  box-shadow:
    0 14px 40px oklch(52% 0.22 145 / 0.58),
    0 4px 12px oklch(0% 0 0 / 0.25);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .srv-gateway       { grid-template-columns: 1fr; height: auto; }
  .srv-gate          { height: 220px; }
  .srv-gate.civil::after { display: none; }

  .srv-split         { grid-template-columns: 1fr; }
  /* height: auto + generous padding-top so the bg image shows above content */
  .srv-sticky        { position: relative; top: 0; height: auto; }
  .srv-sticky-body   { padding: 6rem 2.5rem 2.5rem; }
  .srv-list          { border-left: none; border-top: 1px solid oklch(100% 0 0 / 0.07); padding: 2rem 1.5rem 3.5rem; }
  .srv-list-scroll-hint { display: none; }

  .srv-row           { grid-template-columns: 50px 1fr; column-gap: 1.2rem; }
  .srv-num           { font-size: 1.75rem; }

  .srv-compare-grid  { grid-template-columns: 1fr; gap: 1rem; }
  .srv-compare-vs    { display: none; }

  .sfp-grid          { grid-template-columns: repeat(2, 1fr); }
  .sfp-header        { flex-direction: column; align-items: flex-start; }

  .srv-float-cta     { display: block; }
  .srv-progress-track { display: none; }
}

@media (max-width: 640px) {
  /* Hide "Disciplina 01 / 02" eyebrows on mobile */
  .srv-gate-eyebrow  { display: none; }

  /* Always show "Explorar disciplina" button on mobile (no hover available) */
  .srv-gate-btn {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .srv-gate          { height: 190px; padding: 2rem 1.8rem; }
  .srv-gate-title    { font-size: 1.5rem; }

  .srv-sticky-body   { padding: 5rem 1.8rem 2rem; }
  .srv-sticky-heading { font-size: 1.4rem; }

  .srv-row           { grid-template-columns: 42px 1fr; column-gap: 0.9rem; padding: 1.5rem 0.4rem; }
  .srv-num           { font-size: 1.5rem; }
  .srv-row-title     { font-size: 0.98rem; }
  .srv-row-desc      { font-size: 0.84rem; }

  .sfp-grid          { grid-template-columns: 1fr; }
  .srv-compare-btn   { font-size: 0.78rem; flex-wrap: wrap; justify-content: center; }
}

/* ─── Touch devices: always show gateway buttons ─────────────────────────── */
@media (pointer: coarse) {
  .srv-gate-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .srv-gate:hover .srv-gate-overlay {
    opacity: 1;
  }
}
