/* Sector carousel */
.sector-carousel {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 8px 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.sector-carousel::-webkit-scrollbar {
  display: none;
}

.sector-carousel {
  scrollbar-width: none;
}

.sector-carousel:hover,
.sector-carousel:focus-within,
.sector-carousel:active {
  cursor: grab;
}

.sector-track {
  display: flex;
  gap: 16px;
  width: max-content;
  align-items: stretch;
}

.sector-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(235px, 19vw, 300px);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  background: #050c13;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.sector-card:hover,
.sector-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 28px 55px rgba(0, 178, 226, 0.3);
}

.sector-card__media {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  flex-shrink: 0;
}

.sector-card__overlay {
  flex-grow: 1;
  padding: 1.25rem 1rem;
  background: #050c13;
  color: #fff;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sector-card__overlay h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sector-card__overlay p {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  opacity: 1;
  max-height: none;
  overflow: visible;
  transform: none;
}

.sector-card:hover .sector-card__overlay {
  background: #0a1f33;
}

@media (min-width: 768px) {
  .sector-carousel {
    overflow: visible;
    scroll-snap-type: none;
    padding-left: 0;
    padding-right: 0;
    cursor: default;
  }

  .sector-track {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .sector-track {
    gap: 12px;
  }

  .sector-card {
    width: 235px;
    border-radius: 16px;
  }

  .sector-carousel {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Why KINT scroll story */
.kint-scroll-story {
  --story-progress: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
  position: relative;
  margin-top: clamp(3.8rem, 6vw, 5.4rem);
}

.kint-scroll-story::before {
  content: "";
  position: absolute;
  inset: -26px -20px auto -20px;
  height: 52%;
  pointer-events: none;
  background: radial-gradient(circle at 8% 20%, rgba(0, 178, 226, 0.16), rgba(0, 178, 226, 0) 46%);
  filter: blur(2px);
}

.kint-scroll-story__media {
  position: sticky;
  top: 104px;
  height: min(78vh, 680px);
  border-radius: 22px;
  overflow: hidden;
  background: #040d15;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.kint-scroll-story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 22% 18%, rgba(0, 178, 226, 0.24), rgba(0, 178, 226, 0) 38%), linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.42) 100%);
}

.kint-scroll-story__image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06) translateY(14px);
  filter: saturate(0.9) contrast(0.98);
  transition:
    opacity 0.65s ease,
    transform 0.9s ease,
    filter 0.65s ease;
}

.kint-scroll-story__image.is-active {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1.08) contrast(1.03);
}

.kint-scroll-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kint-scroll-story__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16vh;
  padding: 6vh 0;
  padding-left: 2.9rem;
}

.kint-scroll-story__rail {
  position: absolute;
  left: 0;
  top: 6vh;
  bottom: 6vh;
  width: 2rem;
  z-index: 0;
}

.kint-scroll-story__rail-base,
.kint-scroll-story__rail-progress {
  position: absolute;
  left: 15px;
  top: 0;
  width: 2px;
  border-radius: 999px;
}

.kint-scroll-story__rail-base {
  height: 100%;
  background: rgba(0, 43, 73, 0.16);
}

.kint-scroll-story__rail-progress {
  height: calc(100% * var(--story-progress));
  background: linear-gradient(180deg, rgba(0, 178, 226, 0.2), rgba(0, 178, 226, 0.95));
  box-shadow: 0 0 20px rgba(0, 178, 226, 0.35);
}

.kint-scroll-story__dot {
  position: absolute;
  left: 0;
  top: calc((var(--dot-index) / 3) * 100%);
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  border: 1px solid rgba(0, 43, 73, 0.2);
  color: #5b6673;
  background: #f8fbfd;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.kint-scroll-story__dot.is-done {
  color: #007ea2;
  border-color: rgba(0, 178, 226, 0.35);
  background: #eefaff;
}

.kint-scroll-story__dot.is-active {
  color: #fff;
  background: #00b2e2;
  border-color: rgba(0, 178, 226, 0.9);
  box-shadow: 0 0 0 5px rgba(0, 178, 226, 0.2);
  transform: translateY(-50%) scale(1.06);
}

.kint-scroll-step {
  position: relative;
  z-index: 1;
  min-height: 42vh;
  margin-left: 0;
  border: 1px solid rgba(0, 43, 73, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(245, 249, 252, 0.7));
  backdrop-filter: blur(2px);
  padding: 1.1rem 1rem 1.15rem 1.45rem;
  opacity: 0.42;
  transform: translateY(20px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    background 0.45s ease;
}

.kint-scroll-step.is-active {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(0, 178, 226, 0.75);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 178, 226, 0.25) inset;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(236, 249, 253, 0.92));
}

.kint-scroll-step__index {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0289ad;
  font-weight: 700;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 178, 226, 0.12);
}

.kint-scroll-step h4 {
  margin-top: 0.78rem;
  color: #002b49;
  font-size: clamp(1.25rem, 2.3vw, 1.9rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kint-scroll-step p {
  margin-top: 0.85rem;
  color: #4a5564;
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 48ch;
}

html.dark .kint-scroll-step {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(10, 25, 38, 0.7), rgba(7, 20, 31, 0.72));
}

html.dark .kint-scroll-story__rail-base {
  background: rgba(255, 255, 255, 0.18);
}

html.dark .kint-scroll-story__dot {
  color: #9eb2c3;
  border-color: rgba(255, 255, 255, 0.2);
  background: #0b1b2a;
}

html.dark .kint-scroll-story__dot.is-done {
  color: #7be7ff;
  border-color: rgba(0, 178, 226, 0.45);
  background: #0a2635;
}

html.dark .kint-scroll-step.is-active {
  border-color: rgba(0, 178, 226, 0.95);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(0, 178, 226, 0.32) inset;
  background: linear-gradient(145deg, rgba(10, 28, 43, 0.94), rgba(7, 22, 35, 0.95));
}

html.dark .kint-scroll-step__index {
  color: #5fdfff;
  background: rgba(0, 178, 226, 0.2);
}

html.dark .kint-scroll-step h4 {
  color: #fff;
}

html.dark .kint-scroll-step p {
  color: #9ca3af;
}

@media (max-width: 1024px) {
  .kint-scroll-story {
    grid-template-columns: 1fr;
    margin-top: 2.2rem;
  }

  .kint-scroll-story::before {
    display: none;
  }

  .kint-scroll-story__media {
    position: sticky;
    top: 84px;
    z-index: 1;
    height: min(60vh, 500px);
    border-radius: 18px;
  }

  .kint-scroll-story__steps {
    position: relative;
    z-index: 2;
    gap: 44vh;
    padding: 0 0 10vh;
    padding-left: 0;
    margin-top: -24vh;
  }

  .kint-scroll-story__rail {
    display: none;
  }

  .kint-scroll-step {
    min-height: 28vh;
    width: min(92%, 560px);
    margin: 0 auto;
    border-radius: 15px;
    padding: 1rem 0.95rem 1rem 1.05rem;
    backdrop-filter: blur(7px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(242, 248, 252, 0.74));
    border-color: rgba(0, 43, 73, 0.2);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
    opacity: 0.34;
    transform: translateY(20px);
  }

  .kint-scroll-step.is-active {
    opacity: 1;
    transform: translateY(-2px);
  }

  html.dark .kint-scroll-step {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(8, 22, 34, 0.78), rgba(7, 20, 31, 0.72));
  }

  html.dark .kint-scroll-step.is-active {
    background: linear-gradient(145deg, rgba(9, 28, 41, 0.92), rgba(7, 22, 35, 0.9));
  }
}

@media (max-width: 640px) {
  .kint-scroll-story__media {
    top: 74px;
    height: 56vh;
    border-radius: 16px;
  }

  .kint-scroll-step {
    min-height: 24vh;
    width: calc(100% - 14px);
    padding: 0.9rem 0.82rem 0.95rem 0.92rem;
  }

  .kint-scroll-story__steps {
    gap: 38vh;
    margin-top: -20vh;
  }

  .kint-scroll-step h4 {
    font-size: 1.08rem;
  }

  .kint-scroll-step p {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

/* Success cases flow */
.success-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 4vw, 2.5rem);
}

.success-case {
  position: relative;
  width: min(86%, 980px);
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #05101a;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition:
    opacity 0.65s ease,
    transform 0.65s ease,
    box-shadow 0.4s ease;
}

.success-case--left {
  align-self: flex-start;
  transform: translate3d(-38px, 28px, 0);
}

.success-case--right {
  align-self: flex-end;
  transform: translate3d(38px, 28px, 0);
}

.success-case.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.success-case:hover {
  box-shadow: 0 30px 75px rgba(0, 178, 226, 0.22);
}

.success-case__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.success-case__overlay {
  position: absolute;
  inset: 0;
  padding: clamp(1rem, 2.2vw, 2rem) clamp(1rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.52rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(1, 11, 18, 0.82) 0%, rgba(1, 11, 18, 0.58) 52%, rgba(1, 11, 18, 0.25) 100%);
}

.success-case--right .success-case__overlay {
  align-items: flex-end;
  text-align: right;
  background: linear-gradient(180deg, rgba(1, 11, 18, 0.82) 0%, rgba(1, 11, 18, 0.58) 52%, rgba(1, 11, 18, 0.25) 100%);
}

.success-case__tag {
  width: fit-content;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 178, 226, 0.35);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.success-case__overlay h3 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.15;
  font-weight: 700;
}

.success-case__overlay p {
  max-width: 60ch;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.success-case__overlay p strong {
  color: #fff;
}

.success-case__result {
  color: #70e8ff !important;
}

@media (max-width: 1024px) {
  .success-case,
  .success-case--left,
  .success-case--right {
    width: 100%;
    align-self: stretch;
    transform: translate3d(0, 24px, 0);
  }

  .success-case {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .success-case {
    border-radius: 18px;
    aspect-ratio: 16 / 10;
  }

  .success-case__overlay {
    padding: 1rem 0.9rem;
    gap: 0.42rem;
  }

  .success-case--right .success-case__overlay {
    align-items: flex-start;
    text-align: left;
    background: linear-gradient(180deg, rgba(1, 11, 18, 0.82) 0%, rgba(1, 11, 18, 0.58) 52%, rgba(1, 11, 18, 0.25) 100%);
  }
}

/* SEO local interactive map */
.seo-map {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: stretch;
}

.seo-map__canvas {
  grid-column: 1 / 2;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(0, 178, 226, 0.2), rgba(0, 178, 226, 0) 48%), linear-gradient(135deg, #092136 0%, #061624 100%);
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.seo-map__instance {
  position: absolute;
  inset: 0;
}

.seo-map__fallback {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #0b2a3f;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.seo-map__cities {
  grid-column: 1 / 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.seo-map__city-btn {
  border: 1px solid rgba(0, 43, 73, 0.2);
  border-radius: 999px;
  background: #f8fbfd;
  color: #425563;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.seo-map__city-btn.is-active {
  color: #fff;
  background: #00b2e2;
  border-color: #00b2e2;
  transform: translateY(-1px);
}

.seo-map__panel {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  border-radius: 20px;
  border: 1px solid rgba(0, 43, 73, 0.16);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(245, 251, 254, 0.92));
  padding: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.seo-map__eyebrow {
  width: fit-content;
  border-radius: 999px;
  padding: 0.25rem 0.56rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0289ad;
  background: rgba(0, 178, 226, 0.12);
}

.seo-map__panel h3 {
  color: #002b49;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  font-weight: 700;
}

.seo-map__panel p {
  color: #4b5563;
  line-height: 1.6;
}

.seo-map__panel ul {
  margin-top: 0.15rem;
  display: grid;
  gap: 0.45rem;
  color: #405161;
}

.seo-map__panel li {
  position: relative;
  padding-left: 1rem;
}

.seo-map__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #00b2e2;
}

.seo-local-copy {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(0, 43, 73, 0.12);
}

.seo-local-copy h3 {
  color: #002b49;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
}

.seo-local-copy p {
  margin-top: 0.7rem;
  color: #4b5563;
  line-height: 1.68;
}

html.dark .seo-map__panel {
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(155deg, rgba(11, 26, 39, 0.92), rgba(8, 21, 32, 0.9));
}

html.dark .seo-map__fallback {
  background: rgba(9, 25, 38, 0.9);
  color: #d7e6ef;
}

html.dark .seo-map__city-btn {
  background: #0c2030;
  color: #9db1c0;
  border-color: rgba(255, 255, 255, 0.2);
}

html.dark .seo-map__city-btn.is-active {
  color: #fff;
  background: #00b2e2;
  border-color: #00b2e2;
}

html.dark .seo-map__panel h3 {
  color: #fff;
}

html.dark .seo-map__panel p,
html.dark .seo-map__panel ul {
  color: #9ca3af;
}

html.dark .seo-local-copy {
  border-top-color: rgba(255, 255, 255, 0.12);
}

html.dark .seo-local-copy h3 {
  color: #fff;
}

html.dark .seo-local-copy p {
  color: #9ca3af;
}

@media (max-width: 1024px) {
  .seo-map {
    grid-template-columns: 1fr;
  }

  .seo-map__canvas,
  .seo-map__cities,
  .seo-map__panel {
    grid-column: auto;
    grid-row: auto;
  }

  .seo-map__canvas {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .seo-map__canvas {
    min-height: 320px;
    border-radius: 16px;
  }

  .seo-map__panel {
    border-radius: 16px;
    padding: 1rem 0.9rem;
  }
}

/* Video gallery */
.video-gallery {
  position: relative;
  margin-top: 1.5rem;
}

.video-gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 48px 24px;
  scroll-behavior: smooth;
}

.video-gallery__track::-webkit-scrollbar {
  display: none;
}

.video-gallery__item {
  scroll-snap-align: center;
}

.video-gallery__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #050c13;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translateZ(0);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.video-gallery__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.video-gallery__item:hover .video-gallery__frame {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 178, 226, 0.25);
}

.video-gallery__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-gallery__badge {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 43, 73, 0.85);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.video-gallery__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.58));
  transition: opacity 0.3s ease;
}

.video-gallery__frame.is-playing .video-gallery__overlay {
  opacity: 0;
  pointer-events: none;
}

.video-gallery__play {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 178, 226, 0.85);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.video-gallery__hint {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.video-gallery__controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.video-gallery__stop,
.video-gallery__cta {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
}

.video-gallery__cta {
  background: rgba(37, 211, 102, 0.75);
  border-color: rgba(255, 255, 255, 0.5);
}

.video-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 3;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.video-gallery__nav:hover {
  background: rgba(0, 178, 226, 0.8);
  transform: translateY(-50%) scale(1.05);
}

.video-gallery__nav--left {
  left: 8px;
}

.video-gallery__nav--right {
  right: 8px;
}

@media (min-width: 1024px) {
  .video-gallery__track {
    grid-auto-columns: minmax(320px, 1fr);
  }
}

@media (max-width: 640px) {
  .video-gallery__track {
    padding: 12px 16px 20px;
    gap: 16px;
  }

  .video-gallery__nav {
    display: none;
  }

  .video-gallery__controls {
    right: 10px;
    bottom: 10px;
  }

  .video-gallery__stop,
  .video-gallery__cta {
    padding: 5px 10px;
    font-size: 0.62rem;
  }
}

/* Control de acceso: baja el formulario en desktop para alinear mejor con el GIF lateral */
@media (min-width: 768px) {
  #formulario .contact-acceso-form {
    margin-top: 10rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  #formulario .contact-acceso-form > * + * {
    margin-top: 0.55rem;
  }

  #formulario .contact-acceso-form .group label {
    margin-bottom: 0.25rem;
  }

  #formulario .contact-acceso-form textarea[name="message"] {
    min-height: 76px;
  }
}

@media (max-width: 767px) {
  header .max-w-7xl {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  header .max-w-7xl > a img.h-10 {
    height: 2rem;
  }

  header .max-w-7xl > div.flex.items-center.gap-1 {
    gap: 0.05rem;
    letter-spacing: 0.08em;
    font-size: 0.65rem;
  }

  header .max-w-7xl > div.flex.items-center.gap-1 > a,
  header .max-w-7xl > div.flex.items-center.gap-1 > button {
    padding: 0.42rem !important;
    font-size: 0.92rem !important;
  }

  header .js-open-login {
    display: none;
  }

  #hero h1 {
    font-size: 1.9rem !important;
    line-height: 1.15;
  }

  #hero p.text-lg {
    font-size: 1rem;
    line-height: 1.6;
  }

  #hero .mt-8 {
    width: 100%;
  }

  #hero .mt-8 a.btn-primary,
  #hero .mt-8 a.btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  #formulario h2 {
    line-height: 1.2;
  }

  #formulario .mt-5 {
    gap: 0.45rem;
  }

  #formulario .mt-5 > span:last-child {
    display: block;
    width: 100%;
    font-size: 0.78rem;
    line-height: 1.35;
    padding: 0.5rem 0.7rem;
    text-wrap: balance;
  }

  #formulario .contact-acceso-form {
    padding: 1rem;
    border-radius: 1rem;
  }

  #formulario .contact-acceso-form input,
  #formulario .contact-acceso-form select,
  #formulario .contact-acceso-form textarea {
    font-size: 16px;
  }

  #formulario aside {
    max-width: 260px;
    margin: 0 auto;
  }

  #formulario aside figure {
    min-height: 0;
    aspect-ratio: 9 / 16;
  }

  .seo-map__cities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .seo-map__city-btn {
    width: 100%;
    justify-content: center;
  }
}
