/* Módulo Información Pública - Hockey Guatemala */

body.pagina-info-publica {
  padding-top: 80px;
}

/* Aviso legal */
.aviso-legal-info {
  background: var(--white);
  border-left: 4px solid #1a472a;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
}

.aviso-legal-info strong {
  color: #1a472a;
}

/* Estadísticas */
.info-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.info-stats strong {
  color: var(--primary);
  font-size: 1.25rem;
}

.filtro-buscar input {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(10,25,41,0.15);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  min-width: 200px;
}

/* Barra SINACIG */
.sinacig-banner {
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
  color: var(--white);
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.sinacig-banner a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

/* Acciones superiores */
.info-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.info-acciones .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.info-acciones .btn svg {
  width: 18px;
  height: 18px;
}

.btn-solicitud {
  background: #1a472a !important;
  color: white !important;
}

.btn-solicitud:hover {
  background: #143d22 !important;
  transform: translateY(-2px);
}

/* Filtros por mes */
.filtros-tiempo {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
}

.filtros-tiempo label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}

.filtros-tiempo select {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(10,25,41,0.15);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  min-width: 140px;
}

.filtros-tiempo .btn-limpiar {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(10,25,41,0.2);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.filtros-tiempo .btn-limpiar:hover {
  background: var(--light);
}

/* Nube de incisos */
.nuve-incisos {
  margin-bottom: 2.5rem;
}

.nuve-incisos h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nuve-incisos h3 svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.nuve-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 120px;
}

.inciso-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(10, 25, 41, 0.06);
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  color: var(--dark);
  text-align: left;
  max-width: 100%;
}

.inciso-tag .inciso-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.inciso-tag:hover,
.inciso-tag.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10,25,41,0.2);
}

.inciso-tag:hover .inciso-num,
.inciso-tag.active .inciso-num {
  background: white;
  color: var(--primary);
}

/* Tamaños dinámicos en la nube según cantidad de docs */
.inciso-tag.size-sm { font-size: 0.8rem; padding: 0.4rem 0.85rem; }
.inciso-tag.size-md { font-size: 0.95rem; padding: 0.55rem 1.1rem; }
.inciso-tag.size-lg { font-size: 1.05rem; padding: 0.65rem 1.25rem; font-weight: 600; }

/* Lista de documentos */
.documentos-section h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.documentos-section h3 svg {
  width: 22px;
  height: 22px;
}

.contador-resultados {
  font-size: 0.8rem;
  font-weight: 400;
  color: #6b7280;
  margin-left: 0.5rem;
}

.documentos-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(10,25,41,0.06);
  border: 1px solid rgba(10,25,41,0.06);
  transition: all 0.25s ease;
}

.doc-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(10,25,41,0.1);
}

.doc-icon {
  width: 48px;
  height: 48px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon svg {
  width: 24px;
  height: 24px;
  color: #dc3545;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-info h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.doc-meta svg {
  width: 14px;
  height: 14px;
}

.doc-acciones {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.doc-acciones a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.doc-acciones .btn-ver {
  background: var(--primary);
  color: white;
}

.doc-acciones .btn-ver:hover {
  background: var(--primary-light);
}

.doc-acciones .btn-descargar {
  background: var(--light);
  color: var(--dark);
  border: 1px solid rgba(10,25,41,0.1);
}

.doc-acciones .btn-descargar:hover {
  background: #e8edf2;
}

.doc-acciones svg {
  width: 16px;
  height: 16px;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  color: #6b7280;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* Inciso detalle panel */
.inciso-detalle {
  background: linear-gradient(135deg, var(--azul-fuerte), var(--azul-medio));
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: none;
}

.inciso-detalle.visible {
  display: block;
}

.inciso-detalle h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.inciso-detalle p {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Formulario solicitud */
.form-solicitud {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

.form-solicitud .form-group {
  margin-bottom: 1.25rem;
}

.form-solicitud label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--dark);
  font-size: 0.9rem;
}

.form-solicitud label .required {
  color: #dc3545;
}

.form-solicitud input,
.form-solicitud textarea,
.form-solicitud select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(10,25,41,0.15);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-solicitud input:focus,
.form-solicitud textarea:focus,
.form-solicitud select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-solicitud .form-hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.35rem;
}

.form-solicitud .file-upload {
  border: 2px dashed rgba(10,25,41,0.15);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.form-solicitud .file-upload:hover,
.form-solicitud .file-upload.dragover {
  border-color: var(--primary);
  background: rgba(10,25,41,0.02);
}

.form-solicitud .file-upload svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-solicitud .file-upload input {
  display: none;
}

.form-solicitud .file-name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.aviso-legal {
  background: rgba(26, 71, 42, 0.08);
  border-left: 4px solid #1a472a;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-mensaje {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.form-mensaje.exito {
  display: block;
  background: rgba(40, 167, 69, 0.1);
  color: #155724;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-mensaje.error {
  display: block;
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
  .doc-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-acciones {
    width: 100%;
  }

  .doc-acciones a {
    flex: 1;
    justify-content: center;
  }

  .inciso-tag {
    font-size: 0.85rem !important;
  }
}
