/* CUSTOM FONT */
@font-face {
  font-family: 'Titillium Web';
  src: url('assets/fonts/TitilliumWeb-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Mejora el rendimiento de carga */
}

@font-face {
  font-family: 'Titillium Web';
  src: url('assets/fonts/TitilliumWeb-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* GENERAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Titillium Web', Arial, sans-serif;
}

body {
  background-color: #000;
  color: #fff;
}

/* HERO SECTION */
.hero-section {
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.7)), url('assets/images/background-hero.webp');
  background-size: cover;
  background-position: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

h1 {
  font-size: 6rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.underline {
  height: 3px;
  width: 320px;
  background-color: #FFD700;
  margin: 0.5rem auto 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-block;
}

.primary-btn {
  background-color: #FFD700;
  color: #000;
}

.primary-btn:hover {
  background-color: #e5c100;
  transform: translateY(-3px);
}

.secondary-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid #fff;
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* HOW TO PARTICIPATE */
.participate-section {
  background-color: #111;
  padding: 5rem 2rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.underline.gold {
  width: 200px;
  margin-bottom: 3rem;
}

.steps-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  background-color: #222;
  border-radius: 10px;
  padding: 2rem;
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  background-color: #FFD700;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  top: -20px;
  left: 20px;
}

.step-content {
  margin-top: 1rem;
}

.step-url {
  margin-top: 12px;
  color: #ccc;
}

.register-logo {
  width: 90px;
  height: 90px;
  margin-bottom: 1rem;
}

.discord-logo {
  width: 120px;
  margin-bottom: 1rem;
}

.victory-logo {
  width: 140px;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.step-card p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
      font-size: 3rem;
  }
  
  .underline {
      width: 250px;
  }
  
  .hero-subtitle {
      font-size: 1.2rem;
  }
  
  .steps-container {
      flex-direction: column;
      align-items: center;
  }
  
  .step-card {
      width: 100%;
  }
}

/* Sección Horarios */
.schedule-section {
  background-color: #2D0A42; /* Puedes cambiar este color por el código RGB exacto */
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.schedule-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.schedule-info {
  flex: 1;
  text-align: center;
  z-index: 2; /* Asegura que el texto esté por encima de la imagen */
}

.schedule-date {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.schedule-time {
  font-size: 2rem;
}

.character-image {
  position: absolute;
  max-height: 300px;
  left: 0;
  bottom: -50px; /* Ajusta según necesites para posicionar el personaje */
  z-index: 1;
}

/* Sección Premios */
.prizes-section {
  background-color: #121212; /* Puedes cambiar este color por el código RGB exacto */
  padding: 3rem 2rem;
  text-align: center;
}

.prizes-description {
  margin-bottom: 3rem;
  color: #fff;
  font-size: 1.2rem;
}

.prizes-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.prize-card {
  background-color: #222;
  border-radius: 5px;
  padding: 2rem;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  transition: all 0.3s ease;
}

.prize-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.prize-position {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.prize-amount {
  font-size: 2rem;
  font-weight: bold;
  color: #FFD700;
}

/* Sección Twitch */
.twitch-section {
  background-color: #121212;
  background-image: url('assets/images/dark-plaster-pattern.webp');
  background-size: contain;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}

.twitch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 5;
  padding: 1.5rem 0rem;
}

.twitch-link {
  color: #9146FF; /* Color morado de Twitch */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.twitch-link:hover {
  color: #B9A3E3; /* Versión más clara del morado al pasar el cursor */
}

.twitch-icon-container {
  position: relative;
  width: 50px;
  height: 50px;
}

.twitch-icon-image {
  width: 100px;
  object-fit: contain;
}

/* Estilos generales para los títulos de sección y líneas doradas */
.section-title {
  font-size: 2.5rem;
  color: #FFD700; /* Dorado */
  margin-bottom: 0.5rem;
}

.underline.gold {
  height: 3px;
  width: 100px;
  background-color: #FFD700; /* Dorado */
  margin: 0.5rem auto 2rem;
}

/* Normativa Section */
.normativa-section {
  background-color: #0D0D0D;
  padding: 3rem 2rem;
  text-align: center;
}

.normativa-container {
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  background-color: #1A1A1A;
  border-radius: 10px;
  border: 1px solid #333;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.normativa-content {
  width: 100%;
  text-align: left;
}

.normativa-list {
  list-style-type: none;
  padding: 0;
}

.normativa-list li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2rem;
  color: #E6E6E6;
  font-size: 1.1rem;
  border-bottom: 1px solid #333;
}

.normativa-list li:last-child {
  border-bottom: none;
}

.normativa-list li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  color: #FFD700;
  font-size: 1.5rem;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 768px) {
  .schedule-content {
      flex-direction: column;
  }
  
  .character-image {
    position: absolute;
    display: block;
    margin: 2rem auto 0;
    max-width: 35%;
  }
  
  .prizes-container {
      flex-direction: column;
      align-items: center;
  }
  
  .prize-card {
      width: 80%;
  }
  
  .normativa-container {
      padding: 1.5rem;
  }
  
  .normativa-list li {
      font-size: 1rem;
      padding: 0.7rem 0 0.7rem 1.8rem;
  }
  
  .twitch-container {
      flex-direction: column;
  }
}

.register-container-section {
  position: relative;
  background-image: url('assets/images/register-background.webp');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
}

/* Gradiente lineal por encima del fondo */
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(255,255,255,0));
  z-index: 1;
}

/* Contenedor del formulario */
.form-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 600px;
  background-color: #1E1E1E;
  padding: 30px;
  border-radius: 10px;
  color: #fff;
}

.participant-container {
  background-color: #1A1A1A;
  padding: 12px 12px;
  border-radius: 8px;
}

#registration-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
  width: 90%;
  max-width: 600px;
}

/* Estilos del título */
.form-title {
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

/* Estilos de los campos del formulario */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #333;
  color: #fff;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Estilos del botón */
.submit-btn {
  background-color: #FFD700;
  color: #000;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  margin: 30px auto 0;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #FFC800;
}

/* Espacio para la dirección */
.address-container {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 10px;
}

/* Estilo para títulos de secciones */
.participant-title {
  color: #FFD700;
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Estilo responsivo */
@media (max-width: 768px) {
  .form-container {
      width: 95%;
      padding: 20px;
  }
}

.footer {
  width: 100%;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 2rem 0rem;
}

.twitch-text {
  font-size: 3rem;
  color: #fff;
}


/* POPUP CONFIRMATION */
.confirmation-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirmation-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  border: none;
  background: transparent;
}

.check-icon {
  width: 80px;
  height: 80px;
  background-color: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.check-icon svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.popup-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.popup-message {
  color: #666;
  margin-bottom: 20px;
}

.popup-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}