/* Home — mobile-first dark landing */
/* Los banners del hero traen el texto compuesto en la imagen: se muestran
   completos (8:3, sin recorte ni scrim) y el CTA vive debajo del track. */
.hero {
  position: relative;
  margin-top: 0;
  padding-top: var(--nav-h);
  background: var(--bg-0);
}

.hero-track {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  background: var(--bg-0);
  touch-action: pan-y;
}

@media (min-width: 1025px) {
  .hero-track {
    aspect-ratio: 8 / 3;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s var(--ease);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide picture,
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  object-fit: cover;
}

/* El CTA y los dots van sobre el banner, centrados en el borde inferior. */
.hero-inner {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 2.25rem 0.9rem 0.85rem;
  background: linear-gradient(180deg, rgba(3, 8, 16, 0) 0%, rgba(3, 8, 16, 0.38) 70%, rgba(3, 8, 16, 0.62) 100%);
  pointer-events: none;
}

.hero-inner > * {
  pointer-events: auto;
}

@media (min-width: 768px) {
  .hero-inner {
    gap: 0.7rem;
    padding: 3.5rem 1.5rem 1.2rem;
  }
}

.hero-copy {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

.hero-copy.is-fading {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-copy.is-fading {
    transition: none;
    transform: none;
  }
}

.hero-actions {
  display: flex;
}

.hero-actions .btn {
  min-height: 34px;
  padding: 0.4rem 1rem;
  font-size: 0.76rem;
  box-shadow: 0 6px 22px rgba(3, 8, 16, 0.5);
}

@media (min-width: 768px) {
  .hero-actions .btn {
    min-height: 42px;
    padding: 0.6rem 1.6rem;
    font-size: 0.9rem;
  }
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
}

.hero-dots button {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 6px rgba(3, 8, 16, 0.55);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}

.hero-dots button::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
}

.hero-dots button.is-active {
  width: 26px;
  background: var(--cyan);
}

/* Móvil: laterales invisibles para tapear prev/next. Desktop: chevrons al hover. */
.hero-nav {
  display: block;
}

.hero-nav button {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 34%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.hero-nav button i {
  display: none;
}

.hero-nav [data-hero-prev] {
  left: 0;
}

.hero-nav [data-hero-next] {
  right: 0;
}

.hero-nav [data-hero-prev]:active {
  background: linear-gradient(90deg, rgba(3, 8, 16, 0.28) 0%, transparent 100%);
}

.hero-nav [data-hero-next]:active {
  background: linear-gradient(270deg, rgba(3, 8, 16, 0.28) 0%, transparent 100%);
}

@media (min-width: 768px) {
  .hero-track {
    touch-action: auto;
  }

  .hero-nav button {
    z-index: 3;
    top: 50%;
    bottom: auto;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(5, 10, 18, 0.45);
    color: #fff;
    touch-action: auto;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s var(--ease), background 0.25s var(--ease);
  }

  .hero-nav button i {
    display: inline;
  }

  .hero:hover .hero-nav button,
  .hero-nav button:focus-visible {
    opacity: 1;
  }

  .hero-nav button:hover,
  .hero-nav [data-hero-prev]:active,
  .hero-nav [data-hero-next]:active {
    background: rgba(5, 10, 18, 0.75);
  }

  .hero-nav [data-hero-prev] {
    left: 1rem;
  }

  .hero-nav [data-hero-next] {
    right: 1rem;
  }
}

/* Soluciones integrales */
.offer-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.25;
  margin-bottom: 0.7rem;
  color: var(--cyan);
  text-align: center;
  text-transform: uppercase;
}

.sector-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.sector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: #071018;
  width: 100%;
  text-align: left;
  padding: 0;
}

.sector-card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sector-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.6s var(--ease);
}

.sector-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.08) 10%, rgba(5, 10, 18, 0.78) 72%, rgba(5, 10, 18, 0.94) 100%);
}

.sector-card:hover {
  border-color: rgba(62, 198, 255, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.sector-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.sector-card:hover img {
  transform: scale(1.1);
}

.sector-card-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.1rem 1.05rem 1.15rem;
  width: 100%;
}

.sector-card-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

.sector-card-body p {
  color: rgba(232, 241, 248, 0.82);
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sector-card .more {
  color: var(--cyan);
  font-weight: 650;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sector-card:hover .more i {
  transform: translateX(3px);
}

.sector-card .more i {
  font-size: 0.75rem;
  transition: transform 0.25s var(--ease);
}

@media (min-width: 900px) {
  .sector-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sector-card {
    flex-direction: row;
    align-items: stretch;
    aspect-ratio: auto;
    min-height: 200px;
  }

  .sector-card-media {
    position: relative;
    inset: auto;
    flex: 0 0 38%;
    min-height: 200px;
    overflow: hidden;
  }

  .sector-card-media img {
    position: absolute;
    inset: 0;
  }

  .sector-card-media::after {
    background: linear-gradient(90deg, transparent 40%, rgba(7, 16, 24, 0.35) 100%);
  }

  .sector-card-body {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.6rem;
  }

  .sector-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
  }

  .sector-card-body p {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    font-size: 0.93rem;
    max-width: 62ch;
    margin-bottom: 0.85rem;
  }
}

@media (min-width: 1100px) {
  .sector-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Productos — cards verticales por sector */
.product-sectors {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .product-sectors {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.product-sector-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-sector-card:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 198, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.product-sector-media {
  height: 170px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.025) 10px,
      rgba(255, 255, 255, 0.025) 11px
    );
  border-bottom: 1px solid var(--border);
}

.product-sector-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-sector-card.samm {
  --samm-glow: var(--cyan);
}

.product-sector-card.samm:hover {
  border-color: rgba(62, 198, 255, 0.55);
  box-shadow: 0 14px 32px rgba(62, 198, 255, 0.16);
}

.product-sector-card.samm .product-sector-media {
  position: relative;
  height: 245px;
  background: #050505;
}

.product-sector-card.samm .product-sector-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, transparent 42%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.28) 100%);
}

.samm-compose-bg,
.samm-compose-panel,
.samm-compose-chassis {
  position: absolute;
  pointer-events: none;
}

.product-sector-card.samm .product-sector-media img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-sector-card.samm .samm-compose-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  z-index: 0;
}

.samm-compose-panel,
.samm-compose-chassis {
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}

.product-sector-card.samm .product-sector-media .samm-compose-panel {
  left: 4%;
  bottom: 12%;
  width: auto;
  height: 68%;
  max-width: 50%;
  object-position: left bottom;
  z-index: 3;
}

.product-sector-card.samm .product-sector-media .samm-compose-chassis {
  right: 4%;
  bottom: 12%;
  width: auto;
  height: 60%;
  max-width: 46%;
  object-position: right bottom;
}

.product-sector-card.samm:hover .samm-compose-panel,
.product-sector-card.samm:hover .samm-compose-chassis {
  transform: translateY(-3px);
  filter:
    drop-shadow(0 0 6px rgba(62, 198, 255, 0.95))
    drop-shadow(0 0 18px rgba(62, 198, 255, 0.7))
    drop-shadow(0 0 36px rgba(46, 143, 214, 0.45))
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}

.product-sector-card.samm:hover .product-sector-go {
  color: var(--cyan);
}

.product-sector-card.peplink {
  --peplink-glow: var(--peplink-orange);
}

.product-sector-card.peplink:hover {
  border-color: rgba(255, 184, 28, 0.55);
  box-shadow: 0 14px 32px rgba(255, 184, 28, 0.16);
}

.product-sector-card.peplink .product-sector-media {
  position: relative;
  height: 245px;
  background: #050505;
}

.product-sector-card.peplink .product-sector-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, transparent 42%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.28) 100%);
}

.peplink-compose-bg,
.peplink-compose-router,
.peplink-compose-antenna {
  position: absolute;
  pointer-events: none;
}

.product-sector-card.peplink .product-sector-media img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-sector-card.peplink .peplink-compose-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  z-index: 0;
}

.peplink-compose-router,
.peplink-compose-antenna {
  z-index: 2;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}

.peplink-compose-router {
  left: 3%;
  bottom: 8%;
  height: 84%;
  max-width: 56%;
}

.peplink-compose-antenna {
  right: 4%;
  bottom: 10%;
  height: 68%;
  max-width: 40%;
}

.product-sector-card.peplink:hover .peplink-compose-router,
.product-sector-card.peplink:hover .peplink-compose-antenna {
  transform: translateY(-3px);
  filter:
    drop-shadow(0 0 6px rgba(255, 184, 28, 0.95))
    drop-shadow(0 0 18px rgba(255, 184, 28, 0.7))
    drop-shadow(0 0 36px rgba(237, 152, 1, 0.45))
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}

.product-sector-card.peplink:hover .product-sector-go {
  color: var(--peplink-orange);
}

@media (prefers-reduced-motion: reduce) {
  .peplink-compose-router,
  .peplink-compose-antenna,
  .product-sector-card.peplink:hover .peplink-compose-router,
  .product-sector-card.peplink:hover .peplink-compose-antenna,
  .samm-compose-panel,
  .samm-compose-chassis,
  .product-sector-card.samm:hover .samm-compose-panel,
  .product-sector-card.samm:hover .samm-compose-chassis,
  .must-compose-unit,
  .product-sector-card.must:hover .must-compose-unit {
    transition: none;
    transform: translateX(-50%);
  }
}

.product-sector-card.must {
  --must-glow: var(--must-mint);
}

.product-sector-card.must:hover {
  border-color: rgba(124, 255, 178, 0.5);
  box-shadow: 0 14px 32px rgba(11, 61, 46, 0.35);
}

.product-sector-card.must .product-sector-media {
  position: relative;
  height: 245px;
  background-color: #050505;
  background-image: radial-gradient(
    ellipse 85% 80% at 100% 100%,
    var(--must-green) 0%,
    rgba(11, 61, 46, 0.7) 28%,
    transparent 72%
  );
}

.must-compose-unit {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.product-sector-card.must .product-sector-media img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-sector-card.must .product-sector-media .must-compose-unit {
  left: 50%;
  bottom: 2%;
  width: auto;
  height: 92%;
  max-width: 82%;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}

.product-sector-card.must:hover .must-compose-unit {
  transform: translateX(-50%) translateY(-3px);
  filter:
    drop-shadow(0 0 6px rgba(124, 255, 178, 0.9))
    drop-shadow(0 0 18px rgba(124, 255, 178, 0.55))
    drop-shadow(0 0 36px rgba(11, 61, 46, 0.5))
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}

.product-sector-card.must:hover .product-sector-go {
  color: var(--must-mint);
}

.product-sector-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
  flex: 1;
}

.product-sector-body .tag {
  align-self: flex-start;
  font-size: 0.68rem;
}

.product-sector-body h3 {
  margin: 0;
  font-size: 1.08rem;
}

.product-sector-body p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}

.product-sector-go {
  margin-top: auto;
  padding-top: 0.55rem;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-sector-card:hover .product-sector-go i {
  transform: translateX(3px);
}

.product-sector-go i {
  transition: transform 0.25s var(--ease);
  font-size: 0.75rem;
}

/* Alianzas — marquee grande */
.alliances-strip {
  border-block: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(62, 198, 255, 0.08), transparent 55%),
    #070d16;
  padding: 3rem 0 2.75rem;
  overflow: hidden;
}

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 36s linear infinite;
  padding-inline: 1rem;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 216px;
  height: 148px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

.marquee-item:hover {
  border-color: rgba(62, 198, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

/* Los logos vienen normalizados a un lienzo 640x256 con fondo blanco, así que
   la placa también va en blanco y no hace falta filtrar ni invertir nada. */
.marquee-item img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.marquee-item:hover img {
  transform: scale(1.04);
}

.alliances-strip.is-light {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(62, 198, 255, 0.14), transparent 55%),
    var(--bg-3);
  border-block-color: rgba(62, 198, 255, 0.12);
}

.alliances-strip.is-light h2,
.alliances-strip.is-light .lead {
  color: var(--text);
}

.alliances-strip.is-light .eyebrow {
  color: var(--cyan);
}

.alliances-strip.is-light .marquee-item {
  background: #fff;
  border-color: rgba(232, 241, 248, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.alliances-strip.is-light .marquee-item:hover {
  border-color: rgba(62, 198, 255, 0.4);
}

.alliances-strip.is-light .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.alliances-strip.is-light .btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.alliances-strip.is-compact {
  padding: 1.75rem 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.contact-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 1.5rem;
  }
}

.form-dark,
.map-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.map-wrap {
  padding: 0;
  overflow: hidden;
  min-height: 280px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.form-row {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.form-row label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-dim);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(62, 198, 255, 0.15);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

/* Sobre nosotros en home */
.about-home-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .about-home-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 2.25rem;
  }
}

.about-home-head {
  max-width: 46rem;
  margin-bottom: 0;
}

.about-home-head p {
  color: var(--text-dim);
  margin-top: 0.85rem;
}

.about-home-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.about-home-stat {
  padding: 1.05rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.about-home-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  color: var(--cyan);
  letter-spacing: -0.03em;
}

.about-home-stat span {
  color: var(--text-dim);
  font-size: 0.86rem;
}

.about-home-cta {
  margin-top: 1.75rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s var(--ease), border-color 0.2s ease, color 0.2s ease;
}

.social-row a:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--cyan);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide img,
  .marquee-track {
    animation: none !important;
    transition: none;
  }
}

/* Ofrecemos — diálogo descriptivo */
.offer-dialog {
  width: min(980px, calc(100% - 1.25rem));
  max-width: 100%;
  height: min(92dvh, 780px);
  max-height: 92dvh;
  margin: auto;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: #071018;
  color: var(--text);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.offer-dialog::backdrop {
  background: rgba(3, 8, 14, 0.74);
  backdrop-filter: blur(10px);
}

.offer-dialog-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.offer-dialog-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 10, 18, 0.72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.offer-dialog-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.offer-dialog [data-offer-panel] {
  display: grid;
  grid-template-rows: minmax(0, 22vh) minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
}

.offer-dialog [data-offer-panel][hidden] {
  display: none;
}

@media (min-width: 840px) {
  .offer-dialog [data-offer-panel] {
    grid-template-columns: 0.88fr 1.12fr;
    grid-template-rows: 1fr;
  }
}

.offer-dialog-media {
  min-height: 0;
  overflow: hidden;
  background: #050a12;
}

.offer-dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-dialog-copy {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden auto;
  padding: 1rem 1.15rem 1.1rem;
}

@media (min-width: 840px) {
  .offer-dialog-copy {
    padding: 1.45rem 1.6rem 1.35rem;
  }
}

.offer-dialog-copy .eyebrow {
  font-size: 0.72rem;
}

.offer-dialog-copy h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.offer-dialog-copy .lead {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.offer-groups {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  min-height: 0;
}

@media (min-width: 840px) {
  .offer-groups {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1.1rem;
  }
}

.offer-group h3 {
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.offer-group p,
.offer-group li {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.4;
}

.offer-group ul {
  display: grid;
  gap: 0.22rem;
}

.offer-group li {
  padding-left: 0.85rem;
  position: relative;
}

.offer-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.offer-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.offer-brand {
  display: grid;
  place-items: center;
  height: 46px;
  min-width: 92px;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.offer-brand img {
  max-height: 28px;
  max-width: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.offer-brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.offer-brands-grid .offer-brand {
  width: 100%;
  min-width: 0;
  height: 68px;
  padding: 0.55rem 0.75rem;
}

.offer-brands-grid .offer-brand img {
  max-height: 42px;
  max-width: 148px;
}

.offer-brands-one {
  width: min(100%, 22rem);
  grid-template-columns: 1fr;
}

.offer-brands-one .offer-brand {
  height: 7.5rem;
  padding: 0.4rem 0.85rem;
  overflow: hidden;
}

.offer-brands-one .offer-brand img {
  max-height: none;
  max-width: 118%;
  height: 6.6rem;
  width: auto;
  object-fit: contain;
  transform: scale(1.28);
}

.offer-brand.is-on-dark {
  background: #0b1522;
  border-color: rgba(255, 255, 255, 0.14);
}

.offer-brand.is-link {
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, border-color 0.2s ease;
}

.offer-brand.is-link:hover,
.offer-brand.is-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--cyan);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  outline: none;
}

.offer-dialog-copy .btn {
  margin-top: 0;
  flex-shrink: 0;
  align-self: flex-start;
}

@media (max-width: 839px) {
  .offer-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .offer-dialog-inner {
    height: 100%;
  }

  .offer-dialog-close {
    top: max(0.6rem, env(safe-area-inset-top));
    right: max(0.6rem, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
  }

  .offer-dialog [data-offer-panel] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .offer-dialog-media {
    flex: 0 0 auto;
    height: clamp(7.5rem, 28vw, 10.5rem);
  }

  .offer-dialog-copy {
    overflow: visible;
    flex: 1 0 auto;
    padding: 0.85rem 1rem calc(1.15rem + env(safe-area-inset-bottom));
  }

  .offer-dialog-copy h2 {
    font-size: 1.2rem;
    padding-right: 2.4rem;
  }

  .offer-dialog-copy .lead {
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
  }

  .offer-groups {
    gap: 0.55rem;
    margin-bottom: 0.75rem;
  }

  .offer-brands-grid {
    gap: 0.45rem;
  }

  .offer-brands-one {
    width: min(100%, 20rem);
    grid-template-columns: 1fr;
  }

  .offer-brands-one .offer-brand {
    height: 6.75rem;
    padding: 0.35rem 0.7rem;
  }

  .offer-brands-one .offer-brand img {
    max-height: none;
    max-width: 118%;
    height: 5.9rem;
  }

  .offer-brands-grid .offer-brand {
    height: 54px;
    padding: 0.35rem 0.45rem;
  }

  .offer-brands-grid .offer-brand img {
    max-height: 32px;
    max-width: 118px;
  }

  .offer-brands-one .offer-brand img {
    max-height: none;
    max-width: 118%;
    height: 5.9rem;
  }

  .offer-dialog-copy .btn {
    width: 100%;
    justify-content: center;
  }
}
