/* ========================================= */
/*   HERO DEL EVENTO                        */
/* ========================================= */

.hero-evento {
  min-height: 45vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
  padding: 80px 20px 40px;
  position: relative;
  overflow: hidden;
}

.hero-evento::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/5.otros_elementos/Wallpaper/Gemini_Generated_Image_4.webp") no-repeat center center;
  background-size: cover;
  opacity: 0.25;
  z-index: 0;
}

.hero-evento .container {
  position: relative;
  z-index: 2;
}

.hero-evento-badge {
  display: inline-block;
  background-color: #ffc107;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4em 1.2em;
  border-radius: 25px;
  margin-bottom: 1.5rem;
}

.hero-evento-titulo {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-evento-fecha {
  font-size: 1.1rem;
  color: #ffc107;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-evento-sub {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 0;
  font-weight: 300;
}

/* ========================================= */
/*   CONTENIDO PRINCIPAL                   */
/* ========================================= */

.evento-article,
.evento-seccion {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.evento-titulo-seccion {
  color: #ffc107;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #ffc107;
  display: inline-block;
}

.evento-intro {
  color: var(--onca-text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  text-align: justify;
}

.evento-texto {
  color: var(--onca-text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* ========================================= */
/*   GRID DE DEPORTISTAS                   */
/* ========================================= */

.deportistas-grid {
  margin-bottom: 0;
}

.deportista-card {
  background-color: var(--onca-bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.deportista-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(255, 193, 7, 0.2);
  border-color: #ffc107;
}

.deportista-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.deportista-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.deportista-nombre {
  color: var(--onca-text);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.deportista-titulo {
  color: #ffc107;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.deportista-desc {
  color: var(--onca-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.deportista-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.deportista-tags .badge {
  font-size: 0.75rem;
  padding: 0.4em 0.8em;
}

/* ========================================= */
/*   TARJETAS DE INFORMACIÓN                */
/* ========================================= */

.info-card {
  background-color: var(--onca-bg-card);
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid #ffc107;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.1);
}

.info-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.info-content h5 {
  color: var(--onca-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.info-content p {
  color: var(--onca-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================= */
/*   GALERÍA DE FOTOS                      */
/* ========================================= */

.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0;
}

.foto-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--onca-bg-card);
}

.foto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.foto-item:hover .foto-img {
  transform: scale(1.08);
}

.foto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.foto-item:hover .foto-overlay {
  opacity: 1;
}

.foto-expand {
  font-size: 2rem;
  color: #ffc107;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ========================================= */
/*   GRID DE LINKS                         */
/* ========================================= */

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0;
}

.link-card {
  background-color: var(--onca-bg-card);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(255, 193, 7, 0.15);
  border-color: #ffc107;
  color: inherit;
  text-decoration: none;
}

.link-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.link-card h5 {
  color: var(--onca-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.link-card p {
  color: var(--onca-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.link-arrow {
  color: #ffc107;
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
}

/* ========================================= */
/*   WIDGETS LATERALES                     */
/* ========================================= */

.widget-card {
  background-color: var(--onca-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid transparent;
}

.widget-card:hover {
  border-color: #ffc107;
}

.widget-title {
  color: #ffc107;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  border-bottom: 2px solid #ffc107;
  padding-bottom: 0.75rem;
}

.widget-text {
  color: var(--onca-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ========================================= */
/*   BOTONES DE COMPARTIR                  */
/* ========================================= */

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-buttons .btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.share-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================= */
/*   INFORMACIÓN RÁPIDA                    */
/* ========================================= */

.quick-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.info-label {
  color: var(--onca-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  color: var(--onca-text);
  font-weight: 600;
}

/* ========================================= */
/*   WIDGET CTA                            */
/* ========================================= */

.cta-card {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
  border: 2px solid #ffc107;
}

.cta-card .btn {
  transition: all 0.3s ease;
}

.cta-card .btn:hover {
  background-color: #ffc107;
  color: #000;
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3);
}

/* ========================================= */
/*   RESPONSIVE                            */
/* ========================================= */

@media (max-width: 768px) {
  .hero-evento-titulo {
    font-size: 1.75rem;
  }

  .evento-titulo-seccion {
    font-size: 1.4rem;
  }

  .foto-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .deportistas-grid .col-md-6 {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-evento {
    min-height: 35vh;
    padding: 70px 15px 30px;
  }

  .hero-evento-badge {
    font-size: 0.65rem;
  }

  .hero-evento-titulo {
    font-size: 1.35rem;
  }

  .hero-evento-fecha,
  .hero-evento-sub {
    font-size: 0.95rem;
  }

  .evento-titulo-seccion {
    font-size: 1.2rem;
  }

  .foto-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .deportista-info {
    padding: 1rem;
  }

  .deportista-nombre {
    font-size: 1rem;
  }

  .share-buttons .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ========================================= */
/*   MODO OSCURO / CLARO                   */
/* ========================================= */

/* ========================================= */
/*   SECCIÓN DE COMPETIDORES                */
/* ========================================= */

.competidores-section {
  margin-bottom: 0;
}

.competidor-foto-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.competidor-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.competidor-foto-container:hover .competidor-foto {
  transform: scale(1.05);
}

.competidor-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem 1.5rem 1.5rem;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
}

.competidor-badge-cat {
  display: inline-block;
  background-color: #ffc107;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5em 1em;
  border-radius: 20px;
}

.competidor-info {
  display: flex;
  flex-direction: column;
}

.competidor-nombre {
  color: var(--onca-text);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.competidor-rol {
  color: #ffc107;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.competidor-categoria {
  margin-bottom: 1rem;
}

.competidor-desc {
  color: var(--onca-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.competidor-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.competidor-tags .badge {
  font-size: 0.75rem;
  padding: 0.4em 0.8em;
}

.hero-logo {
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================= */
/*   MODO OSCURO / CLARO                   */
/* ========================================= */

@media (prefers-color-scheme: light) {
  .hero-evento {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 50%, #f5f5f5 100%);
  }

  .evento-titulo-seccion {
    color: #cc9900;
    border-bottom-color: #cc9900;
  }

  .widget-title {
    color: #cc9900;
    border-bottom-color: #cc9900;
  }

  .cta-card {
    background: linear-gradient(135deg, rgba(204, 153, 0, 0.1) 0%, rgba(204, 153, 0, 0.05) 100%);
    border-color: #cc9900;
  }
}
