@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@400;500;600;700&display=swap');

/* CSS Variables - Color Palette */
:root {
  /* Primary Colors */
  --primary-green: #6a994e;
  --primary-orange: #a7c957;
  --primary-dark: #2F2F2F;
  
  /* Secondary Colors */
  --light-green: #d4e7c5;
  --light-blue: #ADD8E6;
  --coral-pink: #bc4749;
  
  /* Gradients */
  --hero-gradient: linear-gradient(135deg, #6a994e 0%, #bc4749 100%);
  
  /* Text Colors */
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-white: #FFFFFF;
  
  /* Background Colors */
  --bg-white: #FFFFFF;
  --bg-light-gray: #F5F5F5;
  --bg-dark: #191919;
  
  /* Fonts */
  --font-primary: 'Arial', 'Helvetica', sans-serif;
  --font-secondary: 'Dosis', 'Arial', sans-serif;
  
  /* Font Sizes */
  --font-size-hero: 36px;
  --font-size-h1: 36px;
  --font-size-h2: 28px;
  --font-size-h3: 24px;
  --font-size-body: 16px;
  --font-size-small: 14px;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

p {
  margin: 0;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-size-body);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--font-size-body);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary-orange);
  color: var(--text-white);
}

.btn-primary:hover {
  background: #8fb566;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(167, 201, 87, 0.3);
}

/* Header */
.header {
  background: var(--bg-white);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content.centered {
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-green);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-flag {
  margin-left: 10px;
  font-size: 20px;
}

.nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--primary-green);
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Hero Section */
.hero {
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-top: 0;
  font-size: var(--font-size-hero);
  color: var(--text-white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-white);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 80px 0;
}

.lottery-machine {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Recent Winners Section */
.recent-winners {
  background: var(--bg-light-gray);
  padding: 60px 0;
}

.recent-winners h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.recent-winners-content {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 2rem;
}

.recent-winners-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Games Section */
.games {
  padding: 60px 0;
}

.games h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.game-card.loteria {
  background: var(--light-green);
}

.game-card.lotto {
  background: var(--light-green);
}

.game-card.pozo {
  background: var(--light-green);
}

.game-card h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.game-card p {
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.game-card .btn {
  display: block;
  width: fit-content;
  margin: 2rem auto 0 auto;
  flex-shrink: 0;
}

/* Decorative Balls */
.decorative-balls {
  position: relative;
}

.lottery-ball {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ball-red { background: #ff4444; right: 50px; top: 20px; }
.ball-blue { background: #4444ff; right: 20px; top: 80px; }
.ball-green { background: #44ff44; right: 80px; top: 140px; }
.ball-yellow { background: #ffff44; color: #333; right: 40px; top: 200px; }
.ball-orange { background: #ff8844; right: 10px; top: 260px; }
.ball-purple { background: #8844ff; right: 70px; top: 320px; }
.ball-teal { background: #44ffff; color: #333; right: 30px; top: 380px; }
.ball-pink { background: #ff44ff; right: 60px; top: 440px; }

/* Results Section */
.results {
  background: var(--bg-light-gray);
  padding: 60px 0;
}

.results h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.results-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.result-card {
  background: var(--light-green);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.result-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--primary-orange);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-orange);
}

.footer-icons {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.footer-icon {
  width: 60px;
  height: 60px;
  background: #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 24px;
}

.footer-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-icon-link:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.footer-icon-img {
  max-width: auto;
  max-height: 60px;
  height: auto;
  filter: brightness(1.1);
  transition: filter 0.3s ease;
}

.footer-icon-link:hover .footer-icon-img {
  filter: brightness(1.3);
}

.footer-responsible-gaming p {
  color: var(--text-white)!important;
  margin: 0.5rem 0;
  font-weight: 700;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-orange);
  color: var(--text-white);
  border-radius: 50%;
  font-weight: bold;
  font-size: 18px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #999;
  font-size: var(--font-size-small);
}

/* Age Verification Modal */
.age-verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.age-verification-modal {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  margin: 0 20px;
}

.age-verification-modal h2 {
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.age-verification-modal p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.age-verification-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.age-verification-modal .btn {
  min-width: 200px;
}

.btn-success {
  background: var(--primary-green);
  color: var(--text-white);
}

.btn-success:hover {
  background: #5a8442;
}

.btn-danger {
  background: #f44336;
  color: var(--text-white);
}

.btn-danger:hover {
  background: #da190b;
}

/* Cookie Consent Modal */
.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  animation: fadeIn 0.3s ease-out;
}

.cookie-consent-modal {
  background: var(--bg-white);
  border-radius: 15px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  margin: 0 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

.cookie-consent-modal h3 {
  color: var(--primary-orange);
  margin-bottom: 1rem;
  font-weight: 600;
}

.cookie-consent-modal p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cookie-consent-modal a {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 500;
}

.cookie-consent-modal a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
  display: none;
} 