/* =============================================================================
 * Aventura en el Parque - shared styles for the pre-launch campaign sections
 * =============================================================================
 * Loaded after each page's inline <style> block. Holds only the rules for
 * components introduced for the Kickstarter pre-campaign, so the Spanish and
 * English pages cannot drift apart visually.
 *
 * Relies on the CSS custom properties already declared inline on each page:
 * --primary, --primary-dark, --secondary, --accent, --dark, --dark-lighter,
 * --light, --gray.
 * ========================================================================== */

:root {
  --kickstarter: #05ce78;
  --kickstarter-dark: #049e5c;
}

/* -----------------------------------------------------------------------------
 * Hero artwork: portrait crop on phones, landscape on tablets and desktop.
 * -------------------------------------------------------------------------- */
.hero-art {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 0 auto 28px auto;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

/* The 9:16 creative is tall, so cap it by height on small screens. */
@media (max-width: 600px) {
  .hero-art {
    max-width: 340px;
    max-height: 62vh;
    width: auto;
    object-fit: contain;
  }
}

/* -----------------------------------------------------------------------------
 * Pre-launch status banner + Kickstarter call to action
 * -------------------------------------------------------------------------- */
.prelaunch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 206, 120, 0.12);
  border: 1px solid var(--kickstarter);
  color: var(--kickstarter);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.prelaunch-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--kickstarter);
  animation: prelaunch-pulse 1.8s ease-in-out infinite;
}

@keyframes prelaunch-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.cta-button.kickstarter {
  background: linear-gradient(135deg, var(--kickstarter) 0%, var(--kickstarter-dark) 100%);
  color: #04231a;
  box-shadow: 0 4px 20px rgba(5, 206, 120, 0.38);
}

.cta-button.kickstarter:hover {
  box-shadow: 0 8px 30px rgba(5, 206, 120, 0.55);
}

.cta-button.instagram {
  background: linear-gradient(135deg, #f09433, #dc2743 55%, #bc1888);
  color: #fff;
  box-shadow: 0 4px 20px rgba(220, 39, 67, 0.38);
}

.cta-button.instagram:hover {
  box-shadow: 0 8px 30px rgba(220, 39, 67, 0.55);
}

/* -----------------------------------------------------------------------------
 * Self-hosted promo video (replaces the old YouTube iframe so the WebVTT
 * caption tracks can be used).
 * -------------------------------------------------------------------------- */
.video-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.85em;
  margin-top: 14px;
}

/* -----------------------------------------------------------------------------
 * "Two games" section
 * -------------------------------------------------------------------------- */
.games-section {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 50%, var(--dark) 100%);
  padding: 80px 20px;
  position: relative;
  z-index: 2;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.game-card {
  background: var(--dark-lighter);
  border: 1px solid #333;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.game-card__media {
  background: #0d0d0d;
  padding: 18px;
  text-align: center;
}

.game-card__media img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
}

.game-card__body {
  padding: 0 28px 30px;
}

.game-card__body h3 {
  font-size: 1.5em;
  color: var(--secondary);
  margin-bottom: 6px;
}

.game-card__meta {
  color: var(--gray);
  font-size: 0.9em;
  font-weight: 700;
  margin-bottom: 16px;
}

.game-card__body ul {
  list-style: none;
  padding: 0;
}

.game-card__body li {
  padding: 7px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97em;
}

.game-card__body li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
  flex-shrink: 0;
}

.game-card__tag {
  display: inline-block;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.78em;
  font-weight: 700;
  margin-bottom: 14px;
}

/* -----------------------------------------------------------------------------
 * Components showcase
 * -------------------------------------------------------------------------- */
.showcase-image {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

/* -----------------------------------------------------------------------------
 * Planned pledge levels
 * -------------------------------------------------------------------------- */
.rewards-section {
  background: var(--dark-lighter);
  padding: 80px 20px;
  position: relative;
  z-index: 2;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.reward-card {
  background: var(--dark);
  border: 1px solid #333;
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.reward-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
}

.reward-card.featured {
  border-color: var(--kickstarter);
  box-shadow: 0 0 30px rgba(5, 206, 120, 0.18);
}

.reward-card__flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--kickstarter);
  color: #04231a;
  font-size: 0.72em;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.reward-card h3 {
  font-size: 1.05em;
  color: var(--light);
  margin-bottom: 10px;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reward-card__price {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.1em;
  color: var(--secondary);
  display: block;
  line-height: 1.1;
}

.reward-card__desc {
  color: var(--gray);
  font-size: 0.88em;
  margin-top: 10px;
}

.rewards-disclaimer {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--gray);
  font-size: 0.85em;
  line-height: 1.6;
}

/* -----------------------------------------------------------------------------
 * FAQ (mirrors the FAQPage structured data)
 * -------------------------------------------------------------------------- */
.faq-section {
  background: var(--dark);
  padding: 80px 20px;
  position: relative;
  z-index: 2;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--dark-lighter);
  border: 1px solid #333;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05em;
  color: var(--secondary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4em;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item summary:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: -2px;
}

.faq-item__answer {
  padding: 0 24px 22px;
  color: var(--light);
  font-size: 0.97em;
}

/* -----------------------------------------------------------------------------
 * Cookie consent banner (injected by assets/site.js)
 * -------------------------------------------------------------------------- */
.aep-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(12, 12, 12, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid #333;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.aep-consent__text {
  color: #cfcfcf;
  font-size: 0.85em;
  max-width: 680px;
  line-height: 1.5;
  margin: 0;
}

.aep-consent__text a { color: var(--secondary); }

.aep-consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.aep-consent__btn {
  font-family: inherit;
  font-size: 0.85em;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.aep-consent__btn:hover { transform: translateY(-2px); }

.aep-consent__btn--ghost {
  background: transparent;
  border: 1px solid #555;
  color: #cfcfcf;
}

@media (max-width: 640px) {
  .aep-consent { flex-direction: column; align-items: stretch; text-align: center; }
  .aep-consent__actions { justify-content: center; }
}

/* -----------------------------------------------------------------------------
 * Small shared helpers
 * -------------------------------------------------------------------------- */
.section-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.9em;
  max-width: 700px;
  margin: 24px auto 0;
  line-height: 1.6;
}

.text-link { color: var(--secondary); }

@media (prefers-reduced-motion: reduce) {
  .prelaunch-badge .dot { animation: none; }
  .game-card:hover, .reward-card:hover { transform: none; }
}
