@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --color-mex-green: #006847;
  --color-mex-green-dark: #004d35;
  --color-mex-red: #CE1126;
  --color-mex-red-dark: #9a0c1c;
  --color-mex-gold: #D4AF37;
  --color-mex-gold-light: #F4D06F;
  --color-mex-cream: #FAF7F2;
  --color-mex-dark: #111827;
}

html {
  scroll-behavior: smooth;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, .font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #006847;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #CE1126;
}

/* Patriotic Gradient Text */
.text-gradient-patria {
  background: linear-gradient(135deg, #10b981 0%, #fbbf24 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFE259 0%, #FFA751 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glowing buttons */
.btn-gold-glow {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}
.btn-gold-glow:hover {
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.7);
  transform: translateY(-2px);
}

.btn-green-glow {
  box-shadow: 0 0 20px rgba(0, 104, 71, 0.4);
}
.btn-green-glow:hover {
  box-shadow: 0 0 30px rgba(0, 104, 71, 0.7);
}

/* Glassmorphism card */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Papel picado top border */
.papel-picado-border {
  background-image: radial-gradient(circle at 10px 0, transparent 8px, #006847 8.5px);
  background-size: 20px 10px;
  background-repeat: repeat-x;
}

/* Pulse animation for live badges */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
.animate-pulse-glow {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Smooth Lightbox Overlay */
#lightboxModal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#lightboxModal.active {
  opacity: 1;
  visibility: visible;
}
#lightboxModal.inactive {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
