/* Navegación: volver a la tienda desde una ficha de app */
.apps-back-nav {
  margin-bottom: 20px;
}

.apps-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}

.apps-back-link:hover {
  border-color: rgba(165, 180, 252, 0.55);
  background: rgba(93, 95, 239, 0.14);
  color: #e0e7ff;
  transform: translateX(-2px);
}

.apps-back-link-icon {
  font-size: 1rem;
  line-height: 1;
}

.page-speed .apps-back-nav {
  margin: 0;
}

.page-speed .apps-back-link {
  border-color: rgba(129, 140, 248, 0.2);
  background: rgba(8, 11, 20, 0.35);
  backdrop-filter: blur(8px);
}

/* Tienda /apps */
.apps-store-page {
  padding: 32px 0 72px;
}

.apps-store-container {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.apps-store-hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-color: rgba(129, 140, 248, 0.2);
  background:
    linear-gradient(145deg, rgba(93, 95, 239, 0.12) 0%, rgba(12, 16, 28, 0.98) 48%),
    rgba(10, 14, 24, 0.96);
}

.apps-store-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(93, 95, 239, 0.14);
  filter: blur(72px);
  pointer-events: none;
}

.apps-store-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
  gap: 28px;
  align-items: end;
  padding: 32px 34px;
}

.apps-store-hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.apps-store-mark {
  flex-shrink: 0;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.35),
    0 12px 32px rgba(93, 95, 239, 0.28);
}

.apps-store-hero-titles {
  min-width: 0;
}

.apps-store-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.apps-store-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.apps-store-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 1.02rem;
}

.apps-store-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apps-store-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(129, 140, 248, 0.18);
  background: rgba(15, 23, 42, 0.45);
  font-size: 0.84rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.35;
}

.apps-store-perks li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, #22d3ee);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.45);
}

.apps-store-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 0 4px;
}

.apps-store-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.apps-store-section-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.apps-store-grid {
  display: grid;
  gap: 20px;
}

.apps-store-card {
  padding: 0;
  overflow: hidden;
  border-color: rgba(129, 140, 248, 0.22);
  background: linear-gradient(165deg, rgba(20, 24, 38, 0.98) 0%, rgba(8, 11, 20, 0.99) 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.apps-store-card:hover {
  border-color: rgba(165, 180, 252, 0.38);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(93, 95, 239, 0.1);
  transform: translateY(-2px);
}

.apps-store-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.05fr);
  gap: 0;
  min-height: 340px;
}

.apps-store-card-main {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 28px;
}

.apps-store-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.apps-store-card-head-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.apps-store-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 12px 32px rgba(93, 95, 239, 0.3);
}

.apps-store-card-title {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.apps-store-card-sub {
  margin: 0 0 16px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.apps-store-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.apps-store-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #c7d2fe;
}

.apps-store-badge-free {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
}

.apps-store-badge-new {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.35);
  color: #fde68a;
}

.apps-store-badge-demo {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.35);
  color: #fde68a;
}

.apps-store-card-features {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apps-store-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  line-height: 1.5;
  color: #94a3b8;
}

.apps-store-card-features li::before {
  content: "✓";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 800;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.apps-store-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  align-self: flex-start;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #5b5fef 0%, #6366f1 45%, #7c3aed 100%);
  box-shadow: 0 10px 28px rgba(93, 95, 239, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
}

.apps-store-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(93, 95, 239, 0.45);
}

.apps-store-card-btn::after {
  content: "→";
  font-size: 1rem;
}

.apps-store-card-visual {
  position: relative;
  display: block;
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 300px;
}

.apps-store-visual-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.apps-store-visual-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0a0e17;
}

.apps-store-visual-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 20, 0.78) 0%, rgba(8, 11, 20, 0.15) 50%, rgba(8, 11, 20, 0.4) 100%),
    linear-gradient(180deg, transparent 0%, rgba(8, 11, 20, 0.5) 100%);
  pointer-events: none;
}

.apps-store-overlay-pin {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: min(44%, 240px);
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 27, 76, 0.32);
  border-left: 3px solid #ff1b4c;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(255, 27, 76, 0.1);
  background: rgba(19, 19, 31, 0.78);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.apps-store-card:hover .apps-store-overlay-pin {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.58),
    0 0 24px rgba(255, 27, 76, 0.14);
}

.apps-store-overlay-video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.apps-store-footnote-panel {
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(129, 140, 248, 0.14);
  background: rgba(15, 23, 42, 0.35);
  text-align: center;
}

.apps-store-footnote-panel p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .apps-store-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 24px;
  }

  .apps-store-perks {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .apps-store-perks li {
    flex: 1 1 180px;
  }
}

@media (max-width: 860px) {
  .apps-store-card-inner {
    grid-template-columns: 1fr;
  }

  .apps-store-card-visual {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 220px;
  }

  .apps-store-overlay-pin {
    top: 10px;
    right: 10px;
    width: min(50%, 220px);
  }

  .apps-store-card-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .apps-store-hero-grid {
    padding: 22px 18px;
  }

  .apps-store-hero-brand {
    align-items: flex-start;
  }

  .apps-store-card-main {
    padding: 22px 20px;
  }

  .apps-store-perks {
    flex-direction: column;
  }

  .apps-store-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
