/*
 * Ajustes finales de layout para anuncios responsivos y selector de versiones.
 * Se carga después del bundle para que también cubra estilos inyectados por AdSense.
 */

/* AdSense puede insertar un iframe con un ancho fijo mayor que su contenedor. */
.google-auto-placed,
.google-auto-placed > ins.adsbygoogle,
ins.adsbygoogle,
ins.adsbygoogle > div,
ins.adsbygoogle iframe {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

ins.adsbygoogle iframe {
  width: 100% !important;
}

/* CTA de acceso anticipado: visible, claro y contenido dentro del hero. */
.app-beta-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(100%, 30rem);
  margin: 1.35rem auto 0;
  padding: 0.7rem 0.9rem 0.7rem 0.75rem;
  color: #211a12;
  background: linear-gradient(135deg, #f4d99c 0%, #e8b86d 55%, #c99551 100%);
  border: 1px solid rgba(255, 237, 190, 0.75);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(232, 184, 109, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  text-decoration: none;
  text-align: left;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.app-beta-cta:hover {
  color: #211a12;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232, 184, 109, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.app-beta-cta__icon {
  display: grid;
  flex: 0 0 2.3rem;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  color: #fff9eb;
  background: rgba(77, 49, 20, 0.72);
  border-radius: 50%;
  font-size: 1rem;
}

.app-beta-cta__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.08rem;
}

.app-beta-cta__copy strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.app-beta-cta__copy small {
  color: rgba(50, 35, 19, 0.75);
  font-size: 0.7rem;
  line-height: 1.3;
}

.app-beta-cta__arrow {
  margin-left: 0.25rem;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .app-beta-cta {
    width: 100%;
    max-width: 21rem;
    border-radius: 1.1rem;
  }
}

/* Las seis versiones se distribuyen en dos filas equilibradas en pantallas táctiles. */
@media (max-width: 768px) {
  .verse-card .version-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
