@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-400.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #070a10;
  --band: #101824;
  --tile: #1a2434;
  --tile-edge: rgba(64, 96, 136, 0.55);
  --text: #eceef2;
  --muted: #969ca6;
  --accent: #5ad6ff;
  --accent-violet: #ac7cff;
  --gold: #c9a46a;
  --cta-bg: rgba(52, 108, 186, 0.28);
  --cta-text: #9ec8f8;
  --cta-edge: rgba(84, 146, 224, 0.55);
  --online: #5ad28c;
  --warn: #d2b45a;
  --down: #dc4e4e;
  --offline: #787e88;
  --radius: 18px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-brand: "Outfit", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Fixed wash — avoids repainting huge radial gradients on every scroll tick */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% 18%, rgba(40, 78, 140, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 80%, rgba(40, 90, 110, 0.08), transparent 50%),
    var(--ink);
  contain: strict;
}

/* While scrolling: freeze paint-heavy transitions / pulse so frames stay stable */
html.hub-is-scrolling .hub-gate,
html.hub-is-scrolling .hub-gate-img,
html.hub-is-scrolling .hub-gate-copy,
html.hub-is-scrolling .hub-gate::after,
html.hub-is-scrolling .card,
html.hub-is-scrolling .card-cover img,
html.hub-is-scrolling .category,
html.hub-is-scrolling .category-banner-slide,
html.hub-is-scrolling .category-banner-app,
html.hub-is-scrolling .catalog-pick-card,
html.hub-is-scrolling .catalog-pick-card::before,
html.hub-is-scrolling .btn-sitio,
html.hub-is-scrolling .btn-abrir,
html.hub-is-scrolling .chip-link {
  transition: none !important;
}

html.hub-is-scrolling .hub-gate.is-active,
html.hub-is-scrolling .hub-pick-hint {
  animation: none !important;
}

html.hub-is-scrolling .category-banner-slide,
html.hub-is-scrolling .hub-hero-video {
  animation-play-state: paused !important;
}

html.hub-is-scrolling .hub-gate-img,
html.hub-is-scrolling .hub-gate.is-active .hub-gate-img,
html.hub-is-scrolling .card:hover .card-cover img {
  filter: none !important;
}

html.hub-is-scrolling .category-banner-slide:not(.is-active) {
  content-visibility: hidden;
}

body {
  min-height: 100dvh;
}

/* —— Full-bleed hero —— */
.hub-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  /* Intro 16:9 — framed recuadro, no side letterbox */
  min-height: clamp(220px, 36vw, 420px);
  width: auto;
  margin: 12px 28px 0;
  overflow: hidden;
  background: #05080e;
  border-radius: 18px;
  border: 1px solid rgba(64, 96, 136, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 28px rgba(0, 0, 0, 0.35);
  transition: min-height 0.55s ease;
}

.hub-hero[data-hero-state="ended"],
.hub-hero[data-hero-state="static"] {
  min-height: clamp(180px, 22vw, 300px);
}

.hub-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
}

.hub-hero-video,
.hub-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hub-hero-video {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s ease;
}

/* Al terminar: el video se elimina por completo (no último frame) */
.hub-hero[data-hero-state="ended"] .hub-hero-video,
.hub-hero[data-hero-state="static"] .hub-hero-video {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.hub-hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
}

.hub-hero[data-hero-state="ended"] .hub-hero-fallback,
.hub-hero[data-hero-state="static"] .hub-hero-fallback {
  display: block;
}

.hub-hero-fallback .hub-hero-img,
.hub-hero-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.hub-hero-img {
  image-rendering: -webkit-optimize-contrast;
}

@media (prefers-reduced-motion: reduce) {
  .hub-hero-video {
    display: none !important;
  }
  .hub-hero-fallback {
    display: block !important;
  }
}

.hub-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  transition: opacity 0.45s ease;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.12) 0%, rgba(5, 8, 14, 0.08) 40%, rgba(7, 10, 16, 0.42) 100%);
}

/* After video: light scrim — brand art already has INNOVA HUB text */
.hub-hero[data-hero-state="ended"] .hub-hero-scrim,
.hub-hero[data-hero-state="static"] .hub-hero-scrim {
  opacity: 0.28;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.08) 0%, rgba(5, 8, 14, 0.04) 50%, rgba(7, 10, 16, 0.4) 100%);
}

.hub-hero-content {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 56px));
  padding: 0;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.hub-hero[data-hero-state="ended"] .hub-hero-content,
.hub-hero[data-hero-state="static"] .hub-hero-content {
  opacity: 1;
  padding: 0;
}

.hub-brand-sr,
.hub-tagline-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hub {
  max-width: 1320px;
  margin: 0 auto;
  /* Top padding matches hero top margin so gap above/below header is equal */
  padding: 12px 28px 16px;
  display: flex;
  flex-direction: column;
}

.hub-board {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  flex: 0 0 auto;
  width: 100%;
}

/* After hero settles: keep gates + hint in the first screen when possible */
.hub-hero[data-hero-state="ended"] ~ .hub,
.hub-hero[data-hero-state="static"] ~ .hub {
  padding-bottom: max(12px, calc(8px + env(safe-area-inset-bottom, 0px)));
}

/* No section selected: hint sits directly under the gates (full content width) */
body.hub-awaiting-pick .hub-board {
  width: 100%;
  margin-top: 0;
}
body.hub-awaiting-pick .hub-foot {
  margin-top: 16px;
}
body.hub-awaiting-pick .hub-pick-hint {
  width: 100%;
}

/* —— Gate cards under hero —— */
/* Idle desktop: 4 in one row. Idle mobile: 1-col (see max-width:720). */
.hub-gates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
  padding: 2px 0 4px;
}

/* After a gate is selected: compact 2×2 at all breakpoints */
.hub--section-open .hub-gates,
.hub-gates.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hub--section-open .hub-gate,
.hub-gates.is-compact .hub-gate {
  min-height: clamp(100px, 12vw, 140px);
}

.hub-gate {
  appearance: none;
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: clamp(132px, 16vw, 172px);
  padding: 0;
  border: 1px solid rgba(100, 140, 190, 0.32);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  color: #f2f5f9;
  text-align: left;
  font: inherit;
  background: #0a1018;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.24);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

/* Soft shine sweep across gate cards */
.hub-gate::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.1) 48%,
    rgba(140, 210, 255, 0.14) 52%,
    transparent 65%
  );
  transform: translateX(-30%) rotate(8deg);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.35s ease;
}

.hub-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0.7;
  transition: opacity 0.22s ease, box-shadow 0.22s ease;
}

.hub-gate-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a1018;
}

.hub-gate-media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hub-gate-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hub-gate-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 14, 0.08) 0%,
    rgba(5, 8, 14, 0.22) 45%,
    rgba(5, 8, 14, 0.78) 100%
  );
  transition: background 0.3s ease;
}

.hub-gate[data-gate="catalogos"] .hub-gate-img {
  object-position: center 35%;
}

.hub-gate[data-gate="celular"] .hub-gate-img {
  object-position: center 45%;
}

.hub-gate[data-gate="pc"] .hub-gate-img {
  object-position: center 48%;
}

.hub-gate[data-gate="sitios"] .hub-gate-img {
  object-position: center 40%;
}

.hub-gate-copy {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 5px;
  padding: 20px 18px 18px;
  transition: transform 0.22s ease;
}

.hub-gate-label {
  font-family: var(--font);
  font-size: clamp(1.22rem, 2.4vw, 1.48rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.12;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.hub-gate-blurb {
  font-family: var(--font);
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  font-weight: 450;
  color: rgba(228, 234, 242, 0.88);
  letter-spacing: 0.01em;
  line-height: 1.3;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.hub-gate:hover {
  border-color: rgba(90, 214, 255, 0.55);
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(90, 214, 255, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(70, 160, 230, 0.12);
}

.hub-gate:hover::after {
  opacity: 1;
  transform: translateX(55%) rotate(8deg);
}

.hub-gate:hover::before {
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px rgba(160, 210, 255, 0.22),
    inset 0 -40px 60px rgba(40, 100, 180, 0.12);
}

.hub-gate:hover .hub-gate-img {
  transform: scale(1.12);
}

.hub-gate:hover .hub-gate-copy {
  transform: translateY(-2px);
}

.hub-gate:hover .hub-gate-label {
  color: #ffffff;
  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(90, 214, 255, 0.25);
}

.hub-gate:hover .hub-gate-blurb {
  color: rgba(235, 242, 250, 0.95);
}

.hub-gate:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.1s;
}

.hub-gate.is-active {
  border-color: rgba(90, 214, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 2px rgba(90, 214, 255, 0.28),
    0 12px 22px rgba(0, 0, 0, 0.32);
}

.hub-gate.is-active .hub-gate-img {
  transform: scale(1.08);
}

.hub-gate.is-active::before {
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(160, 210, 255, 0.28);
}

@keyframes hub-gate-pulse {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 0 2px rgba(90, 214, 255, 0.28),
      0 16px 34px rgba(0, 0, 0, 0.38),
      0 0 24px rgba(70, 160, 230, 0.12);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 2px rgba(120, 220, 255, 0.4),
      0 18px 38px rgba(0, 0, 0, 0.4),
      0 0 40px rgba(90, 200, 255, 0.22);
  }
}

.hub-gate:focus {
  outline: none;
}

.hub-gate:focus-visible {
  outline: none;
  border-color: rgba(90, 214, 255, 0.85);
  box-shadow:
    0 0 0 2px rgba(90, 214, 255, 0.5),
    0 12px 28px rgba(0, 0, 0, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  .hub-gate,
  .hub-gate-img,
  .hub-gate-copy,
  .hub-gate::after,
  .hub-pick-hint,
  .catalog-pick-card,
  .catalog-pick-card::before {
    transition: none !important;
    animation: none !important;
  }
  .hub-gate:hover,
  .hub-gate:active,
  .hub-gate.is-active,
  .catalog-pick-card:hover:not(.is-soon) {
    transform: none;
  }
  .hub-gate:hover .hub-gate-img,
  .hub-gate.is-active .hub-gate-img {
    transform: scale(1.04);
  }
  .hub-gate::after {
    display: none;
  }
}

.hub-pick-hint {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  margin: 2px 0 10px;
  padding: 15px 22px;
  text-align: center;
  font-family: var(--font);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(230, 240, 250, 0.94);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  border: 1px solid rgba(100, 170, 230, 0.38);
  background:
    radial-gradient(ellipse 90% 140% at 50% -20%, rgba(90, 190, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(32, 50, 76, 0.78), rgba(12, 20, 32, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(40, 80, 130, 0.12),
    0 0 28px rgba(60, 150, 230, 0.14),
    0 10px 26px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.hub-pick-hint::before {
  content: none;
}

@keyframes hub-hint-breathe {
  0%,
  100% {
    border-color: rgba(100, 170, 230, 0.32);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 0 1px rgba(40, 80, 130, 0.1),
      0 0 22px rgba(60, 150, 230, 0.1),
      0 10px 26px rgba(0, 0, 0, 0.26);
  }
  50% {
    border-color: rgba(120, 210, 255, 0.48);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 0 0 1px rgba(60, 120, 180, 0.16),
      0 0 34px rgba(70, 170, 255, 0.2),
      0 12px 30px rgba(0, 0, 0, 0.3);
  }
}

.catalog-pick-grid--board {
  margin-top: 2px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category[data-cat="sitios-web"] .category-apps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.category {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  background-color: #121a26;
  background-image: linear-gradient(180deg, rgba(40, 62, 92, 0.55), transparent);
  background-size: 100% 120px;
  background-repeat: no-repeat;
  border: 1px solid rgba(80, 120, 170, 0.32);
  border-radius: 20px;
  padding: 12px 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
  contain: layout style paint;
}

.category:hover {
  border-color: rgba(100, 150, 200, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Full-width thematic HD banner header per category (rotates per app) */
.category-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  min-height: 96px;
  height: clamp(88px, 10vw, 118px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 106, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 22px rgba(0, 0, 0, 0.26);
  background: linear-gradient(135deg, #162032, #0e1520);
}

.category-banner--plain {
  min-height: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.category-banner-rotator {
  position: absolute;
  inset: 0;
}

.category-banner-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
}

.category-banner-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.category-banner-media {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
}

.category-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.category-banner[data-cat="suite"] .category-banner-img {
  object-position: center 40%;
}

.category-banner[data-cat="belleza"] .category-banner-img {
  object-position: center 42%;
}

.category-banner[data-cat="gestion"] .category-banner-img {
  object-position: center 48%;
}

.category-banner[data-cat="aplicaciones-pc"] .category-banner-img {
  object-position: center 45%;
}

.category-banner[data-cat="ganaderia-ap"] .category-banner-img {
  object-position: center 55%;
}

.category-banner[data-cat="catalogos"] .category-banner-img {
  object-position: center 38%;
}

.category-banner[data-cat="sitios-web"] .category-banner-img {
  object-position: center 42%;
}

.category-banner[data-cat="sitios-tiendas"] .category-banner-img {
  object-position: center 40%;
}

.category-banner-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(6, 10, 16, 0.62) 0%,
    rgba(6, 10, 16, 0.28) 42%,
    rgba(6, 10, 16, 0.1) 100%
  );
  pointer-events: none;
}

.category-banner::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 196, 120, 0.45), transparent);
  pointer-events: none;
  z-index: 3;
}

.category-banner-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 18px 12px;
  max-width: min(92%, 28rem);
}

.category-label {
  margin: 0;
  writing-mode: horizontal-tb;
  transform: none;
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.4vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f3e8d4;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.category-banner-app {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(180, 220, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  min-height: 1.2em;
  transition: opacity 0.35s ease;
}

.category-banner-app.is-swap {
  opacity: 0;
}

.category-apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

/* Wide desktop: 5 readable cards. Laptop (~1366) stays on the 4-column rule above. */
@media (min-width: 1600px) {
  .hub {
    max-width: 1680px;
  }
  .category-apps,
  .hub--section-open .category[data-cat="suite"] .category-apps,
  .hub--section-open .category[data-cat="belleza"] .category-apps,
  .hub--section-open .category[data-cat="gestion"] .category-apps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }
  .category[data-cat="sitios-web"] .category-apps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.category[data-cat="aplicaciones-pc"] .category-apps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 1600px) {
  .category[data-cat="aplicaciones-pc"] .category-apps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }
}

.card {
  display: block;
  padding: 0;
  border-radius: 14px;
  background: #101826;
  border: 1px solid rgba(110, 150, 200, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 14px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 0;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
  contain: layout style paint;
}

/* Full-bleed media + docked CTAs (no empty footer band) */
.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a1018;
  border-radius: inherit;
}

.card-hit {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  z-index: 0;
}

.card-hit:focus {
  outline: none;
}

.card-hit:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(90, 214, 255, 0.85);
  border-radius: inherit;
}

.card-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 6px 16px;
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.9) 0%, rgba(4, 8, 14, 0.5) 55%, transparent 100%);
  pointer-events: none;
}

.card-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 6px 6px;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 14, 0.55) 28%, rgba(4, 8, 14, 0.94) 100%);
  pointer-events: none;
}

.card-blurb {
  margin: 0;
  padding: 0 2px;
  font-family: var(--font);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: rgba(232, 238, 246, 0.9);
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.45);
}

.card-dock .card-actions {
  pointer-events: auto;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(90, 214, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(90, 214, 255, 0.14),
    0 10px 18px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.card:hover .card-cover img {
  transform: scale(1.08);
}

.card:active {
  transform: translateY(0) scale(0.99);
}

/* Keep card lift on focus only when the image hit is focused — not dock buttons */
.card:has(.card-hit:focus-visible) {
  border-color: rgba(90, 214, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(90, 214, 255, 0.14),
    0 14px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.card-body,
.card-body-btn {
  display: none;
}

.card-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 22px;
  color: inherit;
  font: inherit;
}

.card-icon-btn:focus-visible {
  outline: 2px solid rgba(90, 214, 255, 0.85);
  outline-offset: 3px;
}

.card.is-disabled {
  opacity: 0.72;
  cursor: default;
}

.card.is-disabled:hover,
.card.is-disabled:focus-within {
  transform: none;
  border-color: var(--tile-edge);
  box-shadow: none;
}

.card-cover {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
}

.card-cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Full-width banner under a Metra+Psic pair — ~half height of tall cards */
.card.is-wide-half {
  grid-column: 1 / -1;
}

.card.is-wide-half .card-media {
  aspect-ratio: 21 / 7;
}

.card.is-wide-half .card-name {
  font-size: 1.05rem;
}

.card.is-wide-half .card-caption {
  padding: 12px 12px 28px;
  justify-content: flex-start;
}

.card.is-wide-half .card-dock {
  padding: 28px 12px 10px;
}

/* Sitios Web full-row card: spans grid like a minibanner, height ≈ one 4/5 card in 3-col */
.card.is-wide-row {
  grid-column: 1 / -1;
}

.card.is-wide-row .card-media {
  aspect-ratio: 12 / 5;
}

.card.is-wide-row .card-name {
  font-size: 1.02rem;
}

.card.is-wide-row .card-caption {
  padding: 12px 14px 28px;
  justify-content: flex-start;
}

.card.is-wide-row .card-dock {
  padding: 28px 14px 10px;
}

/* Sitios Web: same compact 4-col cards as Apps Celular (~280–360px), not 3 giant tiles */
.category[data-cat="sitios-web"] .category-apps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.category[data-cat="sitios-web"] .card:not(.is-wide-row) {
  grid-column: auto;
}

.category[data-cat="sitios-web"] .card.is-pair-half {
  grid-column: auto;
}

.category[data-cat="sitios-web"] .card.is-row-trio.is-row-trio-lead:not(.is-wide-row) {
  grid-column: auto;
}

.category[data-cat="sitios-web"] .card.is-row-trio:not(.is-row-trio-lead):not(.is-wide-row) {
  grid-column: auto;
}

.category[data-cat="sitios-web"] .card.is-wide-row {
  grid-column: 1 / -1;
}

.card.is-pair-half .card-media {
  aspect-ratio: 4 / 5;
}

.card-dot {
  position: relative;
  right: auto;
  bottom: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  box-shadow: 0 0 8px currentColor;
}

.card-dot.online { background: var(--online); color: var(--online); }
.card-dot.external { background: var(--warn); color: var(--warn); }
.card-dot.offline { background: var(--down); color: var(--down); }

.card-name {
  margin: 0;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.15;
  min-height: 0;
  display: block;
  color: #f4f7fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85), 0 0 18px rgba(0, 0, 0, 0.45);
}

.category[data-cat="aplicaciones-pc"] .card-name {
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  line-height: 1.18;
  padding: 0 2px;
}

.category[data-cat="aplicaciones-pc"] .card-caption {
  padding: 8px 6px 28px;
  align-items: flex-start;
}

/* Dock CTA row — equal WEB/APP, square copy */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 26px;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  background: transparent;
}

.card:not(.has-sitio) .card-actions {
  grid-template-columns: 1fr 26px;
}

.card:not(.has-sitio) .btn-abrir {
  grid-column: 1;
}

.card.is-web-only .card-actions {
  grid-template-columns: 1fr 26px;
}

.card.is-web-only .btn-sitio {
  grid-column: 1;
}

.card.is-catalog-picker .card-actions {
  grid-template-columns: 1fr;
}

.card.is-desc-only .card-actions {
  grid-template-columns: 1fr;
}

.card.is-desc-only .btn-abrir {
  letter-spacing: 0.08em;
}

/* Marketing site CTA — gold pill, text only */
.btn-sitio {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 26px;
  padding: 0 4px;
  border-radius: 7px;
  border: 1px solid rgba(201, 164, 106, 0.65);
  background: rgba(28, 22, 12, 0.82);
  color: #f3e6cf;
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  /* Opaque fill — avoid backdrop-filter on every card CTA (scroll paint cost) */
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.12);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-sitio:hover {
  border-color: rgba(232, 196, 120, 0.95);
  color: #fff8ea;
  background: rgba(70, 52, 24, 0.9);
  transform: translateY(-1px);
}

.btn-sitio:focus {
  outline: none;
}

.btn-sitio:focus-visible {
  outline: none;
  border-color: rgba(232, 196, 120, 0.95);
  color: #fff8ea;
  background: rgba(70, 52, 24, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 180, 0.12),
    0 0 0 2px rgba(232, 196, 120, 0.55);
}

.btn-abrir {
  appearance: none;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(100, 180, 255, 0.7);
  background: rgba(16, 36, 64, 0.88);
  color: #e8f3ff;
  font: inherit;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 4px;
  min-height: 26px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(200, 230, 255, 0.14);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

a.btn-abrir:hover,
button.btn-abrir:hover {
  border-color: rgba(120, 210, 255, 0.95);
  color: #ffffff;
  background: rgba(30, 70, 130, 0.95);
  transform: translateY(-1px);
}

a.btn-abrir:focus,
button.btn-abrir:focus {
  outline: none;
}

a.btn-abrir:focus-visible,
button.btn-abrir:focus-visible {
  outline: none;
  border-color: rgba(120, 210, 255, 0.95);
  color: #ffffff;
  background: rgba(30, 70, 130, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(200, 230, 255, 0.14),
    0 0 0 2px rgba(90, 214, 255, 0.55);
}

.card.is-disabled .btn-abrir {
  background: rgba(46, 54, 68, 0.7);
  border-color: rgba(62, 72, 88, 0.8);
  color: var(--muted);
  box-shadow: none;
}

.chip-link {
  appearance: none;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 7px;
  border: 1px solid rgba(168, 196, 220, 0.45);
  background: rgba(10, 16, 28, 0.88);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  justify-self: stretch;
  align-self: stretch;
  padding: 0;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

button.chip-link:hover {
  border-color: rgba(90, 214, 255, 0.75);
}

button.chip-link:focus {
  outline: none;
}

button.chip-link:focus-visible {
  outline: none;
  border-color: rgba(90, 214, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(90, 214, 255, 0.55);
}

.chip-link svg {
  width: 14px;
  height: 14px;
  stroke: #c5d8ec;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.card.is-disabled .chip-link {
  opacity: 0.45;
}

.hub-foot {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 10px 4px max(10px, env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: rgba(150, 160, 176, 0.72);
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(64, 96, 136, 0.16);
}

.hub-foot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 0;
}

.hub-foot-brand {
  color: rgba(168, 180, 198, 0.78);
}

.hub-foot-install {
  appearance: none;
  border: 1px solid rgba(212, 175, 106, 0.45);
  background: rgba(212, 175, 106, 0.1);
  color: #e8d5a8;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.hub-foot-install:hover,
.hub-foot-install:focus-visible {
  background: rgba(212, 175, 106, 0.2);
  border-color: rgba(212, 175, 106, 0.7);
  color: #f4e6c4;
  outline: none;
}

.hub-foot-install[hidden] {
  display: none !important;
}

/* Hub shell viewer — keeps PWA alive; chrome belongs to Hub, not the apps */
.hub-viewer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hub-viewer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.hub-viewer-sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #070a10;
  transform: translateY(8px);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.hub-viewer.is-open .hub-viewer-sheet {
  transform: translateY(0);
}

.hub-viewer-sheet.is-dragging {
  transition: none;
}

/* Slim glass rail ABOVE iframe — logos in apps stay fully visible */
.hub-viewer-chrome {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: calc(36px + env(safe-area-inset-top, 0px));
  min-height: calc(36px + env(safe-area-inset-top, 0px));
  padding:
    max(5px, env(safe-area-inset-top, 0px))
    12px
    5px;
  background: rgba(8, 12, 20, 0.42);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(212, 175, 106, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 6px 18px rgba(0, 0, 0, 0.2);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.hub-viewer-back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 106, 0.48);
  background: rgba(255, 245, 220, 0.07);
  -webkit-backdrop-filter: blur(12px) saturate(1.45);
  backdrop-filter: blur(12px) saturate(1.45);
  color: rgba(244, 230, 196, 0.95);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 2px 10px rgba(0, 0, 0, 0.28);
}

.hub-viewer-back:hover,
.hub-viewer-back:focus-visible {
  background: rgba(212, 175, 106, 0.18);
  border-color: rgba(232, 201, 130, 0.72);
  color: #f7edd4;
  outline: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 3px 12px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(212, 175, 106, 0.12);
}

.hub-viewer-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.85em;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.88;
  transform: translateY(-0.5px);
}

.hub-viewer-label {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

.hub-viewer-hint {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(232, 213, 168, 0.5);
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-viewer-frame {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  border: 0;
  background: #070a10;
  min-height: 0;
}

body.hub-viewer-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 1180px) {
  /* Keep 4-in-a-row on tablet/wide; never force 2×2 on entry gates */
  .hub-gate {
    min-height: clamp(120px, 14vw, 156px);
  }
  .hub-gate-label {
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  }
  .hub-gate-blurb {
    font-size: clamp(0.82rem, 1.6vw, 1.02rem);
  }
}

@media (max-width: 1100px) {
  .category-apps,
  .hub--section-open .category[data-cat="suite"] .category-apps,
  .hub--section-open .category[data-cat="belleza"] .category-apps,
  .hub--section-open .category[data-cat="gestion"] .category-apps,
  .category[data-cat="aplicaciones-pc"] .category-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category[data-cat="sitios-web"] .category-apps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .category {
    min-height: 0;
  }
  .category-banner {
    min-height: 110px;
    height: clamp(100px, 12vw, 130px);
  }
  .card-media {
    aspect-ratio: 4 / 5;
  }
  .card-actions {
    grid-template-columns: 1fr 1fr 26px;
    gap: 5px;
  }
  .card:not(.has-sitio) .card-actions,
  .card.is-web-only .card-actions {
    grid-template-columns: 1fr 26px;
  }
  .card.is-catalog-picker .card-actions,
  .card.is-desc-only .card-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hub {
    padding: 10px 14px 36px;
  }
  /* Idle entry: each gate on its own row */
  .hub-gates {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }
  /* Active section: gates collapse to compact 2×2 */
  .hub--section-open .hub-gates,
  .hub-gates.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hub-gate {
    min-height: 118px;
    border-radius: 14px;
  }
  .hub--section-open .hub-gate,
  .hub-gates.is-compact .hub-gate {
    min-height: 96px;
  }
  .hub-gate-copy {
    padding: 16px 16px 14px;
  }
  .hub-gate-label {
    font-size: 1.35rem;
  }
  .hub-gate-blurb {
    font-size: 1rem;
  }
  .hub-pick-hint {
    margin: 0 0 8px;
    padding: 14px 16px;
    font-size: 1.02rem;
    letter-spacing: 0.09em;
    border-radius: 14px;
  }
  .catalog-pick-grid,
  .catalog-pick-grid--board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .category[data-cat="sitios-web"] .category-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .category[data-cat="sitios-web"] .card-name {
    font-size: 0.72rem;
  }
  .category[data-cat="sitios-web"] .btn-sitio,
  .category[data-cat="sitios-web"] .btn-abrir,
  .category[data-cat="sitios-web"] .chip-link {
    min-height: 28px;
    font-size: 0.58rem;
  }
  .hub-hero {
    min-height: clamp(180px, 52vw, 260px);
    margin: 10px 12px 0;
    border-radius: 16px;
    place-items: center;
  }
  .hub-hero[data-hero-state="ended"],
  .hub-hero[data-hero-state="static"] {
    min-height: clamp(130px, 36vw, 190px);
  }
  .hub-hero-video,
  .hub-hero-img,
  .hub-hero-fallback img {
    object-fit: cover;
    object-position: center center;
  }
  .hub-hero[data-hero-state="ended"] .hub-hero-content,
  .hub-hero[data-hero-state="static"] .hub-hero-content {
    width: min(100%, calc(100% - 24px));
    padding: 0;
  }
  .hub-hero-fallback .hub-hero-img,
  .hub-hero-fallback img {
    object-position: center 40%;
  }
  .hub {
    padding: 10px 12px 36px;
  }
  /* Mobile: compact banner header — frees width for cards */
  .category {
    padding: 10px;
    gap: 10px;
    border-radius: 18px;
  }
  .category-banner {
    min-height: 92px;
    height: clamp(86px, 24vw, 108px);
    border-radius: 12px;
  }
  .category-banner-copy {
    padding: 0 14px 10px;
    gap: 2px;
  }
  .category-label {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.75),
      0 0 12px rgba(0, 0, 0, 0.45);
  }
  .category-banner-app {
    font-size: 0.72rem;
  }
  .category-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  /* Phone: two compact Sitios cards, same as other sections */
  .category[data-cat="sitios-web"] .category-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .category[data-cat="sitios-web"] .card.is-row-trio.is-row-trio-lead:not(.is-wide-row) {
    grid-column: auto;
  }
  .category[data-cat="sitios-web"] .card.is-row-trio:not(.is-row-trio-lead):not(.is-wide-row) {
    grid-column: auto;
  }
  .hub--section-open .category[data-cat="suite"] .category-apps,
  .hub--section-open .category[data-cat="belleza"] .category-apps,
  .hub--section-open .category[data-cat="gestion"] .category-apps,
  .category[data-cat="aplicaciones-pc"] .category-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .card {
    border-radius: 12px;
  }
  .card-media {
    aspect-ratio: 3 / 4;
  }
  .card.is-wide-half .card-media {
    aspect-ratio: 21 / 9;
  }
  .card.is-wide-row .card-media {
    aspect-ratio: 12 / 5;
  }
  .card-name {
    font-size: 0.92rem;
  }
  .card-caption {
    padding: 6px 6px 14px;
  }
  .card-dock {
    gap: 4px;
    padding: 16px 6px 6px;
  }
  .card-blurb {
    font-size: 0.62rem;
  }
  .card-actions {
    grid-template-columns: 1fr 1fr 32px;
    gap: 4px;
  }
  .card:not(.has-sitio) .card-actions,
  .card.is-web-only .card-actions {
    grid-template-columns: 1fr 32px;
  }
  .card.is-catalog-picker .card-actions,
  .card.is-desc-only .card-actions {
    grid-template-columns: 1fr;
  }
  .btn-sitio,
  .btn-abrir {
    min-height: 32px;
    padding: 0 4px;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    border-radius: 8px;
  }
  .chip-link {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
  }
}

/* —— App detail modal (premium shell) —— */
body.modal-open {
  overflow: hidden;
}

.app-modal {
  --modal-ink: #080d15;
  --modal-panel: #0b121c;
  --modal-line: rgba(110, 158, 210, 0.32);
  --modal-line-soft: rgba(110, 158, 210, 0.16);
  --modal-glow: rgba(90, 214, 255, 0.55);
  --modal-gold: rgba(232, 196, 120, 0.9);
  --modal-radius: 20px;
  --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px 14px;
  font-family: var(--font);
  pointer-events: none;
}

.app-modal.is-open {
  pointer-events: auto;
}

.app-modal[hidden] {
  display: none !important;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 50% 12%, rgba(48, 92, 148, 0.22), transparent 58%),
    rgba(3, 6, 12, 0.88);
  opacity: 0;
  transition: opacity 0.28s var(--modal-ease);
}

.app-modal.is-open .app-modal-backdrop {
  opacity: 1;
}

.app-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: min(88dvh, 740px);
  overflow: hidden;
  border-radius: var(--modal-radius);
  background:
    linear-gradient(180deg, rgba(18, 28, 42, 0.98) 0%, var(--modal-panel) 28%, #080e16 100%);
  border: 1px solid var(--modal-line);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 0;
  outline: none;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  opacity: 0;
  transform: translateY(18px) scale(0.975);
  transition:
    opacity 0.3s var(--modal-ease),
    transform 0.3s var(--modal-ease);
}

.app-modal.is-open .app-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-modal-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

/* Compact shell: hero + scroll + sticky action bar */
.modal-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(88dvh, 740px);
}

.modal-banner {
  position: relative;
  width: 100%;
  height: clamp(160px, 22vw, 200px);
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  margin: 0;
  background: #0a1018;
}

.modal-banner-media,
.modal-banner-img {
  display: block;
  width: 100%;
  height: 100%;
}

.modal-banner-img {
  object-fit: cover;
  object-position: center 42%;
}

.modal-banner[data-app="agropedidos"] .modal-banner-img,
.modal-banner[data-app="lactia"] .modal-banner-img {
  object-position: center 48%;
}

.modal-banner[data-app="muscle-pro"] .modal-banner-img,
.modal-banner[data-app="casino"] .modal-banner-img,
.modal-banner[data-app="betvision"] .modal-banner-img {
  object-position: center 40%;
}

.modal-banner[data-app="comida-ya"] .modal-banner-img,
.modal-banner[data-app="lavadero"] .modal-banner-img {
  object-position: center 45%;
}

.modal-hero--compact {
  padding-bottom: 8px;
}

.modal-stage {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(12, 18, 28, 0.92), rgba(8, 12, 20, 0.96)),
    var(--modal-bg, none) center / cover no-repeat;
}

.modal-stage--hero {
  height: clamp(156px, 23vw, 196px);
}

.modal-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--modal-bg, none);
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  transition: transform 0.7s var(--modal-ease);
}

.app-modal.is-open .modal-stage::before {
  transform: scale(1.01);
}

.modal-stage-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 10, 16, 0.22) 0%, rgba(6, 10, 16, 0.48) 42%, rgba(6, 10, 16, 0.94) 100%),
    radial-gradient(120% 80% at 80% 0%, rgba(90, 214, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.modal-stage-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 100%;
}

.modal-kicker {
  margin: 0;
  font-family: var(--font);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(158, 210, 255, 0.92);
}

.modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 10px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 158, 210, 0.35) transparent;
}

.modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(110, 158, 210, 0.32);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.catalog-pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-bottom: 6px;
}

.catalog-pick-card {
  position: relative;
  isolation: isolate;
  min-height: 148px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--modal-line-soft);
  background: #101824;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.2s ease,
    transform 0.2s var(--modal-ease),
    box-shadow 0.2s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 148px;
}

.catalog-pick-card:hover {
  border-color: rgba(110, 170, 230, 0.45);
  transform: translateY(-1px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.catalog-pick-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--pick-bg, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 0.45s var(--modal-ease);
}

.catalog-pick-card:hover::before {
  transform: scale(1.06);
}

.catalog-pick-card.is-soon {
  opacity: 0.62;
}

.catalog-pick-card.is-soon:hover {
  transform: none;
}

.catalog-pick-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(92deg, rgba(6, 10, 16, 0.88) 0%, rgba(6, 10, 16, 0.58) 48%, rgba(6, 10, 16, 0.26) 100%);
  pointer-events: none;
}

.catalog-pick-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-end;
  min-height: 148px;
  padding: 14px;
}

.catalog-pick-name {
  margin: 0;
  font-family: var(--font);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f4f6fa;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.catalog-pick-desc {
  margin: 0;
  font-family: var(--font);
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(210, 220, 232, 0.88);
  max-width: 34rem;
}

.catalog-pick-soon {
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
}

.catalog-pick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
  max-width: 220px;
  width: 100%;
  align-self: center;
  margin-inline: auto;
}

.catalog-pick-actions--single {
  grid-template-columns: 1fr;
  max-width: 180px;
}

.catalog-pick-actions .btn-sitio,
.catalog-pick-actions .btn-abrir {
  min-height: 34px;
  font-size: 0.68rem;
  border-radius: 10px;
}

.catalog-pick-actions--single .btn-abrir {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-align: center;
  justify-content: center;
}

.catalog-pick-actions .btn-abrir:focus-visible,
.catalog-pick-actions .btn-sitio:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(8, 13, 21, 0.95),
    0 0 0 4px var(--modal-glow);
}

.app-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(168, 196, 220, 0.38);
  background: rgba(12, 18, 28, 0.92);
  color: #d5deea;
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.app-modal-close:hover {
  border-color: rgba(90, 214, 255, 0.75);
  background: rgba(18, 28, 42, 0.9);
  color: #fff;
  transform: translateY(-1px);
}

.app-modal-close:focus {
  outline: none;
}

.app-modal-close:focus-visible {
  outline: none;
  border-color: rgba(90, 214, 255, 0.85);
  box-shadow:
    0 0 0 2px rgba(8, 13, 21, 0.95),
    0 0 0 4px var(--modal-glow);
}

.modal-hero {
  display: none;
}

.modal-section,
.modal-actions {
  margin-left: 0;
  margin-right: 0;
}

.modal-icon-wrap,
.modal-icon,
.modal-banner {
  display: none !important;
}

.modal-title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.22rem, 2.3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f6f8fb;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.modal-tagline {
  margin: 0;
  color: rgba(214, 224, 236, 0.9);
  font-family: var(--font);
  font-size: 0.88rem;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-section {
  margin-top: 0;
  padding: 14px 0;
  border-top: 1px solid var(--modal-line-soft);
}

.modal-scroll > .modal-section:first-child {
  border-top: 0;
  padding-top: 2px;
}

.modal-reveal {
  opacity: 0;
  transform: translateY(8px);
}

.app-modal.is-open .modal-reveal {
  animation: modal-section-in 0.42s var(--modal-ease) forwards;
  animation-delay: calc(0.08s + var(--i, 0) * 0.05s);
}

@keyframes modal-section-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-h {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(158, 210, 255, 0.92);
}

.modal-p,
.modal-list {
  color: rgba(230, 236, 244, 0.92);
  font-family: var(--font);
}

.modal-p {
  margin: 0;
  color: #d5dbe6;
  font-size: 0.92rem;
  line-height: 1.5;
}

.modal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d5dbe6;
  font-size: 0.9rem;
  line-height: 1.42;
}

.modal-list li {
  position: relative;
  padding-left: 1rem;
}

.modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(90, 214, 255, 0.75);
  box-shadow: 0 0 0 2px rgba(90, 214, 255, 0.12);
}

.modal-list li + li {
  margin-top: 7px;
}

.modal-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: var(--font);
}

/* Sticky equal-width action bar */
.modal-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--modal-line-soft);
  background: linear-gradient(180deg, #101826, #080c14);
  flex: 0 0 auto;
}

.modal-actions--bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: stretch;
  gap: 8px;
}

.modal-actions--bar[data-count="1"] {
  grid-template-columns: 1fr;
}

.modal-actions--bar[data-count="2"] {
  grid-template-columns: 1fr auto;
}

.modal-actions--bar[data-count="3"] {
  grid-template-columns: 1fr 1fr auto;
}

.modal-btn {
  appearance: none;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 12px;
  padding: 0 14px;
  min-height: 44px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.modal-btn-primary {
  background: linear-gradient(180deg, rgba(78, 140, 220, 0.58), rgba(40, 86, 158, 0.42));
  border-color: rgba(120, 178, 246, 0.62);
  color: #eef5ff;
  box-shadow:
    inset 0 1px 0 rgba(210, 235, 255, 0.16),
    0 8px 20px rgba(28, 70, 130, 0.22);
}

.modal-btn-secondary {
  background: linear-gradient(180deg, rgba(201, 164, 106, 0.36), rgba(90, 68, 36, 0.26));
  border-color: rgba(201, 164, 106, 0.58);
  color: #f5e9d4;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 180, 0.14),
    0 8px 18px rgba(60, 42, 18, 0.18);
}

.modal-btn-ghost {
  background: rgba(14, 22, 34, 0.92);
  border-color: rgba(140, 170, 200, 0.38);
  color: #c8d6e8;
  min-width: 44px;
  padding: 0 12px;
}

.modal-btn-copy {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.modal-btn-copy svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.modal-btn:hover {
  border-color: rgba(90, 214, 255, 0.85);
  transform: translateY(-1px);
}

.modal-btn:focus {
  outline: none;
}

.modal-btn:focus-visible {
  outline: none;
  border-color: rgba(90, 214, 255, 0.9);
  box-shadow:
    0 0 0 2px rgba(8, 13, 21, 0.95),
    0 0 0 4px var(--modal-glow);
}

.modal-btn-secondary:hover {
  border-color: var(--modal-gold);
}

.modal-btn-secondary:focus-visible {
  border-color: var(--modal-gold);
  box-shadow:
    0 0 0 2px rgba(8, 13, 21, 0.95),
    0 0 0 4px rgba(232, 196, 120, 0.55);
}

.modal-btn-primary:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(210, 235, 255, 0.16),
    0 0 0 2px rgba(8, 13, 21, 0.95),
    0 0 0 4px var(--modal-glow);
}

.modal-btn.is-soon,
.modal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.modal-section-social {
  margin-top: 0;
}

.modal-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(168, 196, 220, 0.34);
  background: rgba(16, 24, 36, 0.78);
  color: #d5deea;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-sizing: border-box;
  user-select: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.social-pill:hover {
  border-color: rgba(90, 214, 255, 0.72);
  color: #fff;
  background: rgba(22, 34, 50, 0.92);
  transform: translateY(-1px);
}

.social-pill:focus {
  outline: none;
}

.social-pill:focus-visible {
  outline: none;
  border-color: rgba(90, 214, 255, 0.85);
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(8, 13, 21, 0.95),
    0 0 0 4px var(--modal-glow);
}

.social-pill.is-soon {
  opacity: 0.38;
  color: #8a97ab;
  border-color: rgba(120, 140, 170, 0.22);
  background: rgba(14, 20, 32, 0.55);
  cursor: default;
  pointer-events: none;
}

.hub-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 90;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.96);
  border: 1px solid rgba(90, 214, 255, 0.38);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #e8eef8;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--modal-ease), transform 0.22s var(--modal-ease);
}

.hub-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 560px) {
  .app-modal {
    padding: 0;
    place-items: end center;
  }
  .app-modal-dialog {
    width: 100%;
    max-height: min(94dvh, 100%);
    border-radius: 18px 18px 0 0;
    transform: translateY(28px) scale(1);
  }
  .app-modal.is-open .app-modal-dialog {
    transform: translateY(0);
  }
  .modal-shell {
    max-height: min(94dvh, 100%);
  }
  .modal-stage--hero {
    height: clamp(136px, 38vw, 172px);
  }
  .modal-stage-copy {
    padding: 14px 16px 12px;
  }
  .modal-scroll {
    padding: 12px 16px 8px;
  }
  .modal-actions,
  .modal-actions--bar {
    margin: 0;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }
  .modal-actions--bar[data-count="3"] {
    grid-template-columns: 1fr 1fr auto;
  }
  .modal-btn {
    min-height: 42px;
    font-size: 0.72rem;
    padding: 0 10px;
    border-radius: 11px;
  }
  .modal-btn-copy,
  .modal-btn-ghost {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-modal-backdrop,
  .app-modal-dialog,
  .modal-stage::before,
  .catalog-pick-card,
  .catalog-pick-card::before,
  .modal-btn,
  .social-pill,
  .app-modal-close,
  .hub-toast {
    transition: none !important;
  }
  .app-modal-dialog,
  .app-modal.is-open .app-modal-dialog {
    opacity: 1;
    transform: none;
  }
  .app-modal-backdrop,
  .app-modal.is-open .app-modal-backdrop {
    opacity: 1;
  }
  .modal-reveal,
  .app-modal.is-open .modal-reveal {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}




/* ACJ and following cards stay compact — no forced wide spans */
.category[data-cat="sitios-web"] .card.is-row-solo:not(.is-wide-row) {
  grid-column: auto;
}
.category[data-cat="sitios-web"] .card.is-row-solo + .card:not(.is-wide-row):not(.is-pair-half) {
  grid-column: auto;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Tiendas: each shop pair is its own full-width 2-col row. */
.category-apps--tiendas {
  align-items: start;
}

.sc-store-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
}

.sc-store-pair > .card {
  min-width: 0;
  grid-column: auto;
}

.sc-store-pair .sc-mini {
  grid-column: 1 / -1;
}

.showcam-mini {
  --sc-font: "Plus Jakarta Sans", "Outfit", sans-serif;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: clamp(88px, 10vw, 132px);
  padding: 8px 12px 8px 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(244, 45, 154, 0.55);
  background: #120810;
  box-shadow:
    inset 0 1px 0 rgba(255, 180, 230, 0.16),
    0 8px 22px rgba(80, 8, 40, 0.35);
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}

.showcam-mini-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  pointer-events: none;
}

.showcam-mini-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(12, 4, 10, 0.62) 0%,
      rgba(12, 4, 10, 0.22) 38%,
      rgba(18, 6, 14, 0.18) 58%,
      rgba(14, 5, 12, 0.58) 100%
    );
}

.showcam-mini-mark {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  width: auto;
  height: 78%;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}

.showcam-mini-age {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
}

.showcam-mini-actions {
  position: relative;
  z-index: 2;
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.showcam-mini-cta,
.showcam-mini-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--sc-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.showcam-mini-cta {
  color: #fff;
  background: linear-gradient(180deg, #ff4eb0 0%, #f42d9a 100%);
  border: 1px solid rgba(255, 180, 230, 0.35);
  box-shadow: 0 6px 16px rgba(244, 45, 154, 0.38);
}

.showcam-mini-app {
  color: #f8d4ec;
  background: rgba(18, 8, 16, 0.55);
  border: 1px solid rgba(255, 150, 210, 0.38);
}

.showcam-mini-cta:hover,
.showcam-mini-cta:focus-visible {
  color: #fff;
  filter: brightness(1.08);
}

.showcam-mini-app:hover,
.showcam-mini-app:focus-visible {
  color: #fff;
  border-color: rgba(255, 180, 230, 0.7);
}

.showcam-mini-cta:focus-visible,
.showcam-mini-app:focus-visible {
  outline: 2px solid #ff4eb0;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .sc-store-pair {
    gap: 8px;
  }
  .showcam-mini {
    height: 96px;
    padding: 6px 8px 6px 6px;
    gap: 6px;
  }
  .showcam-mini-mark {
    height: 72%;
    max-height: 72px;
  }
  .showcam-mini-age {
    width: 34px;
    height: 34px;
  }
  .showcam-mini-cta,
  .showcam-mini-app {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.62rem;
  }
}

/* Phone ≤767: keep each store pair as one 2-col row (Sexy+Parfum, Innova+SH).
   Show Cam (.sc-mini) still spans full width below the Innova+SH pair. */
@media (max-width: 767px) {
  .category[data-cat="sitios-web"] .category-apps--tiendas {
    grid-template-columns: 1fr;
  }
  .sc-store-pair {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    grid-column: 1 / -1;
  }
  .sc-store-pair > .card {
    min-width: 0;
  }
  .sc-store-pair .sc-mini {
    grid-column: 1 / -1;
  }
  .showcam-mini {
    height: 88px;
  }
}
