* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body::before {
  content: '';
  position: fixed;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  animation: floatPattern 20s linear infinite;
  z-index: 0;
}

@keyframes floatPattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* HEADER */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  color: #4a5568;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 10px;
}

.nav-links a:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.nav-links a i {
  font-size: 18px;
}

/* MAIN CONTENT */
main {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  display: flex;
}

.hero {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 48px;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: fadeIn 0.8s ease-out 0.4s both;
}

/* SORTEOS GRID */
.sorteos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.sorteo-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.sorteo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.sorteo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.sorteo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.sorteo-card h2 {
  font-size: 28px;
  color: #2d3748;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premio {
  font-size: 42px;
  font-weight: 800;
  color: #f5576c;
  margin: 20px 0;
  text-shadow: 0 2px 10px rgba(245, 87, 108, 0.2);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: #4a5568;
  font-size: 15px;
}

.info-item i {
  color: #667eea;
  font-size: 18px;
  width: 20px;
}

.precio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  padding: 15px 20px;
  border-radius: 15px;
  margin: 20px 0;
  color: white;
}

.precio-label {
  font-size: 14px;
  font-weight: 500;
}

.precio-valor {
  font-size: 24px;
  font-weight: 800;
}

.btn-participar {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-participar:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

/* PAYMENT FORM STYLES */
.container {
  max-width: 500px;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-5px);
}

.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.5) inset;
  position: relative;
  animation: slideUp 0.6s ease-out;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.header-form {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

h1 {
  font-size: 28px;
  color: #2d3748;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.header-form p {
  color: #718096;
  font-size: 15px;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.field {
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease-out 0.6s both;
  position: relative;
  z-index: 1;
}

label {
  display: block;
  color: #4a5568;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

label i {
  color: #667eea;
}

input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 20px;
  border-radius: 15px;
  margin: 25px 0;
  color: white;
  box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
  animation: fadeIn 0.8s ease-out 0.8s both;
  position: relative;
  z-index: 1;
}

.amount span {
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.amount strong {
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.qr-container {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 20px;
  margin: 25px 0;
  position: relative;
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
  animation: fadeIn 0.8s ease-out 1s both;
  z-index: 1;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  animation: pulseEffect 2s ease-out infinite;
}

@keyframes pulseEffect {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

.qr-container img {
  width: 180px;
  height: 180px;
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.qr-container img:hover {
  transform: scale(1.05) rotate(2deg);
}

.qr-container p {
  color: white;
  font-weight: 600;
  margin-top: 15px;
  font-size: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.timer {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  color: #f5576c;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  margin-top: 10px;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

button {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out 1.2s both;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

button:active {
  transform: translateY(-1px);
}

.footer-card {
  text-align: center;
  margin-top: 25px;
  color: #718096;
  font-size: 14px;
  font-weight: 500;
  animation: fadeIn 0.8s ease-out 1.4s both;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* FOOTER */
footer {
  background: rgba(45, 55, 72, 0.95);
  backdrop-filter: blur(20px);
  color: white;
  padding: 40px 20px 20px;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .sorteos-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 30px 20px;
  }

  h1 {
    font-size: 24px;
  }

  .amount strong {
    font-size: 24px;
  }

  main {
    padding: 40px 20px 80px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 30px 20px;
  }

  h1 {
    font-size: 24px;
  }

  .amount strong {
    font-size: 24px;
  }
}
