/* =================== VARIABLES =================== */
:root {
  --primary-gold: #C9A34E;
  --gold-hover: #E1B965;
  --dark-gray: #1C1C1C;
  --neutral-gray: #2A2A2A;
  --white: #FFFFFF;
  --text-dim: #B8B8B8;
  --radius-lg: 16px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.35);
}

/* =================== RESET BÁSICO =================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* =================== LAYOUT BASE =================== */
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 50% -20%, #232323 0%, var(--dark-gray) 60%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  line-height: 1.6;
}

/* Contenedor principal de la página de gracias */
.thankyou {
  width: min(720px, 92vw);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 6vw, 48px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
  text-align: center;
  transform: translateY(10px);
  opacity: 0;
  animation: fadeUp 500ms ease-out forwards;
}

/* Título y texto */
.thankyou h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--primary-gold);
  margin: 0 0 8px;
  letter-spacing: 0.3px;
}

.thankyou p {
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: clamp(16px, 2.2vw, 18px);
}

/* Línea sutil de separación */
.thankyou .divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  margin: 20px 0 24px;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  user-select: none;
  will-change: transform;
}

/* CTA principal (dorado) */
.btn-primary {
  background: var(--primary-gold);
  color: #111;
  box-shadow: 0 6px 18px rgba(201,163,78,0.25);
}
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* CTA secundaria (borde) */
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.04);
}

/* Grupo de CTAs */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Badge/etiqueta opcional */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 auto 14px;
}

/* Footer mini (texto legal o soporte) */
.note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

/* =================== ACCESIBILIDAD =================== */
:focus-visible {
  outline: 3px solid var(--primary-gold);
  outline-offset: 2px;
  border-radius: 8px;
}

.thankyou-logo {
  width: 80px;
  height: auto;
  margin: 0 auto 16px;
  animation: logoPop 0.6s ease-out forwards;
  opacity: 0;
  transform: scale(0.8);
}

@keyframes logoPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* =================== ANIMACIONES =================== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 480px) {
  .thankyou { padding: 22px; }
  .actions { gap: 10px; }
  .btn { width: 100%; text-align: center; }
}

/* =================== REDUCED MOTION =================== */
@media (prefers-reduced-motion: reduce) {
  .thankyou { animation: none; opacity: 1; transform: none; }
  .btn { transition: none; }
}
