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

:root {
  /* Colors */
  --c-primary: #F72585;
  --c-primary-light: #FF5C9D;
  --c-secondary: #7209B7;
  --c-accent: #4CC9F0;
  
  --c-bg: #0C0714;
  --c-bg-glass: rgba(20, 10, 30, 0.6);
  --c-surface: rgba(255, 255, 255, 0.05);
  --c-surface-hover: rgba(255, 255, 255, 0.1);
  --c-border: rgba(255, 255, 255, 0.1);
  --c-text: #FDF2F8;
  --c-text-muted: #A8A2B0;
  
  --rainbow-grad: linear-gradient(90deg, #F72585, #7209B7, #4CC9F0, #F72585);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows & Radius */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(247, 37, 133, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(114, 9, 183, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* Typography Utilities */
.text-gradient {
  background: var(--rainbow-grad);
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 6rem 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--c-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem 0;
  box-shadow: var(--shadow-glass);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--c-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: url('images/chocolateros.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(12, 7, 20, 0.4), rgba(12, 7, 20, 0.95));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero p {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--c-text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(247, 37, 133, 0.6);
}

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

.glass-card {
  background: var(--c-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-10px);
  background: var(--c-surface-hover);
  border-color: rgba(247, 37, 133, 0.3);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--rainbow-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.glass-card p {
  color: var(--c-text-muted);
}

/* Players Section */
.players {
  position: relative;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.player-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(to bottom, var(--c-surface), rgba(0,0,0,0.8));
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--c-border);
}

.player-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 0;
  opacity: 0.7;
  filter: grayscale(80%) sepia(20%) hue-rotate(280deg);
}

.player-card:hover .player-img {
  transform: scale(1.05);
  opacity: 1;
  filter: grayscale(0%);
}

.player-info {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  width: 100%;
  background: linear-gradient(to top, rgba(12,7,20, 1) 0%, rgba(12,7,20, 0) 100%);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.player-card:hover .player-info {
  transform: translateY(0);
}

.player-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.player-nick {
  color: var(--c-primary);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.player-skill {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  transition-delay: 0.1s;
}

.player-card:hover .player-skill {
  opacity: 1;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.gallery-item:nth-child(wide) {
  grid-column: span 2;
}
@media (min-width: 768px) {
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 2; }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-blur {
  filter: blur(15px);
  opacity: 0.8;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-weight: 500;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 8rem 0;
  position: relative;
  background: linear-gradient(to right, rgba(247, 37, 133, 0.1), rgba(114, 9, 183, 0.1));
}

.cta-section::before, .cta-section::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
}
.cta-section::before { top: 0; }
.cta-section::after { bottom: 0; }

.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--c-border);
  padding: 4rem 0 2rem;
  text-align: center;
}

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

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--c-border);
}

.social-icon:hover {
  background: var(--c-primary);
  color: white;
  transform: translateY(-3px);
  border-color: var(--c-primary);
}

.footer-text {
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

/* Utilities for JS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--c-bg-glass);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid var(--c-border);
    z-index: -1;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  section {
    padding: 4rem 0;
  }
}
