:root {
  --bg: #000000;
  --fg: #ffffff;
  --green: #22e07a;
  --green-dark: #16a85a;
  --card-bg: #111111;
  --border: #2a2a2a;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100%;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 0;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.brand-name {
  height: 96px;
  width: auto;
  max-width: 90vw;
  display: block;
  object-fit: contain;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  gap: 14px;
  margin-top: 24px;
}

.tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

.offer {
  margin: 0;
  width: 100%;
  font-size: clamp(26px, 7.5vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  overflow-wrap: break-word;
  word-break: break-word;
}

.highlight {
  color: var(--green);
  text-shadow: 0 0 18px rgba(34, 224, 122, 0.35);
}

.subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #d8d8d8;
  max-width: 380px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-green {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #06170e;
  box-shadow: 0 0 24px rgba(34, 224, 122, 0.45);
}

.btn-green:active {
  transform: scale(0.97);
}

.btn-cta {
  font-size: 18px;
  padding: 16px 36px;
  margin-top: 6px;
  letter-spacing: 0.5px;
  animation: ctaBounce 1.6s ease-in-out infinite;
}

.btn-cta:active {
  animation-play-state: paused;
}

@keyframes ctaBounce {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 24px rgba(34, 224, 122, 0.45);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 36px rgba(34, 224, 122, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta {
    animation: none;
  }
}

.disclaimer {
  margin: 10px 0 0;
  font-size: 11px;
  color: #8a8a8a;
  max-width: 360px;
}

.follow {
  margin: 4px 0 0;
  font-size: 13px;
  color: #9a9a9a;
}

.follow strong {
  color: var(--fg);
}

.social-link {
  color: inherit;
  text-decoration: none;
}

.social-link:hover strong,
.social-link:focus strong {
  color: var(--green);
}

.bottom-art {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: auto auto 0;
}

/* Pantalla de aviso para navegadores integrados (Instagram, TikTok, Telegram...) */
.escape-screen {
  display: none;
}

html.in-app-browser .page {
  display: none;
}

html.in-app-browser .escape-screen {
  display: flex;
}

.escape-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  z-index: 1000;
  overflow-y: auto;
}

.escape-arrow {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 14px;
  font-size: 52px;
  line-height: 1;
  color: var(--green);
  text-shadow: 0 0 20px rgba(34, 224, 122, 0.6);
  animation: arrowNudge 1.4s ease-in-out infinite;
}

@keyframes arrowNudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -6px); }
}

@media (prefers-reduced-motion: reduce) {
  .escape-arrow {
    animation: none;
  }
}

.escape-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  max-width: 360px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 56px;
}

.escape-title {
  margin: 0;
  font-size: 20px;
  color: var(--fg);
}

.escape-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #d8d8d8;
}

.escape-subtitle strong {
  color: var(--green);
}

.escape-steps {
  margin: 0;
  padding-left: 20px;
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.6;
}

.escape-steps li {
  margin-bottom: 6px;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 14px;
}

.escape-content .btn-green {
  padding: 12px 16px;
  font-size: 14px;
}

.link-btn {
  background: none;
  border: none;
  color: #9a9a9a;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0 0;
  align-self: center;
}
