/* Codere MX - Estilos Principales */

:root {
  --color-primary: #c41e3a;
  --color-secondary: #d4af37;
  --color-dark: #1a1a1a;
  --color-light: #f5f5f5;
  --color-text: #333;
  --color-white: #ffffff;
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.7;
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--color-dark) 0%, #2d2d2d 100%);
  padding: 1.2rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 55px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--color-white);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.cta-button {
  background: linear-gradient(135deg, var(--color-primary) 0%, #a01828 100%);
  color: var(--color-white);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.6);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero.webp') center/cover no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding: 4rem 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

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

/* Section */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-dark);
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.game-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.game-content {
  padding: 1.5rem;
}

.game-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--color-dark);
}

.game-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.game-button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.7rem 1.8rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.game-button:hover {
  background: #a01828;
  transform: scale(1.05);
}

/* Content Section */
.content-section {
  background: var(--color-light);
  padding: 3rem 0;
}

.content-box {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.content-box h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

.content-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.content-box p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.content-box ul {
  list-style: none;
  padding-left: 0;
}

.content-box li {
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
}

.content-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Payment Methods */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

.payment-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.payment-icon {
  width: 100px;
  height: auto;
  margin: 0 auto 1rem;
}

.payment-name {
  font-weight: 600;
  color: var(--color-dark);
}

/* FAQ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.faq-question {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.faq-answer {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.8;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.review-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.review-author {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 1.1rem;
}

.review-rating {
  color: var(--color-secondary);
  font-size: 1.2rem;
}

.review-location {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.review-text {
  color: #666;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.review-date {
  color: #999;
  font-size: 0.85rem;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
}

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

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--color-secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

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

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

.footer-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

.license-badge {
  width: 80px;
  height: auto;
  margin: 1rem auto;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Age Restriction Badge */
.age-badge {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 1rem auto;
  display: block;
}

/* Responsible Gaming Section */
.responsible-gaming {
  background: #fff3cd;
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--color-primary);
  margin: 2rem 0;
}

.responsible-gaming h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
