/* Reconocimientos CIENUT 2025 - Estilos (versión completa actualizada) */

/* Estilos para radio buttons - OCULTOS */
[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Sección completa del eje */
.eje-seccion {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin: 40px 0;
  padding: 30px;
  border-left: 6px solid var(--primary-color);
}

/* Título del eje más prominente */
.eje-titulo {
  font-size: 24px;
  font-weight: 700;
  color: #2c5aa0;
  margin: 0 0 30px 0;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #4a5f73 0%, #2c5aa0 100%);
  color: white;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(44, 90, 160, 0.2);
}

/* Card seleccionable completo */
.candidato-card {
  display: block;
  background: #fafafa;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid #e9ecef;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.candidato-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
  background: white;
}

/* Card seleccionado */
[type="radio"]:checked + .candidato-card {
  border-color: #26b3b4;
  background: linear-gradient(135deg, #f0fdfd 0%, #ffffff 100%);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(38, 179, 180, 0.4);
}

/* Foto del candidato */
.candidato-foto {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid #e9ecef;
  transition: all 0.3s ease;
}

[type="radio"]:checked + .candidato-card .candidato-foto {
  border-color: #26b3b4;
  box-shadow: 0 4px 15px rgba(38, 179, 180, 0.3);
}

.candidato-nombre {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.2;
}

.candidato-pais {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
}

.bandera {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Grid de candidatos - 6 por fila */
.candidatos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin: 0;
}

/* Separador visual entre ejes */
.eje-separador {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #26b3b4 50%,
    transparent 100%
  );
  margin: 50px 0;
}

/* Estilos para cuando no hay candidatos */
.sin-candidatos {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.sin-candidatos-icon {
  margin-bottom: 20px;
  opacity: 0.6;
}

.sin-candidatos h4 {
  font-size: 18px;
  font-weight: 600;
  color: #4a5f73;
  margin-bottom: 10px;
}

.sin-candidatos p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Estado de votación cerrada */
.votacion-estado {
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.votacion-cerrada {
  border: 2px solid #dc3545;
}

.estado-header {
  padding: 20px;
  text-align: center;
  color: white;
}

.votacion-cerrada .estado-header {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.estado-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.mensaje-cerrada {
  background: white;
  padding: 30px;
  text-align: center;
}

/* Candidatos deshabilitados cuando votación cerrada - mostrar a color pero sin interacción */
.candidato-deshabilitado {
  pointer-events: none;
  opacity: 0.6;
}

.candidato-deshabilitado .candidato-card {
  background: #f8f9fa;
  cursor: not-allowed;
}

.candidato-deshabilitado .candidato-card:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Candidatos cuando votación cerrada - mostrar a color pero sin interacción */
.eje-votacion-cerrada .candidato-card {
  background: white;
  opacity: 1; /* Mantener visible pero sin interacción */
  cursor: default;
}

.eje-votacion-cerrada .candidato-deshabilitado {
  pointer-events: none;
  opacity: 1; /* Cambiar de 0.6 a 1 para que se vea claro */
}

.eje-votacion-cerrada .candidato-deshabilitado .candidato-card:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.email-section {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  margin: 50px 0;
  text-align: center;
  border-left: 6px solid #26b3b4;
}

.email-input {
  width: 100%;
  max-width: 400px;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  margin: 15px auto;
  display: block;
  transition: all 0.3s ease;
}

.email-input:focus {
  outline: none;
  border-color: #26b3b4;
  box-shadow: 0 0 0 3px rgba(38, 179, 180, 0.1);
}

.btn-enviar {
  background: linear-gradient(135deg, #26b3b4 0%, #1e8e8f 100%);
  color: white;
  padding: 18px 45px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 25px auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-enviar:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(38, 179, 180, 0.4);
}

.btn-enviar:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Sección de votación finalizada */
.votacion-finalizada-section {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #dc3545;
  margin: 40px 0;
}

.votacion-finalizada-section h3 {
  color: #dc3545;
  font-size: 24px;
  margin-bottom: 15px;
}

.fecha-cierre-final {
  font-size: 14px;
  color: #666;
  margin-top: 15px;
  font-style: italic;
}

/* Estilos para separación de párrafos */
.presentacion-section p {
  margin-bottom: 40px; /* Separación más amplia entre párrafos */
  line-height: 1.7;
  text-align: justify;
}

.presentacion-section p:last-child {
  margin-bottom: 20px;
}

/* Título de candidatos centrado */
.titulo-candidatos-seccion {
  font-size: 24px;
  font-weight: 700;
  color: #2c5aa0;
  text-align: center;
  margin: 50px 0 40px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 8px;
  border-left: 6px solid #26b3b4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Estilos para resultados 2025 - MÁS COMPACTO */
.resultados-2025-seccion {
  background: linear-gradient(135deg, #fff7e6 0%, #ffffff 100%);
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 20px; /* Reducido de 30px a 20px */
  margin: 30px 0; /* Reducido de 40px a 30px */
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
}

.resultados-header-2025 {
  background: linear-gradient(135deg, #4a5f73 0%, #2c5aa0 100%);
  color: white;
  padding: 15px; /* Reducido de 20px a 15px */
  border-radius: 6px;
  margin-bottom: 20px; /* Reducido de 25px a 20px */
  text-align: center;
}

.titulo-resultados {
  font-size: 20px; /* Reducido de 26px a 20px */
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.subtitulo-reconocimientos {
  text-align: center;
  font-size: 14px; /* Reducido de 16px a 14px */
  color: #2c5aa0;
  margin: 15px 0 20px 0; /* Reducido márgenes */
  font-weight: 600;
}

.ganadores-container-2025 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.ganador-card-2025 {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 3px solid #ffc107;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  position: relative;
  width: 200px;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
  transition: transform 0.3s ease;
}

.ganador-card-2025:hover {
  transform: translateY(-5px);
}

.ganador-corona {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 28px;
  background: white;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ganador-foto-2025 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 10px auto 15px;
  display: block;
  border: 4px solid #ffc107;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.ganador-nombre-2025 {
  font-size: 16px;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.ganador-pais-2025 {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 500;
}

.bandera-ganador {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ganador-eje-2025 {
  font-size: 12px;
  font-weight: 600;
  color: #26b3b4;
  text-transform: uppercase;
  background: rgba(38, 179, 180, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid #26b3b4;
}

/* Procesando resultados 2025 - MÁS COMPACTO */
.procesando-resultados-2025 {
  text-align: center;
  padding: 40px 20px; /* Reducido de 60px a 40px */
  background: linear-gradient(135deg, #f0fdfd 0%, #ffffff 100%);
  border-radius: 8px;
  border: 2px solid #26b3b4;
}

.procesando-icon {
  margin-bottom: 15px; /* Reducido de 20px a 15px */
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.procesando-resultados-2025 h3 {
  color: #2c5aa0;
  font-size: 20px; /* Reducido de 24px a 20px */
  margin-bottom: 12px; /* Reducido de 15px a 12px */
  font-weight: 700;
}

.procesando-resultados-2025 p {
  color: #666;
  font-size: 14px; /* Reducido de 16px a 14px */
  margin-bottom: 8px; /* Reducido de 10px a 8px */
}

.separador-resultados {
  height: 2px; /* Reducido de 3px a 2px */
  background: linear-gradient(
    90deg,
    transparent 0%,
    #ffc107 50%,
    transparent 100%
  );
  margin: 30px 0; /* Reducido de 50px a 30px */
}

/* Responsive */
@media (max-width: 1024px) {
  .candidatos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .eje-titulo {
    font-size: 20px;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .candidatos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .candidato-card {
    padding: 12px;
  }

  .candidato-foto {
    width: 60px;
    height: 60px;
  }

  .candidato-nombre {
    font-size: 11px;
  }

  .candidato-pais {
    font-size: 10px;
  }

  .eje-titulo {
    font-size: 18px;
    padding: 12px;
  }

  .eje-seccion {
    padding: 20px;
    margin: 30px 0;
  }

  .sin-candidatos {
    padding: 30px 15px;
  }

  .sin-candidatos h4 {
    font-size: 16px;
  }

  .sin-candidatos p {
    font-size: 13px;
  }

  .sin-candidatos-icon svg {
    width: 48px;
    height: 48px;
  }

  .estado-header h3 {
    font-size: 20px;
  }

  .mensaje-cerrada {
    padding: 20px;
  }

  .titulo-candidatos-seccion {
    font-size: 20px;
    padding: 15px;
    margin: 30px 0;
  }

  .resultados-2025-seccion {
    padding: 15px;
    margin: 20px 0;
  }

  .titulo-resultados {
    font-size: 18px;
  }

  .subtitulo-reconocimientos {
    font-size: 13px;
  }

  .ganador-card-2025 {
    width: 160px;
    padding: 15px;
  }

  .ganador-foto-2025 {
    width: 100px;
    height: 100px;
  }

  .ganador-nombre-2025 {
    font-size: 14px;
  }

  .procesando-resultados-2025 {
    padding: 30px 15px;
  }

  .procesando-resultados-2025 h3 {
    font-size: 18px;
  }

  .procesando-resultados-2025 p {
    font-size: 13px;
  }
}

/* Móviles pequeños - 1 candidato por fila */
@media (max-width: 480px) {
  .candidatos-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 280px;
    margin: 0 auto;
  }

  .candidato-card {
    padding: 20px;
  }

  .candidato-foto {
    width: 80px;
    height: 80px;
  }

  .candidato-nombre {
    font-size: 14px;
  }

  .candidato-pais {
    font-size: 12px;
  }

  .eje-titulo {
    font-size: 16px;
    padding: 15px 10px;
  }

  .eje-seccion {
    padding: 15px;
    margin: 20px 0;
  }

  .email-section {
    padding: 25px 15px;
  }

  .email-input {
    padding: 12px 15px;
    font-size: 14px;
  }

  .btn-enviar {
    padding: 15px 30px;
    font-size: 16px;
  }

  .titulo-candidatos-seccion {
    font-size: 18px;
    margin: 20px 0;
  }

  .resultados-2025-seccion {
    padding: 12px;
    margin: 15px 0;
  }

  .titulo-resultados {
    font-size: 16px;
  }

  .ganadores-container-2025 {
    gap: 15px;
  }

  .ganador-card-2025 {
    width: 140px;
    padding: 12px;
  }

  .ganador-foto-2025 {
    width: 80px;
    height: 80px;
  }

  .procesando-resultados-2025 {
    padding: 25px 10px;
  }
}
