/* =============================================================
   YAXXK SHOP — pages.css
   Estilos específicos de cada página / vista
   ============================================================= */

/* ─── LAYOUT PRINCIPAL ────────────────────────────────────────── */
#app { padding-top: var(--header-h); min-height: 100vh; }
.page { display: none; min-height: calc(100vh - var(--header-h)); }
.page.active { display: block; animation: fadeInUp 0.35s var(--ease) both; }

/* ─── HOME PAGE ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--header-h));
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(37,99,235,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(124,58,237,0.06) 0%, transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero__content { position: relative; z-index: 1; padding: 4rem 0; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary-10);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.5s var(--ease) 0.1s both;
}
.hero__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 1.5s infinite; }
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.5s var(--ease) 0.2s both;
}
.hero__title-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.5s var(--ease) 0.3s both;
}
.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 0.5s var(--ease) 0.4s both; }
.hero__stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  animation: fadeInUp 0.5s var(--ease) 0.5s both;
}
.hero__stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text); }
.hero__stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.hero__visual {
  position: relative; z-index: 1;
  animation: float 4s ease-in-out infinite;
}
.hero__card-preview {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(37,99,235,0.1);
  backdrop-filter: blur(16px);
  max-width: 340px;
}

/* Categorías scroll horizontal */
.categories-scroll {
  display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-pill {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}
.category-pill:hover, .category-pill.active {
  background: var(--primary-10);
  border-color: var(--primary);
  color: var(--primary);
}

/* Sección de productos */
.section { padding: 4rem 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.section-title { font-size: 1.75rem; font-weight: 800; }
.section-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }

/* Grid de productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all var(--duration-md) var(--ease);
  text-align: center;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-primary); }
.feature-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card__desc { font-size: 0.875rem; color: var(--text-secondary); }

/* ─── SHOP PAGE ───────────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem 0; }
.shop-sidebar {
  position: sticky; top: calc(var(--header-h) + 1rem);
  align-self: start;
}
.shop-sidebar__section { margin-bottom: 1.5rem; }
.shop-sidebar__title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.75rem; }
.shop-sidebar__item {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.75rem; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all var(--duration) var(--ease);
  border: 1px solid transparent;
}
.shop-sidebar__item:hover, .shop-sidebar__item.active {
  background: var(--primary-10); color: var(--primary); border-color: var(--border-primary);
}
.shop-main { min-width: 0; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.shop-count { font-size: 0.875rem; color: var(--text-muted); }

/* ─── PRODUCT DETAIL PAGE ─────────────────────────────────────── */
.product-detail {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-detail__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--surface-2);
}
.product-detail__image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 6rem; }
.product-detail__category { font-size: 0.8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.product-detail__name { font-size: 2rem; font-weight: 900; margin-bottom: 1rem; line-height: 1.2; }
.product-detail__rating { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.5rem; }
.product-detail__desc { color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; white-space: pre-wrap; }
.product-detail__price { font-size: 2.5rem; font-weight: 900; color: var(--primary); margin-bottom: 2rem; }
.product-detail__actions { display: flex; flex-direction: column; gap: 0.875rem; }

/* ─── AUTH PAGES ──────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(37,99,235,0.06) 0%, transparent 70%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.auth-card__top {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
}
.auth-card__icon { font-size: 3rem; margin-bottom: 1rem; }
.auth-card__title { font-size: 1.6rem; font-weight: 800; }
.auth-card__subtitle { opacity: 0.85; font-size: 0.9rem; margin-top: 0.4rem; }
.auth-card__body { padding: 2rem; }
.auth-card__footer { padding: 1.25rem 2rem; border-top: 1px solid var(--border); background: var(--surface-2); text-align: center; font-size: 0.875rem; color: var(--text-secondary); }

/* ─── PROFILE PAGE ────────────────────────────────────────────── */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; padding: 2rem 0; }
.profile-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.profile-card__banner { height: 80px; background: linear-gradient(135deg, var(--primary), #7C3AED); }
.profile-card__body { padding: 0 1.5rem 1.5rem; text-align: center; }
.profile-card__avatar { margin: -30px auto 1rem; border: 4px solid var(--surface); border-radius: 50%; }
.profile-card__name { font-size: 1.2rem; font-weight: 800; }
.profile-card__email { color: var(--text-muted); font-size: 0.85rem; }
.profile-card__balance { margin-top: 1rem; padding: 1rem; background: var(--primary-10); border-radius: var(--radius-md); border: 1px solid var(--border-primary); }
.profile-card__balance-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); }
.profile-card__balance-value { font-size: 2rem; font-weight: 900; color: var(--primary); }
.profile-nav { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.profile-nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: 1px solid transparent;
}
.profile-nav-item:hover, .profile-nav-item.active { background: var(--primary-10); color: var(--primary); border-color: var(--border-primary); }

/* ─── RECHARGE PAGE ───────────────────────────────────────────── */
.recharge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; padding: 2rem 0; }
.payment-method-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--duration-md) var(--ease);
}
.payment-method-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.payment-method-card.selected { border-color: var(--primary); background: var(--primary-10); box-shadow: 0 0 0 3px var(--primary-20); }
.payment-method-card__icon { font-size: 2.5rem; margin-bottom: 0.875rem; }
.payment-method-card__name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.375rem; }
.payment-method-card__desc { font-size: 0.85rem; color: var(--text-secondary); }

/* ─── PAGE HEADER ─────────────────────────────────────────────── */
.page-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-header__title { font-size: 1.875rem; font-weight: 900; }
.page-header__subtitle { color: var(--text-secondary); margin-top: 0.25rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span:not(:last-child)::after { content: '/'; margin-left: 0.5rem; }

/* ─── DELIVERY BOX ────────────────────────────────────────────── */
.delivery-box {
  background: linear-gradient(135deg, rgba(16,185,129,0.05), rgba(37,99,235,0.05));
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.delivery-box__title { display: flex; align-items: center; gap: 0.625rem; color: var(--success); font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.delivery-box__content {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  white-space: pre-wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text);
  line-height: 1.8;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__copy { font-size: 0.85rem; color: var(--text-muted); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { font-size: 0.85rem; color: var(--text-secondary); }
.footer__links a:hover { color: var(--primary); }

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
}
@media (max-width: 768px) {
  .hero__stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero__title { font-size: 2.25rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .section { padding: 2.5rem 0; }
  .section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
}
