/* Variables globales */
:root {
  --primary-color: #ff6b6b;
  --primary-hover: #ff5252;
  --secondary-color: #4ecdc4;
  --secondary-hover: #3dbeb6;
  --text-color: #333;
  --text-light: #777;
  --bg-color: #f9f9f9;
  --bg-alt: #f2f2f2;
  --white: #ffffff;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --border-radius: 10px;
  --transition: all 0.3s ease;
}

/* Reset y estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

ul {
  list-style: none;
}

.highlight {
  color: var(--primary-color);
  font-weight: 700;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-full {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('pattern.svg');
  background-repeat: repeat;
  opacity: 0.03;
  z-index: -1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 42px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 14px;
}

.btn-lg {
  padding: 15px 35px;
  font-size: 18px;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  width: auto;
  min-width: 120px;
}

.btn-social i {
  margin-right: 8px;
}

.btn-facebook {
  background-color: #3b5998;
  color: var(--white);
}

.btn-twitter {
  background-color: #1da1f2;
  color: var(--white);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
}

/* Header */
#header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header.sticky {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 90px;
  transition: var(--transition);
}

#header.sticky .logo img {
  height: 40px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin: 0 20px;
  position: relative;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  transition: var(--transition);
  padding: 10px 0;
  display: inline-block;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a:hover::after {
  width: 100%;
}

.user-menu {
  display: flex;
  align-items: center;
}

.auth-buttons .btn {
  margin-left: 10px;
}

.user-info {
  display: flex;
  align-items: center;
}

.points {
  margin-right: 20px;
  background-color: #ffecec;
  padding: 8px 15px;
  border-radius: 20px;
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.15);
}

.user-dropdown {
  position: relative;
}

.user-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.user-btn i {
  margin-left: 5px;
  transition: var(--transition);
}

.user-dropdown:hover .user-btn i {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--white);
  min-width: 180px;
  box-shadow: var(--shadow);
  z-index: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  top: calc(100% + 10px);
  transition: var(--transition);
  transform: translateY(10px);
  opacity: 0;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  display: block;
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: #f8f8f8;
  padding-left: 20px;
}

.user-dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
#hero {
  background-color: var(--white);
  overflow: hidden;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.05;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

#hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero-content h1 {
  font-size: 56px;
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.1;
  z-index: 0;
  animation: pulse 5s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.15;
  }
  100% {
    transform: scale(1);
    opacity: 0.1;
  }
}

/* Contests Section */
.contests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.contest-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.contest-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.contest-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.contest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.contest-card:hover .contest-image img {
  transform: scale(1.1);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
  z-index: 2;
}

.contest-info {
  padding: 25px;
}

.contest-info h3 {
  margin-bottom: 12px;
  font-size: 22px;
  transition: var(--transition);
}

.contest-card:hover .contest-info h3 {
  color: var(--primary-color);
}

.contest-info p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.contest-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.points-value, .time-left {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.points-value i, .time-left i {
  margin-right: 5px;
  font-size: 16px;
}

.points-value {
  color: var(--primary-color);
}

.time-left {
  color: var(--secondary-color);
}

/* Rewards Section */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.reward-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.reward-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.reward-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.reward-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.reward-card:hover .reward-image img {
  transform: scale(1.1);
}

.sponsor-logo {
  position: absolute;
  bottom: -25px;
  right: 25px;
  background-color: var(--white);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 2;
  transition: var(--transition);
}

.reward-card:hover .sponsor-logo {
  transform: scale(1.1);
}

.sponsor-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.reward-info {
  padding: 25px;
}

.reward-info h3 {
  margin-bottom: 12px;
  font-size: 22px;
  transition: var(--transition);
}

.reward-card:hover .reward-info h3 {
  color: var(--primary-color);
}

.reward-info p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.reward-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.points-cost, .availability {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.points-cost i, .availability i {
  margin-right: 5px;
  font-size: 16px;
}

.points-cost {
  color: var(--primary-color);
}

.availability {
  color: var(--secondary-color);
}

/* No content message */
.no-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 600px;
}

.no-content p {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 0;
}

/* How It Works Section */
.steps-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.step {
  flex: 1;
  min-width: 240px;
  text-align: center;
  padding: 40px 30px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 15px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  opacity: 0.05;
  transition: var(--transition);
  z-index: -1;
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.step:hover::before {
  height: 100%;
}

.step-icon {
  font-size: 50px;
  color: var(--primary-color);
  margin-bottom: 25px;
  transition: var(--transition);
}

.step:hover .step-icon {
  transform: translateY(-5px);
}

.step h3 {
  margin-bottom: 15px;
  font-size: 24px;
  transition: var(--transition);
}

.step p {
  color: var(--text-light);
}

/* Sponsors Section */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.sponsor-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.sponsor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.sponsor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.sponsor-card .sponsor-logo {
  position: static;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sponsor-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
  transition: var(--transition);
}

.sponsor-card:hover h3 {
  color: var(--primary-color);
}

.sponsor-card p {
  color: var(--text-light);
}

/* Footer */
#footer {
  background-color: #2d3436;
  color: var(--white);
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('pattern.svg');
  background-repeat: repeat;
  opacity: 0.03;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 60px;
  position: relative;
}

.footer-logo {
  margin-bottom: 30px;
  flex: 1;
  min-width: 280px;
}

.footer-logo img {
  height: 120px;
  margin-bottom: 20px;
}

.footer-logo p {
  color: #ddd;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  flex: 2;
  justify-content: flex-end;
}

.footer-col {
  min-width: 170px;
  margin-left: 40px;
  margin-bottom: 30px;
}

.footer-col h4 {
  margin-bottom: 25px;
  font-size: 18px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #ddd;
  transition: var(--transition);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.footer-bottom p {
  color: #ddd;
}

.social-links {
  display: flex;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #444;
  color: var(--white);
  margin-left: 10px;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
  transform: scale(0);
  border-radius: 50%;
}

.social-links a:hover {
  transform: translateY(-5px);
}

.social-links a:hover::before {
  transform: scale(1);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--white);
  margin: 70px auto;
  width: 90%;
  max-width: 500px;
  border-radius: var(--border-radius);
  position: relative;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(50px);
  opacity: 0;
  animation: modalFadeIn 0.4s forwards;
}

@keyframes modalFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-lg {
  max-width: 800px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: var(--transition);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  color: var(--primary-color);
  background-color: #f5f5f5;
}

.modal h2 {
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-color);
  position: relative;
  padding-bottom: 15px;
}

.modal h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Forms */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: var(--transition);
  background-color: #f9f9f9;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
  background-color: var(--white);
}

input.valid {
  border-color: #28a745;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z" fill="%2328a745"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

input.invalid {
  border-color: #dc3545;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-5h2v2h-2v-2zm0-8h2v6h-2V7z" fill="%23dc3545"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

.text-center {
  text-align: center;
}

/* Referral code */
.referral-code-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px dashed #ddd;
}

.referral-code {
  font-family: monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.social-share {
  margin-top: 30px;
  text-align: center;
}

.social-share p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
  
  .section {
    padding: 80px 0;
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 42px;
  }
  
  .hero-content p {
    font-size: 18px;
  }
  
  .section-header h2 {
    font-size: 36px;
  }
  
  .step {
    min-width: calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  #header .container {
    flex-wrap: wrap;
  }
  
  nav {
    order: 3;
    width: 100%;
    margin-top: 15px;
  }
  
  nav ul {
    justify-content: center;
  }
  
  #hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    padding-right: 0;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .hero-content p {
    margin: 0 auto 30px;
  }
  
  .step {
    min-width: 100%;
  }
  
  .footer-logo {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-col {
    margin: 0 20px 30px;
    text-align: center;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom p {
    margin-bottom: 15px;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  #header {
    padding: 10px 0;
  }
  
  .logo img {
    height: 40px;
  }
  
  .auth-buttons .btn {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .contests-grid,
  .rewards-grid,
  .sponsors-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 30px 20px;
  }
}

/* Animation for content */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.fade-in-up-delay-1 {
  animation-delay: 0.2s;
}

.fade-in-up-delay-2 {
  animation-delay: 0.4s;
}

.fade-in-up-delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading indicator */
.loading {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.loading div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary-color);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading div:nth-child(1) {
  left: 8px;
  animation: loading1 0.6s infinite;
}

.loading div:nth-child(2) {
  left: 8px;
  animation: loading2 0.6s infinite;
}

.loading div:nth-child(3) {
  left: 32px;
  animation: loading2 0.6s infinite;
}

.loading div:nth-child(4) {
  left: 56px;
  animation: loading3 0.6s infinite;
}

@keyframes loading1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes loading3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes loading2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px 15px 15px;
  background-color: white;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  font-weight: 500;
  display: flex;
  align-items: center;
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  animation: slideIn 0.3s forwards;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
}

.toast-success {
  border-left: 5px solid #28a745;
}

.toast-success::before {
  background-color: #28a745;
}

.toast-error {
  border-left: 5px solid #dc3545;
}

.toast-error::before {
  background-color: #dc3545;
}

.toast-warning {
  border-left: 5px solid #ffc107;
}

.toast-warning::before {
  background-color: #ffc107;
}

.toast-info {
  border-left: 5px solid #17a2b8;
}

.toast-info::before {
  background-color: #17a2b8;
}

.toast i {
  margin-right: 10px;
  font-size: 18px;
}

.toast-close {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  font-size: 14px;
  color: #999;
}

/* Bot贸n flotante de WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-icon {
  position: relative;
  font-size: 32px;
}

.notification-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background-color: #FF5252;
  border-radius: 50%;
  border: 2px solid #25d366;
  display: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #333;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 70px;
}

/* Reset Password Page */
.reset-password-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f9f9f9;
}

.reset-password-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow);
}

.reset-password-card .logo {
    margin-bottom: 30px;
}

.reset-password-card .logo img {
    height: 60px;
}

.reset-password-card h1 {
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--text-color);
}

.form-hint {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
    font-size: 20px;
}

.alert-error {
    background-color: #ffebee;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Estilos adicionales para ChocoBot.club */

/* Nuevos estilos para la sección de concursos */
.contest-details {
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.contest-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.contest-details li {
    margin-bottom: 8px;
}

/* Estilos para premios instantáneos */
.instant-rewards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.instant-reward-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instant-reward-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.reward-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.reward-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sponsor-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.sponsor-badge img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.reward-content {
    padding: 20px;
}

.reward-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.reward-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Estilos para la lista de sponsors */
.sponsors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.sponsor-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sponsor-item:hover {
    transform: translateY(-5px);
}

.sponsor-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.sponsor-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.sponsor-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Estilos para la sección de showroom */
.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555;
}

.showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 15px;
}

/* Estilos para la sección de ChoCoins */
.chocoins-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-top: 30px;
}

.chocoins-image {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
}

.chocoins-content {
    flex: 1;
    min-width: 300px;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.chocoins-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.chocoins-content h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #444;
}

.chocoins-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.chocoins-content li {
    margin-bottom: 8px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.chocoins-content li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
}

.mission-box {
    background-color: #f9f4ff;
    border: 2px dashed #6a3de8;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.mission-box h4 {
    color: #6a3de8;
    margin-bottom: 10px;
}

.register-chocoins {
    margin-top: 25px;
    text-align: center;
}

/* Estilos para la galería de fotos PIXELIA */
.hidden-section {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pixelia-cta {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.pixelia-cta h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.pixelia-cta p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chocoins-info {
        flex-direction: column;
        text-align: center;
    }
    
    .instant-rewards-container,
    .sponsors-list,
    .showroom-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .reward-image,
    .product-image {
        height: 180px;
    }
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Helper classes */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 10px !important; }
.mb-1 { margin-bottom: 10px !important; }
.mt-2 { margin-top: 20px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mt-3 { margin-top: 30px !important; }
.mb-3 { margin-bottom: 30px !important; }
.mt-4 { margin-top: 40px !important; }
.mb-4 { margin-bottom: 40px !important; }
.mt-5 { margin-top: 50px !important; }
.mb-5 { margin-bottom: 50px !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 10px !important; }
.p-2 { padding: 20px !important; }
.p-3 { padding: 30px !important; }
.p-4 { padding: 40px !important; }
.p-5 { padding: 50px !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-flex { display: flex !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.rounded { border-radius: var(--border-radius) !important; }
.shadow { box-shadow: var(--shadow) !important; }

.bg-white { background-color: white !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-light { color: var(--text-light) !important; }
.text-white { color: white !important; }