/* Páginas generadas por tool/seo_site/build.py (juegos y portadas en/pt/pt-pt).
   Repite los estilos de la portada (index.html) que estas páginas necesitan. */

.nav-mail {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-mail:hover {
  opacity: 1;
}

/* Cabecera */
.hero-section {
  background: linear-gradient(180deg, var(--peach-soft) 0%, var(--peach-cream) 100%);
  padding: 4rem 0;
  border-bottom: 1px solid rgba(74, 46, 39, 0.08);
}

.game-hero {
  padding-top: 2rem;
}

.hero-kicker {
  display: inline-block;
  background-color: rgba(46, 156, 142, 0.12);
  color: var(--mint-dark);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-weight: 900;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.game-hero .hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--brown-soft);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-card {
  width: 100%;
  max-width: 380px;
  border-radius: 2rem;
  box-shadow: 0 14px 36px rgba(74, 46, 39, 0.22);
}

.app-icon-hero {
  width: 250px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(74, 46, 39, 0.18);
}

.crumbs {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brown-soft);
  padding-top: 1rem;
  padding-bottom: 0.25rem;
  background: transparent;
}

.crumbs a {
  color: var(--mint-dark);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

/* Tiendas y botón de la webapp */
.store-badges img {
  height: 55px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: transform 0.2s;
}

.store-badges img:hover {
  transform: scale(1.05);
}

.try-label {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brown-soft);
  margin: 0.5rem 0 0.75rem;
}

@keyframes rotate-border {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.web-app-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 63px;
  color: #ffffff;
  border-radius: 8px;
  padding: 0 16px;
  user-select: none;
  text-decoration: none;
  transition: transform 0.2s;
  overflow: hidden;
  z-index: 0;
}

.web-app-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  padding-bottom: 200%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 70%, var(--amber) 100%);
  transform: translate(-50%, -50%);
  animation: rotate-border 3.5s linear infinite;
  z-index: -2;
}

.web-app-link::after {
  content: '';
  position: absolute;
  inset: 4px;
  background-color: var(--mint-dark);
  border-radius: 4px;
  z-index: -1;
}

.web-app-link:hover {
  transform: scale(1.05);
  color: #ffffff;
}

.web-app-link:hover::before {
  background: conic-gradient(var(--amber), var(--amber));
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .web-app-link::before {
    animation: none;
  }
}

.web-app-link .icon {
  font-size: 1.5rem;
  margin-right: 10px;
}

.web-app-link .texts {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.web-app-link .texts small {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #cdeee9;
}

.web-app-link .texts strong {
  font-size: 1rem;
  font-weight: 800;
}

/* Secciones */
.section {
  padding: 4rem 0;
}

.section-white {
  background-color: #ffffff;
  border-top: 1px solid rgba(74, 46, 39, 0.06);
  border-bottom: 1px solid rgba(74, 46, 39, 0.06);
}

.narrow {
  max-width: 780px;
}

.intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--brown-soft);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.card-canela h3 {
  color: var(--brown);
}

.card-canela p {
  color: var(--brown-soft);
}

/* Cómo se juega */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 1.5rem;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.25rem 3.25rem;
  min-height: 2.5rem;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--mint);
  color: #ffffff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.step span {
  color: var(--brown-soft);
}

.controls {
  padding: 1.25rem 1.5rem;
  background-color: var(--peach-cream);
  box-shadow: none;
  border: 1px solid rgba(217, 150, 111, 0.35);
}

/* Mundos */
.game-chip {
  display: inline-block;
  background-color: #ffffff;
  border: 1px solid rgba(217, 150, 111, 0.45);
  color: var(--brown);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin: 0.3rem;
  font-size: 0.95rem;
}

/* Preguntas frecuentes */
.faq-item {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(74, 46, 39, 0.06);
  margin-bottom: 0.75rem;
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  padding: 1rem 3rem 1rem 1.25rem;
  list-style: none;
  position: relative;
}

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

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--mint);
}

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

.faq-item p {
  padding: 0 1.25rem 1rem;
  margin: 0;
  color: var(--brown-soft);
  line-height: 1.6;
}

/* Llamado a descargar */
.cta-icon {
  width: 100%;
  max-width: 220px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(74, 46, 39, 0.18);
}

/* Tarjetas de juegos */
.game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(74, 46, 39, 0.1);
  text-decoration: none;
  color: var(--brown);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(74, 46, 39, 0.16);
  color: var(--brown);
}

.game-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.game-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 1rem 1rem;
}

.game-card-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 0 0.35rem;
}

.game-card-text {
  font-size: 0.9rem;
  color: var(--brown-soft);
  flex: 1;
}

.game-card-more {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--mint-dark);
}

/* Pie */
.footer-games a,
.footer-langs a {
  font-weight: 700;
}

.footer-langs {
  font-size: 0.9rem;
}

@media (max-width: 576px) {
  .section {
    padding: 3rem 0;
  }

  .hero-section {
    padding: 2.5rem 0;
  }

  .store-badges img {
    height: 46px;
  }

  .game-card-text {
    display: none;
  }

  .navbar-canela .lang-select {
    max-width: 8.5rem;
    text-overflow: ellipsis;
  }
}
