/* ─── home.css — CuriosVault ──────────────────────────────
   Estilos del homepage + mejoras globales (nav mobile, etc.)
──────────────────────────────────────────────────────────── */

/* ── Language dropdown ───────────────────────────────────── */
.lang-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
/* Anchor button */
#lang-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  height: 2.2rem !important;
  padding: 0 0.6rem !important;
  border-radius: 6px !important;
  background: var(--bg3) !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text) !important;
  cursor: pointer !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  font-family: var(--font-head) !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  transition: border-color .18s, box-shadow .18s !important;
}
#lang-toggle:hover {
  border-color: var(--accent2) !important;
  box-shadow: 0 0 0 2px var(--accent2-glow) !important;
}
#lang-toggle .lang-flag { font-size: 1rem; line-height: 1; }
#lang-toggle .lang-short { font-size: 0.7rem; }

/* Dropdown panel */
.lang-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  min-width: 148px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  transform-origin: top right;
}
.lang-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
/* Each option */
.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  transition: background .14s, color .14s;
}
.lang-option:hover {
  background: var(--bg3);
  color: var(--text);
}
.lang-option.active {
  color: var(--accent2);
  font-weight: 700;
}
.lang-option .lang-flag  { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.lang-option .lang-label { flex: 1; }

/* ── Stripe CTA button ───────────────────────────────────── */
.btn-on-pink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: var(--btn-radius, .5rem);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.btn-on-pink:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.65);
  color: #fff;
}

/* ── Reveal animations ───────────────────────────────────── */
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-left.in-view,
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE NAV BURGER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav-burger { display: none; }

@media (max-width: 640px) {
  .nav-links   { display: none !important; }
  .nav-burger  { display: flex !important; }
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  transform: translateY(-110%);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
}
.mobile-menu-inner a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color .18s;
}
.mobile-menu-inner a:last-child { border-bottom: none; }
.mobile-menu-inner a:hover,
.mobile-menu-inner a.active { color: var(--text); }
.mobile-menu-inner a i { width: 1.2em; color: var(--accent2); }
.mobile-donate {
  margin-top: 0.5rem;
  color: var(--accent2) !important;
  font-weight: 800 !important;
  border-bottom: none !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO BADGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.hero-badge .fa-bolt { color: var(--accent); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOME SECTIONS (featured grids)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.home-section {
  padding: 4rem 2rem;
}
.home-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section header row */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section-header-left { display: flex; flex-direction: column; gap: 0.2rem; }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent2);
  transition: gap .18s, opacity .18s;
  white-space: nowrap;
  padding-bottom: 0.2rem;
}
.section-link:hover { gap: 0.65rem; opacity: 0.82; }

/* ── Skeleton loading cards ──────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.card-skeleton {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(90deg,
    var(--bg3) 25%,
    var(--bg2) 50%,
    var(--bg3) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  height: 220px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOME STRIPES (compact, inline)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.home-stripe {
  padding: 4rem 2rem;
  overflow: hidden;
  position: relative;
}
.home-stripe--pink {
  background: var(--accent2);
  clip-path: polygon(0 8%, 100% 0%, 100% 92%, 0% 100%);
  margin: -2rem 0;
  padding: 6rem 2rem;
}
.home-stripe--blue {
  background: var(--accent3);
  clip-path: polygon(0 0%, 100% 8%, 100% 100%, 0% 92%);
  margin: -2rem 0;
  padding: 6rem 2rem;
}

.home-stripe-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.home-stripe-inner--about {
  gap: 4rem;
  align-items: flex-start;
}

/* Pink stripe content */
.stripe-icon-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 2rem;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.stripe-icon-group i:nth-child(1),
.stripe-icon-group i:nth-child(3) { color: rgba(255,255,255,0.85); font-size: 2.4rem; }
.stripe-copy { flex: 1; }
.stripe-copy h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}
.stripe-copy p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* About section (blue stripe) */
.about-icon-wrap {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.12);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
  transition: transform .3s;
}
.about-icon-wrap:hover { transform: scale(1.05) rotate(-4deg); }
.about-text { flex: 1; }
.about-text h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0.4rem 0 0.75rem;
}
.about-text p {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 1.25rem;
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.about-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.about-chips span i { color: rgba(255,255,255,0.65); font-size: 0.75rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DONATE SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.home-section--donate {
  padding: 5rem 2rem 6rem;
  background: var(--bg2);
}
.donate-card {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.donate-icon {
  width: 72px;
  height: 72px;
  background: rgba(187,45,98,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent2);
  margin-bottom: 1.25rem;
  animation: heartbeat 2.5s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.12); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.07); }
  56%       { transform: scale(1); }
}
.donate-card h3 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.donate-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.donate-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE HEADER (assets.html / games.html — improved)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.catalog-header {
  position: relative;
  padding: 3.5rem 2rem 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.catalog-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 10% 50%,
    var(--accent2-glow) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 90% 30%,
    var(--accent3-glow) 0%, transparent 70%);
  pointer-events: none;
}
.catalog-header-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}
.catalog-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.catalog-header p {
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.65;
}
/* Decorative big icon in the bg */
.catalog-header-icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  color: var(--border);
  opacity: 0.35;
  pointer-events: none;
  line-height: 1;
}
@media (max-width: 640px) {
  .catalog-header-icon { font-size: 5rem; opacity: 0.2; right: 1rem; }
  .catalog-header { padding: 2.5rem 1.25rem 2rem; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE HOMEPAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 760px) {
  .home-stripe-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .stripe-icon-group { justify-content: center; }
  .home-stripe--pink,
  .home-stripe--blue {
    clip-path: polygon(0 4%, 100% 0%, 100% 96%, 0% 100%);
    padding: 5rem 1.5rem;
    margin: -1.5rem 0;
  }
  .home-section { padding: 3rem 1.25rem; }
  .about-icon-wrap { margin: 0 auto; }
  .about-text p { max-width: 100%; }
  .about-chips { justify-content: center; }
  .section-header h2 { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .donate-actions { flex-direction: column; width: 100%; }
  .donate-actions .btn-primary,
  .donate-actions .btn-secondary { width: 100%; justify-content: center; }
}
