:root {
  /* --- Paleta BRAND IMMERSIVE v3 --- */
  /* Colores de marca (no cambian entre temas) */
  --brand-wine: #7d3c58;
  --brand-pink: #ff8fa3;
  --brand-gold: #f4a942;

  /* --- DARK THEME (default) --- */
  --bg-deep: #1a050a;
  --bg-body-gradient-1: rgba(125, 60, 88, 0.2);
  --bg-body-gradient-2: rgba(244, 169, 66, 0.1);

  /* Superficies */
  --surface-wine: rgba(125, 60, 88, 0.15);
  --surface-glass: rgba(255, 230, 240, 0.03);
  --border-glass: rgba(255, 143, 163, 0.15);
  --nav-bg: rgba(20, 5, 10, 0.8);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-hover: rgba(255, 255, 255, 0.07);
  --modal-bg: rgba(20, 5, 10, 0.95);

  /* Texto */
  --text-white: #ffeff4;
  --text-primary: #ffeff4;
  --text-secondary: rgba(255, 239, 244, 0.7);
  --text-muted: rgba(255, 239, 244, 0.5);
  --text-gold: #ffe5b4;

  /* Gradientes */
  --grad-main: linear-gradient(135deg, var(--brand-wine), #542135);
  --grad-gold: linear-gradient(to right, #f4a942, #ffd700);
  --grad-glow: radial-gradient(
    circle at center,
    rgba(255, 143, 163, 0.3),
    transparent 70%
  );

  /* --- Fonts --- */
  --font-display: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  /* --- Layout --- */
  --nav-height: 70px;
  --container-width: 1400px;

  /* --- Transitions --- */
  --theme-transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================
   LIGHT THEME - Pastel Rose Aesthetic
   ============================================ */
[data-theme="light"] {
  /* Fondos pasteles cálidos */
  --bg-deep: #fff5f8;
  --bg-body-gradient-1: rgba(255, 143, 163, 0.15);
  --bg-body-gradient-2: rgba(244, 169, 66, 0.12);

  /* Superficies con toque rosado */
  --surface-wine: rgba(125, 60, 88, 0.12);
  --surface-glass: rgba(255, 200, 210, 0.3);
  --border-glass: rgba(125, 60, 88, 0.25);
  --nav-bg: rgba(255, 240, 245, 0.95);
  --card-bg: rgba(255, 220, 230, 0.4);
  --card-bg-hover: rgba(255, 200, 215, 0.5);
  --modal-bg: rgba(255, 245, 248, 0.98);

  /* Texto en tonos vino oscuro */
  --text-white: #4a1a2e;
  --text-primary: #4a1a2e;
  --text-secondary: rgba(74, 26, 46, 0.8);
  --text-muted: rgba(74, 26, 46, 0.55);
  --text-gold: #b8651a;

  /* Gradientes pasteles */
  --grad-main: linear-gradient(135deg, #ffe8ee 0%, #ffd6e0 100%);
  --grad-gold: linear-gradient(to right, #f4a942, #ffb347);
}

/* ============================================
   LIGHT THEME - Specific Element Overrides
   ============================================ */

/* Glass boxes and cards */
[data-theme="light"] .glass-box,
[data-theme="light"] .team-bento,
[data-theme="light"] .bento-content {
  background: rgba(255, 230, 240, 0.6);
  border-color: rgba(125, 60, 88, 0.2);
}

[data-theme="light"] .glass-box p,
[data-theme="light"] .philosophy-text,
[data-theme="light"] .bento-description {
  color: var(--text-secondary);
}

[data-theme="light"] .philosophy-title,
[data-theme="light"] .bento-content h3 {
  color: var(--brand-wine);
}

/* Footer adjustments */
[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, #fff0f5 0%, #ffe8ee 100%);
}

[data-theme="light"] .footer-tagline,
[data-theme="light"] .footer-column ul li a,
[data-theme="light"] .footer-bottom p {
  color: var(--text-secondary);
}

[data-theme="light"] .footer-column h4 {
  color: var(--brand-wine);
}

[data-theme="light"] .footer-social a {
  color: var(--brand-wine);
  border-color: rgba(125, 60, 88, 0.3);
}

[data-theme="light"] .footer-social a:hover {
  background: var(--brand-wine);
  color: #fff;
}

/* Buttons */
[data-theme="light"] .btn-glass {
  background: rgba(125, 60, 88, 0.1);
  border-color: rgba(125, 60, 88, 0.3);
  color: var(--brand-wine);
}

[data-theme="light"] .btn-glass:hover {
  background: rgba(125, 60, 88, 0.2);
  border-color: var(--brand-wine);
}

/* Discord CTA */
[data-theme="light"] .discord-cta {
  background: linear-gradient(135deg, rgba(125, 60, 88, 0.1) 0%, rgba(244, 169, 66, 0.1) 100%);
  border-color: rgba(125, 60, 88, 0.2);
}

[data-theme="light"] .discord-title {
  color: var(--brand-wine);
}

[data-theme="light"] .discord-text {
  color: var(--text-secondary);
}

/* Stats Section */
[data-theme="light"] .stats-section {
  background: rgba(255, 220, 230, 0.5);
}

[data-theme="light"] .stat-item p {
  color: var(--text-secondary);
}

/* Sponsors Strip */
[data-theme="light"] .sponsors-strip {
  background: rgba(125, 60, 88, 0.08);
  border-color: rgba(125, 60, 88, 0.15);
}

[data-theme="light"] .sponsor-logo {
  color: var(--brand-wine);
  opacity: 0.7;
}

/* Mobile Menu */
[data-theme="light"] .mobile-nav-overlay {
  background: linear-gradient(135deg, rgba(255, 245, 248, 0.98) 0%, rgba(255, 230, 240, 0.98) 100%);
}

[data-theme="light"] .mobile-nav-link .nav-text {
  color: var(--text-primary);
}

[data-theme="light"] .mobile-nav-link:hover .nav-text,
[data-theme="light"] .mobile-nav-link.active .nav-text {
  color: var(--brand-wine);
}

[data-theme="light"] .mobile-menu-footer span {
  color: var(--text-muted);
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  background-image:
    radial-gradient(
      circle at 10% 10%,
      var(--bg-body-gradient-1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 90%,
      var(--bg-body-gradient-2) 0%,
      transparent 40%
    );
  background-attachment: fixed;
  transition: var(--theme-transition);
}

/* LITE MODE - Optimización para renderizado por software */
.low-perf, .low-perf * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-attachment: scroll !important;
  transition: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.low-perf body {
  background-image: none !important;
  background-color: var(--bg-deep) !important;
}

.low-perf .nav-island {
  background: var(--nav-bg) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
img {
  width: 100%;
  display: block;
}

/* --- Utilidades --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  /* Fix para evitar corte en letra italica */
  padding-right: 0.2em;
  margin-right: -0.2em;
}

.capsule-badge {
  display: inline-block;
  padding: 0.4em 1em;
  background: rgba(244, 169, 66, 0.1);
  color: var(--brand-gold);
  border: 1px solid rgba(244, 169, 66, 0.3);
  border-radius: 50px;
  font-size: 0.8em;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Botones --- */
.btn-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-pink);
  color: #4a0e22;
  box-shadow: 0 10px 20px rgba(255, 143, 163, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 143, 163, 0.4);
  background: #ff758c;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-gold);
  color: var(--text-white);
}

/* --- Navigation Island (Cápsula Flotante) --- */
.nav-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.nav-island {
  background: var(--nav-bg);
  border: 1px solid var(--border-glass);
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: var(--theme-transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.nav-logo img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  border: 2px solid var(--brand-gold);
}

.nav-links {
  display: none;
}

.mobile-toggle {
  display: block;
  margin-left: auto;
  cursor: pointer;
    color: var(--text-white);
  }

  [data-theme="light"] .mobile-toggle {
    color: var(--brand-wine);
  }

@media (min-width: 1100px) {
  .nav-links {
    display: flex;
    gap: 20px;
  }
  .mobile-toggle {
    display: none;
  }

  .mobile-nav-overlay {
    display: none !important;
  }

  .nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
    padding: 0.5em 1em;
    border-radius: 20px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    color: var(--brand-pink);
  }
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--surface-wine);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 143, 163, 0.25);
  border-color: var(--brand-pink);
  transform: scale(1.1);
}

.theme-toggle i {
  font-size: 1.1rem;
  color: var(--brand-gold);
  transition: transform 0.4s ease;
}

.theme-toggle:hover i {
  transform: rotate(20deg);
}

/* Light theme adjustments */
[data-theme="light"] .theme-toggle {
  background: rgba(125, 60, 88, 0.1);
  border-color: rgba(125, 60, 88, 0.3);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(125, 60, 88, 0.2);
  border-color: var(--brand-wine);
}

[data-theme="light"] .theme-toggle i {
  color: var(--brand-wine);
}

/* Mobile theme toggle in menu */
.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
  background: var(--surface-wine);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  text-transform: uppercase;
}

.mobile-theme-toggle i {
  font-size: 1.3rem;
  color: var(--brand-gold);
}

.mobile-theme-toggle:hover {
  background: rgba(255, 143, 163, 0.2);
  border-color: var(--brand-pink);
}

/* --- Hero Section Asimétrico --- */
.hero-v3 {
  min-height: 100vh;
  padding-top: 100px; /* espacio para nav */
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero-v3 {
    grid-template-columns: 1.2fr 0.8fr;
    padding-bottom: 0px;
  }
}

.hero-text {
  padding: 2rem 5%;
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-visual {
    height: 100%;
    background: radial-gradient(
      circle at center,
      rgba(125, 60, 88, 0.2),
      transparent 70%
    );
  }
}

.big-heading {
  font-size: clamp(2.5rem, 10vw, 7rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word; /* Prevent cut-off */
  hyphens: auto;
  max-width: 100%;
}

.floating-logo {
  width: 60%;
  max-width: 500px;
  filter: drop-shadow(0 0 60px rgba(244, 169, 66, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

/* --- Teams Page Container --- */
.teams-page-container {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.teams-title {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.teams-empty {
  padding: 4rem;
  text-align: center;
}

.bento-corner-icon {
  width: 20px;
  border-radius: 50%;
}

.bento-description {
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.bento-link-text {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--brand-pink);
  padding-bottom: 2px;
}

/* --- Teams Grid BENTO --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 4rem 0;
}

.team-bento {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.team-bento:hover {
  border-color: var(--brand-pink);
  background: rgba(255, 255, 255, 0.07);
  transform: scale(1.02);
}

.team-bento img.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: 0.5s;
  z-index: 0;
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    transparent 100%
  ); /* Fade out bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.team-bento:hover img.bento-bg {
  opacity: 0.6;
  transform: scale(1.1);
}

.bento-content {
  position: relative;
  z-index: 1;
}

.bento-content h3 {
  font-size: 2rem;
  color: var(--brand-gold);
  margin-bottom: 0.5rem;
}

.bento-corner {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--brand-wine);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-pink);
}

/* Team Card Link Wrapper */
.team-bento-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.team-bento-link:hover .team-bento {
  border-color: var(--brand-pink);
  background: rgba(255, 255, 255, 0.07);
  transform: scale(1.02);
}

.team-bento-link:hover img.bento-bg {
  opacity: 0.6;
  transform: scale(1.1);
}

/* --- Mobile Menu Premium Redesign --- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 5, 10, 0.98) 0%,
    rgba(30, 10, 20, 0.98) 100%
  );
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Background Decorations */
.mobile-menu-bg-decoration {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(125, 60, 88, 0.3) 0%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}

.mobile-menu-glow {
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(244, 169, 66, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}

.mobile-nav-overlay.active .mobile-menu-bg-decoration,
.mobile-nav-overlay.active .mobile-menu-glow {
  opacity: 1;
}

/* Header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
  transform: translateY(-30px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.mobile-nav-overlay.active .mobile-menu-header {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-white);
}

.mobile-menu-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--brand-gold);
  box-shadow: 0 0 20px rgba(244, 169, 66, 0.3);
}

.mobile-menu-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-close i {
  font-size: 1.5rem;
  color: var(--text-white);
}

.mobile-menu-close:hover {
  background: rgba(255, 143, 163, 0.2);
  border-color: var(--brand-pink);
  transform: rotate(90deg);
}

/* Navigation Links */
.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  transform: translateX(-30px);
  opacity: 0;
  width: 100%;
  max-width: 300px;
}

.mobile-nav-overlay.active .mobile-nav-link {
  transform: translateX(0);
  opacity: 1;
}

/* Staggered animation for links */
.mobile-nav-overlay.active .mobile-nav-link:nth-child(1) {
  transition-delay: 0.15s;
}
.mobile-nav-overlay.active .mobile-nav-link:nth-child(2) {
  transition-delay: 0.2s;
}
.mobile-nav-overlay.active .mobile-nav-link:nth-child(3) {
  transition-delay: 0.25s;
}
.mobile-nav-overlay.active .mobile-nav-link:nth-child(4) {
  transition-delay: 0.3s;
}
.mobile-nav-overlay.active .mobile-nav-link:nth-child(5) {
  transition-delay: 0.35s;
}
.mobile-nav-overlay.active .mobile-nav-link:nth-child(6) {
  transition-delay: 0.4s;
}

.mobile-nav-link .nav-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-pink);
  opacity: 0.5;
  min-width: 24px;
}

.mobile-nav-link .nav-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex: 1;
  transition: all 0.3s ease;
}

.mobile-nav-link .nav-arrow {
  font-size: 1.2rem;
  color: var(--brand-gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 143, 163, 0.3);
}

.mobile-nav-link:hover .nav-text,
.mobile-nav-link.active .nav-text {
  color: var(--brand-pink);
}

.mobile-nav-link:hover .nav-number,
.mobile-nav-link.active .nav-number {
  opacity: 1;
}

.mobile-nav-link:hover .nav-arrow,
.mobile-nav-link.active .nav-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Auth Section */
.mobile-menu-auth {
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.45s;
}

.mobile-nav-overlay.active .mobile-menu-auth {
  transform: translateY(0);
  opacity: 1;
}

.mobile-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(244, 169, 66, 0.15) 0%,
    rgba(244, 169, 66, 0.05) 100%
  );
  border: 1px solid rgba(244, 169, 66, 0.3);
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-gold);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-auth-btn i {
  font-size: 1.3rem;
}

.mobile-auth-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(244, 169, 66, 0.25) 0%,
    rgba(244, 169, 66, 0.1) 100%
  );
  border-color: var(--brand-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(244, 169, 66, 0.2);
}

.mobile-auth-btn-login {
  background: linear-gradient(135deg, var(--brand-pink) 0%, #ff758c 100%);
  border: none;
  color: #4a0e22;
}

.mobile-auth-btn-login:hover {
  background: linear-gradient(135deg, #ff758c 0%, var(--brand-pink) 100%);
  box-shadow: 0 10px 30px rgba(255, 143, 163, 0.4);
}

/* Footer */
.mobile-menu-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.5s;
}

.mobile-nav-overlay.active .mobile-menu-footer {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-footer .footer-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand-pink),
    transparent
  );
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.mobile-menu-footer span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===========================================
   SITE FOOTER - Premium Design
   =========================================== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(10, 3, 8, 1) 100%);
  border-top: 1px solid var(--border-glass);
  margin-top: 4rem;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(125, 60, 88, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.footer-main {
  padding: 4rem 0 3rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

/* Footer Brand */
.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--brand-gold);
  box-shadow: 0 0 20px rgba(244, 169, 66, 0.2);
}

.footer-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-white);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 143, 163, 0.15);
  border-color: var(--brand-pink);
  color: var(--brand-pink);
  transform: translateY(-3px);
}

/* Footer Columns */
.footer-column h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-column a:hover {
  color: var(--brand-pink);
  transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
  position: relative;
  z-index: 2;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin: 0;
}

.scroll-to-top {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(244, 169, 66, 0.15) 0%, rgba(244, 169, 66, 0.05) 100%);
  border: 1px solid rgba(244, 169, 66, 0.3);
  border-radius: 12px;
  color: var(--brand-gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, rgba(244, 169, 66, 0.25) 0%, rgba(244, 169, 66, 0.1) 100%);
  border-color: var(--brand-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(244, 169, 66, 0.2);
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column a:hover {
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  .site-footer {
    margin-top: 2rem;
  }

  .footer-glow {
    width: 300px;
    height: 100px;
    top: -50px;
  }

  .footer-main {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    grid-column: span 2;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
  }

  .footer-logo {
    margin-bottom: 1rem;
  }

  .footer-logo img {
    width: 36px;
    height: 36px;
  }

  .footer-logo span {
    font-size: 0.95rem;
  }

  .footer-tagline {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social {
    gap: 10px;
  }

  .footer-social a {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  /* Two columns for nav sections */
  .footer-column {
    text-align: left;
  }

  .footer-column h4 {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(244, 169, 66, 0.2);
    display: inline-block;
  }

  .footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-column li {
    margin-bottom: 0;
  }

  .footer-column a {
    font-size: 0.85rem;
    padding: 0.3rem 0;
    display: block;
    opacity: 0.7;
  }

  .footer-column a:hover {
    opacity: 1;
    transform: none;
  }

  /* Footer Bottom */
  .footer-bottom {
    padding: 1.2rem 0;
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .footer-bottom p {
    font-size: 0.7rem;
    margin: 0;
  }

  .scroll-to-top {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 10px;
  }
}

/* --- New Home Sections ---

/* Sponsors / Marquee */
.sponsors-strip {
  padding: 3rem 0;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.sponsors-track {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.sponsor-logo {
  display: inline-block;
  margin: 0 3rem;
  height: 40px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: 0.3s;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
}

.sponsor-logo:hover {
  opacity: 1;
  color: var(--brand-pink);
  filter: grayscale(0%);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Stats Section */
.stats-section {
  padding: 6rem 0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--brand-gold);
  margin-bottom: 0.5rem;
}

.stat-item p {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Philosophy Section (Text + Image) */
.philosophy-section {
  padding: 8rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .philosophy-section {
    grid-template-columns: 1fr 1fr;
  }
}

.glass-box {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid var(--border-glass);
  padding: 3rem;
  border-radius: 24px;
  position: relative;
}

.glass-box::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: serif;
  font-size: 8rem;
  color: var(--brand-wine);
  opacity: 0.5;
  line-height: 1;
}

/* Discord CTA */
.discord-cta {
  margin: 6rem 0;
  padding: 6rem 1rem;
  text-align: center;
  background: radial-gradient(
    circle at center,
    rgba(88, 101, 242, 0.2),
    transparent 70%
  );
  border-radius: 40px;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

/* Fix para scroll en nav-island */
.nav-island.scrolled {
  background: rgba(20, 5, 10, 0.95);
  border-color: var(--brand-pink);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1.5rem; /* Shrink effect */
}

/* Login Button Nav */
.btn-login-nav {
  background: var(--brand-pink);
  color: #4a0e22;
  border: none;
  padding: 0.5em 1.2em;
  border-radius: 20px;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: 0.3s;
}

.btn-login-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 143, 163, 0.4);
}

/* Boton de usuario autenticado en la navegacion */
.btn-user-nav {
  background: rgba(244, 169, 66, 0.15);
  color: var(--brand-gold);
  border: 1px solid rgba(244, 169, 66, 0.3);
  padding: 0.5em 1.2em;
  border-radius: 20px;
  font-weight: 700;
  font-family: var(--font-display);
  transition: 0.3s;
}

.btn-user-nav:hover {
  background: rgba(244, 169, 66, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(244, 169, 66, 0.3);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-glass {
  background: rgba(30, 10, 20, 0.9);
  border: 1px solid var(--brand-pink);
  padding: 3rem;
  border-radius: 24px;
  width: 90%;
  max-width: 400px;
  position: relative;
  transform: scale(0.9);
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 50px rgba(125, 60, 88, 0.5);
}

.modal-overlay.active .modal-glass {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
}

.modal-close:hover {
  opacity: 1;
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-size: 2rem;
  color: var(--brand-gold);
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.input-group input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
  color: white;
  font-family: var(--font-body);
}

.input-group input:focus {
  outline: none;
  border-color: var(--brand-pink);
}

.input-group-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.3s;
  opacity: 0.8;
}

.input-group-checkbox:hover {
  opacity: 1 !important;
}

.input-group-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.input-group-checkbox input[type="checkbox"]:checked {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
}

.input-group-checkbox input[type="checkbox"]:checked::after {
  content: '\f269'; /* Phosphor check icon if loaded via font, or simple CSS check */
  font-family: "Phosphor";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #4a0e22;
  font-size: 12px;
  font-weight: bold;
}

/* Fallback if icon font is slow to load */
.input-group-checkbox input[type="checkbox"]:checked::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #4a0e22;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.input-group-checkbox label {
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.input-group-checkbox input[type="checkbox"]:focus {
  box-shadow: 0 0 0 2px rgba(255, 143, 163, 0.2);
}

.modal-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.modal-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

.modal-footer a:hover {
  color: var(--brand-pink);
}

/* --- Password Toggle --- */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper input {
  padding-right: 45px;
}
.toggle-password {
  position: absolute;
  right: 15px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.3rem;
  transition: 0.3s;
  z-index: 2;
}
.toggle-password:hover {
  color: var(--brand-pink);
  transform: scale(1.1);
}

/* ===========================================
   MEJORAS RESPONSIVE GLOBALES
   =========================================== */

/* Tablets */
@media (max-width: 992px) {
  /* Hero section */
  .hero-text {
    text-align: center;
    padding: 2rem;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  /* Stats */
  .stats-section {
    padding: 4rem 1rem;
    gap: 1.5rem;
  }

  .stat-item h3 {
    font-size: 2.5rem;
  }

  /* Philosophy */
  .philosophy-section {
    padding: 5rem 1rem;
    gap: 2rem;
  }

  .glass-box {
    padding: 2rem;
  }

  /* Discord CTA */
  .discord-cta {
    margin: 4rem 1rem;
    padding: 4rem 1.5rem;
    border-radius: 24px;
  }

  .discord-cta h2 {
    font-size: 2rem;
  }
}

/* Moviles */
@media (max-width: 600px) {
  /* Navegacion */
  .nav-wrapper {
    top: 10px;
  }

  .nav-island {
    padding: 0.5rem 1rem;
    gap: 1rem;
    width: calc(100% - 2rem);
    max-width: none;
    margin: 0 1rem;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .nav-logo img {
    height: 28px;
    width: 28px;
  }

  /* Mobile menu overlay - Responsive adjustments */
  .mobile-menu-header {
    padding: 1rem 1.5rem;
  }

  .mobile-menu-logo {
    font-size: 0.95rem;
  }

  .mobile-menu-logo img {
    width: 32px;
    height: 32px;
  }

  .mobile-menu-close {
    width: 40px;
    height: 40px;
  }

  .mobile-menu-nav {
    padding: 1rem 1.5rem;
    gap: 0.3rem;
  }

  .mobile-nav-link {
    padding: 0.8rem 1rem;
  }

  .mobile-nav-link .nav-text {
    font-size: 1.25rem;
  }

  .mobile-menu-auth {
    padding: 1rem 1.5rem;
  }

  .mobile-auth-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .mobile-menu-footer {
    padding: 1rem 1.5rem;
  }

  /* Botones */
  .btn-v3 {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .btn-login-nav,
  .btn-user-nav {
    padding: 0.4em 0.8em;
    font-size: 0.85rem;
  }

  /* Hero */
  .hero-v3 {
    padding-top: 80px;
    min-height: auto;
  }

  .hero-text {
    padding: 1.5rem 1rem 2rem;
  }

  .big-heading {
    font-size: clamp(2rem, 12vw, 3.5rem);
    margin-bottom: 1rem;
  }

  .hero-visual {
    height: 35vh;
  }

  .floating-logo {
    width: 50%;
    max-width: 200px;
  }

  /* Stats */
  .stats-section {
    padding: 3rem 1rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .stat-item p {
    font-size: 0.8rem;
  }

  /* Sponsors */
  .sponsors-strip {
    padding: 2rem 0;
  }

  .sponsor-logo {
    margin: 0 1.5rem;
    font-size: 1.1rem;
  }

  /* Philosophy */
  .philosophy-section {
    padding: 3rem 0;
  }

  .glass-box {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .glass-box::before {
    font-size: 4rem;
    top: -10px;
    left: 10px;
  }

  /* Discord CTA */
  .discord-cta {
    margin: 3rem 0;
    padding: 3rem 1rem;
    border-radius: 20px;
  }

  .discord-cta h2 {
    font-size: 1.6rem;
  }

  .discord-cta p {
    font-size: 0.95rem;
  }

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0 2rem;
    margin-top: 0;
  }

  .team-bento {
    aspect-ratio: 4/4;
    padding: 1.5rem;
    border-radius: 16px;
  }

  .bento-content h3 {
    font-size: 1.5rem;
  }

  /* Modal */
  .modal-glass {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    max-width: 95%;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .input-group input {
    padding: 0.7rem;
    font-size: 1rem;
  }

  /* Container */
  .container {
    width: 95%;
  }

  /* Capsule badge */
  .capsule-badge {
    font-size: 0.7rem;
    padding: 0.3em 0.8em;
  }
}

/* Pantallas muy pequenas */
@media (max-width: 380px) {
  .nav-island {
    padding: 0.4rem 0.8rem;
  }

  .nav-logo {
    font-size: 0.85rem;
  }

  .big-heading {
    font-size: 1.8rem;
  }

  .stat-item h3 {
    font-size: 1.6rem;
  }

  .discord-cta h2 {
    font-size: 1.4rem;
  }

  .teams-title {
    font-size: 2rem;
  }
}

/* Teams page responsive */
@media (max-width: 768px) {
  .teams-page-container {
    padding-top: 100px;
  }

  .teams-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .teams-empty {
    padding: 2.5rem;
  }
}

@media (max-width: 600px) {
  .teams-page-container {
    padding-top: 90px;
  }

  .teams-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
}
