/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/imgs/background.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1); /* oscurece un poco */
}


.hero-gradient {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation-delay: 0.3s;
}

.hero-btn {
  padding: 1rem 2rem;
  background: white;
  color: #16a34a;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation-delay: 0.6s;
}

.hero-btn:hover {
  background: #f3f4f6;
  transform: scale(1.05);
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: #1f2937;
}

/* Timeline */
.timeline-section {
  margin-bottom: 6rem;
}

.timeline-container {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #10b981, #16a34a);
  display: none;
}

.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-item {
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-content {
  width: 100%;
}

.timeline-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.timeline-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-green { border-color: #10b981; }
.card-blue { border-color: #3b82f6; }
.card-yellow { border-color: #f59e0b; }
.card-purple { border-color: #8b5cf6; }

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 2rem;
  margin-right: 0.75rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
}

.card-text {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.card-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-green { background: #d1fae5; color: #065f46; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-purple { background: #ede9fe; color: #6b21a8; }

.timeline-dot {
  width: 32px;
  height: 32px;
  background: #10b981;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin: 0 1rem;
  flex-shrink: 0;
  display: none;
}

/* Carrousel */

.carousel-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #fff;
  padding: 40px 0;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.carousel-item {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.carousel-item img {
  max-width: 300px;
  width: 300px;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.player-info {
  flex: 1;
  max-width: 400px;
  text-align: left;
}

.player-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 10px 0;
  color: #333;
}

.player-stats {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  max-width: 400px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.player-stats p {
  margin: 8px 0;
  font-size: 0.95rem;
  text-align: left;
}

.player-stats strong {
  color: #2c3e50;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
  color: #333;
  transition: color 0.3s ease, transform 0.2s ease;
}

.carousel-button:hover {
  color: #007bff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

@media (max-width: 768px) {
  .carousel-item {
    flex-direction: column;
    padding: 15px;
    gap: 20px;
  }
  
  .carousel-item img {
    max-width: 250px;
    width: 250px;
    height: 220px;
  }
  
  .player-info {
    text-align: center;
    max-width: 300px;
  }
  
  .player-stats {
    max-width: 300px;
    padding: 12px;
  }
  
  .player-stats p {
    font-size: 0.9rem;
    text-align: left;
  }
}

/* Curiosidades */
.curiosities-section {
  margin-bottom: 6rem;
}

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

.curiosity-card {
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid;
}

.curiosity-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-blue-gradient { 
  background: linear-gradient(135deg, #dbeafe, #bfdbfe); 
  border-color: #3b82f6; 
}

.card-green-gradient { 
  background: linear-gradient(135deg, #d1fae5, #a7f3d0); 
  border-color: #10b981; 
}

.card-purple-gradient { 
  background: linear-gradient(135deg, #ede9fe, #ddd6fe); 
  border-color: #8b5cf6; 
}

.card-red-gradient { 
  background: linear-gradient(135deg, #fee2e2, #fecaca); 
  border-color: #ef4444; 
}

.card-yellow-gradient { 
  background: linear-gradient(135deg, #fef3c7, #fde68a); 
  border-color: #f59e0b; 
}

.card-indigo-gradient { 
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe); 
  border-color: #6366f1; 
}

.curiosity-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.curiosity-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.curiosity-text {
  color: #6b7280;
}



/* Footer */
.footer {
  background: linear-gradient(135deg, #166534, #15803d);
  color: white;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-subtitle {
  color: #bbf7d0;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link {
  color: #bbf7d0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  color: white;
  transform: scale(1.1);
}

.social-icon {
  font-size: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid #16a34a;
  padding-top: 1.5rem;
}

.footer-copyright {
  color: #bbf7d0;
}

/* Botón volver arriba */
.btn-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: none;
}

.btn-top:hover {
  background: #15803d;
  transform: scale(1.1);
}

.btn-top.show {
  display: block;
}

.btn-top-icon {
  font-size: 1.25rem;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-title {
    font-size: 5rem;
  }
  
  .timeline-line {
    display: block;
  }
  
  .timeline-item {
    position: relative;
  }
  
  .timeline-left {
    width: calc(50% - 2rem);
    margin-right: auto;
  }
  
  .timeline-right {
    width: calc(50% - 2rem);
    margin-left: auto;
  }
  
  .timeline-dot {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-card {
    border-left: none;
  }
  
  .card-green { border-right: 4px solid #10b981; }
  .card-blue { border-left: 4px solid #3b82f6; }
  .card-yellow { border-right: 4px solid #f59e0b; }
  .card-purple { border-left: 4px solid #8b5cf6; }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .main-content {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .curiosities-grid {
    grid-template-columns: 1fr;
  }
}

