/* Página /apps: otras apps desarrolladas (usa la paleta y la tipografía de /styles.css) */
.apps-hero { padding-top: 56px; padding-bottom: 64px; }
.apps-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1.15; margin-top: 18px; }
.apps-volver { display: inline-block; color: #fff; opacity: .85; text-decoration: none; font-weight: 600; font-size: .92rem; }
.apps-volver:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.apps-section { padding-top: 48px; }

.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.app-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover, .app-card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(40, 52, 46, .16); border-color: var(--sage-light); outline: none; }
.app-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1ec; }
.app-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .35s ease, filter .35s ease; }
.app-card:hover .app-img img, .app-card:focus-visible .app-img img { transform: scale(1.04); filter: brightness(.55) saturate(.8); }

/* el candado aparece al pasar el mouse: cerrado si falta la contraseña, abierto si ya está guardada */
.app-lock {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--sage-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; transform: scale(.7); transition: opacity .25s ease, transform .25s ease;
}
.app-lock::before {
  content: ""; width: 34px; height: 34px; background: currentColor;
  -webkit-mask: var(--candado) center / contain no-repeat; mask: var(--candado) center / contain no-repeat;
}
.app-lock { --candado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.apps-abiertas .app-lock { --candado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 7.6-1.7'/%3E%3C/svg%3E"); }
.app-card:hover .app-lock, .app-card:focus-visible .app-lock { opacity: 1; transform: scale(1); }

.app-badge {
  position: absolute; top: 12px; right: 12px; padding: 5px 12px; border-radius: 999px;
  background: #fff; color: var(--sage-dark); font-size: .75rem; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.app-txt { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.app-tag { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.app-tit { font-size: 1.2rem; font-weight: 800; color: var(--sage-dark); line-height: 1.25; }
.app-desc { font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }

.apps-beta {
  margin-top: 40px; padding: 16px 20px; border-left: 4px solid var(--sage-light); border-radius: 0 10px 10px 0;
  background: #f1f4f0; color: var(--ink-soft); font-size: .95rem; line-height: 1.5;
}
.apps-beta b { color: var(--sage-dark); }

/* apps de libre acceso: insignia verde y, al pasar el mouse, una flecha en lugar del candado */
.app-disponible { background: #2f8a5b; color: #fff; }
.app-libre .app-lock, .apps-abiertas .app-libre .app-lock { --candado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
