:root {
  --bg: #0b0b10;
  --bg-soft: #15151f;
  --bg-softer: #1f1f2b;
  --accent: #ffbb33;
  --accent-soft: rgba(255, 187, 51, 0.1);
  --text: #f5f5f5;
  --text-soft: #b8b8c7;
  --border: #2c2c3a;
  --danger: #ff4f5e;
  --success: #38c172;
  --muted: #8888a0;
  --card-radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #181826 0, #05050a 45%);
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
}

.page {
  max-width: 1200px;
  margin: 0 auto 64px;
  padding-top: 100px;
}

.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.98rem;
}








/* SECCIONES */
.section {
  margin-top: 64px;
  padding-top: 32px;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.section:first-of-type::before {
  display: none;
}

.section-header {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 18px;
}

.section-header::before{
    content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.section-header > div {
  max-width: 720px;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 550px;
  margin: 6px auto 0;
}

.how-to {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 14px;
}

/* TARJETAS GENERALES */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: stretch; /* importante para que todas las cards de la fila tengan la misma altura */
}

.card {
  background: linear-gradient(145deg, var(--bg-soft), var(--bg-softer));
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px 14px 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* CAMBIA ESTE BLOQUE */
.card-body {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: var(--text-soft);

  /* AÑADIR ESTO: convierte el body en flex para poder empujar el footer al fondo */
  display: flex;
  flex-direction: column;
  flex: 1;
}


.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(255, 187, 51, 0.09), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-title {
  font-weight: 600;
  font-size: 1.2rem;
}

.card-label {
  font-size: 0.95rem;
  height: 55px;
  color: var(--muted);
}

/* ICONO CON IMÁGENES */
.card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.card-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.card-body {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: var(--text-soft);
}

/* Amounts */
.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.amount-tag {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text-soft);
  white-space: nowrap;
}

.amount-tag strong {
  color: var(--accent);
  font-weight: 600;
}

.time-info {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-soft);
}

.time-info strong {
  color: var(--success);
  font-weight: 600;
}

.cmd {
  font-family: "Consolas", "SF Mono", "JetBrains Mono", monospace;
  font-size: 0.8rem;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #33354a;
  color: var(--accent);
}

/* FOOTER DE TARJETA */
.card-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-footer-text {
  font-size: 0.9rem;
  color: var(--muted);
}



/* ICONOS DE MONEDA EN FOOTER (ESTILO BRILLANTE) */
.card-footer-icons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px;
}

.card-footer-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

/* Gradientes por tipo de moneda */
.card-footer-icons a.bits {
  background: linear-gradient(135deg, #8d36ff, #b547ff);
  box-shadow: 0 0 10px rgba(224, 71, 255, 0.6);
}

.card-footer-icons a.grabs {
  background: linear-gradient(135deg, #00e0b8, #00a58a);
  box-shadow: 0 0 10px rgba(0, 209, 178, 0.6);
}

.card-footer-icons a.kofi {
  background: linear-gradient(135deg, #ffd54a, #ffb800);
  box-shadow: 0 0 10px rgba(255, 200, 80, 0.6);
}

/* Hover */
.card-footer-icons a:hover {
  transform: translateY(-1px) scale(1.05);
  filter: brightness(1.1);
}

/* Imagen interna */
.card-footer-icons img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes pulseGrabs {
  0% { box-shadow: 0 0 10px rgba(0,209,178,.4); }
  50% { box-shadow: 0 0 18px rgba(0,209,178,.8); }
  100% { box-shadow: 0 0 10px rgba(0,209,178,.4); }
}

.card-footer-icons a.grabs {
  animation: pulseGrabs 2.5s infinite;
}



.card-footer strong {
  color: var(--text-soft);
}

/* Badges para las otras secciones */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.badge {
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--muted);
}

.badge.bits    { border-color: #9147ff; }
.badge.grabs   { border-color: #00d1b2; }
.badge.kofi    { border-color: #29abe0; }
.badge.danger  { border-color: var(--danger); color: var(--danger); }
.badge.utility { border-color: var(--accent); }

@media (max-width: 600px) {
  body { padding: 16px; }
  .page-header h1 { font-size: 1.7rem; }
}

/* VENTANA ESTILO APP PARA LA DEMO DE CHAT */
.chat-window {
  margin-top: 24px;
  margin-bottom: 8px;
  max-width: 520px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1a1a25, #0e0e16);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

/* Barra superior de la ventana */
.chat-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(90deg, #24243a, #181827);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.chat-window-dots {
  display: flex;
  gap: 6px;
}

.chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chat-dot-red    { background: #ff5f57; }
.chat-dot-yellow { background: #febc2e; }
.chat-dot-green  { background: #28c840; }

.chat-window-title {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0.9;
}

.chat-window-spacer {
  width: 40px;
}

/* Cuerpo de la ventana */
.chat-window-body {
  padding: 10px 12px 12px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 60%);
}

/* Ajustes del bloque de chat interno */
.chat-demo {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

/* Mensajes del chat */
.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.chat-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-username {
  color: #a970ff;
  font-weight: 600;
  margin-right: 4px;
}

.chat-text {
  color: var(--text);
  font-size: 0.95rem;
}

/* Respuestas del sistema: usuario verde, resto gris */
.chat-message.system .chat-text strong:first-child {
  color: #38c172;
  font-weight: 600;
}

.chat-message.system .chat-text {
  color: #d0d0d0;
}

.chat-message.system {
  padding-left: 4px;
}

/* Bloque cheer100 + icono bit */
.cheer-wrapper {
  display: inline-block;
  position: relative;
  min-width: 70px;
  height: 22px;
}

.cheer-text,
.cheer-gif {
  position: absolute;
  top: 0;
  left: 0;
}

.cheer-text {
  opacity: 1;
}

.cheer-gif {
  width: 22px;
  height: 22px;
  display: none;
}


/* TARJETA ESPECIAL: FREEZE (ESTILO HIELO) */
.card.freeze-card {
  background: radial-gradient(circle at top, #163a63 0, #050912 55%);
  border-color: rgba(120, 190, 255, 0.7);
  box-shadow:
    0 0 20px rgba(80, 170, 255, 0.35),
    0 12px 30px rgba(0, 0, 0, 0.65);
  position: relative;
}

.card.freeze-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top, rgba(180, 230, 255, 0.23), transparent 60%),
    radial-gradient(circle at bottom, rgba(60, 130, 200, 0.25), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
}

/* Pequeño efecto de "cristal frío" en el icono */



/* Texto principal un poco más frío */
.card.freeze-card .card-title {
  color: #e5f4ff;
}

.card.freeze-card .card-label {
  color: #b7d5ff;
}

/* Tiempo destacado en azul */
.card.freeze-card .time-info strong {
  color: #6ec4ff;
}



/* Mensajes tipo comando (!martillo 100) */
.chat-demo .cmd {
  font-family: "Consolas", "SF Mono", "JetBrains Mono", monospace;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #33354a;
  background: rgba(0, 0, 0, 0.65);
  color: var(--accent);
}

/* INPUT SIMULADO DE CHAT */
.chat-input {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #0f0f18;
  border: 1px solid #2a2a3d;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #e3e3ea;
  display: flex;
  align-items: center;
  min-height: 36px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
}

.chat-input-placeholder {
  white-space: nowrap;
  overflow: hidden;
}

.chat-caret {
  margin-left: 4px;
  animation: blink 1s infinite;
  opacity: 0.8;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75%      { opacity: 0; }
}

/* HOW-TO CARDS */
.howto-cards {
  margin: 18px 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.howto-card {
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #121222, #0c0c15);
}

.howto-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.howto-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.howto-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.howto-body p {
  margin-bottom: 6px;
  color: var(--text);
}

.howto-examples {
  font-size: .95rem;
  color: var(--text-soft);
}

.howto-examples div {
  margin-top: 4px;
}

.howto-card.bits {
  background: linear-gradient(145deg, #241650, #120d2b);
  border-color: rgba(145,71,255,.5);
}

.howto-card.grabs {
  background: linear-gradient(145deg, #083533, #041a18);
  border-color: rgba(0,209,178,.45);
}

.howto-card.kofi {
  background: linear-gradient(145deg, #3a330a, #201e04);
  border-color: rgba(221, 224, 41, 0.45);
}

.howto-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px dashed var(--border);
  font-size: .95rem;
  color: var(--text-soft);
  text-align: center;
}


/* ICONOS DE DIVISA EN AMOUNT TAG */
.currency-icons {
  display: inline-flex;
  gap: 6px;
  margin-left: 6px;
  vertical-align: middle;
  align-items: center;
}

/* Tamaño limpio y consistente */
.currency-icons img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.4));
}

/* LOGO PRINCIPAL */
.page-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.page-logo img {
  max-width: 180px;
   cursor: pointer;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.5));
  animation: wiggleIdle 7s infinite;   /* wiggle automático suave */
}

.page-logo {
  position: relative;
}

.page-logo::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145,71,255,0.35), rgba(0,0,0,0) 70%);
  filter: blur(18px);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

.page-logo img {
  position: relative;
  z-index: 1;
}


/* Wiggle automático suave */
@keyframes wiggleIdle {
  0% { transform: rotate(0deg); }
  94% { transform: rotate(0deg); }

  95% { transform: rotate(1.2deg); }
  96% { transform: rotate(-1.2deg); }
  97% { transform: rotate(1deg); }
  98% { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

/* Wiggle más fuerte al pasar mouse */
.page-logo img:hover {
  animation: wiggleHover 0.4s infinite;
}

@keyframes wiggleHover {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(4deg); }
  50%  { transform: rotate(-4deg); }
  75%  { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

/* En móvil más suave */
@media (max-width: 600px) {
  .page-logo img {
    max-width: 140px;
    animation-duration: 10s;
  }

  .page-logo img:hover {
    animation: wiggleHover 0.6s infinite;
  }
}


/* BOTONES GRANDES ESTILO PROMO */
.pill-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
  color: #fff;
  box-shadow: 0 0 0 transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

/* Iconos */
.pill-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.pill-btn span {
  font-size: 1.05rem;
  font-weight: 600;
  
}

/* Colores estilo promo */
.pill-btn.bits {
  background: linear-gradient(135deg, #5a36ff, #9147ff);
  box-shadow: 0 0 12px rgba(145,71,255,0.45);
  color: #fff;

}

.pill-btn.grabs {
  background: linear-gradient(135deg, #00e0b8, #00a58a);
  box-shadow: 0 0 14px rgba(0,209,178,0.5);
}

.pill-btn.kofi {
  background: linear-gradient(135deg, #ffd54a, #ffb800);
  box-shadow: 0 0 14px rgba(255,200,80,0.5);
  color: #1a1300;
}

/* Hover */
.pill-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.1);
}

/* Mobile */
@media (max-width: 600px) {
  .pill-buttons {
    gap: 10px;
  }

  .pill-btn {
    padding: 8px 16px;
    font-size: 0.95rem;
  }

  .pill-btn img {
    width: 22px;
    height: 22px;
  }
}
