/* fenix.apps info — misma paleta y lenguaje visual que airfenix-landing */
:root {
  --color-orange: #ff6a00;
  --color-orange-soft: #ff8a3d;
  --color-blue: #2563eb;
  --bg: #ffffff;
  --bg-muted: #f5f7fa;
  --bg-elevated: #ffffff;
  --text: #0b0f1a;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
  --logo-surface: #ffffff;
  --logo-ring: rgba(15, 23, 42, 0.06);
  --hero-gradient: linear-gradient(135deg, #f5f7fa 0%, #ffffff 45%, #fff5eb 100%);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-card: 18px;
  --hero-ambient: radial-gradient(ellipse 85% 75% at 50% 48%, rgba(255, 106, 0, 0.09), transparent 62%),
    radial-gradient(ellipse 55% 50% at 72% 32%, rgba(37, 99, 235, 0.06), transparent 55%);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --transition: 0.22s ease;
  --transition-theme: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease,
    box-shadow 0.28s ease;
}

html[data-theme="dark"] {
  --bg: #0f172a;
  --bg-muted: #1e293b;
  --bg-elevated: #1e293b;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --logo-surface: #1e293b;
  --logo-ring: rgba(255, 255, 255, 0.08);
  --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1a1520 100%);
  --hero-ambient: radial-gradient(ellipse 85% 75% at 50% 48%, rgba(255, 106, 0, 0.14), transparent 62%),
    radial-gradient(ellipse 55% 50% at 72% 32%, rgba(37, 99, 235, 0.1), transparent 55%);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: var(--transition-theme);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-orange);
}

/* Fondo tipo hero AirFenix + rejilla suave */
.info-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  isolation: isolate;
}

.info-page__bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--hero-gradient);
  transition: opacity var(--transition-theme);
}

.info-page__ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--hero-ambient);
  pointer-events: none;
}

.info-page__grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

html[data-theme="dark"] .info-page__grid {
  background-image: linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
}

/* Toggle tema (misma pieza que airfenix-landing) */
.theme-toggle {
  position: fixed;
  top: clamp(0.85rem, 3vw, 1.25rem);
  right: clamp(0.85rem, 3vw, 1.25rem);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), color var(--transition),
    box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--color-orange);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: flex;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

/* Tarjeta principal — cristal + borde tipo showcase */
.info-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-card);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.35), rgba(37, 99, 235, 0.2), transparent 55%);
  box-shadow: var(--shadow-lg);
}

.info-card__inner {
  position: relative;
  border-radius: calc(var(--radius-card) - 1px);
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 4vw, 1.75rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, var(--shadow-md);
  transition: var(--transition-theme);
}

html[data-theme="dark"] .info-card__inner {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 40px rgba(0, 0, 0, 0.35);
}

.info-logo {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.1rem;
}

.info-logo__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(255, 106, 0, 0.45), rgba(37, 99, 235, 0.25), rgba(255, 106, 0, 0.35));
  opacity: 0.55;
  animation: info-ring 10s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .info-logo__ring {
    animation: none;
  }
}

@keyframes info-ring {
  to {
    transform: rotate(360deg);
  }
}

.info-logo__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: var(--logo-surface);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--logo-ring);
  padding: 10%;
  box-sizing: border-box;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.info-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.info-lead {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 400;
}

.info-lead strong {
  color: var(--text);
  font-weight: 600;
}

.info-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.info-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.info-link:hover {
  color: var(--text);
  border-color: var(--color-orange);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.info-link__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"] .info-link__icon {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.info-section {
  margin-top: 0.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.info-section__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.info-section__title span {
  display: block;
  color: var(--color-blue);
}

html[data-theme="dark"] .info-section__title span {
  color: #93c5fd;
}

.info-section__desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--text-muted);
  text-align: left;
}

.info-game-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.info-stores {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.info-stores a,
.info-stores button {
  display: inline-flex;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
}

.info-stores img {
  height: 52px;
  width: auto;
  transition: transform var(--transition);
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.12));
}

html[data-theme="dark"] .info-stores img {
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
}

.info-stores a:hover img,
.info-stores button:hover img {
  transform: scale(1.04);
}

.info-footer {
  margin-top: 1.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Snackbar — alineado a airfenix-landing */
.snackbar {
  position: fixed;
  z-index: 200;
  right: clamp(1rem, 4vw, 1.75rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  left: auto;
  width: min(440px, calc(100% - 2rem));
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.snackbar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.snackbar[hidden] {
  display: none !important;
}

.snackbar__inner {
  position: relative;
  padding: 1.15rem 2.5rem 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--color-orange);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 106, 0, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition-theme);
}

.snackbar__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.snackbar__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.snackbar__close {
  position: absolute;
  top: 0.35rem;
  right: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.snackbar__close:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .snackbar__close:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 480px) {
  .info-stores img {
    height: 46px;
  }
}
