/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html,
body {
  height: 100%
}

/* ====== VARIABLES ====== */
:root {
  --color-bg: #0f0f0f;
  --color-primary: #b71c1c;
  --color-secondary: #d4af37;
  --color-text: #f5f5f5;
  --color-muted: #999;

  --font-main: 'Inter', system-ui, sans-serif;
  --font-heading: 'Oswald', system-ui, sans-serif;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --container: 1200px;
}

/* ====== BASE ====== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading)
}

h1 {
  font-size: 2rem
}

h2 {
  font-size: 1.6rem
}

h3 {
  font-size: 1.25rem
}

/* ====== LAYOUT ====== */
main#app {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--spacing-lg)
}

header#header {
  width: 100%;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(183, 28, 28, .6);
  padding: var(--spacing-md) var(--spacing-lg);
  position: sticky;
  top: 0;
  z-index: 10;
}

footer#footer {
  background: #1a1a1a;
  border-top: 2px solid var(--color-primary);
  text-align: center;
  padding: var(--spacing-md);
  font-size: .9rem;
  color: var(--color-muted);
}

/* ====== HEADER (fragmento) ====== */
#header .main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap
}

#header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0
}

#header .logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px
}

#header .logo h1 {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin: 0;
}

#header .main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end
}

#header .main-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap
}

#header .main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color .2s
}

#header .main-nav a:hover,
#header .main-nav a.active {
  color: var(--color-primary)
}

/* ====== UTILIDADES ====== */
section {
  margin-bottom: var(--spacing-xl)
}

.muted {
  color: var(--color-muted)
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600
}

.btn:hover {
  filter: brightness(1.1)
}

/* ====== PÁGINA: DESAFÍO ====== */
#desafio-view .section-hero {
  margin-bottom: var(--spacing-lg)
}

#desafio-view .subnav {
  display: flex;
  gap: var(--spacing-md);
  border-bottom: 1px solid #333;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm)
}

#desafio-view .subnav a {
  text-decoration: none;
  color: var(--color-text);
  padding: 6px 10px;
  border-radius: var(--radius-sm)
}

#desafio-view .subnav a.active {
  background: #1f1f1f;
  border: 1px solid var(--color-primary)
}

#desafio-view .tab h3 {
  margin-bottom: var(--spacing-sm)
}

#lista-etapas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--spacing-md)
}

.ruta-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-md);
  overflow: hidden
}

.ruta-card .thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block
}

.ruta-card .info {
  padding: var(--spacing-md)
}

.ruta-card h4 {
  margin-bottom: var(--spacing-xs)
}

.estado {
  display: inline-block;
  margin-top: var(--spacing-sm);
  font-size: .85rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: #2a2a2a;
  color: var(--color-muted)
}

.estado.pendiente {
  border: 1px dashed var(--color-muted)
}

.estado.completado {
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary)
}

/* === PESTAÑAS ACTIVAS EN "EL DESAFÍO" === */
#desafio-view .subnav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #333;
  margin-bottom: 16px;
  padding-bottom: 8px;
}

#desafio-view .subnav a {
  text-decoration: none;
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .2s;
}

#desafio-view .subnav a.active {
  background: #1f1f1f;
  border: 1px solid var(--color-primary);
}

/* --- Rutas: pulido visual --- */
#lista-etapas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.ruta-card {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.ruta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  border-color: #333;
}

.ruta-card .thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ruta-card .info {
  padding: 14px 16px;
}

.ruta-card h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.ruta-card p {
  color: #cfcfcf;
  font-size: .95rem;
}

.estado {
  display: inline-block;
  margin-top: 10px;
  font-size: .8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #222;
  color: #bbb;
  border: 1px solid #333;
}

.estado.pendiente {
  border-style: dashed;
}

.estado.completado {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  background: rgba(212, 175, 55, .08);
}

/* --- Responsive header --- */
@media (max-width: 768px) {
  #header .main-header {
    gap: 12px;
    flex-wrap: wrap;
  }

  #header .logo {
    width: 100%;
    justify-content: center;
  }

  #header .main-nav {
    width: 100%;
    justify-content: center;
  }
}

/* --- Estilos para la sección FAQ --- */
#tab-faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
  border-color: var(--color-primary);
  background: #181818;
}

.faq-item h4 {
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.faq-item p {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* --- Formulario de nuevas preguntas --- */
.faq-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  background: #151515;
  border: 1px solid #252525;
  border-radius: 8px;
  padding: 12px;
}

.faq-form input,
.faq-form textarea {
  width: 100%;
  border: 1px solid #333;
  background: #0f0f0f;
  color: var(--color-text);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
}

.faq-form button {
  justify-self: start;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.faq-form button:hover {
  filter: brightness(1.1);
}

/* Botón completar */
.btn-completar {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #202020;
  color: #fff;
  cursor: pointer;
}

.btn-completar:hover {
  filter: brightness(1.1);
}

.btn-completar:disabled {
  opacity: .6;
  cursor: default;
}

/* Logros */
#grid-stickers {
  margin-top: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.sticker {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.sticker .circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #444;
  font-weight: 700;
}

.sticker.off .circle {
  color: #888;
}

.sticker.on {
  border-color: var(--color-secondary);
}

.sticker.on .circle {
  border-style: solid;
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* ============================
   PÁGINA DE INICIO (INICIO)
   ============================ */

/* Hero principal de inicio */
.inicio-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1.1fr);
  gap: 3rem;
  padding: 5rem 0 4rem;
  /* más alto, se ve más "hero" */
  align-items: stretch;
  overflow: hidden;
}

/* Versión responsive */
@media (max-width: 900px) {
  .inicio-hero {
    grid-template-columns: 1fr;
    padding: 3rem 0;
  }
}

/* Fondo con logo desvanecido */
.inicio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
    url("../../assets/images/desafio_conquistador_sinfondo.png");
  /* AJUSTA: carpeta y nombre reales */
  background-repeat: no-repeat;
  background-size: contain;
  /* logo completo */
  background-position: center center;
  opacity: 0.25;
  filter: brightness(1.1);
  z-index: -1;
  animation: hero-bg-move 20s ease-in-out infinite alternate;
}

@keyframes hero-bg-move {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.06) translate3d(0, -10px, 0);
  }
}

/* Contenido del hero */
.inicio-hero__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  animation: fade-up-soft 0.8s ease-out forwards;
}

.inicio-hero__eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.inicio-hero__title {
  font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.inicio-hero__title-highlight {
  display: block;
  font-size: 0.9em;
  font-weight: 700;
  color: #ffb347;
}

.inicio-hero__subtitle {
  margin-bottom: 1.75rem;
  z-index: 1;
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: radial-gradient(circle at top left, rgba(255, 179, 71, 0.15), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.7), transparent 55%),
    rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  animation: fade-up-soft 0.9s ease-out forwards;
}

.inicio-hero__side-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.inicio-hero__side-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.inicio-hero__side-text {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.inicio-hero__side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  display: grid;
  gap: 0.25rem;
  opacity: 0.9;
}

/* Sección "¿Qué es el Desafío Conquistador?" */
.inicio-highlights {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.inicio-highlights__title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.inicio-highlights__intro {
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.inicio-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .inicio-highlights__grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjetas de la sección highlights */
.inicio-card {
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: fade-up-soft 0.9s ease-out forwards;
}

.inicio-card:nth-child(2) {
  animation-delay: 0.1s;
}

.inicio-card:nth-child(3) {
  animation-delay: 0.2s;
}

.inicio-card__title {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.inicio-card__text {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Sección estado / aviso */
.inicio-status {
  padding: 2.5rem 0 3rem;
}

.inicio-status__card {
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg,
      rgba(255, 179, 71, 0.12),
      rgba(0, 0, 0, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6);
}

.inicio-status__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.inicio-status__text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* Botones genéricos (óvalos) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ffb347, #ffcc33);
  color: #111;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.btn-outline {
  background: transparent;
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f5f5f5;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Chips / textos flotantes */
.chip {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: radial-gradient(circle at top left, rgba(255, 179, 71, 0.15), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.7), transparent 55%),
    rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  animation: fade-up-soft 0.9s ease-out forwards;
}

.inicio-hero__side-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.inicio-hero__side-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.inicio-hero__side-text {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.inicio-hero__side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  display: grid;
  gap: 0.25rem;
  opacity: 0.9;
}

/* Sección "¿Qué es el Desafío Conquistador?" */
.inicio-highlights {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.inicio-highlights__title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.inicio-highlights__intro {
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.inicio-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .inicio-highlights__grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjetas de la sección highlights */
.inicio-card {
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: fade-up-soft 0.9s ease-out forwards;
}

.inicio-card:nth-child(2) {
  animation-delay: 0.1s;
}

.inicio-card:nth-child(3) {
  animation-delay: 0.2s;
}

.inicio-card__title {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.inicio-card__text {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Sección estado / aviso */
.inicio-status {
  padding: 2.5rem 0 3rem;
}

.inicio-status__card {
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg,
      rgba(255, 179, 71, 0.12),
      rgba(0, 0, 0, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6);
}

.inicio-status__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.inicio-status__text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* Botones genéricos (óvalos) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ffb347, #ffcc33);
  color: #111;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.btn-outline {
  background: transparent;
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f5f5f5;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Chips / textos flotantes */
.chip {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Animación de aparición suave */
@keyframes fade-up-soft {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   SECCIÓN: LOGROS (STICKERS)
   ============================ */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  padding: 16px 0;
}

.sticker-card {
  position: relative;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  border: 1px solid #333;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  opacity: 0;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sticker-card:hover {
  z-index: 10;
}

.sticker-card.locked {
  filter: grayscale(1) opacity(0.6);
  background: #111;
  border-style: dashed;
}

.sticker-card.unlocked {
  background: linear-gradient(145deg, #222, #1a1a1a);
  border: 1px solid #444;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.sticker-card.unlocked:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.1);
}

.sticker-image-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  background: #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sticker-card.locked .sticker-image-wrapper {
  border-color: #444;
}

.sticker-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticker-info h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #fff;
}

.sticker-info p {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.3;
}

.check-badge,
.lock-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.check-badge {
  background: var(--color-secondary);
  color: #000;
  font-weight: bold;
}

.lock-badge {
  background: #333;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ffb347, #ffcc33);
  color: #111;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.btn-outline {
  background: transparent;
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f5f5f5;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Chips / textos flotantes */
.chip {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Animación de aparición suave */
@keyframes fade-up-soft {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   SECCIÓN: LOGROS (STICKERS)
   ============================ */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  padding: 16px 0;
}

.sticker-card {
  position: relative;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  border: 1px solid #333;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  opacity: 0;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sticker-card:hover {
  z-index: 10;
}

.sticker-card.locked {
  filter: grayscale(1) opacity(0.6);
  background: #111;
  border-style: dashed;
}

.sticker-card.unlocked {
  background: linear-gradient(145deg, #222, #1a1a1a);
  border: 1px solid #444;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.sticker-card.unlocked:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.1);
}

.sticker-image-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  background: #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sticker-card.locked .sticker-image-wrapper {
  border-color: #444;
}

.sticker-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticker-info h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #fff;
}

.sticker-info p {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.3;
}

.check-badge,
.lock-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.check-badge {
  background: var(--color-secondary);
  color: #000;
  font-weight: bold;
}

.lock-badge {
  background: #333;
  color: #888;
  border: 1px solid #555;
}

/* Shine Effect */
.shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: shine-anim 3s infinite;
}

@keyframes shine-anim {
  0% {
    transform: translateX(-100%);
  }

  20% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .sticker-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Image Modal / Lightbox */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: #f1f1f1;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--color-secondary);
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}