/**
 * BARRA BRAVA MX - THEME STYLES
 * Archivo principal de estilos basado en el Brandbook 2025
 *
 * Este archivo integra:
 * - Colores oficiales de marca
 * - Tipografía oficial: TT Supermolot Neue (Brandbook)
 * - Estilos street/urbanos
 * - Componentes personalizados
 */

/**
 * ==========================================================================
 * 1. TYPOGRAPHY SYSTEM (TT SUPERMOLOT NEUE - BRANDBOOK)
 * ==========================================================================
 */

/* Body text - Expanded Light (Brandbook pg 28) */
body {
  font-family: 'TT Supermolot Neue', sans-serif !important;
  font-weight: 300;
  font-stretch: expanded;
  color: var(--bb-text);
  background-color: var(--bb-light);
  line-height: 1.6;
}

/* Headlines - Condensed ExtraBold Italic (Brandbook pg 28) */
h1, h2, .section-title, .banner-heading {
  font-family: 'TT Supermolot Neue', sans-serif !important;
  font-weight: 800 !important;
  font-style: italic !important;
  font-stretch: condensed;
  color: var(--bb-dark);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Subheadlines - Condensed DemiBold (Brandbook pg 28) */
h3, h4, h5, h6, .pretitle, .subtitle {
  font-family: 'TT Supermolot Neue', sans-serif !important;
  font-weight: 600 !important;
  font-stretch: condensed;
  color: var(--bb-dark);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Body text - Expanded Light (Brandbook pg 28) */
p, .paragraph, li, a, span {
  font-family: 'TT Supermolot Neue', sans-serif !important;
  font-weight: 300;
  font-stretch: expanded;
  line-height: 1.7;
}

/**
 * ==========================================================================
 * 2. COLOR SYSTEM
 * ==========================================================================
 */

/* Primary actions and links */
a {
  color: var(--bb-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--bb-primary-hover);
}

/* Buttons - Primary */
.btn-primary, .team-btn, .more-btn, .banner-btn {
  background-color: var(--bb-primary);
  color: var(--bb-dark);
  border: 2px solid var(--bb-primary);
  font-family: 'TT Supermolot Neue', sans-serif !important;
  font-weight: 800 !important;
  font-stretch: condensed;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-primary:hover, .team-btn:hover, .more-btn:hover, .banner-btn:hover {
  background-color: var(--bb-dark);
  color: var(--bb-primary);
  border-color: var(--bb-primary);
}

/* Buttons - Secondary (outline) */
.btn-outline {
  background-color: transparent;
  color: var(--bb-primary);
  border: 2px solid var(--bb-primary);
  font-family: 'TT Supermolot Neue', sans-serif !important;
  font-weight: 800 !important;
  font-stretch: condensed;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--bb-primary);
  color: var(--bb-dark);
}

/**
 * ==========================================================================
 * 3. HEADER & NAVIGATION
 * ==========================================================================
 */

.rts-header, .rts-header1 {
  background: #1F1F1F;
  border-bottom: 3px solid #BBFF00;
}

.rts-header .navbar-sticky,
.navbar-sticky,
.navbar-part {
  background: #1F1F1F !important;
}

.navbar-sticky.sticky-menu {
  background: #1F1F1F !important;
  border-bottom: 2px solid #BBFF00;
}

/* Navigation links */
.nav__menu > li > a {
  color: var(--bb-light);
  font-family: 'TT Supermolot Neue', sans-serif !important;
  font-weight: 600 !important;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.nav__menu > li > a:hover,
.nav__menu > li > a.active {
  color: var(--bb-primary);
}

/* Ajustes del logo para header/aside/footer */
.logo img,
.logo-sticky img,
.offset-widget.offset-logo img,
.footer-logo img {
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

#rtsHeader .navbar-sticky.sticky-menu .logo img,
#rtsHeader .navbar-sticky.sticky-menu .logo-sticky img {
  max-height: 48px;
}

@media (min-width: 1200px) {
  .logo img,
  .logo-sticky img,
  .offset-widget.offset-logo img,
  .footer-logo img {
    max-height: 68px;
  }
}

.slide-bar .offset-logo img {
  margin: 0 auto;
}

/**
 * ==========================================================================
 * 4. HERO/BANNER SECTIONS
 * ==========================================================================
 */

.banner-area, .rts-hero-area {
  background: var(--bb-gradient-hero);
  position: relative;
  overflow: hidden;
}

.banner-heading {
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--bb-light);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-heading span {
  color: var(--bb-primary);
}

/**
 * ==========================================================================
 * 5. SECTIONS & CARDS
 * ==========================================================================
 */

.section-title-area {
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--bb-primary);
  margin-top: 20px;
}

.pretitle {
  color: var(--bb-primary);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: inline-block;
}

/* Cards/Team items */
.single-team, .card {
  background: #fff;
  border: 2px solid var(--bb-dark);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-team:hover, .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(187, 255, 0, 0.2);
  border-color: var(--bb-primary);
}

.rts-principles-section .principle-card {
  background: #fff;
  border: 2px solid var(--bb-dark);
  padding: 32px 28px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.rts-principles-section .principle-card:hover {
  transform: translateY(-6px);
  border-color: var(--bb-primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.rts-principles-section .principle-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bb-dark);
  color: var(--bb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 0 4px rgba(187, 255, 0, 0.25);
}

.rts-principles-section .principle-title {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rts-principles-section .principle-card p {
  color: var(--bb-text-secondary, #303030);
  margin-bottom: 0;
}

/**
 * ==========================================================================
 * 6. FOOTER
 * ==========================================================================
 */

.footer, .footer1 {
  background: var(--bb-dark);
  color: var(--bb-light);
  /* padding: 80px 0 30px; */
}

.footer a {
  color: var(--bb-light);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--bb-primary);
}

.footer-title {
  color: var(--bb-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: 1.2rem;
}

/**
 * ==========================================================================
 * 7. STREET/URBAN ELEMENTS (Brandbook pg 32)
 * ==========================================================================
 */

/* Grunge/texture overlays */
.street-texture {
  position: relative;
  z-index: 1;
}

.street-texture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuOSIgbnVtT2N0YXZlcz0iNCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjAuMDUiLz48L3N2Zz4=');
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

/* Dynamic lines/speed effects */
.dynamic-line {
  position: relative;
  overflow: hidden;
}

.dynamic-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--bb-primary);
  transform: translateY(-50%);
  animation: speedLine 2s ease-in-out infinite;
}

@keyframes speedLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/**
 * ==========================================================================
 * 8. UTILITY CLASSES
 * ==========================================================================
 */

.bg-dark { background-color: var(--bb-dark) !important; }
.bg-primary { background-color: var(--bb-primary) !important; }
.bg-light { background-color: var(--bb-light) !important; }

.text-primary { color: var(--bb-primary) !important; }
.text-dark { color: var(--bb-dark) !important; }
.text-light { color: var(--bb-light) !important; }

.border-primary { border-color: var(--bb-primary) !important; }
.border-dark { border-color: var(--bb-dark) !important; }

/* Energy pulse effect for CTAs */
.pulse-energy {
  animation: pulseEnergy 2s ease-in-out infinite;
}

@keyframes pulseEnergy {
  0%, 100% { box-shadow: 0 0 0 0 rgba(187, 255, 0, 0.7); }
  50% { box-shadow: 0 0 0 15px rgba(187, 255, 0, 0); }
}

/**
 * ==========================================================================
 * 9. RESPONSIVE ADJUSTMENTS
 * ==========================================================================
 */

@media (max-width: 768px) {
  .banner-heading {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn-primary, .team-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/**
 * ==========================================================================
 * 10. MANIFIESTO & BRAND VOICE (Brandbook pg 14)
 * ==========================================================================
 */

.manifiesto-text {
  font-size: 1.2rem;
  line-height: 1.8;
  font-weight: 600;
  color: var(--bb-dark);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: normal;
  color: var(--bb-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Fuerza Brava - Slogan styling */
.slogan {
  font-size: 2.3rem;
  font-weight: 700;
  font-style: normal;
  color: var(--bb-primary);
  text-transform: uppercase;
  text-align: center;
  margin: 40px 0;
}

/**
 * ==========================================================================
 * 11. SERVICE CARDS
 * ==========================================================================
 */

.service-card {
  background: #fff;
  border: 2px solid var(--bb-dark);
  padding: 30px;
  border-radius: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(187, 255, 0, 0.3);
  border-color: var(--bb-primary);
}

.service-icon {
  margin-bottom: 20px;
}

.service-icon i {
  color: var(--bb-primary);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bb-dark);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.service-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bb-text);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  color: var(--bb-primary);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: auto;
}

.service-link:hover {
  color: var(--bb-dark);
  transform: translateX(5px);
}

.service-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/**
 * ==========================================================================
 * 12. BANNER ENHANCEMENTS
 * ==========================================================================
 */

.banner-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--bb-light);
  margin: 25px 0;
  max-width: 600px;
}

/**
 * ==========================================================================
 * 13. VALUES LIST STYLING
 * ==========================================================================
 */

.values-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.values-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(187, 255, 0, 0.2);
  font-size: 1rem;
  line-height: 1.6;
}

.values-list li:last-child {
  border-bottom: none;
}

.values-list li strong {
  color: var(--bb-dark);
}

/**
 * ==========================================================================
 * 14. BRANDBOOK SECTION (Inspired by Brandbook page design)
 * ==========================================================================
 */

.rts-brandbook-section {
  position: relative;
  background: var(--bb-primary);
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

/* Textura de fútbol en el fondo */
.brandbook-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: url('../images/concepto-de-juego-de-futbol.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

/* Corte diagonal como en la imagen */
.brandbook-diagonal-cut {
  position: absolute;
  top: 0;
  right: 45%;
  width: 60%;
  height: 100%;
  background: var(--bb-dark);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 2;
}

/* Contenido del texto */
.brandbook-content {
  position: relative;
  z-index: 3;
  padding: 60px;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.brandbook-text-wrapper {
  max-width: 500px;
}

.brandbook-slogan {
  font-family: 'TT Supermolot Neue', sans-serif !important;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800 !important;
  font-style: italic !important;
  font-stretch: condensed;
  color: var(--bb-dark);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin-bottom: 30px;
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

.brandbook-divider {
  width: 120px;
  height: 6px;
  background: var(--bb-dark);
  margin: 30px 0;
}

.brandbook-subtitle {
  font-family: 'TT Supermolot Neue', sans-serif !important;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300 !important;
  font-stretch: expanded;
  color: var(--bb-dark);
  line-height: 1.2;
  text-transform: none;
}

/* Área del logo */
.brandbook-logo-area {
  position: relative;
  z-index: 3;
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.logo-container {
  position: relative;
  margin-bottom: 40px;
  animation: floatLogo 3s ease-in-out infinite;
}

.logo-container .main-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

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

/* Grid de stickers */
.stickers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 500px;
  width: 100%;
}

.sticker-item {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.sticker-item:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .brandbook-diagonal-cut {
    display: none;
  }

  .brandbook-overlay {
    width: 100%;
    opacity: 0.1;
  }

  .rts-brandbook-section {
    background: linear-gradient(180deg, var(--bb-primary) 0%, var(--bb-primary) 60%, var(--bb-dark) 60%, var(--bb-dark) 100%);
  }

  .brandbook-content,
  .brandbook-logo-area {
    padding: 40px 20px;
  }

  .brandbook-text-wrapper {
    text-align: center;
    margin: 0 auto;
  }

  .brandbook-divider {
    margin: 30px auto;
  }

  .logo-container .main-logo {
    max-width: 300px;
  }

  .stickers-grid {
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  .brandbook-slogan {
    font-size: 2.5rem;
  }

  .brandbook-subtitle {
    font-size: 1.8rem;
  }

  .logo-container .main-logo {
    max-width: 250px;
  }

  .stickers-grid {
    gap: 15px;
    max-width: 300px;
  }
}

/**
 * ==========================================================================
 * 15. ACADEMY VIDEO THUMB FIX
 * ==========================================================================
 */

.rts-champion-section .video-thumb {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bb-dark);
}

.rts-champion-section .video-thumb img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  object-position: center;
  display: block;
}



/**
 * ==========================================================================
 * 16. TORNEOS SECTION RESPONSIVE
 * ==========================================================================
 */

/* Estilos para la sección de torneos */
.rts-about-section.about .contents ul {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.rts-about-section.about .contents ul li.player {
  /* background: var(--bb-light); */
  /* border: 2px solid var(--bb-dark); */
  padding: 20px 25px;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rts-about-section.about .contents ul li.player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  /* background: var(--bb-primary); */
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.rts-about-section.about .contents ul li.player:hover {
  transform: translateX(5px);
  /* border-color: var(--bb-primary); */
  /* box-shadow: 0 5px 20px rgba(187, 255, 0, 0.2); */
}

.rts-about-section.about .contents ul li.player:hover::before {
  transform: scaleY(1);
}

.rts-about-section.about .contents ul li.player .title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bb-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.rts-about-section.about .contents ul li.player:hover .title {
  color: var(--bb-primary);
}

/* Responsive para tablets */
@media (max-width: 991px) {
  .rts-about-section.about .row {
    flex-direction: column-reverse;
  }

  .rts-about-section.about .contents ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
  }

  .rts-about-section.about .contents ul li.player {
    padding: 18px 20px;
  }

  .rts-about-section.about .contents ul li.player .title {
    font-size: 1.2rem;
  }

  .rts-about-section.about .about-thumb {
    margin-bottom: 40px;
  }
}

/* Responsive para móviles */
@media (max-width: 576px) {
  .rts-about-section.about .contents ul {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
  }

  .rts-about-section.about .contents ul li.player {
    padding: 15px 20px;
  }

  .rts-about-section.about .contents ul li.player .title {
    font-size: 1.1rem;
  }

  .rts-about-section.about .section-title {
    font-size: 2rem;
  }
}
