/* Apps oficiales — lista, detalle y decoración visual */
@import url('../components/ra-video-shell.css');

.official-apps-page {
  --oa-violet: #7c3aed;
  --oa-cyan: #22d3ee;
  --oa-pink: #e879f9;
  --oa-glass: rgba(15, 23, 42, 0.55);
  --oa-glass-border: rgba(124, 58, 237, 0.22);
  position: relative;
  padding: 0 1rem 4rem;
  min-height: 65vh;
  overflow: hidden;
}

/* Fondo decorativo (sin imagen externa) */
.official-apps-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 60%, rgba(232, 121, 249, 0.1), transparent 45%);
}

.official-apps-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%237c3aed' stroke-opacity='0.06'%3E%3Cpath d='M0 24h48M24 0v48'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

.official-apps-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 2rem;
}

.official-apps-inner--detail {
  max-width: 920px;
}

/* ——— Índice ——— */
.official-apps-hero--index {
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.official-apps-hero-glow {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.official-apps-hero--index .official-apps-title {
  position: relative;
  z-index: 1;
  font-family: var(--neo-font-heading, "Montserrat", sans-serif);
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  background: linear-gradient(135deg, #f8fafc 0%, #c4b5fd 45%, var(--oa-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-mode="light"] .official-apps-hero--index .official-apps-title {
  background: linear-gradient(135deg, #1e1b4b 0%, #6d28d9 50%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.official-apps-hero--index .official-apps-subtitle {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.88;
}

.official-apps-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.official-apps-card-wrap {
  margin: 0;
}

.official-apps-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--oa-glass-border);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 27, 75, 0.45) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.official-apps-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--oa-violet), var(--oa-cyan), var(--oa-pink));
  opacity: 0.85;
}

.official-apps-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.official-apps-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow:
    0 12px 40px rgba(124, 58, 237, 0.2),
    0 4px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.official-apps-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: var(--neo-text, #e6e9f2);
  font-weight: 600;
}

.official-apps-card-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.official-apps-card-desc {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.86;
  line-height: 1.5;
  flex: 1;
}

.official-apps-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--oa-cyan);
}

.official-apps-card-cta::after {
  content: "→";
  transition: transform 0.2s ease;
}

.official-apps-card:hover .official-apps-card-cta::after {
  transform: translateX(4px);
}

.official-apps-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.35);
  opacity: 0.9;
  max-width: 28rem;
  margin: 2rem auto 0;
}

/* ——— Detalle ——— */
.official-apps-breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(8px);
}

.official-apps-breadcrumb a {
  color: var(--oa-cyan);
  text-decoration: none;
  font-weight: 500;
}

.official-apps-breadcrumb a:hover {
  text-decoration: underline;
}

.official-apps-bc-sep {
  opacity: 0.45;
  user-select: none;
}

.official-apps-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 1.75rem 1.5rem 1.6rem;
  margin-bottom: 2rem;
  border-radius: 20px;
  border: 1px solid var(--oa-glass-border);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.75) 0%, rgba(49, 46, 129, 0.35) 100%);
  backdrop-filter: blur(14px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.official-apps-hero::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.official-apps-detail-head .official-apps-title {
  font-family: var(--neo-font-heading, "Montserrat", sans-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(120deg, #f1f5f9 0%, #ddd6fe 40%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-mode="light"] .official-apps-detail-head .official-apps-title {
  background: linear-gradient(120deg, #0f172a 0%, #5b21b6 45%, #0e7490 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.official-apps-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}

.official-apps-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(124, 58, 237, 0.2);
  color: inherit;
  letter-spacing: 0.02em;
}

.official-apps-intro-note {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.9;
  padding-left: 0.85rem;
  border-left: 3px solid rgba(34, 211, 238, 0.5);
}

.official-apps-version-line {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.official-apps-hero-actions {
  align-self: center;
}

.official-apps-download-row {
  margin: 0;
}

.official-apps-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.65rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #0c1222;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 35%, #06b6d4 100%);
  border: none;
  cursor: pointer;
  box-shadow:
    0 6px 28px rgba(124, 58, 237, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.official-apps-download-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 10px 36px rgba(124, 58, 237, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.official-apps-download-btn:active {
  transform: translateY(0);
}

.official-apps-empty--hero {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 0.95rem;
}

/* Paneles de sección */
.official-apps-panel {
  margin-bottom: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.official-apps-panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
}

.official-apps-panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.35), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--oa-cyan);
  font-size: 1.1rem;
}

.official-apps-panel-head h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.official-apps-panel-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.official-apps-prose {
  line-height: 1.65;
  opacity: 0.93;
  white-space: pre-wrap;
  font-size: 0.98rem;
}

.official-apps-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.official-apps-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.official-apps-figure:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.2);
}

.official-apps-figure img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.official-apps-quick-links-wrap .official-apps-panel-body {
  padding-top: 1rem;
}

.official-apps-quick-links-wrap .official-apps-panel-head h2.official-apps-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.official-apps-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.official-apps-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--neo-text, #e6e9f2);
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(15, 23, 42, 0.5));
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.official-apps-link-chip:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.25);
}

.official-apps-trailers-section .official-apps-trailers-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.official-apps-trailer-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(0, 0, 0, 0.18);
}

.official-apps-trailer-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

/* Contenedor legacy + componente ra-vid (ver static/css/components/ra-video-shell.css) */
.official-apps-trailer-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.official-apps-trailer-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Con ra-vid: sin hack padding-bottom (aspect-ratio va en .ra-vid__stage) */
.official-apps-trailer-frame.ra-vid {
  padding-bottom: 0;
  height: auto;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
}

.official-apps-trailer-frame.ra-vid--lazy {
  cursor: pointer;
}

.official-apps-trailer-caption {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.88;
  line-height: 1.45;
}

.official-apps-trailer-yt-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--oa-cyan);
  text-decoration: none;
  align-self: flex-start;
}

.official-apps-trailer-yt-link:hover {
  text-decoration: underline;
}

.official-apps-version-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.official-apps-version-list li {
  margin: 0;
}

.official-apps-version-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 0.92rem;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.official-apps-version-list a::before {
  content: "↓";
  font-size: 0.85rem;
  opacity: 0.55;
}

.official-apps-version-list a:hover {
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(124, 58, 237, 0.12);
  color: var(--oa-cyan);
}

.official-apps-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .official-apps-hero {
    grid-template-columns: 1fr;
  }

  .official-apps-hero-actions {
    justify-self: stretch;
  }

  .official-apps-download-btn {
    width: 100%;
    justify-content: center;
  }
}

html[data-mode="light"] .official-apps-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92) 0%, rgba(237, 233, 254, 0.65) 100%);
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 4px 24px rgba(91, 33, 182, 0.08);
}

html[data-mode="light"] .official-apps-panel {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(148, 163, 184, 0.25);
}

html[data-mode="light"] .official-apps-hero {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(237, 233, 254, 0.55) 100%);
}

html[data-mode="light"] .official-apps-breadcrumb {
  background: rgba(255, 255, 255, 0.75);
}

html[data-mode="light"] .official-apps-tag {
  background: rgba(237, 233, 254, 0.9);
  border-color: rgba(124, 58, 237, 0.25);
}

html[data-mode="light"] .official-apps-link-chip {
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.9), rgba(255, 255, 255, 0.95));
  color: #1e1b4b;
}

html[data-mode="light"] .official-apps-version-list a {
  background: rgba(248, 250, 252, 0.95);
}

/* ——— Listado tipo producto (tarjetas, destacadas, categorías) ——— */
.official-apps-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
  opacity: 0.92;
}

.official-apps-grid--featured {
  margin-bottom: 0.5rem;
}

.official-apps-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--oa-glass-border);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 27, 75, 0.45) 100%);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
  height: 100%;
}

.official-apps-card-wrap--featured .official-apps-product-card {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 12px 44px rgba(34, 211, 238, 0.12);
}

.official-apps-product-card-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.official-apps-product-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.2);
  flex-shrink: 0;
}

.official-apps-product-icon-fallback {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.25);
  color: #e2e8f0;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.official-apps-product-card-head {
  flex: 1;
  min-width: 0;
}

.official-apps-badge--pill {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.35rem;
  display: inline-block;
}

.official-apps-product-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.official-apps-product-title a {
  color: inherit;
  text-decoration: none;
}

.official-apps-product-title a:hover {
  color: var(--oa-cyan);
}

.official-apps-product-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.88;
}

.official-apps-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.official-apps-tag-row--detail {
  margin-top: 0.35rem;
}

.official-apps-cat-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #e2e8f0;
}

.oa-project-pill {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.oa-project-pill--active {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.oa-project-pill--dev {
  background: rgba(234, 179, 8, 0.18);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.oa-project-pill--stop {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.official-apps-product-version {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.9;
}

.official-apps-product-dl-count {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

.official-apps-product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.official-apps-download-btn--card {
  width: 100%;
  justify-content: center;
}

.official-apps-secondary-link {
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  color: var(--oa-cyan);
  text-decoration: none;
}

.official-apps-secondary-link:hover {
  text-decoration: underline;
}

/* Detalle: hero producto, badges dinámicos, meta */
.official-apps-hero--product {
  align-items: flex-start;
}

.official-apps-detail-title-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.official-apps-detail-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.official-apps-detail-icon-fallback {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: rgba(124, 58, 237, 0.28);
  color: #e2e8f0;
}

.official-apps-dynamic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 0.75rem;
}

.oa-dyn-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.oa-dyn-badge--ok {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.oa-dyn-badge--danger {
  background: rgba(251, 113, 133, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.45);
  color: #fecdd3;
}

.official-apps-dl-counter-line {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  opacity: 0.8;
}

.official-apps-short-lead {
  margin: 0.65rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

.official-apps-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.official-apps-mini-panel {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--oa-glass-border);
  background: rgba(15, 23, 42, 0.45);
}

.official-apps-mini-panel-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.official-apps-dl-mini {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.official-apps-dl-mini div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.official-apps-dl-mini dt {
  opacity: 0.75;
  font-weight: 600;
}

.official-apps-dl-mini dd {
  margin: 0;
  text-align: right;
  word-break: break-all;
}

.official-apps-hash-dd {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  max-width: 62%;
}

.official-apps-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
  line-height: 1.4;
}

.official-apps-trust-list i {
  color: #4ade80;
  margin-right: 0.35rem;
}

.official-apps-curl-snippet {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.2);
  word-break: break-all;
}

.official-apps-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.12);
  color: var(--oa-cyan);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.official-apps-copy-btn:hover {
  background: rgba(34, 211, 238, 0.2);
}

.official-apps-copy-btn.is-done {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.15);
  color: #86efac;
}

/* Changelog por versión */
.official-apps-changelog {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.official-apps-changelog-block {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.35);
}

.official-apps-changelog-ver {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.official-apps-changelog-ver-num {
  font-weight: 800;
  font-size: 1rem;
}

.official-apps-latest-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.2);
  color: var(--oa-cyan);
}

.official-apps-changelog-dl {
  margin-left: auto;
  color: var(--oa-cyan);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

.official-apps-changelog-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.official-apps-cl-item {
  padding-left: 0.15rem;
}

.official-apps-cl--plus {
  color: #86efac;
}

.official-apps-cl--minus {
  color: #fca5a5;
}

.official-apps-cl--bullet {
  opacity: 0.92;
}

.official-apps-changelog-empty {
  margin: 0;
  font-size: 0.85rem;
}

.official-apps-gallery--mixed .official-apps-figure--video {
  width: 100%;
}

.official-apps-video {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  background: #000;
}

.official-apps-caption {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.official-apps-gif {
  border-radius: 12px;
}

html[data-mode="light"] .official-apps-product-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92) 0%, rgba(237, 233, 254, 0.65) 100%);
}

html[data-mode="light"] .official-apps-cat-chip {
  background: rgba(124, 58, 237, 0.12);
  color: #1e1b4b;
  border-color: rgba(124, 58, 237, 0.22);
}

html[data-mode="light"] .official-apps-mini-panel {
  background: rgba(255, 255, 255, 0.72);
}

/* ——— Subpágina: todas las versiones ——— */
.official-apps-page--releases .official-apps-releases-hero {
  margin-bottom: 1.5rem;
  text-align: left;
}

.official-apps-title--releases {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
}

.official-apps-releases-sub {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.88;
  line-height: 1.5;
}

.official-apps-releases-count {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
}

.official-apps-back-to-app {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
}

.official-apps-back-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--oa-cyan);
  text-decoration: none;
}

.official-apps-back-link:hover {
  text-decoration: underline;
}

.official-apps-versions-more-wrap {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.official-apps-versions-more-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.35);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.official-apps-versions-more-btn:hover {
  background: rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.official-apps-versions-more-meta {
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.85rem;
}

html[data-mode="light"] .official-apps-versions-more-btn {
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.25);
}

html[data-mode="light"] .official-apps-versions-more-btn:hover {
  background: rgba(124, 58, 237, 0.2);
}

.official-apps-download-btn--login {
  background: rgba(15, 23, 42, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
}

.official-apps-download-btn--login:hover {
  border-color: rgba(167, 139, 250, 0.55);
  color: #fff;
}

html[data-mode="light"] .official-apps-download-btn--login {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(100, 116, 139, 0.35);
  color: #334155;
}

.official-apps-changelog-dl--guest {
  opacity: 0.85;
  color: #94a3b8;
}

.official-apps-changelog-dl--guest:hover {
  color: #e9d5ff;
}
