/* ================================================
   SOCIOS PAGE - MODERN STYLES v2.0
   Inspirado en Awwwards, Behance y Linear.app
   ================================================ */

:root {
  --pro-bg-dark: #0a0f1a;
  --pro-bg-card: rgba(255, 255, 255, 0.03);
  --pro-card-bg: rgba(20, 25, 35, 0.6);
  --pro-text: #e5e7eb;
  --pro-text-muted: #9ca3af;
  --pro-accent: #ffc107;
  --pro-accent-glow: rgba(255, 193, 7, 0.3);
  --pro-primary: #29b6f6;
  --pro-primary-glow: rgba(41, 182, 246, 0.3);
  --pro-danger: #ef4444;
  --pro-border: rgba(255, 255, 255, 0.06);
  --pro-overlay: rgba(10, 15, 26, 0.85);
  --pro-shadow: 0 10px 40px rgba(0,0,0,0.4);
  --pro-radius: 20px;
  --pro-radius-sm: 12px;
}

/* ==================== BODY OVERRIDE DARK ==================== */
body {
  background: #0a0f1a;
}
body::before,
body::after {
  display: none;
}

/* ==================== HEADER CONSISTENTE CON TODAS LAS SECCIONES ==================== */
/* Header/Nav styles are now in main.css - consolidated */

/* ==================== HERO SECTION - FONDO 3D EPIC ==================== */
.socios-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0f1a;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 100px;
}

/* Gradiente base elegante */
.socios-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(41, 182, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(229, 57, 53, 0.03) 0%, transparent 60%);
  z-index: 0;
}

/* Orbe flotante animado */
.socios-hero .hero-gradient-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(41,182,246,0.08) 0%, rgba(255,193,7,0.04) 50%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  animation: orbFloat 10s ease-in-out infinite;
  z-index: 1;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(-50%, -60%) scale(1.15); }
  66% { transform: translate(-45%, -50%) scale(0.9); }
}

/* Partículas 3D canvas */
#particles.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.6;
}

.socios-hero .container {
  position: relative;
  z-index: 10;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.2);
  padding: 10px 20px;
  border-radius: 50px;
  color: var(--pro-accent);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge i {
  font-size: 1.2rem;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.2); }
  50% { box-shadow: 0 0 20px 5px rgba(255, 193, 7, 0.1); }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.gradient-text {
  background: linear-gradient(135deg, var(--pro-accent), var(--pro-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  color: var(--pro-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: -35px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.8rem;
  color: #fff;
  display: block;
  line-height: 1;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  color: var(--pro-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ==================== STATS BAR MODERNO ==================== */
.stats-bar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--pro-border);
  border-radius: 24px;
  padding: 36px 40px;
  margin: 60px auto 80px;
  max-width: 1200px;
  backdrop-filter: blur(20px);
  box-shadow: var(--pro-shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.stats-bar::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(41, 182, 246, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: orbFloat 15s ease-in-out infinite;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,193,7,0.3), transparent);
}

.stats-bar .stat-item {
  flex: 1;
  text-align: center;
  padding: 20px 10px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-bar .stat-item:hover {
  transform: translateY(-6px);
}

.stats-bar .stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--pro-border), transparent);
}

.stats-bar .stat-item:last-child::after {
  display: none;
}

.stat-icon {
  font-size: 2rem;
  color: var(--pro-accent);
  margin-bottom: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.2));
}

.stats-bar .stat-item:hover .stat-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.5));
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  transition: all 0.4s ease;
}

.stats-bar .stat-item:hover .stat-number {
  background: linear-gradient(135deg, var(--pro-accent), var(--pro-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  color: var(--pro-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.stats-bar .stat-item:hover .stat-label {
  color: #fff;
}

/* ==================== FILTER BUTTONS ==================== */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 80px 0 60px;
  padding: 0 24px;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--pro-border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--pro-text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pro-primary), var(--pro-accent));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.category-btn i,
.category-btn span {
  position: relative;
  z-index: 1;
}

.category-btn:hover {
  color: #fff;
  border-color: rgba(255, 193, 7, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 193, 7, 0.15);
}

.category-btn.active {
  color: #0a0f1a;
  background: linear-gradient(135deg, var(--pro-primary), var(--pro-accent));
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.3);
}

/* ==================== SOCIOS GRID ==================== */
.socios-container {
  position: relative;
  padding: 60px 0 120px;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.5) 100%);
}

.socios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== SOCIO CARD - FLIP MODERNO ==================== */
.socio-card {
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
  padding: 0;
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.socio-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.socio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--pro-shadow);
  border-color: rgba(255, 193, 7, 0.15);
}

.socio-card-inner {
  position: relative;
  width: 100%;
  height: 320px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.socio-card:hover .socio-card-inner {
  transform: rotateY(180deg);
}

.socio-card-front,
.socio-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--pro-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.socio-card-front {
  background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
}

.socio-card-back {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  transform: rotateY(180deg);
  color: white;
}

/* Logo styling */
.socio-logo {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.5s ease;
}

.socio-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.socio-card:hover .socio-logo img {
  transform: scale(1.1);
  filter: drop-shadow(0 12px 30px rgba(41, 182, 246, 0.4));
}

.socio-logo-fallback {
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pro-text-muted);
  text-align: center;
  padding: 12px;
}

.socio-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.socio-category {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pro-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
}

.socio-card:hover .socio-category {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
  color: var(--pro-accent);
}

/* Back side */
.socio-back-icon {
  font-size: 3rem;
  color: var(--pro-accent);
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
}

.socio-back-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.socio-back-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.socio-back-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  text-align: center;
}

/* Hover glow effect */
.socio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--pro-radius);
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,193,7,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.socio-card:hover::after {
  opacity: 1;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(10,15,26,0.9)),
              radial-gradient(ellipse at 30% 50%, rgba(255,193,7,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(41,182,246,0.06) 0%, transparent 50%);
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta-section .container {
  position: relative;
  z-index: 10;
}

.cta-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.cta-section h2 span {
  color: var(--pro-accent);
}

.cta-section p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  color: var(--pro-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--pro-accent), var(--pro-primary));
  color: #0a0f1a;
  padding: 18px 40px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 30px rgba(255, 193, 7, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 50px rgba(255, 193, 7, 0.4);
}

/* ==================== ANIMATIONS ==================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
  .socios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .socios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero-stats {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .socios-hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  .socios-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-filters {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    margin: 60px 0 40px;
  }

  .category-btn {
    justify-content: center;
  }

  .stats-bar {
    flex-wrap: wrap;
  }

  .stats-bar .stat-item {
    flex: 0 0 calc(50% - 20px);
  }

  .stat-item::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .stats-bar {
    flex-direction: column;
    gap: 16px;
  }

  .stats-bar .stat-item {
    flex: 0 0 auto;
  }
}
