:root {
  --bg: #0f1115;
  --bg-card: #1a1d24;
  --fg: #e8e9ec;
  --fg-muted: #9aa0aa;
  --accent: #ff9900; /* Amazon orange, uso editorial no logotipo */
  --border: #2a2e37;
  --radius: 10px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

a { color: inherit; }

.site-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Selector de país (landing raíz) */
.country-select {
  text-align: center;
  padding-top: 3rem;
}

.country-select h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.intro {
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.country-card:hover { border-color: var(--accent); }

.flag { font-size: 2.5rem; }
.country-name { font-size: 1.15rem; font-weight: 600; }
.country-sub { color: var(--fg-muted); font-size: 0.9rem; }

/* Indice de pais */
.index h1 { font-size: 1.6rem; margin-bottom: 0.25rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s ease;
}

.card:hover { border-color: var(--accent); }

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 0.5rem;
}

.card-title {
  padding: 0.6rem 0.75rem 0.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  padding: 0 0.75rem 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

/* Pagina de review */
.review { max-width: 640px; }

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover { color: var(--fg); }

.review h1 { font-size: 1.5rem; margin-bottom: 1rem; }

.product-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.review-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.price { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin: 0; }
.units { color: var(--fg-muted); margin: 0; }

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #14141a;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.cta-button:hover { filter: brightness(1.05); }

.disclosure {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--fg-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-button.cta-disabled {
  background: #9ca3af;
  cursor: default;
  pointer-events: none;
  opacity: 0.7;
}

/* --- F8 listicles --- */
.listicle { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.listicle-intro { color: #475569; }
.listicle-items { list-style: none; padding: 0; margin: 24px 0; }
.listicle-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin-bottom: 14px; position: relative; }
.listicle-item img { width: 120px; height: 120px; object-fit: contain; flex: none; background: #fff; }
.listicle-body { flex: 1; min-width: 0; }
.listicle-body h2 { font-size: 15px; margin: 22px 0 6px; line-height: 1.35; }
.listicle-meta { color: #64748b; font-size: 13px; margin: 0 0 10px; }
.rank-badge { position: absolute; top: 10px; left: 10px; background: #b45309; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.listicle-updated { color: #94a3b8; font-size: 12px; }
.card-listicle { border: 2px solid #b45309; }
