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

@font-face {
  font-family: "Syne";
  src: url("/fonts/syne-800.ttf") format("truetype");
  font-weight: 700 800;
  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: "Syne", "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  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);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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: 1280px;
  margin: 0 auto;
  /* Top padding matches hero top margin so gap above/below header is equal */
  padding: 12px 28px 48px;
}

.hub-board {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.category {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  background: linear-gradient(180deg, rgba(22, 32, 48, 0.72), rgba(12, 18, 28, 0.55));
  border: 1px solid rgba(64, 96, 136, 0.28);
  border-radius: 22px;
  padding: 12px 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* 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: 150px;
  height: clamp(140px, 15vw, 176px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 106, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 18px rgba(0, 0, 0, 0.22);
  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="belleza"] .category-banner-img {
  object-position: center 42%;
}

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

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

.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: 4px;
  padding: 0 22px 16px;
  max-width: min(92%, 28rem);
}

.category-label {
  margin: 0;
  writing-mode: horizontal-tb;
  transform: none;
  font-family: var(--font-brand);
  font-size: clamp(0.92rem, 1.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  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(6, minmax(0, 1fr));
  gap: 14px;
  align-content: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(52, 78, 118, 0.45) 0%, transparent 40%),
    linear-gradient(180deg, #243652 0%, #1a2434 50%, #121a28 100%);
  border: 1px solid rgba(110, 150, 200, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  min-height: 228px;
  position: relative;
  overflow: hidden;
}

.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,
.card:focus-within {
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 12px;
  flex: 1 1 auto;
}

/* Whole icon+name zone opens the modal (large hit target) */
.card-body-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 16px 12px 12px;
  margin: 0;
  width: 100%;
  cursor: pointer;
  color: inherit;
  font: inherit;
  border-radius: 18px 18px 0 0;
  -webkit-tap-highlight-color: transparent;
}

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

.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-icon-wrap {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 26px;
  background: transparent;
  border: none;
  display: grid;
  place-items: center;
  margin-top: 2px;
  overflow: visible;
}

.card-icon {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 0;
  display: block;
  background: transparent;
  filter: none;
}

.card-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #0a0e14;
  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.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.25;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f2f5fa;
  text-wrap: balance;
}

/* Footer CTA band: Sitio | App | copy — flexible row, chip always fully visible */
.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 9px 12px;
  border-top: 1px solid rgba(120, 160, 210, 0.14);
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.35), rgba(6, 10, 16, 0.55));
}

.card:not(.has-sitio) .card-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.card.is-web-only .card-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

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

/* 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: 34px;
  padding: 5px 6px;
  border-radius: 11px;
  border: 1px solid rgba(201, 164, 106, 0.5);
  background:
    linear-gradient(180deg, rgba(201, 164, 106, 0.28), rgba(90, 68, 36, 0.22));
  color: #f3e6cf;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.14);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-sitio:hover,
.btn-sitio:focus-visible {
  border-color: rgba(232, 196, 120, 0.95);
  color: #fff8ea;
  background: linear-gradient(180deg, rgba(201, 164, 106, 0.42), rgba(120, 88, 42, 0.32));
  outline: none;
  transform: translateY(-1px);
}

.btn-abrir {
  appearance: none;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(100, 170, 240, 0.55);
  background: linear-gradient(180deg, rgba(70, 130, 210, 0.4), rgba(40, 90, 160, 0.3));
  color: #e8f3ff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 6px;
  min-height: 34px;
  border-radius: 11px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  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;
}

a.btn-abrir:hover,
a.btn-abrir:focus-visible {
  border-color: rgba(120, 210, 255, 0.95);
  color: #ffffff;
  background: linear-gradient(180deg, rgba(80, 150, 230, 0.52), rgba(50, 110, 190, 0.38));
  outline: none;
}

.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: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  border: 1px solid rgba(168, 196, 220, 0.35);
  background: rgba(12, 20, 32, 0.75);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  justify-self: end;
  padding: 0;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.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: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

@media (max-width: 1100px) {
  .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-icon-wrap {
    width: 104px;
    height: 104px;
  }
  .card-icon {
    width: 92px;
    height: 92px;
  }
  .card-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 5px;
    padding: 9px 8px 11px;
  }
  .card:not(.has-sitio) .card-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .btn-sitio {
    min-height: 34px;
    padding: 5px 7px;
    font-size: 0.72rem;
  }
  .btn-abrir {
    min-height: 34px;
    padding: 5px 7px;
    font-size: 0.72rem;
  }
  .chip-link {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
}

@media (max-width: 720px) {
  .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.16em;
    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: 10px;
  }
  .card {
    min-height: 0;
    border-radius: 16px;
  }
  .card-body {
    padding: 12px 8px 8px;
    gap: 8px;
  }
  .card-icon-wrap {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }
  .card-icon {
    width: 80px;
    height: 80px;
  }
  .card-name {
    font-size: 0.84rem;
    min-height: 2.2em;
  }
  .card-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 4px;
    padding: 8px 7px 10px;
  }
  .card:not(.has-sitio) .card-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .btn-sitio {
    min-height: 32px;
    padding: 4px 5px;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    border-radius: 10px;
  }
  .btn-abrir {
    min-height: 32px;
    padding: 4px 5px;
    font-size: 0.64rem;
    border-radius: 10px;
  }
  .chip-link {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
  }
}

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

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px 14px;
}

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

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(6px);
}

.app-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(90dvh, 860px);
  overflow: auto;
  border-radius: 22px;
  background: #0c121c;
  border: 1px solid rgba(90, 140, 190, 0.35);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0;
  outline: none;
}

.app-modal-body {
  display: block;
  padding: 0;
}

.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;
  min-height: min(72vh, 640px);
  border-radius: 18px;
  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::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--modal-bg, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.modal-stage-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 10, 16, 0.55) 0%, rgba(6, 10, 16, 0.72) 42%, rgba(6, 10, 16, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 10, 16, 0.55) 0%, rgba(6, 10, 16, 0.2) 55%, rgba(6, 10, 16, 0.45) 100%);
  pointer-events: none;
}

.modal-stage-copy {
  position: relative;
  z-index: 2;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.modal-kicker {
  margin: 0;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(158, 200, 248, 0.9);
}

.catalog-pick-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.catalog-pick-card {
  position: relative;
  isolation: isolate;
  min-height: 132px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(100, 140, 190, 0.28);
  background: #121824;
}

.catalog-pick-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--pick-bg, none);
  background-size: cover;
  background-position: center;
}

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

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

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

.catalog-pick-name {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  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: 8px;
  margin-top: 8px;
  max-width: 240px;
}

.catalog-pick-actions .btn-sitio,
.catalog-pick-actions .btn-abrir {
  min-height: 36px;
  font-size: 0.7rem;
}

.app-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(168, 196, 220, 0.35);
  background: rgba(20, 30, 46, 0.78);
  color: #d5deea;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.app-modal-close:hover,
.app-modal-close:focus-visible {
  border-color: rgba(90, 214, 255, 0.75);
  outline: none;
}

.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.35rem, 2.4vw, 1.7rem);
  font-weight: 750;
  letter-spacing: 0.01em;
  color: #f4f6fa;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.modal-tagline {
  margin: 0 0 6px;
  color: rgba(210, 220, 232, 0.9);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.4;
}

.modal-section {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(90, 140, 190, 0.22);
}

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

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

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.modal-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #d7dce6;
  font-size: 0.92rem;
  line-height: 1.45;
}

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

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

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.modal-btn {
  appearance: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}

.modal-btn-primary {
  background: linear-gradient(180deg, rgba(72, 132, 210, 0.45), rgba(42, 88, 160, 0.35));
  border-color: rgba(110, 170, 240, 0.55);
  color: #e8f2ff;
}

.modal-btn-secondary {
  background: rgba(20, 30, 46, 0.75);
  border-color: rgba(168, 196, 220, 0.35);
  color: #c8d6ea;
}

.modal-btn-ghost {
  background: transparent;
  border-color: rgba(90, 140, 190, 0.35);
  color: #a8c4dc;
}

.modal-btn:hover,
.modal-btn:focus-visible {
  border-color: rgba(90, 214, 255, 0.75);
  outline: none;
}

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

.modal-section-social {
  margin-top: 16px;
}

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

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(168, 196, 220, 0.35);
  background: rgba(20, 30, 46, 0.7);
  color: #d5deea;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-sizing: border-box;
  user-select: none;
}

.social-pill:hover,
.social-pill:focus-visible {
  border-color: rgba(90, 214, 255, 0.7);
  color: #fff;
  outline: none;
}

.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: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 24, 36, 0.95);
  border: 1px solid rgba(90, 214, 255, 0.35);
  color: #e8eef8;
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

@media (max-width: 560px) {
  .app-modal-dialog {
    padding: 0 0 16px;
    max-height: 92dvh;
  }
  .modal-banner {
    height: clamp(110px, 34vw, 140px);
  }
  .modal-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 0;
    padding-right: 48px;
  }
  .modal-section,
  .modal-actions {
    margin-left: 16px;
    margin-right: 16px;
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-btn {
    width: 100%;
    text-align: center;
  }
}

/* —— Thematic full-bleed app cards —— */
.card.card--theme {
  min-height: 292px;
  background: #0a1018;
  border-color: rgba(140, 170, 210, 0.32);
}

.card.card--theme .card-body-btn {
  position: relative;
  flex: 1 1 auto;
  min-height: 212px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.card-theme-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.card-theme-media picture,
.card-theme-img {
  width: 100%;
  height: 100%;
  display: block;
}

.card-theme-img {
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

.card.card--theme:hover .card-theme-img,
.card.card--theme:focus-within .card-theme-img {
  transform: scale(1.07);
}

.card-theme-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 10, 16, 0.02) 0%, rgba(6, 10, 16, 0.08) 42%, rgba(6, 10, 16, 0.55) 72%, rgba(6, 10, 16, 0.88) 100%),
    linear-gradient(90deg, rgba(6, 10, 16, 0.12), transparent 60%);
  pointer-events: none;
}

.card-theme-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
}

.card.card--theme .card-name {
  min-height: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 8px 20px rgba(0, 0, 0, 0.55);
  color: #f7f9fc;
}

.card.card--theme .card-dot {
  position: static;
  width: 10px;
  height: 10px;
  border-width: 2px;
  box-shadow: 0 0 10px currentColor;
}

.card.card--theme .card-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.72), rgba(4, 8, 14, 0.92));
  backdrop-filter: blur(8px);
}

/* Per-app crop accents */
.card.card--theme[data-app-id="bellezaspa"] .card-theme-img,
.card.card--theme[data-app-id="barber-pro"] .card-theme-img {
  object-position: 28% 45%;
}
.card.card--theme[data-app-id="spa-deluxe"] .card-theme-img {
  object-position: center 48%;
}
.card.card--theme[data-app-id="unas-magicas"] .card-theme-img {
  object-position: 55% 40%;
}
.card.card--theme[data-app-id="beauty-pro"] .card-theme-img {
  object-position: 40% 50%;
}
.card.card--theme[data-app-id="muscle-pro"] .card-theme-img {
  object-position: 35% 55%;
}

.card.card--theme[data-app-id="bellezaspa"],
.card.card--theme[data-app-id="barber-pro"] {
  border-color: rgba(180, 150, 90, 0.4);
}
.card.card--theme[data-app-id="spa-deluxe"] {
  border-color: rgba(160, 190, 170, 0.38);
}
.card.card--theme[data-app-id="unas-magicas"] {
  border-color: rgba(200, 110, 160, 0.42);
}
.card.card--theme[data-app-id="beauty-pro"] {
  border-color: rgba(210, 140, 180, 0.4);
}
.card.card--theme[data-app-id="muscle-pro"] {
  border-color: rgba(90, 140, 220, 0.45);
}

@media (max-width: 1100px) {
  .card.card--theme {
    min-height: 248px;
  }
  .card.card--theme .card-body-btn {
    min-height: 168px;
  }
}

@media (max-width: 720px) {
  .card.card--theme {
    min-height: 230px;
  }
  .card.card--theme .card-body-btn {
    min-height: 150px;
  }
}


.card.card--theme[data-app-id=bellezaspa] .card-theme-img,
.card.card--theme[data-app-id=barber-pro] .card-theme-img,
.card.card--theme[data-app-id=muscle-pro] .card-theme-img {
  filter: brightness(1.22) contrast(1.08) saturate(1.08);
}
.card.card--theme .card-theme-veil {
  background:
    linear-gradient(180deg, rgba(6, 10, 16, 0.02) 0%, rgba(6, 10, 16, 0.08) 42%, rgba(6, 10, 16, 0.55) 72%, rgba(6, 10, 16, 0.88) 100%),
    linear-gradient(90deg, rgba(6, 10, 16, 0.12), transparent 60%);
}
.card.card--theme {
  min-height: 292px;
}
.card.card--theme .card-body-btn {
  min-height: 212px;
}

/* end thematic cards */
