/* Catálogo de apps: diapositiva «Apps» de la franja de servicios */
.apps-view { padding-top: 8px; padding-bottom: 28px; }
.apps-intro .eyebrow { margin-bottom: 4px; }
.apps-intro { margin-bottom: 18px; }
.apps-intro > p:last-child { color: #4a5468; margin: 0; }
.apps-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.apps-controls[hidden], .apps-layout[hidden] { display: none; }
.apps-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.apps-filters button { border: 1px solid #dce3ef; background: #fff; border-radius: 999px; padding: 8px 14px; font: 500 .75rem 'Lexend', sans-serif; color: var(--color-tech); cursor: pointer; }
.apps-filters button[aria-pressed="true"] { background: var(--color-tech); border-color: var(--color-tech); color: #fff; }
.apps-count { font-variant-numeric: tabular-nums; margin: 0; font-size: .75rem; color: #4a5468; }
.apps-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 26px; align-items: start; }
.apps-mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.app-tile { position: relative; aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 18px; background: #fff; color: #17203a; font-family: inherit; cursor: pointer; transition: opacity 160ms ease, transform 160ms ease; }
.app-tile.is-included { border-color: #b9cbed; box-shadow: 0 3px 12px #003eb30a; }
.app-tile[aria-pressed="true"] { border-color: var(--color-net); box-shadow: 0 4px 16px #c41d7f12; }
.app-tile.is-muted { opacity: .25; transform: scale(.94); }
.app-logo { position: relative; display: grid; place-items: center; flex: none; width: 68px; height: 68px; border-radius: 14px; background: #f0f3f9; overflow: hidden; }
.app-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f0f3f9; }
.app-logo-fallback { padding: 4px; font-size: .75rem; text-align: center; overflow-wrap: anywhere; }
.app-name { font-size: .75rem; font-weight: 500; line-height: 1.2; text-align: center; overflow-wrap: normal; word-break: normal; hyphens: none; max-width: 100%; }
.app-tile-age { position: absolute; top: 5px; right: 5px; padding: 1px 4px; border-radius: 6px; background: #eef1f8; color: #4a5468; font-size: .75rem; }
.app-detail { padding: 24px; border: 1px solid #e1e7f1; border-radius: 24px; background: #fff; box-shadow: 0 12px 32px #17203a06; transition: opacity 100ms cubic-bezier(.23, 1, .32, 1), transform 100ms cubic-bezier(.23, 1, .32, 1); }
.app-detail.is-changing { opacity: 0; transform: translateY(4px); }
.app-detail-top { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.app-detail-top > div { min-width: 0; }
.app-detail .app-logo { width: 96px; height: 96px; border-radius: 20px; }
.app-detail h2 { font-size: 1.6rem; margin-bottom: 8px; }
.app-chip { display: inline-block; border-radius: 999px; background: #eef3fd; color: var(--color-tech); padding: 4px 9px; font-size: .75rem; line-height: 1.45; }
.app-age { margin-left: 4px; background: #fceaf4; color: var(--color-net); }
.app-description { font-size: .8125rem; line-height: 1.4; color: #4a5468; min-height: 2.8em; margin-bottom: 10px; }
.app-detail h3 { font: 600 .8125rem 'Lexend', sans-serif; margin-bottom: 4px; }
.app-bullets { margin: 0 0 10px; padding-left: 18px; font-size: .8125rem; line-height: 1.45; color: #4a5468; }
.app-bullets li::marker { color: var(--color-net); }
.app-inclusion { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.app-plan-label { font-size: .75rem; color: #4a5468; }
.app-plans { display: flex; flex-wrap: wrap; gap: 5px; }
.app-actions { display: grid; gap: 6px; }
.app-actions a { padding: 7px 12px; border-radius: 999px; text-align: center; font-size: .8125rem; font-weight: 500; }
.app-visit { background: var(--color-tech); color: #fff; }
.app-whatsapp { color: var(--color-net); border: 1px solid #e9c3d9; }
#apps :is(button, a):focus-visible { outline: 3px solid var(--color-tech); outline-offset: 3px; }
#apps .app-tile.is-muted:focus-visible { opacity: 1; }
.apps-fallback { padding-left: 20px; }
.apps-fallback li { margin-bottom: 24px; }
.apps-fallback h3 { font-size: 1.3rem; }
.js.apps-ready .apps-fallback { display: none; }
@media (hover: hover) and (pointer: fine) {
  .app-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #17203a14; }
  .app-tile.is-muted:hover { transform: translateY(-3px) scale(.94); }
  .app-actions a:hover { text-decoration: underline; }
}
@media (min-width: 961px) and (max-height: 800px) {
  .apps-view { padding-top: 18px; padding-bottom: 20px; }
  .app-detail { padding: 16px; }
  .apps-controls { margin-bottom: 14px; }
}
@media (max-width: 960px) {
  .apps-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .apps-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apps-controls { align-items: flex-start; flex-direction: column; }
  .apps-view { min-height: calc(100vh - 81px); }
}
@media (max-width: 520px) {
  .apps-view { padding-top: 22px; padding-bottom: 70px; }
  .apps-mosaic { gap: 6px; }
  .app-tile { border-radius: 12px; padding: 4px; gap: 4px; }
  .app-tile .app-logo { width: min(64px, 100%); height: auto; aspect-ratio: 1; border-radius: 10px; }
  .app-name { font-size: .8125rem; }
  .app-detail { padding: 18px; }
  .app-detail-top { gap: 12px; }
  .app-detail h2 { font-size: 1.4rem; }
  .apps-filters button { padding: 8px 10px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  #apps *, #apps *::before, #apps *::after { transition: none !important; }
  .app-tile:hover, .app-tile.is-muted, .app-tile.is-muted:hover, .app-detail.is-changing { transform: none; }
}

.app-access { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #eef3ff; font-size: .8125rem; color: #1f2a44; }
.app-access strong { color: var(--color-tech); }
