/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: auto;
    margin: 0 auto;
    padding: auto;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid white;
    box-shadow: 0 0 10px rgba(255,255,255,0.2), 0 0 20px rgba(255,255,255,0.05) inset;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

/* Logo */

.logo-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  max-width: 90%;
  margin: 0 auto;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 20px;
  padding-bottom: 5px;
}

.logo-img {
  width: 175px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-description {
  font-size: 22px;
  color: #ffffff;
  padding-top: 6px;
  text-align: center;
  margin: 0 auto;
}

/* Sponsor */

.sponsor-section {
  width: 800px;
  padding-top: 30px;
  padding-bottom: 30px;
  margin: 0 auto;
}

.sponsor-section2 {
  width: 800px;
  padding-top: 50px;
  padding-bottom: 50px;
  margin: 0 auto;
}

.sponsor-img2 {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* Redes sociales */

.social-icons {
    display: flex;
    gap: 15px;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 10;
}

.social-icon {
    font-size: 24px;
    color: #aaa;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icon.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%,
    #fd5949 45%, #d6249f 60%, #285AEB 90%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Para Firefox */
}

.social-icon.tiktok:hover {
  color: white;
  text-shadow:
    -1px -1px 0 #69C9D0,
     1px  1px 0 #EE1D52;
}

.social-icon.twitch:hover {
  color: white;
  text-shadow:
    -2px -2px 0 #9146FF,
     2px -2px 0 #9146FF,
    -2px  2px 0 #9146FF,
     2px  2px 0 #9146FF;
}

.social-icon.twitter:hover  { color: #fff; }
.social-icon.youtube:hover  { color: #FF0000; }
.social-icon.discord:hover  { color: #5865F2; }

/* Clase para las secciones*/
.sections {
  position: relative;
  overflow: visible;
  z-index: 1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  padding-bottom: 30px;
  margin: 0 auto;
  color: #fff;
  border: 1px solid #fff;
  max-width: 90%;
  align-items: center;
  margin-bottom: 30px;
}

.sections h2 {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.sections-header {
  position: relative;
  display: flex;
  justify-content: center; /* centra el título */
  align-items: center;
  margin-bottom: 20px;
}

/* Twitch */

.twitch-embed {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.twitch-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(145, 70, 255, 0.3);
  border: none;
}

/*banners de apuestas*/

:root {
  --banner-logo-width: 200px;
}

#bannersContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
}

.banners-group-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

.banners-group {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.banner-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.banner-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.banner-card:hover img {
  transform: scale(1.05);
}

.banner-card .tooltip {
  visibility: hidden;
  opacity: 0;
  width: 180px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 6px 10px;
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-size: 14px;
}

.banner-card:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.filter-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

/* Contenedor principal generado por Choices */
.choices {
  width: 180px !important;
}

/* Inner del select */
.choices__inner {
  padding: 10px 14px !important;
  border: 1px solid #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  color: #fff !important;
  font-size: 16px !important;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dropdown */
.choices__list--dropdown {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #fff; 
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: #000 !important;
  font-size: 16px;
  backdrop-filter: none !important;
}

/* Opciones del dropdown */
.choices__list--dropdown .choices__item--selectable {
  color: #000;
  font-size: 18px;
  text-align: center;
  padding: 10px 12px;
}

/* Footer */
.footer {
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border-width: 1px;
  padding: 20px 30px;
  padding-top: 30px;
  font-size: 14px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-link {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner-container {
  width: 80%;
}

.banner-wrapper {
  position: relative;
  width: 100%;
}

.footer-banner {
  width: 100%;
  height: auto;
  display: block;
}

/*Areas clicables*/
.banner-area {
  position: absolute;
  display: block;
  z-index: 2;
}

.area1 {
  top: 15%;
  left: 0.15%;
  width: 25.65%;
  height: 65%;
}

.area2 {
  top: 33.2%;
  left: 72.25%;
  width: 12%;
  height: 30.8%;
}

.area3 {
  top: 33.2%;
  left: 85.7%;
  width: 14.3%;
  height: 30.8%;
}

.copyright {
  white-space: nowrap;
  overflow: hidden;   
  text-overflow: ellipsis;
}

/* Sección de colaboradores */
.colab-sections {
  position: relative;
  overflow: visible;
  z-index: 1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  padding-top: 30px;
  padding-bottom: 30px;
  margin: 0 auto;
  color: #fff;
  border: 1px solid #fff;
  max-width: 90%;
  align-items: center;
  margin-bottom: 30px;
}

.colab-sections h2 {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
}

.colab-sections h3 {
  font-size: 1.8rem;
  margin-top: 25px;
  margin-bottom: 25px;
  font-size: 26px;
  text-align: center;
  font-weight: bold;
  position: relative;
}

/* Marshall sección */
.marshall-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.profile-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-bottom: 15px;
}

.marshall-text {
  max-width: 700px;
  font-size: 16px;
  color: #ddd;
}

:root { --col-gap: 30px; }

/* Colaboradores */
.collaborators-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--col-gap);
  margin: 0 auto;
  box-sizing: border-box;
}

.collaborator-card {
  flex: 0 0 160px;
  min-width: 120px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.collaborator-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.collaborator-card:hover img {
  transform: scale(1.05);
}

.collaborator-name {
  margin-top: 8px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

/* Tooltip para colaboradores */
.collaborator-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0,0,0,0.8);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  width: 180px;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.collaborator-card img:hover + .collaborator-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Responsividad para colaboradores */
@media only screen and (max-width: 1200px) {
  .collaborators-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en pantallas medianas */
    gap: 25px;
  }

  .collaborator-card {
    flex: 0 0 calc((100% - 90px) / 4);
    max-width: calc((100% - 90px) / 4);
  }
  
  .collaborator-card img {
    width: 140px;
    height: 140px;
  }
}

/*Responsividad*/
@media only screen and (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
  }

  .logo-section {
    justify-content: center;
    width: 100%;
    margin: 0;
    padding-left: 0;
  }

  .social-icons {
    position: relative;
    top: auto;
    right: auto;
    margin: 15px 0 0;
    justify-content: center;
    width: 100%;
  }
  
  .logo-wrapper {
    padding-left: 0;
  }

  .logo-img {
    width: 140px;
  }
  
  .logo-description {
    font-size: 18px;
    padding-top: 10px;
  }
  
  .social-icon {
    font-size: 20px;
  }
  
  .sponsor-section,
  .sponsor-section2 {
    width: 100%;
    padding: 20px 15px;
  }
  
  .sections {
    padding: 20px;
    max-width: 95%;
  }
  
  .sections h2 {
    font-size: 22px;
  }
  
  #bannersContainer {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .footer {
    padding: 20px 15px;
    padding-top: 40px;
  }
  
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .colab-sections {
    padding: 20px;
    border-radius: 15px;
    max-width: 95%;
  }
  
  .colab-sections h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .colab-sections h3 {
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .collaborators-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablets */
    gap: 20px;
  }

  .collaborator-card {
    flex: 0 0 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
  }
  
  .collaborator-card img {
    width: 120px;
    height: 120px;
  }
  
  .profile-img {
    width: 150px;
    height: 150px;
  }
  
  .marshall-text {
    font-size: 14px;
    max-width: 90%;
  }
  
  .collaborator-tooltip {
    width: 160px;
    font-size: 12px;
    bottom: -45px;
  }

  .filter-container {
    position: relative;
    top: auto;
    right: auto;
    margin: 15px 0;
    text-align: center;
  }
  
  .choices {
    width: 250px !important;
    margin: 0 auto;
  }
  
  .choices__inner {
    font-size: 18px !important;
    padding: 12px 16px !important;
  }
  
  .sections-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .sections-header h2 {
    margin-bottom: 15px;
  }
}

@media only screen and (max-width: 480px) {
  .social-icons {
    gap: 10px;
  }

  #bannersContainer {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }

  .logo-img {
    width: 150px;
  }
  
  .logo-description {
    font-size: 18px;
  }
  
  .social-icon {
    font-size: 18px;
  }
  
  .twitch-embed iframe {
    border-radius: 8px;
  }
  
  .banner-card .tooltip {
    width: 150px;
    font-size: 12px;
    bottom: -40px;
  }
  .copyright {
    font-size: 12px;
  }

  .collaborators-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles */
    gap: 15px;
  }
  
  .collaborator-card {
    flex: 0 0 calc((100% - 30px) / 2);
    max-width: calc((100% - 30px) / 2);
  }

  .collaborator-card img {
    width: 100px;
    height: 100px;
  }
  
  .colab-sections h2 {
    font-size: 22px;
  }
  
  .colab-sections h3 {
    font-size: 20px;
  }
  
  .profile-img {
    width: 130px;
    height: 130px;
  }
  
  .collaborator-name {
    font-size: 14px;
  }
  
  .collaborator-tooltip {
    width: 140px;
    font-size: 11px;
    bottom: -40px;
    padding: 6px 10px;
  }

  .choices {
    width: 220px !important;
  }
  
  .choices__inner {
    font-size: 16px !important;
    padding: 10px 14px !important;
  }
  
  .choices__list--dropdown .choices__item--selectable {
    font-size: 16px;
    padding: 12px 10px;
  }
}

@media (max-width: 360px) {
  #bannersContainer {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }
    
  .banner-card img {
    max-width: 100%;
  }
  .collaborators-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .collaborator-card img {
    width: 90px;
    height: 90px;
  }
  
  .colab-sections {
    padding: 15px;
    border-radius: 12px;
  }
  
  .colab-sections h2 {
    font-size: 20px;
  }
  
  .colab-sections h3 {
    font-size: 18px;
  }
  
  .collaborator-tooltip {
    width: 120px;
    font-size: 10px;
    bottom: -35px;
  }
}