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

body {
  background: linear-gradient(150deg, #ede9fe, #f5f3ff);
  background-attachment: fixed;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #444;
  line-height: 1.65;
  min-height: 100vh;
  font-size: 15px;
}

h1, h2, h3, .site-logo {
  font-family: 'Crimson Pro', serif;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.25rem; margin-bottom: 16px; }
h2 { font-size: 1.4rem; margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }

p { margin-bottom: 12px; }

a { color: #6d28d9; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Banner de cookies: hoja inferior con buena visibilidad */
.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.cookie-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: cookieFadeIn 0.35s ease forwards;
  pointer-events: none;
}
.cookie-inner {
  position: relative;
  pointer-events: auto;
  background: #fff;
  border-top: 4px solid #6d28d9;
  border-radius: 16px 16px 0 0;
  padding: 24px 28px 22px;
  max-width: 720px;
  width: calc(100% - 16px);
  margin: 0 8px;
  box-shadow: 0 -12px 48px rgba(0,0,0,0.22);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  animation: cookieSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cookie-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6d28d9;
}
.cookie-body { flex: 1; min-width: 0; }
.cookie-body h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: #1a1a1a;
}
.cookie-body p {
  font-size: 14px;
  color: #444;
  margin: 0 0 14px;
  line-height: 1.55;
}
.cookie-body a { color: #6d28d9; text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: #6d28d9;
  color: #fff;
  border: 2px solid #6d28d9;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  min-width: 140px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cookie-banner button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(109,40,217,0.25); }
.cookie-banner button.cookie-reject {
  background: #fff;
  color: #6d28d9;
  border-color: #6d28d9;
}
.cookie-banner button.cookie-reject:hover { background: rgba(109,40,217,0.06); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* Pulso cuando se ignora */
.cookie-banner.pulse .cookie-inner {
  animation: cookieSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards, cookiePulse 1.1s ease-in-out 0.5s 2;
}
.cookie-banner.pulse .cookie-icon {
  animation: cookieIconShake 0.6s ease-in-out 0.5s 2;
}

@keyframes cookieFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes cookiePulse {
  0%, 100% { box-shadow: 0 -12px 48px rgba(0,0,0,0.22); }
  50% { box-shadow: 0 -12px 60px rgba(109,40,217,0.55), 0 0 0 4px rgba(109,40,217,0.15); }
}
@keyframes cookieIconShake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(4deg); }
}

@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    gap: 14px;
    padding: 20px 18px 18px;
    width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0;
  }
  .cookie-icon { width: 40px; height: 40px; }
  .cookie-actions { width: 100%; }
  .cookie-banner button { flex: 1; min-width: 0; }
}

/* Navbar */
.navbar {
  padding: 16px 0;
  background: transparent;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-logo {
  font-size: 1.5rem;
  color: #1a1a1a;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a { color: #1a1a1a; font-weight: 500; }
.nav-links a:hover { color: #6d28d9; text-decoration: none; }

/* Sections */
section { padding: 48px 0; }

/* Hero */
.hero-content { max-width: 60%; text-align: left; }
.hero-content p { font-size: 1.05rem; }
.hero-meta {
  font-size: 14px;
  color: #777;
  margin-top: 8px;
}

/* Aviso de afiliación encima del catálogo */
.disclosure-strip {
  background: rgba(255,255,255,0.7);
  border-left: 3px solid #6d28d9;
  padding: 12px 16px;
  font-size: 14px;
  color: #555;
  margin: 20px 0 24px;
  border-radius: 4px;
}
.disclosure-strip strong { color: #1a1a1a; }

/* FAQ */
.faq-content { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.faq-item summary {
  font-weight: 500;
  cursor: pointer;
  color: #1a1a1a;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: -2px;
  font-size: 22px;
  color: #6d28d9;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { margin: 12px 0 0; color: #555; }
.faq-item a { color: #6d28d9; }

/* Aviso del pie */
.footer-disclosure {
  font-size: 12px;
  color: #999;
  max-width: 720px;
  margin: 12px auto 0;
}

/* About */
.about-content { max-width: 800px; }

/* Card */
.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(109, 40, 217, 0.08); }

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.game-card { display: flex; flex-direction: column; }
.game-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.game-title-block h3 { margin-bottom: 4px; }
.game-developer { color: #777; font-size: 13px; }
.badge {
  display: inline-block;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.game-desc { margin-bottom: 14px; }
.game-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.game-shots img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.btn {
  display: inline-block;
  background: #6d28d9;
  color: #fff;
  border-radius: 6px;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }
.btn-full { width: 100%; display: block; }
.btn-play { margin-top: auto; }

/* Formulario de suscripción */
.subscribe-wrap { max-width: 560px; margin: 0 auto; }
.subscribe-wrap .card { padding: 32px; }
.subscribe-wrap .subtitle, .form-subtitle { color: #777; margin-bottom: 20px; }
.form-field, .form-group { margin-bottom: 14px; }
.form-field label, .form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #444;
  font-weight: 500;
}
.form-group label .optional {
  color: #999;
  font-weight: 400;
}
.form-microcopy {
  font-size: 13px;
  color: #666;
  margin: 8px 0 16px;
  line-height: 1.5;
}
.form-microcopy a { color: #6d28d9; }

.form-consent {
  margin: 8px 0 16px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #6d28d9;
  cursor: pointer;
}
.consent-label a { color: #6d28d9; }
.consent-error {
  display: none;
  margin: 6px 0 0 26px;
  font-size: 12px;
  color: #b91c1c;
}
.consent-error.show { display: block; }
.push-optin {
  font-size: 14px;
  margin: 12px 0 8px;
  color: #444;
}
.btn-ghost {
  background: transparent;
  color: #6d28d9;
  border: 1px solid #6d28d9;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  padding: 8px 16px;
}
.btn-ghost:hover { background: rgba(109,40,217,0.08); color: #6d28d9; opacity: 1; }
.btn-ghost[disabled] { opacity: 0.6; cursor: default; }
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
input:focus {
  border-color: #6d28d9;
  box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.125);
}
.form-success, .success-msg {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(109, 40, 217, 0.08);
  color: #1a1a1a;
  border-radius: 6px;
  font-size: 14px;
  display: none;
}
.form-success.show, .success-msg.show { display: block; }

/* Legal / contenido de página */
.legal-content, .page-content { max-width: 800px; margin: 0 auto; }
.legal-content h2, .page-content h2 { margin-top: 28px; }
.legal-content ul, .page-content ul { padding-left: 22px; margin-bottom: 14px; margin-top: 12px; }
.legal-content li, .page-content li { margin-bottom: 6px; }
.page-updated {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  color: #888;
  font-style: italic;
}

/* Footer */
.footer {
  text-align: center;
  color: #777;
  padding: 32px 0;
  font-size: 14px;
}
.footer a { color: #777; margin: 0 6px; }
.footer a:hover { color: #6d28d9; }
.footer-links { margin-bottom: 10px; }

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  .hero-content { max-width: 100%; }
  .navbar .container { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 16px; }
  .games-grid { grid-template-columns: 1fr; }
  .subscribe-wrap .card { padding: 24px; }
  section { padding: 32px 0; }
}

/* Lifehacks (TL;DR grid) */
.lifehacks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0 18px;
}
.lifehack-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid #6d28d9;
  border-radius: 8px;
  padding: 18px 20px;
}
.lifehack-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #5b21b6;
  background: rgba(109,40,217,0.10);
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-weight: 500;
}
.lifehack-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.lifehack-card p { font-size: 14px; color: #555; line-height: 1.6; margin: 0; }
.lifehacks-note { font-size: 14px; color: #777; margin-top: 16px; max-width: 800px; }

/* Game guides — long-form how-to-play per game */
#game-guides h2 + p { max-width: 800px; color: #555; }
.game-guide {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 28px 30px;
  margin: 28px 0;
  max-width: 880px;
}
.game-guide h3 {
  font-size: 1.3rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(109,40,217,0.18);
}
.game-guide h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #5b21b6;
  margin: 18px 0 8px;
}
.game-guide p { font-size: 15px; color: #444; margin-bottom: 12px; line-height: 1.65; }
.game-guide ul { margin: 8px 0 4px 22px; padding: 0; }
.game-guide ul li { margin-bottom: 10px; font-size: 15px; color: #444; line-height: 1.65; }
.game-guide ul li strong { color: #1a1a1a; }
@media (max-width: 768px) {
  .game-guide { padding: 22px 20px; }
  .game-guide h3 { font-size: 1.15rem; }
}
