:root {
    --panel: #ffffffdd;
    --accent: #f7d23e;
    --accent-dark: #d8b22d;
    --text: #111;
    --text-secondary: #555;
    --border: #e2e5e9;
    --radius: 16px;
    --transition: 0.2s ease;
    --flag-yellow: #f7d23e;
    --flag-blue: #0038a8;
    --flag-red: #ce1126;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    font-family: 'Nunito', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen;
  }
  
  * { box-sizing: border-box; }
  
  body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg,var(--flag-yellow) 0 45%, var(--flag-blue) 45% 70%, var(--flag-red) 70% 100%);
    position: relative;
  }
  
  body::before {
    content: "";
    position: absolute; inset:0;
    backdrop-filter: blur(18px) saturate(1.2);
    background: linear-gradient(135deg, #ffffffaa, #ffffff33 60%);
    pointer-events:none;
  }
  
  main {
    position:relative; z-index:1;
    flex:1; display:flex; flex-direction:column;
    gap:1.5rem; padding: 1.5rem clamp(1rem,3vw,2rem) 2.5rem;
  }
  
  .hero {
    display:flex; justify-content:center; align-items:center;
    min-height:200px;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem; /* Reducido para menos espacio debajo del título principal */
  }
  
  .hero-logo img {
    max-width:300px; width:100%;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.25));
  }
  
  .hero-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.5rem 0; /* Menor margen inferior */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
  }
  
  .results-section { 
    position:relative; 
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }
  
  .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem; /* Menor espacio entre título y categoría */
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .results-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin: 0;
  }
  
  .results-controls { 
    display:flex; 
    gap:.75rem; 
    align-items:center; 
    flex-wrap:wrap; 
  }
  
  .results-controls select, .results-controls button {
    font:inherit; padding:.55rem .9rem;
    border-radius: var(--radius);
    border:1px solid var(--border);
    background:#fff; cursor:pointer; transition:var(--transition);
  }
  
  .results-controls select:focus, .results-controls button:focus {
    outline:2px solid var(--accent); outline-offset:2px;
  }
  
  .results-controls button {
    background: var(--accent);
    border:1px solid var(--accent-dark);
    font-weight:600;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .results-controls button:hover { 
    background:var(--accent-dark); 
    color:#fff; 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 210, 62, 0.3);
  }
  
  .inline {
    font-size:.8rem; display:flex; gap:.4rem; align-items:center;
    background:#ffffff80; padding:.45rem .7rem;
    border:1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
  }
  
  .table-wrapper {
    background: var(--panel);
    border:1px solid var(--border);
    border-radius: var(--radius);
    padding:1rem;
    box-shadow:0 6px 22px -10px rgba(0,0,0,.25);
    backdrop-filter: blur(14px) saturate(1.2);
    width: 100%;
    position: relative;
  }
  
  .update-info {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size:.7rem; 
    color:var(--text-secondary);
    background: rgba(255,255,255,0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
  }
  
  /* Tabla responsiva sin scroll horizontal - nombres completos */
  #tablaResultados { 
    width:100%; 
    border-collapse:collapse; 
    font-size:.9rem; 
    table-layout: fixed;
  }
  
  #tablaResultados thead th {
    text-align:left; 
    padding:.65rem .6rem;
    background:linear-gradient(135deg, #1b1b1b, #2d2d2d); 
    color:#fff;
    font-weight:600; 
    letter-spacing:.5px;
    border-bottom: 2px solid var(--accent);
  }
  
  /* Definir anchos de columnas */
  #tablaResultados th:nth-child(1), 
  #tablaResultados td:nth-child(1) {
    width: 60px; /* Columna del ranking */
  }
  
  #tablaResultados th:nth-child(2), 
  #tablaResultados td:nth-child(2) {
    width: calc(100% - 120px); /* Columna del equipo (resto del espacio) */
  }
  
  #tablaResultados th:nth-child(3), 
  #tablaResultados td:nth-child(3) {
    width: 60px; /* Columna del total */
    text-align: center;
  }
  
  #tablaResultados tbody td {
    padding:.55rem .6rem;
    border-bottom:1px solid var(--border);
    transition: var(--transition);
    vertical-align: top; /* Cambiado a top para mejor alineación con múltiples líneas */
  }
  
  #tablaResultados tbody tr:last-child td { border-bottom:none; }
  #tablaResultados tbody tr { 
    transition:var(--transition); 
    cursor: pointer;
  }
  #tablaResultados tbody tr:hover { 
    background:linear-gradient(90deg, #fff9e0, #fff5d6); 
    transform: translateX(2px);
  }
  
  /* Estilos para filas desplegables */
  .team-row {
    background: #fafafa;
  }
  
  .team-row:hover {
    background: linear-gradient(90deg, #fff9e0, #fff5d6);
  }
  
  .team-name {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  display: inline-block;
  word-wrap: break-word; /* Permite saltos de línea en palabras largas */
  word-break: break-word; /* Rompe palabras muy largas si es necesario */
  white-space: normal; /* Permite múltiples líneas */
  line-height: 1.3; /* Mejor espaciado entre líneas */
  min-height: 1.3em; /* Altura mínima para una línea */
}
  
  .team-name:hover {
    color: var(--accent-dark);
  }
  
  .expand-icon {
    display: inline-block;
    margin-right: 0.5rem;
    transition: var(--transition);
    font-weight: bold;
    color: var(--accent);
    flex-shrink: 0;
    vertical-align: top; /* Alinea el icono con la primera línea */
    margin-top: 0.1rem; /* Ajuste fino para alineación */
  }
  
  .expand-icon.expanded {
    transform: rotate(90deg);
  }
  
  .wod-details {
    display: none;
    background: #f8f9fa;
    border-left: 4px solid var(--accent);
  }
  
  .wod-details.show {
    display: table-row;
  }
  
  .wod-details td {
    padding: 0.75rem 0.6rem;
    background: #f8f9fa;
    font-size: 0.85rem;
    color: var(--text-secondary);
  }
  
  .wod-details td:first-child {
    padding-left: 2rem;
  }
  
  .rank-badge {
    font-weight:600; 
    background:var(--accent);
    border-radius:999px; 
    padding:.28rem .55rem;
    display:inline-block; 
    min-width:2rem; 
    text-align:center;
    transition: var(--transition);
    vertical-align: top; /* Alinea con la primera línea del nombre */
    margin-top: 0.1rem; /* Ajuste fino para alineación */
  }
  .top1 { 
    background: linear-gradient(135deg,#ffd700,#ffed4e); 
    color: #000;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  }
  .top2 { 
    background: linear-gradient(135deg,#c0c0c0,#e6e6e6); 
    color: #333;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
  }
  .top3 { 
    background: linear-gradient(135deg,#cd7f32,#e4b37a); 
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
  }
  
  /* Responsive - Mobile First */
  @media (max-width:480px){
    .results-header { 
      flex-direction: column;
      align-items: stretch;
    }
    .results-controls { 
      flex-direction: column;
      align-items: stretch;
    }
    .results-title {
      font-size: 1.5rem;
      text-align: center;
    }
    .hero-logo img {
      max-width: 250px;
    }
    .hero-title {
      font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    .update-info {
      position: static;
      text-align: center;
      margin-top: 1rem;
    }
    
    /* Ajustes específicos para móviles */
    #tablaResultados {
      font-size: 0.8rem;
    }
    
    #tablaResultados th:nth-child(1), 
    #tablaResultados td:nth-child(1) {
      width: 50px; /* Ranking más pequeño en móviles */
    }
    
    #tablaResultados th:nth-child(2), 
    #tablaResultados td:nth-child(2) {
      width: calc(100% - 110px); /* Más espacio para nombres */
    }
    
    #tablaResultados th:nth-child(3), 
    #tablaResultados td:nth-child(3) {
      width: 60px; /* Total */
    }
    
    #tablaResultados thead th,
    #tablaResultados tbody td {
      padding: 0.4rem 0.3rem;
    }
    
    .team-name {
      font-size: 0.75rem;
      line-height: 1.2; /* Espaciado más compacto en móviles */
    }
    
    .expand-icon {
      margin-right: 0.3rem;
      font-size: 0.8rem;
    }
    
    .rank-badge {
      padding: 0.2rem 0.4rem;
      min-width: 1.8rem;
      font-size: 0.75rem;
    }
  }
  
  @media (max-width:780px) and (min-width:481px){
    .results-header { 
      flex-direction: column;
      align-items: stretch;
    }
    .results-controls { 
      justify-content: center;
    }
    .inline { order:4; }
    .update-info {
      position: static;
      text-align: center;
      margin-top: 1rem;
    }
    
    #tablaResultados {
      font-size: 0.85rem;
    }
    
    .team-name {
      font-size: 0.8rem;
      line-height: 1.25;
    }
  }
  
  footer {
    position:relative; z-index:2;
    text-align:center; padding:1rem;
    font-size:.7rem; color:var(--text-secondary);
    background:#ffffffc9; backdrop-filter: blur(8px);
  }
  
  /* Animaciones de carga */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .results-section {
    animation: fadeIn 0.5s ease-out;
  }
  
  /* Estilos para mensajes de error y sin datos */
  #tablaResultados tbody tr td[colspan] {
    text-align: center;
    padding: 2rem !important;
    color: var(--text-secondary);
    font-style: italic;
  }

.patrocinadores-section {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.patrocinadores-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
}
.patrocinadores-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.patrocinador-logo-box {
  width: 110px;
  height: 110px;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(0,0,0,0.13), 0 1.5px 6px 0 rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s;
}
.patrocinador-logo-box:hover {
  box-shadow: 0 8px 24px 0 rgba(0,0,0,0.18), 0 2px 8px 0 rgba(0,0,0,0.13);
}
.patrocinador-logo-img {
  max-width: 90px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  /* Para recorte visual cuadrado, fondo blanco se difumina */
  box-shadow: 0 0 0 2px #fff, 0 2px 8px 0 rgba(0,0,0,0.07);
}

@media (max-width: 600px) {
  .patrocinadores-grid {
    gap: 0.7rem;
  }
  .patrocinador-logo-box {
    width: 80px;
    height: 80px;
  }
  .patrocinador-logo-img {
    max-width: 65px;
    max-height: 65px;
    border-radius: 8px;
  }
}
  
.descalificado-row {
  background: #d32f2f !important;
  color: #fff !important;
}
.descalificado-row td, .descalificado-row th {
  color: #fff !important;
}

.finalista-row {
  background: #f5f5f5 !important;
}
.finalista-row td, .finalista-row th {
  color: #666 !important;
}

.no-final-banner {
  display: inline-flex;
  align-items: center;
  margin-left: 0.6rem;
  margin-right: 0;
  position: relative;
  height: 1.1rem;
}

.no-final-ribbon {
  background: linear-gradient(90deg, #757575 0%, #9e9e9e 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.05rem 0.55rem;
  border-radius: 0.22rem;
  box-shadow: 0 2px 8px rgba(117,117,117,0.12);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
}

.no-final-ribbon::before, .no-final-ribbon::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0.32rem;
  height: 0.55rem;
  background: #616161;
  z-index: 0;
  transform: translateY(-50%);
}

.no-final-ribbon::before {
  left: -0.32rem;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.no-final-ribbon::after {
  right: -0.32rem;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.leader-banner {
  display: inline-flex;
  align-items: center;
  margin-left: 0.9rem;
  margin-right: 0;
  position: relative;
  height: 1.3rem;
}
.leader-banner + .classificado-banner {
  margin-left: 10px;
}
.leader-ribbon {
  background: linear-gradient(90deg, #c62828 0%, #e53935 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.08rem 0.7rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(198,40,40,0.15);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
}
.leader-ribbon::before, .leader-ribbon::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0.4rem;
  height: 0.7rem;
  background: #b71c1c;
  z-index: 0;
  transform: translateY(-50%);
}
.leader-ribbon::before {
  left: -0.4rem;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.leader-ribbon::after {
  right: -0.4rem;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.classificado-banner {
  display: inline-flex;
  align-items: center;
  margin-left: 0.6rem;
  margin-right: 0;
  position: relative;
  height: 1.1rem;
}
.classificado-ribbon {
  background: linear-gradient(90deg, #388e3c 0%, #43a047 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.05rem 0.55rem;
  border-radius: 0.22rem;
  box-shadow: 0 2px 8px rgba(56,142,60,0.12);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
}
.classificado-ribbon::before, .classificado-ribbon::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0.32rem;
  height: 0.55rem;
  background: #2e7031;
  z-index: 0;
  transform: translateY(-50%);
}
.classificado-ribbon::before {
  left: -0.32rem;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.classificado-ribbon::after {
  right: -0.32rem;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
@media (max-width: 600px) {
  .leader-banner {
    height: 1rem;
  }
  .leader-ribbon {
    font-size: 0.7rem;
    padding: 0.05rem 0.45rem;
  }
  .leader-ribbon::before, .leader-ribbon::after {
    width: 0.28rem;
    height: 0.5rem;
  }
  .classificado-banner {
    height: 0.85rem;
  }
  .classificado-ribbon {
    font-size: 0.62rem;
    padding: 0.03rem 0.32rem;
  }
  .classificado-ribbon::before, .classificado-ribbon::after {
    width: 0.18rem;
    height: 0.32rem;
  }
  .no-final-banner {
    height: 0.85rem;
  }
  .no-final-ribbon {
    font-size: 0.62rem;
    padding: 0.03rem 0.32rem;
  }
  .no-final-ribbon::before, .no-final-ribbon::after {
    width: 0.18rem;
    height: 0.32rem;
  }
}
  
.podium-section {
  margin: 1.2rem auto 2rem auto; /* Bajado el podio y menos espacio arriba */
  max-width: 1100px;
  text-align: center;
  z-index: 2;
  position: relative;
}
.podium-title {
  font-family: 'Nunito', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #8d5a1b;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.podium-container {
  background: linear-gradient(135deg, #fffbe6 60%, #fff7c2 100%);
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
  padding: 3.2rem 1.2rem 2.7rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.podium-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2.5rem;
  width: 100%;
  max-width: 900px;
  flex-wrap: wrap;
}
.podium-card {
  flex: 1 1 0;
  min-width: 200px;
  max-width: 280px;
  background: #f5f5f5;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
  padding: 1.2rem 1rem 1.7rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border: 3px solid #e2e2e2;
  transition: box-shadow 0.2s;
}
.podium-card.first-place {
  background: linear-gradient(135deg, #ffe066 80%, #ffd700 100%);
  border-color: #ffd700;
  z-index: 2;
  transform: translateY(-10px) scale(1.08);
  box-shadow: 0 8px 32px 0 rgba(255, 215, 0, 0.18);
}
.podium-card.second-place {
  background: linear-gradient(135deg, #e0e0e0 80%, #bdbdbd 100%);
  border-color: #bdbdbd;
  z-index: 1;
  transform: translateY(10px) scale(1.00);
}
.podium-card.third-place {
  background: linear-gradient(135deg, #f7c08a 80%, #c97a2b 100%);
  border-color: #c97a2b;
  z-index: 1;
  transform: translateY(20px) scale(0.98);
}
.podium-rank {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  border: 4px solid #fff;
  z-index: 3;
}
.podium-card.first-place .podium-rank {
  background: #ffd700;
  color: #8d5a1b;
}
.podium-card.second-place .podium-rank {
  background: #bdbdbd;
  color: #555;
}
.podium-card.third-place .podium-rank {
  background: #c97a2b;
  color: #fff;
}
.podium-medal {
  margin-top: 0.2rem;
  margin-bottom: 0.7rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
}
.podium-medal.gold {
  background: radial-gradient(circle at 60% 40%, #fffbe6 0%, #ffd700 80%);
  box-shadow: 0 2px 8px 0 rgba(255, 215, 0, 0.18);
}
.podium-medal.silver {
  background: radial-gradient(circle at 60% 40%, #f5f5f5 0%, #bdbdbd 80%);
  box-shadow: 0 2px 8px 0 rgba(189, 189, 189, 0.18);
}
.podium-medal.bronze {
  background: radial-gradient(circle at 60% 40%, #f7c08a 0%, #c97a2b 80%);
  box-shadow: 0 2px 8px 0 rgba(201, 122, 43, 0.18);
}
.podium-team {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #8d5a1b;
  margin: 1.1rem 0 0.7rem 0;
  min-height: 2.2rem;
  text-align: center;
  word-break: break-word;
}
.podium-score {
  font-family: 'Nunito', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  background: #fff;
  border-radius: 1.5rem;
  padding: 0.4rem 1.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.07);
  color: #8d5a1b;
  display: inline-block;
}
.podium-card.first-place .podium-score {
  background: #fffbe6;
  color: #8d5a1b;
}
.podium-card.second-place .podium-score {
  background: #f5f5f5;
  color: #555;
}
.podium-card.third-place .podium-score {
  background: #f7c08a;
  color: #fff;
}

/* Tooltip para el podio */
.podium-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  max-width: 280px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.podium-tooltip.show {
  opacity: 1;
  visibility: visible;
}

.podium-tooltip-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffd700;
  font-size: 0.9rem;
}

.podium-tooltip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.podium-tooltip-list li {
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.podium-tooltip-wod {
  font-weight: 600;
  color: #ccc;
}

.podium-tooltip-value {
  font-weight: 700;
  color: #fff;
}

/* Flecha del tooltip */
.podium-tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(0, 0, 0, 0.9);
}
@media (max-width: 900px) {
  .podium-grid {
    gap: 1rem;
    padding: 0 1rem;
  }
  .podium-card {
    min-width: 120px;
    max-width: 180px;
    padding: 1rem 0.5rem 1.2rem 0.5rem;
  }
  .podium-team {
    font-size: 0.9rem;
    text-align: center;
    word-wrap: break-word;
  }
  .podium-score {
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
  }
  .podium-rank {
    top: -28px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
  .podium-medal {
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
  }
}
@media (max-width: 600px) {
  .podium-section {
    padding: 0 0.5rem;
  }
  .podium-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }
  .podium-card {
    min-width: 85vw;
    max-width: 95vw;
    margin: 0 auto;
    transform: none !important;
    padding-top: 2rem;
  }
  .podium-card.first-place {
    z-index: 2;
  }
  .podium-rank {
    top: -35px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  .podium-team {
    font-size: 1rem;
  }
  .podium-score {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .podium-section {
    padding: 0 0.3rem;
  }
  .podium-grid {
    gap: 1.2rem;
  }
  .podium-card {
    min-width: 90vw;
    max-width: 98vw;
    padding: 1.5rem 0.5rem 1rem 0.5rem;
  }
  .podium-team {
    font-size: 0.9rem;
  }
  .podium-score {
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
  }
  .podium-rank {
    top: -30px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}
  
/* Fuegos Artificiales */
.fireworks-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.firework {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: firework-launch 2s ease-out forwards;
}

.firework-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: firework-explode 1.5s ease-out forwards;
}

@keyframes firework-launch {
  0% {
    transform: translateY(100vh) scale(1);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(var(--target-y)) scale(0.1);
    opacity: 0;
  }
}

@keyframes firework-explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

/* Colores de fuegos artificiales */
.firework.red { background: #ff4444; box-shadow: 0 0 12px #ff4444; }
.firework.blue { background: #4444ff; box-shadow: 0 0 12px #4444ff; }
.firework.green { background: #44ff44; box-shadow: 0 0 12px #44ff44; }
.firework.yellow { background: #ffff44; box-shadow: 0 0 12px #ffff44; }
.firework.purple { background: #ff44ff; box-shadow: 0 0 12px #ff44ff; }
.firework.orange { background: #ff8844; box-shadow: 0 0 12px #ff8844; }
.firework.pink { background: #ff4488; box-shadow: 0 0 12px #ff4488; }
.firework.cyan { background: #44ffff; box-shadow: 0 0 12px #44ffff; }

.firework-particle.red { background: #ff4444; }
.firework-particle.blue { background: #4444ff; }
.firework-particle.green { background: #44ff44; }
.firework-particle.yellow { background: #ffff44; }
.firework-particle.purple { background: #ff44ff; }
.firework-particle.orange { background: #ff8844; }
.firework-particle.pink { background: #ff4488; }
.firework-particle.cyan { background: #44ffff; }
  