:root{
  --bg: #0a1310;
  --line: rgba(255,255,255,0.08);
  --text: #eafaf1;
  --text-dim: #9fb8ac;
  --accent: #7ee3ae;
  --accent-dim: rgba(126,227,174,0.12);
  --accent-line: rgba(126,227,174,0.35);
  --danger: #e37e7e;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}
*{ box-sizing: border-box; }
html{ scroll-padding-top: env(safe-area-inset-top, 0px); }
html, body{ height: 100%; }
body{
  margin:0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(126,227,174,0.06), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(126,227,174,0.04), transparent 40%);
  color: var(--text);
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

header{
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(10,19,16,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand-row{
  display:flex;
  align-items:center;
  gap: clamp(8px, 3vw, 16px);
  padding: 14px clamp(14px, 4vw, 22px);
  max-width: 1100px;
  margin: 0 auto;
}

.logo-mark{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7ee3ae 0%, #4fb8c9 50%, #6f7fe0 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-weight: 600;
  font-size: 15px;
  color: #06110c;
}

.brand-name{
  font-weight: 500;
  font-size: clamp(17px, 4.5vw, 22px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.divider-v{ width: 1px; height: 18px; background: var(--line); flex-shrink:0; }

.brand-tag{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

nav{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(6px, 2vw, 22px);
  display:flex;
  align-items:stretch;
  gap: 2px;
  border-top: 1px solid var(--line);
}

nav a{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 4px 9px;
  margin: 6px 2px;
  border-radius: 10px;
  text-decoration:none;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 12px;
  text-align:center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}
nav a svg{ width: 20px; height:20px; flex-shrink:0; }
nav a:hover{ color: var(--text); background: rgba(255,255,255,0.04); }
nav a.active{ color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent-line); }

main{ max-width: 1100px; margin: 0 auto; padding: clamp(20px, 6vw, 40px) clamp(14px, 4vw, 22px); }

.placeholder{
  color: var(--text-dim);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: clamp(24px, 6vw, 40px);
  text-align: center;
}

@media (min-width: 640px){
  .brand-row{ padding: 18px 22px; gap: 16px; }
  .logo-mark{ width: 44px; height: 44px; border-radius: 12px; font-size: 18px; }
  .brand-name{ font-size: 26px; }
  .divider-v{ height: 22px; }
  .brand-tag{ font-size: 13px; letter-spacing: 0.1em; }
  nav{ gap: 6px; padding: 0 22px; }
  nav a{ flex-direction: row; flex: 0 0 auto; gap: 9px; padding: 13px 18px; margin: 8px 0; font-size: 15px; }
  nav a svg{ width: 18px; height: 18px; }
  nav a.active{ padding: 12px 17px; }
}

/* ---- Pokémon grid ---- */
.grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px){ .grid{ grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 960px){ .grid{ grid-template-columns: repeat(4, 1fr); } }

.card{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover{ border-color: var(--accent-line); transform: translateY(-2px); }
.card img{ width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display:block; background: #0d1a15; }
.card-body{ padding: 10px 12px 14px; }
.card-title{ font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.card-price{ font-size: 13px; color: var(--accent); font-weight: 600; }
.empty-state{ grid-column: 1 / -1; }

/* ---- Admin ---- */
.admin-shell{ max-width: 640px; margin: 0 auto; }
.field{ margin-bottom: 16px; }
.field label{ display:block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field textarea{
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; color: var(--text); font: inherit; font-size: 14px;
}
.field textarea{ min-height: 80px; resize: vertical; }
.field input[type="file"]{ color: var(--text-dim); font-size: 13px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--accent); color: #06150e; font-weight: 700; font-size: 14px;
  border: none; border-radius: 10px; padding: 12px 20px; cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover{ opacity: 0.9; }
.btn:disabled{ opacity: 0.5; cursor: not-allowed; }
.btn-danger{ background: transparent; color: var(--danger); border: 1px solid var(--danger); font-weight: 600; padding: 8px 14px; font-size: 13px; }
.admin-item{
  display:flex; gap: 12px; align-items:center; padding: 12px; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; background: rgba(255,255,255,0.02);
}
.admin-item img{ width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink:0; background:#0d1a15; }
.admin-item-info{ flex:1; min-width:0; }
.admin-item-info .t{ font-weight: 600; font-size: 14px; }
.admin-item-info .p{ color: var(--accent); font-size: 13px; }
.status-msg{ font-size: 13px; margin: 10px 0; }
.status-msg.ok{ color: var(--accent); }
.status-msg.err{ color: var(--danger); }
h1.page-title{ font-size: clamp(20px, 5vw, 28px); font-weight: 600; margin: 0 0 20px; }

/* ---- Stock y Agotado ---- */
.card {
  cursor: default; /* Quita la manito de click */
}
.card:hover {
  transform: none; /* Quita la animación de salto */
  border-color: var(--line);
}
.card-stock {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
  font-weight: 500;
}
.card-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin: 10px 0 0;
  line-height: 1.4;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
}

/* Efecto visual cuando no hay stock */
.card.agotado img {
  filter: grayscale(100%) opacity(0.4);
}
.card.agotado .card-title,
.card.agotado .card-price,
.card.agotado .card-desc {
  opacity: 0.5;
}
.img-wrapper {
  position: relative;
}
.badge-agotado {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--danger);
  color: #000;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* ---- Home & Hero ---- */
.hero {
  text-align: center;
  padding: clamp(40px, 8vw, 80px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 7vw, 48px);
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero h1 span {
  color: var(--accent); /* Resalta "Pokémon GO" con tu verde de marca */
}
.hero p {
  color: var(--text-dim);
  font-size: clamp(15px, 4vw, 18px);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #06150e;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-large:hover { 
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ---- Beneficios ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.feature-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  padding: 28px 24px;
  border-radius: 16px;
  text-align: center;
  transition: border-color 0.15s ease;
}
.feature-card:hover {
  border-color: var(--accent-line);
}
.feature-card svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 { 
  margin: 0 0 10px; 
  font-size: 17px; 
  font-weight: 600;
}
.feature-card p { 
  margin: 0; 
  font-size: 14px; 
  color: var(--text-dim); 
  line-height: 1.5; 
}

/* ---- Trustpilot Placeholder ---- */
.trustpilot-placeholder {
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.trust-stars { 
  display: flex; 
  gap: 4px; 
  color: #00b67a; /* Verde oficial de Trustpilot */
}
.trust-stars svg { 
  width: 28px; 
  height: 28px; 
  fill: currentColor; 
}
