/* ==========================================================================
   TEST DE LA SUERTE - ¿QUÉ TAN AFORTUNADO ERES?
   Estilo Casino / Neón / Móvil Premium
   ========================================================================== */

.test-suerte-section {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #2e1065 0%, #1e0b40 50%, #0f0524 100%);
  padding: 60px 16px 70px;
  overflow: hidden;
  border-top: 2px solid rgba(245, 197, 24, 0.3);
  border-bottom: 2px solid rgba(245, 197, 24, 0.3);
  color: #ffffff;
}

/* Decoraciones de Fondo (Estrellas, Ruletas, Destellos) */
.test-suerte-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(245, 197, 24, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(74, 222, 128, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
  z-index: 1;
}

.test-suerte-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ts-sparkle {
  position: absolute;
  animation: tsFloatSpark 3.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px currentColor);
}

.ts-s1 { top: 12%; left: 8%; font-size: 28px; color: #fde047; animation-delay: 0.1s; }
.ts-s2 { top: 22%; right: 10%; font-size: 32px; color: #4ade80; animation-delay: 0.8s; }
.ts-s3 { bottom: 15%; left: 10%; font-size: 34px; color: #fde047; animation-delay: 1.4s; }
.ts-s4 { bottom: 20%; right: 8%; font-size: 30px; color: #a855f7; animation-delay: 0.5s; }
.ts-s5 { top: 50%; left: 4%; font-size: 22px; color: #38bdf8; animation-delay: 1.1s; }
.ts-s6 { top: 45%; right: 4%; font-size: 24px; color: #f43f5e; animation-delay: 1.7s; }

@keyframes tsFloatSpark {
  0% { transform: translateY(0px) scale(0.9) rotate(0deg); opacity: 0.5; }
  100% { transform: translateY(-14px) scale(1.15) rotate(15deg); opacity: 1; }
}

.test-suerte-container {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

/* Encabezado del Test */
.test-suerte-kicker {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fde047;
  text-transform: uppercase;
  background: rgba(253, 224, 71, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.4);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 0 14px rgba(253, 224, 71, 0.25);
}

.test-suerte-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 950;
  line-height: 1.08;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.test-suerte-title .ts-highlight {
  color: #4ade80;
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.8), 0 2px 4px rgba(0,0,0,0.5);
  display: block;
}

.test-suerte-subtitle {
  font-size: 16px;
  color: #e2e8f0;
  margin: 0 0 28px 0;
  font-weight: 600;
}

/* Marco / Caja Interactiva Estilo Neón */
.test-suerte-card {
  background: rgba(22, 15, 46, 0.88);
  border: 2px solid #f5c518;
  border-radius: 26px;
  padding: 30px 24px;
  box-shadow: 0 0 30px rgba(245, 197, 24, 0.25), 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(245, 197, 24, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  transition: all 0.3s ease;
}

.test-suerte-input-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.test-suerte-format-hint {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #fde047;
  letter-spacing: 1px;
  margin-bottom: 14px;
  font-weight: 700;
}

.test-suerte-input-wrap {
  position: relative;
  margin-bottom: 22px;
}

.test-suerte-date-input {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  color: #0f172a;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 14px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.test-suerte-date-input:focus {
  border-color: #4ade80;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

/* Botón Neón Verde: CALCULAR MI SUERTE! */
.btn-calc-suerte {
  width: 100%;
  padding: 15px 24px;
  background: rgba(34, 197, 94, 0.18);
  border: 2px solid #4ade80;
  color: #4ade80;
  border-radius: 999px;
  font-family: 'Baloo 2', cursive;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.4), inset 0 0 12px rgba(74, 222, 128, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-calc-suerte:hover {
  background: #4ade80;
  color: #064e3b;
  box-shadow: 0 0 35px rgba(74, 222, 128, 0.8), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-2px) scale(1.02);
}

.btn-calc-suerte:active {
  transform: scale(0.98);
}

/* Pantalla de Ruleta Girando / Cargando */
.ts-calculating-box {
  display: none;
  padding: 30px 10px;
  text-align: center;
}

.ts-roulette-wheel {
  font-size: 58px;
  display: inline-block;
  animation: tsSpinWheel 1s linear infinite;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 16px #f5c518);
}

@keyframes tsSpinWheel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ts-calc-text {
  font-family: 'Baloo 2', cursive;
  font-size: 18px;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.5px;
}

/* Pantalla de Resultados del Test */
.ts-result-box {
  display: none;
  animation: tsFadeInResult 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tsFadeInResult {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.ts-meter-card {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1.5px solid #4ade80;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.25);
}

.ts-meter-pct {
  font-family: 'Baloo 2', cursive;
  font-size: 48px;
  font-weight: 950;
  color: #4ade80;
  line-height: 1;
  text-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
  margin-bottom: 4px;
}

.ts-meter-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fef08a;
}

/* Cuadrícula de Datos Afortunados */
.ts-lucky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.ts-grid-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}

.ts-item-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ts-item-val {
  font-family: 'Baloo 2', cursive;
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
}

.ts-oracle-message {
  background: rgba(245, 197, 24, 0.1);
  border-left: 3px solid #f5c518;
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #fef08a;
  text-align: left;
  line-height: 1.45;
  margin-bottom: 20px;
}

/* Botones de acción tras el resultado */
.ts-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-share-suerte {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-share-suerte:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.6);
}

.btn-retry-suerte {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-retry-suerte:hover {
  color: #ffffff;
  border-color: #ffffff;
}
